diff options
author | Brian Dolbec <dolsen@gentoo.org> | 2017-03-19 15:04:49 -0700 |
---|---|---|
committer | Brian Dolbec <dolsen@gentoo.org> | 2017-11-21 17:16:22 -0800 |
commit | b30dd97d672d61bb40340799330ef7863b173b0c (patch) | |
tree | ecbe96fe81f92183a8678be94c9a4849f63ac1ac /targets | |
parent | doc/cataylst-config.5.txt: Update for the new variables (diff) | |
download | catalyst-b30dd97d672d61bb40340799330ef7863b173b0c.tar.gz catalyst-b30dd97d672d61bb40340799330ef7863b173b0c.tar.bz2 catalyst-b30dd97d672d61bb40340799330ef7863b173b0c.zip |
Unify all make.conf settings and writing
This excludes stage1 builds which needs to modify the seed stage's make.conf for
initial stage building.
Diffstat (limited to 'targets')
-rwxr-xr-x | targets/stage2/stage2-controller.sh | 2 | ||||
-rwxr-xr-x | targets/stage3/stage3-controller.sh | 2 | ||||
-rwxr-xr-x | targets/stage4/stage4-controller.sh | 2 | ||||
-rwxr-xr-x | targets/support/chroot-functions.sh | 16 | ||||
-rwxr-xr-x | targets/support/functions.sh | 12 |
5 files changed, 8 insertions, 26 deletions
diff --git a/targets/stage2/stage2-controller.sh b/targets/stage2/stage2-controller.sh index 41bd43bb..2eee79f3 100755 --- a/targets/stage2/stage2-controller.sh +++ b/targets/stage2/stage2-controller.sh @@ -10,8 +10,6 @@ case $1 in ;; run) - prepare_portage - shift export clst_packages="$*" exec_in_chroot \ diff --git a/targets/stage3/stage3-controller.sh b/targets/stage3/stage3-controller.sh index eaa40b3d..2d415e40 100755 --- a/targets/stage3/stage3-controller.sh +++ b/targets/stage3/stage3-controller.sh @@ -10,8 +10,6 @@ case $1 in ;; run) - prepare_portage - shift export clst_packages="$*" exec_in_chroot ${clst_shdir}/${clst_target}/${clst_target}-chroot.sh diff --git a/targets/stage4/stage4-controller.sh b/targets/stage4/stage4-controller.sh index 4c5d5a06..6a876c82 100755 --- a/targets/stage4/stage4-controller.sh +++ b/targets/stage4/stage4-controller.sh @@ -10,8 +10,6 @@ case $1 in ;; pre-kmerge) - prepare_portage - # Sets up the build environment before any kernels are compiled exec_in_chroot ${clst_shdir}/support/pre-kmerge.sh ;; diff --git a/targets/support/chroot-functions.sh b/targets/support/chroot-functions.sh index b01bbbbd..e44de61b 100755 --- a/targets/support/chroot-functions.sh +++ b/targets/support/chroot-functions.sh @@ -183,14 +183,14 @@ setup_gcc(){ setup_pkgmgr(){ # Set bindist USE flag if clst_BINDIST is set # this is handled independantly in stage2, changes here should be mirrored there - if [ "${clst_target}" != "stage1" ] && [ -e "${clst_make_conf}" ] \ - && [ -n "${clst_BINDIST}" ]; then - if grep -q ^USE "${clst_make_conf}"; then - echo "USE=\"\${USE} bindist\"" >> "${clst_make_conf}" - else - echo "USE=\"bindist\"" >> "${clst_make_conf}" - fi - fi + #if [ "${clst_target}" != "stage1" ] && [ -e "${clst_make_conf}" ] \ + # && [ -n "${clst_BINDIST}" ]; then + # if grep -q ^USE "${clst_make_conf}"; then + # echo "USE=\"\${USE} bindist\"" >> "${clst_make_conf}" + # else + # echo "USE=\"bindist\"" >> "${clst_make_conf}" + # fi + #fi # We need to merge our package manager with USE="build" set in case it is # portage to avoid frying our /etc/portage/make.conf file. Otherwise, we could diff --git a/targets/support/functions.sh b/targets/support/functions.sh index f743d419..ac4ec6c7 100755 --- a/targets/support/functions.sh +++ b/targets/support/functions.sh @@ -16,19 +16,7 @@ delete_from_chroot(){ fi } -prepare_portage() { - - echo "CATALYST_USE=\"${clst_CATALYST_USE}\"" >> ${clst_chroot_path}${clst_make_conf} - sed -i -e "/^USE=\"/s//\${CATALYST_USE} ${USE} /" ${clst_chroot_path}${clst_make_conf} -} - clear_portage() { - # Clean-up USE again - [ -e ${clst_chroot_path}${clst_make_conf} ] && echo "Drop \$CATALYST_USE from USE on ${clst_chroot_path}${clst_make_conf}" - [ -e ${clst_chroot_path}${clst_make_conf} ] && sed -i -e "/^USE=\"/s/\${CATALYST_USE} //" ${clst_chroot_path}${clst_make_conf} - [ -e ${clst_chroot_path}${clst_make_conf} ] && echo "Remove \$CATALYST_USE on ${clst_chroot_path}${clst_make_conf}" - [ -e ${clst_chroot_path}${clst_make_conf} ] && sed -i -e "/^CATALYST_USE/d" ${clst_chroot_path}${clist_make_conf} - if [ -n "${clst_portage_prefix}" ]; then for dir in "keywords", "mask", "unmask", "use"; do [ -d ${clst_chroot_path}/etc/portage/package.${dir}/${clst_portage_prefix} ] && |