# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
# $Id: $
+ 28 Feb 2008; Chris Gianelloni <wolf31o2@gentoo.org>
+ targets/stage1/stage1-chroot.sh, targets/support/chroot-functions.sh,
+ targets/support/kmerge.sh:
+ Fixing echo/sed for make.conf writing.
+
28 Feb 2008; Chris Gianelloni <wolf31o2@gentoo.org>
targets/grp/grp-chroot.sh, targets/stage1/stage1-chroot.sh,
targets/support/kmerge.sh, targets/support/livecdfs-update.sh:
clst_root_path=/ setup_pkgmgr
# First, we drop in a known-good baselayout
-[ -e ${ROOT}/etc/make.conf ] && \
- echo 'USE="${USE} -build' >> ${ROOT}/etc/make.conf
+[ -e /etc/make.conf ] && \
+ echo 'USE="${USE} -build"' >> /etc/make.conf
run_merge "--oneshot --nodeps virtual/baselayout"
-sed -i '/USE="${USE} -build/d' ${ROOT}/etc/make.conf
+sed -i '/USE="${USE} -build"/d' /etc/make.conf
-[ -e ${ROOT}/etc/make.conf ] && \
- echo 'USE="-* bindist build ${STAGE1_USE} ${HOSTUSE}"' \
- >> ${ROOT}/etc/make.conf
+[ -e /etc/make.conf ] && \
+ echo 'USE="-* bindist build ${STAGE1_USE} ${HOSTUSE}"' >> /etc/make.conf
run_merge "--noreplace --oneshot --newuse ${clst_buildpkgs}"
sed -i '/USE="-* bindist build ${STAGE1_USE} ${HOSTUSE}"/d' \
- ${ROOT}/etc/make.conf
+ /etc/make.conf
export clst_myfeatures="${clst_myfeatures} distcc"
export DISTCC_HOSTS="${clst_distcc_hosts}"
[ -e /etc/make.conf ] && \
- echo 'USE="${USE} -avahi -gtk -gnome' >> /etc/make.conf
+ echo 'USE="${USE} -avahi -gtk -gnome"' >> /etc/make.conf
clst_root_path=/ run_merge --oneshot --nodeps sys-devel/distcc || exit 1
- sed -i '/USE="${USE} -avahi -gtk -gnome/d' /etc/make.conf
+ sed -i '/USE="${USE} -avahi -gtk -gnome"/d' /etc/make.conf
mkdir -p /etc/distcc
echo "${clst_distcc_hosts}" > /etc/distcc/hosts
# We need to merge our package manager with USE="build" set in case it is
# portage to avoid frying our /etc/make.conf file. Otherwise, we could
# just let emerge system could merge it.
- [ -e /etc/make.conf ] && echo 'USE="${USE} build' >> /etc/make.conf
+ [ -e /etc/make.conf ] && echo 'USE="${USE} build"' >> /etc/make.conf
run_merge --oneshot --nodeps virtual/portage
- sed -i '/USE="${USE} build/d' /etc/make.conf
+ sed -i '/USE="${USE} build"/d' /etc/make.conf
}
cleanup_distcc() {
fi
fi
-[ -e /etc/make.conf ] && echo 'USE="${USE} ${clst_kernel_use} symlink build' \
+[ -e /etc/make.conf ] && echo 'USE="${USE} ${clst_kernel_use} symlink build"' \
>> /etc/make.conf
if [ -n "${clst_KERNCACHE}" ]
else
run_emerge "${clst_ksource}" || exit 1
fi
-sed -i '/USE="${USE} ${clst_kernel_use} symlink build/d' /etc/make.conf
+sed -i '/USE="${USE} ${clst_kernel_use} symlink build"/d' /etc/make.conf
# If catalyst has set to a empty string, extraversion wasn't specified so we
# skip this part