From: "Benda XU" <heroxbd@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/prefix:rap0 commit in: scripts/
Date: Wed, 15 Jun 2016 11:32:46 +0000 (UTC) [thread overview]
Message-ID: <1465990356.77daf004a7e34c8e90b485a2680eb9dee9ca748e.heroxbd@gentoo> (raw)
commit: 77daf004a7e34c8e90b485a2680eb9dee9ca748e
Author: Benda Xu <heroxbd <AT> gentoo <DOT> org>
AuthorDate: Thu May 26 09:41:35 2016 +0000
Commit: Benda XU <heroxbd <AT> gentoo <DOT> org>
CommitDate: Wed Jun 15 11:32:36 2016 +0000
URL: https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=77daf004
bootstrap-prefix.sh: get_libdir for multilib support on RAP.
scripts/bootstrap-prefix.sh | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/scripts/bootstrap-prefix.sh b/scripts/bootstrap-prefix.sh
index 84c2bfe..ea6a71a 100755
--- a/scripts/bootstrap-prefix.sh
+++ b/scripts/bootstrap-prefix.sh
@@ -9,6 +9,7 @@ eerror() { echo "!!! $*" 1>&2; }
einfo() { echo "* $*"; }
is-rap() { [[ ${BASH_SOURCE} = *rap.sh ]]; }
rapx() { is-rap && echo $1 || echo $2; }
+get_libdir() { portageq envvar LIBDIR_$(portageq envvar ABI) || echo lib; }
# prefer gtar over tar
[[ x$(type -t gtar) == "xfile" ]] \
@@ -411,7 +412,7 @@ EOF
do_tree() {
local x
- for x in etc{,/portage} usr/{{,s}bin,lib} var/tmp var/lib/portage var/log/portage var/db;
+ for x in etc{,/portage} usr/{{,s}bin,$(rapx "" lib)} var/tmp var/lib/portage var/log/portage var/db;
do
[[ -d ${ROOT}/${x} ]] || mkdir -p "${ROOT}/${x}"
done
@@ -427,7 +428,7 @@ do_tree() {
[[ -e ${ROOT}/${x} ]] || ( cd "${ROOT}" && ln -s usr/${x} )
done
else
- for x in lib sbin ; do
+ for x in $(rapx "" lib) sbin ; do
[[ -d ${ROOT}/${x} ]] || mkdir -p "${ROOT}/${x}"
done
fi
@@ -535,7 +536,8 @@ bootstrap_portage() {
[[ -x ${ROOT}/tmp/bin/bash ]] || [[ ! -x ${ROOT}/tmp/usr/bin/bash ]] || ln -s ../usr/bin/bash "${ROOT}"/tmp/bin/bash || return 1
[[ -x ${ROOT}/tmp/bin/bash ]] || ln -s "${BASH}" "${ROOT}"/tmp/bin/bash || return 1
[[ -x ${ROOT}/tmp/bin/sh ]] || ln -s bash "${ROOT}"/tmp/bin/sh || return 1
- [[ -x ${ROOT}/bin/sh ]] || ln -s ../tmp/bin/sh "${ROOT}"/bin/sh || return 1
+ [[ -x ${ROOT}/bin/bash ]] || ln -s ../tmp/bin/bash "${ROOT}"/bin/bash || return 1
+ [[ -x ${ROOT}/bin/sh ]] || ln -s bash "${ROOT}"/bin/sh || return 1
export PORTAGE_BASH="${ROOT}"/tmp/bin/bash
einfo "Compiling ${A%-*}"
@@ -1337,7 +1339,7 @@ bootstrap_stage3() {
configure_toolchain || return 1
export CONFIG_SHELL="${ROOT}"/tmp/bin/bash
export CPPFLAGS="-I${ROOT}/usr/include"
- export LDFLAGS="-L${ROOT}/usr/lib"
+ export LDFLAGS="-L${ROOT}/usr/$(get_libdir)"
unset CC CXX
emerge_pkgs() {
next reply other threads:[~2016-06-15 11:32 UTC|newest]
Thread overview: 62+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-15 11:32 Benda XU [this message]
-- strict thread matches above, loose matches on Subject: below --
2016-07-02 1:33 [gentoo-commits] repo/proj/prefix:rap0 commit in: scripts/ Benda XU
2016-06-15 11:32 Benda XU
2016-06-15 11:32 Benda XU
2016-06-15 11:32 Benda XU
2016-06-15 11:32 Benda XU
2016-06-15 11:32 Benda XU
2016-06-15 11:32 Benda XU
2016-06-15 11:32 Benda XU
2016-06-15 11:32 Benda XU
2016-06-15 11:32 Benda XU
2016-06-15 11:32 Benda XU
2016-06-15 11:32 Benda XU
2016-06-15 11:32 Benda XU
2016-06-15 10:12 [gentoo-commits] repo/proj/prefix:master " Benda XU
2016-06-15 11:32 ` [gentoo-commits] repo/proj/prefix:rap0 " Benda XU
2016-06-15 8:04 Benda XU
2016-06-15 8:04 Benda XU
2016-06-15 8:04 Benda XU
2016-06-15 8:04 Benda XU
2016-06-15 8:04 Benda XU
2016-06-15 8:04 Benda XU
2016-06-15 8:04 Benda XU
2016-06-15 8:04 Benda XU
2016-06-15 8:04 Benda XU
2016-06-15 8:04 Benda XU
2016-06-15 8:04 Benda XU
2016-06-15 8:04 Benda XU
2016-06-15 8:04 Benda XU
2016-06-15 8:04 Benda XU
2016-06-15 8:04 Benda XU
2016-06-15 8:04 Benda XU
2016-06-15 8:04 Benda XU
2016-06-15 7:58 [gentoo-commits] repo/proj/prefix:master " Benda XU
2016-06-15 8:04 ` [gentoo-commits] repo/proj/prefix:rap0 " Benda XU
2016-06-15 0:35 Benda XU
2016-06-15 0:35 Benda XU
2016-06-10 3:29 Benda XU
2016-06-10 3:29 Benda XU
2016-06-10 3:29 Benda XU
2016-06-10 3:29 Benda XU
2016-06-10 3:29 Benda XU
2016-06-10 3:29 Benda XU
2016-06-10 3:29 Benda XU
2016-06-10 3:29 Benda XU
2016-06-10 3:29 Benda XU
2016-06-10 3:29 Benda XU
2016-06-10 3:29 Benda XU
2016-06-10 3:29 Benda XU
2016-06-10 3:29 Benda XU
2016-06-10 3:29 Benda XU
2016-06-10 3:29 Benda XU
2016-06-10 3:29 Benda XU
2016-06-10 3:29 Benda XU
2016-06-10 3:29 Benda XU
2016-06-10 3:29 Benda XU
2016-06-10 3:29 Benda XU
2016-06-10 3:29 Benda XU
2016-06-08 1:10 Benda XU
2016-06-08 1:10 Benda XU
2016-06-08 1:10 Benda XU
2016-06-08 1:10 Benda XU
2016-06-08 1:10 Benda XU
2016-06-04 7:29 Benda XU
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=1465990356.77daf004a7e34c8e90b485a2680eb9dee9ca748e.heroxbd@gentoo \
--to=heroxbd@gentoo.org \
--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