Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 446259 - Gentoo Prefix bootstrap fails when /home is a symlink to /usr/home
Summary: Gentoo Prefix bootstrap fails when /home is a symlink to /usr/home
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All FreeBSD
: Normal normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords: Bug
Depends on:
Blocks:
 
Reported: 2012-12-06 14:58 UTC by Richard Yao (RETIRED)
Modified: 2017-11-25 15:01 UTC (History)
0 users

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


Attachments
sys-devel/gcc-4.2.4-r01.4 build failure (build.log.gz,123.66 KB, text/plain)
2012-12-06 14:58 UTC, Richard Yao (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Richard Yao (RETIRED) gentoo-dev 2012-12-06 14:58:07 UTC
Created attachment 331649 [details]
sys-devel/gcc-4.2.4-r01.4 build failure

I tried the Gentoo Prefix bootstrap on an upstream FreeBSD 9.1-RC3 installation. It failed when trying to build sys-devel/gcc-4.2.4-r01.4.

The issue is that EPREFIX=/home/richard/gentoo was used in econf while the toolchain.eclass uses python to canonicalize EPREFIX by introducing realEPREFIX:

local realEPREFIX=$(python -c 'import os; print os.path.realpath("'"${EPREFIX}"'")')

Running the following command will permit the bootstrap to finish successfully:

env I_KNOW_MY_GCC_WORKS_FINE_WITH_SYMLINKS=yes bootstrap-prefix.sh

FreeBSD's installer will make /home as a symlink to /usr/home, while giving users home directories in /home. Telling them to bootstrap somewhere else would be a problem.

As far as I can tell, the last that anyone discussed this was 3 years ago. Is the original issue for which this hack went into prefix still an issue:

http://archives.gentoo.org/gentoo-alt/msg_0425de98061f8676d88521b58c977ec8.xml
Comment 1 Michael Haubenwallner (RETIRED) gentoo-dev 2012-12-06 16:49:19 UTC
Haven't checked with more recent gcc, but the original bugreport still is open: http://gcc.gnu.org/PR29831
Comment 2 Fabian Groffen gentoo-dev 2017-11-25 15:01:16 UTC
freebsd is no longer a supported prefix arch, sorry