Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 299990 - sys-devel/crossdev: cross-fix-root updating of prefix= breaks some packages (xorg-server + sdkdir)
Summary: sys-devel/crossdev: cross-fix-root updating of prefix= breaks some packages (...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-07 04:02 UTC by Andrew Gaffney (RETIRED)
Modified: 2010-01-08 13:08 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 Andrew Gaffney (RETIRED) gentoo-dev 2010-01-07 04:02:14 UTC
When cross-fix-root munges the .pc files in SYSROOT, it does so in a way that causes problems. The original line is:

prefix=/usr

which is changes to:

prefix='/usr/armv6j-gentoo-linux-gnueabi/usr'

Most of the time this works. In other cases, you get something like this:

-rw-r--r-- 1 root root 2540 Jan  6 21:28 /usr/armv6j-gentoo-linux-gnueabi/'/usr/armv6j-gentoo-linux-gnueabi/usr'/include/xorg/evdev-properties.h
Comment 1 SpanKY gentoo-dev 2010-01-07 06:36:13 UTC
you need to post real details
Comment 2 Andrew Gaffney (RETIRED) gentoo-dev 2010-01-07 17:03:36 UTC
What more do you need? I think the problem and problem is pretty clear.
Comment 3 SpanKY gentoo-dev 2010-01-08 02:56:26 UTC
i see no bug in what cross-fix-root is doing and you have yet to name an exact package or .pc file or packages being affected indirectly for me to review
Comment 4 Andrew Gaffney (RETIRED) gentoo-dev 2010-01-08 03:23:24 UTC
The package that installed that file was x11-drivers/xf86-input-evdev-2.3.2. I'm not sure which .pc files caused the problem, since cross-fix-root modifies all of them.
Comment 5 SpanKY gentoo-dev 2010-01-08 04:32:08 UTC
the issue is that x11-drivers/xf86-input-evdev relies on xorg-server.pc for the sdkdir, and changing prefix= for CFLAGS/LDFLAGS caused the sdkdir to change as well.

we can probably switch to PKG_CONFIG_SYSROOT_DIR which was added to the latest version (0.23) which should avoid having to modify any variables.
Comment 6 SpanKY gentoo-dev 2010-01-08 06:16:12 UTC
sadly, pkg-config has some horrible bugs in PKG_CONFIG_SYSROOT_DIR which makes it effectively useless.  apparently it was fixed upstream, but i cant figure out the bazaar repo to find it.

https://bugs.freedesktop.org/show_bug.cgi?id=16905
Comment 8 Andrew Gaffney (RETIRED) gentoo-dev 2010-01-08 12:44:15 UTC
What does that change actually do?
Comment 9 SpanKY gentoo-dev 2010-01-08 13:04:55 UTC
hmm, forgot to `git push`
Comment 10 Andrew Gaffney (RETIRED) gentoo-dev 2010-01-08 13:08:54 UTC
That makes a lot more sense. Your link didn't work, so I just looked at the commitdiff of the last commit on the repo.