Bug 83107 - stable imlib2 produces broken imlib2.pc
Bug#: 83107 Product:  Gentoo Linux Version: 2004.3 Platform: x86
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: vapier@gentoo.org Reported By: xcable_hhh@yahoo.com
Component: Ebuilds
URL: 
Summary: stable imlib2 produces broken imlib2.pc
Keywords:  
Status Whiteboard: 
Opened: 2005-02-23 14:04 0000
Description:   Opened: 2005-02-23 14:04 0000
When trying to emerge enlightenment-0.16.9999 it fails give this error:

checking for pkg-config... /usr/bin/pkg-config
checking for imlib2 >= 1.2.0... Package @requirements@ was not found in the pkg-config search path.
Perhaps you should add the directory containing `@requirements@.pc'
to the PKG_CONFIG_PATH environment variable
Package '@requirements@', required by 'imlib2', not found

configure: error: Library requirements (imlib2 >= 1.2.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.

!!! Please attach the config.log to your bug report:
!!! /var/tmp/portage/enlightenment-0.16.9999/work/e16/e/config.log

------- Comment #1 From Heath H Holcomb 2005-02-23 14:05:07 0000 -------
Created an attachment (id=51986) [details]
The config.log file for the failed ebuild

------- Comment #2 From SpanKY 2005-02-23 14:57:15 0000 -------
you neglected to post `emerge info`

if configure has '@requirements@' it means the autotools werent run correctly

------- Comment #3 From Heath H Holcomb 2005-02-23 15:06:58 0000 -------
Created an attachment (id=51989) [details]
my "emege info"

------- Comment #4 From SpanKY 2005-02-23 15:11:32 0000 -------
try posting the log from `emerge enlightenment >& log`

------- Comment #5 From Heath H Holcomb 2005-02-23 15:23:41 0000 -------
Created an attachment (id=51993) [details]
emerge enlightenment-0.16.9999 >& log

------- Comment #6 From SpanKY 2005-02-23 15:29:33 0000 -------
you could try maybe `export WANT_AUTOMAKE=1.9 WANT_AUTOCONF=2.5` and see if
that helps

------- Comment #7 From Heath H Holcomb 2005-02-23 18:20:54 0000 -------
I tried `export WANT_AUTOMAKE=1.9 WANT_AUTOCONF=2.5` and I get the same error
when trying to emerge.

------- Comment #8 From Lloyd Sargent 2005-02-24 08:49:26 0000 -------
Me too.

checking where the gettext function comes from... libc
Sound support has been turned off, per the --enable-sound=no
passed to your configure line.
checking for pkg-config... /usr/bin/pkg-config
checking for imlib2 >= 1.2.0... Package imlib2 was not found in the pkg-config search path.
Perhaps you should add the directory containing `imlib2.pc'
to the PKG_CONFIG_PATH environment variable
No package 'imlib2' found

configure: error: Library requirements (imlib2 >= 1.2.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.

!!! ERROR: x11-wm/enlightenment-0.16.9999 failed.
!!! Function econf, Line 449, Exitcode 1
!!! econf failed
!!! If you need support, post the topmost build error, NOT this status message.


------- Comment #9 From SpanKY 2005-02-24 10:18:20 0000 -------
what version of imlib2 do you guys have ?  do you have imlib2.pc in
/usr/lib/pkgconfig/

------- Comment #10 From Heath H Holcomb 2005-02-24 10:27:20 0000 -------
I have : 

imlib2-1.2.0-r1

------- Comment #11 From Lloyd Sargent 2005-02-24 10:40:40 0000 -------
Okay, here's the deal. I don't have imlib2 in my system. It appears as if your
emerge assumes it is there.

So I then emerged imlib2 into my system.... Okay, all nicely merged with no
errors. It is the version imlib2-1.2.0-r1...

Now when I try to build I get:

checking for imlib2 >= 1.2.0... Package @requirements@ was not found in the
pkg-config search path.
Perhaps you should add the directory containing `@requirements@.pc'
to the PKG_CONFIG_PATH environment variable
Package '@requirements@', required by 'imlib2', not found

configure: error: Library requirements (imlib2 >= 1.2.0) not met; consider
adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a
nonstandard prefix so pkg-config can find them.

!!! ERROR: x11-wm/enlightenment-0.16.9999 failed.

Same problem, different route.

------- Comment #12 From SpanKY 2005-02-24 11:47:02 0000 -------
seems imlib2-1.2.0-r1 produces a .pc file with '@requirements@' in it ... the
unstable/cvs versions have this fixed

------- Comment #13 From Heath H Holcomb 2005-02-24 12:43:15 0000 -------
Is "the unstable/cvs version" of imlib2 in portage?

imlib2-9999.ebuild ?
or
imlib2-1.2.0.20050220.ebuild ?

------- Comment #14 From Peter Hyman 2005-02-24 14:43:22 0000 -------
I just edited /usr/lib/pkgconfig/imlib2.pc to remove

-Requires: @requirements@
+Requires: 

Don't know where it came from, but it fixed it.

------- Comment #15 From SpanKY 2005-02-28 16:01:25 0000 -------
fixed in imlib2-1.2.0-r2

------- Comment #16 From Peter Penkala 2005-09-18 22:49:56 0000 -------
Don't know if this is relevant to the "fixed in imlib2-1.2.0-r2" comment, but
re-emerging that version doesn't fix the existing /usr/lib/pkgconfig/imlib2.pc
if it contains the @requirements@ error.

------- Comment #17 From SpanKY 2006-02-09 07:37:27 0000 -------
*** Bug 122245 has been marked as a duplicate of this bug. ***

------- Comment #18 From Torsten Kaiser 2006-02-09 12:56:35 0000 -------
As seen in Bug 122245 and its two duplicates this is broken again.
I have two systems, one x86 which upgraded enlightenment without trouble, but
the second, an amd64 failed with the @requirements@ bug.

The cause is, that the ebuild contains:
dosed "s:@requirements@::" /usr/lib/pkgconfig/imlib2.pc

But on amd64 imlib2.pc is installed into /usr/lib64 so I still get a broken .pc
file.

------- Comment #19 From SpanKY 2006-02-09 15:51:10 0000 -------
> As seen in Bug 122245 and its two duplicates this is broken again.

no, it was never fixed properly in the first place

ive committed the fix to 1.2.0 and will move a newer snapshot to stable