Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 234156 - x11-libs/vte fails to emerge in prefix portage
Summary: x11-libs/vte fails to emerge in prefix portage
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Gentoo non-Linux Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-07 07:44 UTC by Rabbe Fogelholm
Modified: 2008-09-13 15:28 UTC (History)
0 users

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


Attachments
config.log (config.log,66.15 KB, text/plain)
2008-08-07 07:46 UTC, Rabbe Fogelholm
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rabbe Fogelholm 2008-08-07 07:44:55 UTC
An attempt to emerge x11-libs/vte-0.16.14 in a prefix portage environment on x86-Linux fails. From the console log:

checking for i686-pc-linux-gnu-pkg-config... no
checking for pkg-config... /local/tmp/nightly/2008-08-07/usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for GLIB... configure: error: Package requirements (glib-2.0 > 2.9.0) were not met:

Requested 'glib-2.0 > 2.9.0' but version of GLib is 2.8.6

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables GLIB_CFLAGS
and GLIB_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
Comment 1 Rabbe Fogelholm 2008-08-07 07:46:30 UTC
Created attachment 162415 [details]
config.log

The config.log
Comment 2 Fabian Groffen gentoo-dev 2008-08-07 08:07:26 UTC
I've seen this one before, but thought I fixed this already... can't remember how though.  Works for me here, though.
Comment 3 Rabbe Fogelholm 2008-08-07 08:28:01 UTC
Could it be that you are also using the glib of the host environment, only that your host glib is of a more recent version (> 2.9.0)?

BTW, I don't know how to find out the version of the host glib. On my machine there is a file /opt/gnome/lib/glib/include/glibconfig.h that indicates 1.2.10, nothing like the 2.8.6 that the emerge attempt reports.
Comment 4 Fabian Groffen gentoo-dev 2008-08-07 08:31:10 UTC
% ldd /ufs/fabian/scratch/programs/gentoo/usr/lib/libvte.so.9.2.18 | grep glib
        libglib-2.0.so.0 => /ufs/fabian/scratch/programs/gentoo/usr/lib/libglib-2.0.so.0 (0x00002aaaad497000)

Looks healty to me, so unfortunately that's not the case.
Comment 5 Fabian Groffen gentoo-dev 2008-08-07 08:34:02 UTC
% pkg-config --modversion glib-2.0
2.16.5

does that work for you?

I think pkg-config in your case doesn't have a correct PKG_CONFIG path.
Comment 6 Fabian Groffen gentoo-dev 2008-08-07 08:43:50 UTC
last thing, if I look at the output of strings on pkg-config, then I just see the prefixed search path, so if that's the case for you too, it looks more likely that configure somehow uses the host pkg-config instead of the prefix one.
Comment 7 Rabbe Fogelholm 2008-08-07 10:18:37 UTC
First of all, typing `which pkg-config' produces

/local/tmp/nightly/2008-08-07/usr/bin/pkg-config

Typing `pkg-config --modversion glib-2.0' gets me

2.8.6

Finally, strings `which pkg-config` | grep :/ gets me a few lines, one of them being

/local/tmp/nightly/2008-08-07/usr/i686-pc-linux-gnu/lib/gcc:/local/tmp/nightly/2008-08-07/usr/i686-pc-linux-gnu/lib:/local/tmp/nightly/2008-08-07/usr/lib:/local/tmp/nightly/2008-08-07/lib

So yes, I agree, configure using the wrong pkg-config could be the explanation. Then again, the config.log says that it *is* the prefixed pkg-config that is used ...?
Comment 8 Fabian Groffen gentoo-dev 2008-08-07 12:46:30 UTC
The one you pasted is the runpath attribute of the ELF header ;)

It's deeper down.
Comment 9 Rabbe Fogelholm 2008-08-07 13:06:28 UTC
Oops .. this looks better:

strings `which pkg-config` | grep pkgconfig | tail -n 1

/local/tmp/nightly/2008-08-07/usr/lib/pkgconfig:/local/tmp/nightly/2008-08-07/usr/share/pkgconfig
Comment 10 Fabian Groffen gentoo-dev 2008-08-11 15:46:26 UTC
does this actually still happen using the latest portage and stuff?
Comment 11 Rabbe Fogelholm 2008-08-12 06:18:32 UTC
Yes, so it seems. Trying `emerge vte' in this morning's prefix tree gets me

checking for i686-pc-linux-gnu-pkg-config... no
checking for pkg-config... /local/tmp/nightly/2008-08-12/usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for GLIB... configure: error: Package requirements (glib-2.0 > 2.9.0) were not met:

Requested 'glib-2.0 > 2.9.0' but version of GLib is 2.8.6

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables GLIB_CFLAGS
and GLIB_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

The value of PKG_CONFIG_PATH is:

/usr/local/lib/pkgconfig:/usr/local/share/pkgconfig:/usr/lib/pkgconfig:/usr/share/pkgconfig:/opt/kde3/lib/pkgconfig:/opt/gnome/lib/pkgconfig:/opt/gnome/lib/pkgconfig:/opt/gnome/share/pkgconfig

Comment 12 Fabian Groffen gentoo-dev 2008-08-12 06:41:21 UTC
Hmmm, your path has the host OS dirs in them, not the prefix ones.  That explains a lot.  I guess it is inherited from the shell you initially start, maybe startprefix should do an env -i then ...
Comment 13 Rabbe Fogelholm 2008-08-12 07:17:29 UTC
Interesting. Some time ago I experimented with prepending PKG_CONFIG_PATH with prefix paths.

It turns out that I can alternatively clear the variable (`export -n PKG_CONFIG_PATH'). Having done this I can readily emerge vte.
Comment 14 Fabian Groffen gentoo-dev 2008-09-13 15:28:42 UTC
startprefix script now unsets PKG_CONFIG_PATH prior to launching the prefix shell