From: Chris Gianelloni Date: Fri, 25 Apr 2008 23:59:50 +0000 (+0000) Subject: Remove the die on LIBDIR check, since it won't be set on non-multilib profiles. ... X-Git-Tag: CATALYST_2_0_6_916~89 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=295f5cfc6cfe7283db4ff9b505215cb31ec7ded0;p=catalyst.git Remove the die on LIBDIR check, since it won't be set on non-multilib profiles. We can now run debug in preclean again. git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/catalyst/trunk@1405 d1e1f19c-881f-0410-ab34-b69fee027534 --- diff --git a/ChangeLog b/ChangeLog index 125f8d40..da751fcb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,15 @@ # Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2 # $Id: $ + 25 Apr 2008; Chris Gianelloni + targets/stage1/stage1-preclean-chroot.sh, + targets/stage2/stage2-preclean-chroot.sh, + targets/stage3/stage3-preclean-chroot.sh, + targets/stage4/stage4-preclean-chroot.sh, + targets/support/chroot-functions.sh: + Remove the die on LIBDIR check, since it won't be set on non-multilib + profiles. We can now run debug in preclean again. + 25 Apr 2008; Chris Gianelloni targets/support/functions.sh: Let's not try to chmod a dangling symlink. diff --git a/targets/stage1/stage1-preclean-chroot.sh b/targets/stage1/stage1-preclean-chroot.sh index 8e12593f..6e8eab33 100755 --- a/targets/stage1/stage1-preclean-chroot.sh +++ b/targets/stage1/stage1-preclean-chroot.sh @@ -1,13 +1,7 @@ #!/bin/bash -export RUN_DEFAULT_FUNCS="no" - source /tmp/chroot-functions.sh -# Since we didn't run the default functions, we call a couple here. -update_env_settings -setup_myfeatures - # Now, some finishing touches to initialize gcc-config.... unset ROOT diff --git a/targets/stage2/stage2-preclean-chroot.sh b/targets/stage2/stage2-preclean-chroot.sh index a24cbc5d..ddc9b31f 100755 --- a/targets/stage2/stage2-preclean-chroot.sh +++ b/targets/stage2/stage2-preclean-chroot.sh @@ -1,13 +1,7 @@ #!/bin/bash -export RUN_DEFAULT_FUNCS="no" - source /tmp/chroot-functions.sh -# Since we didn't run the default functions, we call a couple here. -update_env_settings -setup_myfeatures - cleanup_stages if [ -n "${clst_CCACHE}" ] diff --git a/targets/stage3/stage3-preclean-chroot.sh b/targets/stage3/stage3-preclean-chroot.sh index a24cbc5d..ddc9b31f 100755 --- a/targets/stage3/stage3-preclean-chroot.sh +++ b/targets/stage3/stage3-preclean-chroot.sh @@ -1,13 +1,7 @@ #!/bin/bash -export RUN_DEFAULT_FUNCS="no" - source /tmp/chroot-functions.sh -# Since we didn't run the default functions, we call a couple here. -update_env_settings -setup_myfeatures - cleanup_stages if [ -n "${clst_CCACHE}" ] diff --git a/targets/stage4/stage4-preclean-chroot.sh b/targets/stage4/stage4-preclean-chroot.sh index 7b50e046..240e2cbb 100755 --- a/targets/stage4/stage4-preclean-chroot.sh +++ b/targets/stage4/stage4-preclean-chroot.sh @@ -1,13 +1,7 @@ #!/bin/bash -export RUN_DEFAULT_FUNCS="no" - source /tmp/chroot-functions.sh -# Since we didn't run the default functions, we call a couple here. -update_env_settings -setup_myfeatures - if [ -n "${clst_DISTCC}" ] then cleanup_distcc diff --git a/targets/support/chroot-functions.sh b/targets/support/chroot-functions.sh index b88b2d20..418336cd 100755 --- a/targets/support/chroot-functions.sh +++ b/targets/support/chroot-functions.sh @@ -276,26 +276,21 @@ show_debug() { echo "STAGE1_USE: $(portageq envvar STAGE1_USE)" echo echo "USE (profile): $(portageq envvar USE)" - echo "USE (stage1): ${USE}" echo "FEATURES (profile): $(portageq envvar FEATURES)" - echo "FEATURES (stage1): ${FEATURES}" echo echo "ARCH: $(portageq envvar ARCH)" echo "CHOST: $(portageq envvar CHOST)" echo "CFLAGS: $(portageq envvar CFLAGS)" echo - echo "PROFILE_ARCH: $(portageq envvar PROFILE_ARCH)" - echo + echo "These should be blank on non-multilib profiles." echo "ABI: $(portageq envvar ABI)" echo "DEFAULT_ABI: $(portageq envvar DEFAULT_ABI)" echo "KERNEL_ABI: $(portageq envvar KERNEL_ABI)" - echo "MULTILIB_ABIS: $(portageq envvar MULTILIB_ABIS)" - echo echo "LIBDIR: $(get_libdir)" + echo "MULTILIB_ABIS: $(portageq envvar MULTILIB_ABIS)" + echo "PROFILE_ARCH: $(portageq envvar PROFILE_ARCH)" echo fi - [ -z "$(get_libdir)" ] && \ - echo "Your profile is broken! LIBDIR is empty!" && exit 1 } run_default_funcs() {