Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 510934 - media-libs/libgphoto2: can't find media-libs/gd because of broken gdlib-config check
Summary: media-libs/libgphoto2: can't find media-libs/gd because of broken gdlib-confi...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-21 12:33 UTC by Michał Górny
Modified: 2014-05-22 17:33 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2014-05-21 12:33:22 UTC
So, libgphoto2 has ugly pile of macros to check for libs. It first tries pkg-config search for libgd that fails because we don't ship any libgd.pc. Then it tries gdlib-config and treats that as regular *-config script. But...

$ gdlib-config --libs
-lXpm -lX11 -ljpeg -lfontconfig -lfreetype -lz -lm

Notice no '-lgd' there. So 'gdlib-config --libs' outputs only libs needed for static linking. libgphoto2 assumes '-lgd' is supposed to be there and fails to link the test program.
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2014-05-21 12:39:16 UTC
Possible hack-around:

    LIBGD_CFLAGS=" " LIBGD_LIBS="-lgd"

to econf. Still worth reporting upstream though.
Comment 2 Pacho Ramos gentoo-dev 2014-05-21 18:28:53 UTC
+*libgphoto2-2.5.4 (21 May 2014)
+
+  21 May 2014; Pacho Ramos <pacho@gentoo.org> +libgphoto2-2.5.4.ebuild,
+  -files/libgphoto2-2.4.7-no-test-build.patch,
+  -files/libgphoto2-2.4.8-increase_max_entries.patch,
+  -files/libgphoto2-2.4.9-dnl.patch, -files/libgphoto2-2.5.2-canon-s100.patch,
+  -files/libgphoto2-2.5.2-libxml2-detection.patch,
+  -files/libgphoto2-2.5.2-libxml2-detection2.patch,
+  -libgphoto2-2.4.14-r1.ebuild, -libgphoto2-2.5.2-r1.ebuild,
+  -libgphoto2-2.5.2-r3.ebuild:
+  Version bump, fix gd detection (#510934 by mgorny), drop old
+
Comment 3 SpanKY gentoo-dev 2014-05-22 17:33:22 UTC
(In reply to Michał Górny from comment #0)

we follow what upstream does.  gd-2.0.x didn't ship a .pc file.  the new gd-2.1 includes it, but that isn't yet in the tree.