GNOME Bugzilla – Bug 161817
f-spot cvs doesn't find lcms headers on gentoo
Last modified: 2005-02-17 23:23:22 UTC
Need som autotools-fu to locate lcms - Larry says that Novell Desktop doesn't have a pkg-config file for it yet. As a workaround use autogen like so: CPPFLAGS="-I /usr/include/lcms" ./autogen.sh
Created attachment 35168 [details] [review] Find header at lcms/lcms.h as well as just lcms.h On my (Gentoo) system, the lcms header is in /usr/include/lcms/lcms.h. The attached patch will look there too. I've no idea if there is a more standard way of doing that in autotools.
I added a similar check already does it fix the problem for you?
Unless I do the CPPFLAGS thing I get (with current anoncvs): checking for cmsCreate_sRGBProfile in -llcms... yes checking lcms.h usability... no checking lcms.h presence... no checking for lcms.h... no configure: error: liblcms not found I think someone on irc mentioned a problem with anoncvs. I'll leave it a couple of days and check again.
It's still a problem. The code that is in there will only detect a header in gcc's standard include path. /usr/include/lcms/ is not in that path for me.
is gentoo messing with the where the package installs the header then? mine is defeinitely not in an lcms subdir.
Yes, Gentoo has make ... includedir="/usr/include/${PN}" ... install in its build script: http://www.gentoo.org/cgi-bin/viewcvs.cgi/media-libs/lcms/lcms-1.13.ebuild?rev=HEAD&content-type=text/vnd.viewcvs-markup. PN will expand to lcms. Looking back through old ebuilds, it has been that way for at least two and a half years. I can't find any special reason why, but obviously not supporting it will annoy any other Gentoo users who try compiling. Eventually Gentoo will have a build for f-spot, and they can fix their own mess. Up to you if you want to fix it, I can always work around.
Ah, this was allready reported exactly as I would have reported it. Still a problem with 0.0.6
what we need is a check for the pkg-config entry and if that fails fall back to the current header check.
Created attachment 36487 [details] [review] Do what Larry suggested Should LCMS_LIBS be in another makefile somewhere? Guess which source based distro installs an incorrect .pc file :-O
Oh, I made up the minimum version of lcms, does anyone know what it should be? If anyone wants to track the gentoo bug it is at http://bugs.gentoo.org/show_bug.cgi?id=79386
committed, thanks Loz
The gentoo bug has been fixed upstream.
*** Bug 166029 has been marked as a duplicate of this bug. ***
*** Bug 167750 has been marked as a duplicate of this bug. ***