Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 319065 - x11-misc/slim-1.3.1_p20091114: libpng-1.4 patch
Summary: x11-misc/slim-1.3.1_p20091114: libpng-1.4 patch
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Samuli Suominen (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-09 15:45 UTC by Philip Taffner
Modified: 2010-05-11 06:59 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
libpng-1.4 ebuild patch (slim-libpng-1.4.patch,485 bytes, patch)
2010-05-09 15:45 UTC, Philip Taffner
Details | Diff
fix libpng linkage to slim (slim-fix_libpng_linkage.patch,1.09 KB, patch)
2010-05-10 23:59 UTC, Rafael Martins (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Philip Taffner 2010-05-09 15:45:30 UTC
I wrote a little ebuild patch for slim to work with libpng-1.4.x
Comment 1 Philip Taffner 2010-05-09 15:45:52 UTC
Created attachment 230865 [details, diff]
libpng-1.4 ebuild patch
Comment 2 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2010-05-09 21:23:23 UTC
Thanks for the patch but my understanding is that it would require an explicit dep on >=libpng-1.4 in which case it should be sent upstream as well (or some configure check for which version of libpng is available, yes?)
Comment 3 Philip Taffner 2010-05-09 21:27:49 UTC
With -lpng instead of -lpng12, it should work with 1.2.x and 1.4.x (I've not tested it).
So there is no explicit dep on >=libpng-1.4 or am I wrong?
Comment 4 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2010-05-09 21:38:07 UTC
Ok, I can check. Give me a few days unless someone else does. :)
Comment 5 Samuli Suominen (RETIRED) gentoo-dev 2010-05-10 12:43:38 UTC
+  10 May 2010; Samuli Suominen <ssuominen@gentoo.org>
+  slim-1.3.1_p20091114.ebuild:
+  Link to -lpng instead of -lpng12 for libpng14 to work wrt #319065 by
+  Philip Taffner.
Comment 6 Rafael Martins (RETIRED) gentoo-dev 2010-05-10 23:59:03 UTC
Created attachment 231025 [details, diff]
fix libpng linkage to slim

the previous patch is a bit ugly, because slim follows searching for libpng headers at /usr/include/libpng12. My patch uses pkgconfig to find the correct cflags and libs to be linked.
Comment 7 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2010-05-11 00:15:46 UTC
re-open
Comment 8 Samuli Suominen (RETIRED) gentoo-dev 2010-05-11 06:59:21 UTC
applied the pkgconfig version instead, please send this to upstream.