From: "Anthony G. Basile" <blueness@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/releng:master commit in: tools-musl/
Date: Thu, 6 Feb 2014 13:06:34 +0000 (UTC) [thread overview]
Message-ID: <1391692030.13c0b6fe6d8f5272f77ee5542773f56f2b48080e.blueness@gentoo> (raw)
commit: 13c0b6fe6d8f5272f77ee5542773f56f2b48080e
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Thu Feb 6 13:07:10 2014 +0000
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Thu Feb 6 13:07:10 2014 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/releng.git;a=commit;h=13c0b6fe
tools-musl: fix ARCH dependant paths
---
tools-musl/run.sh | 21 +++++++++++++--------
1 file changed, 13 insertions(+), 8 deletions(-)
diff --git a/tools-musl/run.sh b/tools-musl/run.sh
index 3874cb4..caf9491 100755
--- a/tools-musl/run.sh
+++ b/tools-musl/run.sh
@@ -3,38 +3,43 @@
TEST_ARCH=$(file -b /usr/lib/libc.so | sed -e 's/^.*shared object, //' -e 's/,.*$//')
if [[ "${TEST_ARCH}" == "Intel 80386" ]]; then
- MYARCH="i686"
+ MY_ARCH="i686"
ALTARCH="i386"
elif [[ "${TEST_ARCH}" == "x86-64" ]]; then
- MYARCH="amd64"
+ MY_ARCH="amd64"
ALTARCH="x86_64"
else
echo "Unsupported arch $TEST_ARCH"
exit
fi
-ROOTFS="stage4-${MYARCH}-musl-vanilla"
+ROOTFS="stage4-${MY_ARCH}-musl-vanilla"
PWD="$(pwd)"
prepare_etc () {
mkdir -p "${ROOTFS}"/etc
cp -a "${PWD}"/portage/ "${ROOTFS}"/etc/
- if [[ "$MYARCH" == "amd64" ]]; then
+ if [[ "$MY_ARCH" == "amd64" ]]; then
sed -i "s/ALTARCH/${ALTARCH}/" "${ROOTFS}"/etc/portage/make.conf
- elif [[ "$MYARCH" == "i686" ]]; then
- sed -i "s/ALTARCH/${MYARCH}/" "${ROOTFS}"/etc/portage/make.conf
+ elif [[ "$MY_ARCH" == "i686" ]]; then
+ sed -i "s/ALTARCH/${MY_ARCH}/" "${ROOTFS}"/etc/portage/make.conf
fi
}
prepare_usr_etc() {
mkdir -p "${ROOTFS}"/usr/etc
+ local PATH_ARCH
+
+ [[ "$MY_ARCH" == "amd64" ]] && PATH_ARCH="x86_64"
+ [[ "$MY_ARCH" == "i686" ]] && PATH_ARCH="i686"
+
cat <<-EOF > "${ROOTFS}"/usr/etc/ld-musl-${ALTARCH}.path
/lib
/usr/lib
- /usr/lib/gcc/${ALTARCH}-gentoo-linux-musl/4.7.3
- /usr/${ALTARCH}-gentoo-linux-musl/lib
+ /usr/lib/gcc/${PATH_ARCH}-gentoo-linux-musl/4.7.3
+ /usr/${PATH_ARCH}-gentoo-linux-musl/lib
EOF
ln -sf ld-musl-${ALTARCH}.path "${ROOTFS}"/usr/etc/ld-musl.path
next reply other threads:[~2014-02-06 13:06 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-06 13:06 Anthony G. Basile [this message]
-- strict thread matches above, loose matches on Subject: below --
2020-01-14 19:11 [gentoo-commits] proj/releng:master commit in: tools-musl/ Anthony G. Basile
2019-05-24 3:50 Matthew Thode
2019-04-13 10:54 Anthony G. Basile
2019-04-11 1:37 Anthony G. Basile
2018-03-02 16:25 Anthony G. Basile
2017-01-05 5:41 Matt Thode
2017-01-03 3:01 Matt Thode
2017-01-02 23:59 Matt Thode
2017-01-02 4:30 Matt Thode
2017-01-02 4:21 Matt Thode
2017-01-02 4:08 Matt Thode
2016-06-04 16:07 Anthony G. Basile
2015-12-07 0:54 Anthony G. Basile
2015-06-14 21:32 Anthony G. Basile
2015-06-14 21:01 Anthony G. Basile
2015-01-20 23:38 Anthony G. Basile
2014-08-18 21:59 Robin H. Johnson
2014-08-18 21:59 Robin H. Johnson
2014-08-13 14:28 Anthony G. Basile
2014-08-11 22:43 Anthony G. Basile
2014-06-28 10:43 Anthony G. Basile
2014-06-18 11:14 Anthony G. Basile
2014-02-18 21:04 Anthony G. Basile
2014-02-05 20:13 Anthony G. Basile
2014-02-05 20:11 Anthony G. Basile
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=1391692030.13c0b6fe6d8f5272f77ee5542773f56f2b48080e.blueness@gentoo \
--to=blueness@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