Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 228525 - sys-fs/e2fsprogs (and sys-libs/ss) needs SYSROOT
Summary: sys-fs/e2fsprogs (and sys-libs/ss) needs SYSROOT
Status: RESOLVED DUPLICATE of bug 210145
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-20 12:21 UTC by Paul Davis
Modified: 2008-06-23 12:55 UTC (History)
0 users

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 Paul Davis 2008-06-20 12:21:06 UTC
For the newer sys-libs/ss and sys-fs/e2fsprogs, just a simple addition to the 'echo "GROUP ...' lines in the src_unpack section to prefix a '${SYSROOT}' to the '/usr/...' so that cross-compile builds will work.

Reproducible: Always
Comment 1 SpanKY gentoo-dev 2008-06-21 03:47:51 UTC
SYSROOT is not a valid variable

*** This bug has been marked as a duplicate of bug 210145 ***
Comment 2 Paul Davis 2008-06-23 12:55:47 UTC
When you wish to be able to build a cross-compiled full file system that then may be NFS rooted (like a diskless workstation), the typical method to do so is to place the target system into a separate subdirectory (usually then identified using the environment variable SYSROOT). The /usr/lib subdirectory is correct (or /usr/$(get_libdir) in this case), but one would obviously not wish to place the cross-compiled libraries in the normal path (overwriting them with versions that could not be executed) as suggested in the former ticket.

The solution that was asked for before, and with this ticket again, is simply to place the standard prefix of ${SYSROOT} in the unpack section. Then the cross-compiler (which uses the SYSROOT variable in the linking, as do many of the cross development tools) may find the correct versions which it needs. Therefore standard paths and cross-compiled paths can exist on the same machine without interference.