From: "Yuta SATOH" <nigoro@gentoo.gr.jp>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/gentoo-bsd:master commit in: scripts/
Date: Tue, 2 Jan 2018 13:39:20 +0000 (UTC) [thread overview]
Message-ID: <1514900347.3762c6fa6c5c4214698512376fc10e0581956c6e.yuta_satoh@gentoo> (raw)
commit: 3762c6fa6c5c4214698512376fc10e0581956c6e
Author: Yuta SATOH <nigoro.dev <AT> gmail <DOT> com>
AuthorDate: Tue Jan 2 13:39:07 2018 +0000
Commit: Yuta SATOH <nigoro <AT> gentoo <DOT> gr <DOT> jp>
CommitDate: Tue Jan 2 13:39:07 2018 +0000
URL: https://gitweb.gentoo.org/proj/gentoo-bsd.git/commit/?id=3762c6fa
automatic_updater.sh: add the missing code to upgrade correctly.
scripts/automatic_updater.sh | 36 ++++++++++++++++++++++++++++++------
1 file changed, 30 insertions(+), 6 deletions(-)
diff --git a/scripts/automatic_updater.sh b/scripts/automatic_updater.sh
index 2afa6f6..58e8ced 100755
--- a/scripts/automatic_updater.sh
+++ b/scripts/automatic_updater.sh
@@ -42,7 +42,7 @@ move_makeconf(){
}
update_portage(){
- local dl_portage_ver="2.3.8"
+ local dl_portage_ver="2.3.6"
echo "Updating the sys-apps/portage with a manual method..."
@@ -63,8 +63,8 @@ update_portage(){
eselect python set 1
}
-update_bmake(){
- echo "Updating the bmake..."
+update_bmake_command(){
+ echo "Updating bmake..."
[[ -e /usr/local/bin/make ]] && exit 1
@@ -73,15 +73,32 @@ update_bmake(){
make
cp -a make /usr/local/bin/
cd "${PORTDIR}/sys-freebsd/freebsd-ubin" && ebuild $(ls -1 freebsd-ubin-${TARGETVER}*.ebuild | tail -n 1) clean
+
+ env-update
+ source /etc/profile
+}
+
+update_config_command(){
+ echo "Updating config..."
+
+ [[ -e /usr/local/sbin/config ]] && exit 1
+
+ cd "${PORTDIR}/sys-freebsd/freebsd-usbin" && ebuild $(ls -1 freebsd-usbin-${TARGETVER}*.ebuild | tail -n 1) prepare
+ cd "${PORTAGE_TMPDIR}"/portage/sys-freebsd/freebsd-usbin-${TARGETVER}*/work/usr.sbin/config
+ /usr/local/bin/make -m /usr/share/mk/system
+ cp -a config /usr/local/sbin/
+ cd "${PORTDIR}/sys-freebsd/freebsd-usbin" && ebuild $(ls -1 freebsd-usbin-${TARGETVER}*.ebuild | tail -n 1) clean
}
update_minimal(){
echo "Updating the minimal packages to upgrade the Gentoo/FreeBSD..."
emerge -u sys-devel/gcc-config --exclude sys-freebsd/*
- update_bmake
+ update_bmake_command
emerge --nodeps sys-freebsd/freebsd-mk-defs
+ update_config_command
+
emerge -u '<sys-apps/findutils-4.6' --exclude sys-freebsd/*
emerge sys-devel/libtool --exclude sys-freebsd/*
@@ -118,7 +135,8 @@ update_toolchain(){
# https://bugs.gentoo.org/629128
[[ ! -e /etc/portage/package.unmask ]] && mkdir -p /etc/portage/package.unmask
- echo "sys-devel/binutils" > /etc/portage/package.unmask/binutils-oldversion
+ echo "sys-devel/binutils" > /etc/portage/package.unmask/toolchain-oldversion
+ echo "sys-devel/gcc" >> /etc/portage/package.unmask/toolchain-oldversion
emerge -u '<sys-devel/binutils-2.28' --exclude sys-freebsd/*
emerge -u sys-devel/gcc-config --exclude sys-freebsd/*
emerge -u '<sys-devel/gcc-5.0' --exclude sys-freebsd/* --exclude sys-devel/binutils
@@ -167,6 +185,7 @@ update_freebsd_userland(){
emerge freebsd-bin freebsd-lib freebsd-mk-defs freebsd-pam-modules freebsd-sbin freebsd-share freebsd-sources freebsd-ubin freebsd-usbin
[[ -e /usr/local/bin/make ]] && rm /usr/local/bin/make
+ [[ -e /usr/local/sbin/config ]] && rm /usr/local/sbin/config
env-update
source /etc/profile
}
@@ -205,7 +224,11 @@ emerge_world(){
emerge -C \<$(emerge -pq --nodeps sys-devel/gcc --exclude sys-freebsd/* | grep ebuild | awk '{print $4}') && :
gcc-config $(gcc-config -l | grep "${TARGETVER}" | awk '{print $1}' | sed 's:\[::g' | sed 's:\]::g' | tail -n 1)
source /etc/profile
- emerge -e @world --exclude dev-perl/libintl-perl
+ if [[ ${REMOVEPERL} -ne 0 ]] ; then
+ emerge -e @world --exclude dev-perl/libintl-perl
+ else
+ emerge -e @world
+ fi
emerge -C dev-lang/python:3.2 && :
emerge -C '<sys-devel/binutils-2.28.1' && :
emerge @preserved-rebuild
@@ -215,6 +238,7 @@ emerge_world(){
cleanup(){
emerge sys-devel/libtool app-admin/eselect
+ [[ -e /etc/portage/package.unmask/toolchain-oldversion ]] && rm /etc/portage/package.unmask/toolchain-oldversion
echo "done!"
}
next reply other threads:[~2018-01-02 13:39 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-02 13:39 Yuta SATOH [this message]
-- strict thread matches above, loose matches on Subject: below --
2018-01-03 11:18 [gentoo-commits] proj/gentoo-bsd:master commit in: scripts/ Yuta SATOH
2017-12-07 13:39 Yuta SATOH
2016-08-17 12:16 Yuta SATOH
2015-08-22 22:57 Yuta SATOH
2015-08-22 12:18 Yuta SATOH
2015-08-21 12:43 Yuta SATOH
2015-08-15 0:47 Yuta SATOH
2015-07-13 12:40 Yuta SATOH
2015-07-13 12:38 Yuta SATOH
2015-07-12 15:58 Yuta SATOH
2015-07-12 14:08 Yuta SATOH
2015-07-12 12:09 Yuta SATOH
2015-07-12 10:52 Yuta SATOH
2015-07-12 7:35 Yuta SATOH
2015-07-12 4:43 Yuta SATOH
2015-07-12 0:09 Yuta SATOH
2015-07-11 11:17 Yuta SATOH
2014-10-28 12:03 Yuta SATOH
2013-10-09 11:15 Yuta SATOH
2012-10-14 6:08 Yuta SATOH
2011-11-07 12:07 Alexis Ballier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1514900347.3762c6fa6c5c4214698512376fc10e0581956c6e.yuta_satoh@gentoo \
--to=nigoro@gentoo.gr.jp \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox