Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 77880

Summary: libmng doesn't compile against lcms, even though it DEPENDs on it
Product: Gentoo Linux Reporter: David Leverton <levertond>
Component: [OLD] LibraryAssignee: Chris White (RETIRED) <chriswhite>
Status: RESOLVED FIXED    
Severity: major CC: ed, greg_g
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: patch for libmng-1.0.4.ebuild
patch for libmng-1.0.5.ebuild
patch for libmng-1.0.7.ebuild
patch for libmng-1.0.8.ebuild

Description David Leverton 2005-01-13 12:25:52 UTC
libmng versions 1.0.4, 1.0.5, 1.0.7 and 1.0.8 DEPEND on the lcms library, but they don't actually compile against it.  This happens because they expect lcms.h, but the header file is present as lcms/lcms.h.  The ebuilds already patch against the source file that includes it, but not the part of configure that checks whether it is present - as a result, it doesn't get as far as trying to include the header file.

Reproducible: Always
Steps to Reproduce:
1. emerge libmng, any of the versions mentioned above.
2a. Watch the output from configure for messages about lcms.h
2b. When it has compiled, run "ldd /usr/lib/libmng.so"

Actual Results:  
2a. configure says that lcms.h is not present.
2b. libmng.so is not linked against liblcms.so

Expected Results:  
2a. configure should find lcms.h (actually lcms/lcms.h)
2b. libmng.so should be linked against liblcms.so

Patches coming....
Comment 1 David Leverton 2005-01-13 12:26:44 UTC
Created attachment 48415 [details, diff]
patch for libmng-1.0.4.ebuild
Comment 2 David Leverton 2005-01-13 12:27:49 UTC
Created attachment 48416 [details, diff]
patch for libmng-1.0.5.ebuild
Comment 3 David Leverton 2005-01-13 12:30:15 UTC
Created attachment 48417 [details, diff]
patch for libmng-1.0.7.ebuild
Comment 4 David Leverton 2005-01-13 12:31:33 UTC
Created attachment 48418 [details, diff]
patch for libmng-1.0.8.ebuild
Comment 5 Ed Catmur 2005-03-07 04:43:26 UTC
I should point out that more recent versions of lcms-1.13.ebuild fix this bug within LCMS. I'm a little surprised the r-version wasn't bumped.
Comment 6 Gregorio Guidi (RETIRED) gentoo-dev 2005-04-03 12:51:39 UTC
This should be fixed in libmng-1.0.8-r1