注意:

The Funtoo Linux project has transitioned to "Hobby Mode" and this wiki is now read-only.

Difference between revisions of "User:Drobbins/CLFS"

From Funtoo
Jump to navigation Jump to search
Line 1: Line 1:
Getting CLFS building entirely in your existing user's home directory should be possible.
Getting CLFS building entirely in your existing user's home directory should be possible.


I'm working on cleaning up some things in CLFS, and want to see if we can build everything inside someone's home directory -- creating the {f|/tools} and {f|/cross-tools} symlinks on the root filesystem is a bit messy. I also want to see if there is a simpler way to create a clean environment than creating a separate {{c|clfs}} user. In theory, this should not be necessary. We can create a clean-room shell environment like this:
I'm working on cleaning up some things in CLFS, and want to see if we can build everything inside someone's home directory -- creating the {{f|/tools}} and {{f|/cross-tools}} symlinks on the root filesystem is a bit messy. I also want to see if there is a simpler way to create a clean environment than creating a separate {{c|clfs}} user. In theory, this should not be necessary. We can create a clean-room shell environment like this:


{{file|lang=bash|body=
{{file|lang=bash|body=

Revision as of 01:45, February 9, 2022

Getting CLFS building entirely in your existing user's home directory should be possible.

I'm working on cleaning up some things in CLFS, and want to see if we can build everything inside someone's home directory -- creating the /tools and /cross-tools symlinks on the root filesystem is a bit messy. I also want to see if there is a simpler way to create a clean environment than creating a separate clfs user. In theory, this should not be necessary. We can create a clean-room shell environment like this:

    (bash source code)
#!/bin/bash
exec /usr/bin/env -i /bin/bash --noprofile --norc << EOF
export HOME=/home/drobbins
set +h
umask 022
CLFS=$HOME/sexybeast
LC_ALL=POSIX
PATH=$CLFS/cross-tools/bin:/bin:/usr/bin
export CLFS LC_ALL PATH
unset CFLAGS CXXFLAGS
echo Hello.
EOF