* [gentoo-commits] proj/releng:master commit in: tools-musl/portage.ppc.vanilla/, tools-musl/portage.ppc.vanilla/profile/, ...
@ 2014-11-04 18:26 Anthony G. Basile
0 siblings, 0 replies; only message in thread
From: Anthony G. Basile @ 2014-11-04 18:26 UTC (permalink / raw
To: gentoo-commits
commit: 266b474a59520a26ad6bd77c1b74b5ff6d905c92
Author: Felix Janda <felix.janda <AT> posteo <DOT> de>
AuthorDate: Mon Nov 3 20:04:51 2014 +0000
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Tue Nov 4 18:28:11 2014 +0000
URL: http://sources.gentoo.org/gitweb/?p=proj/releng.git;a=commit;h=266b474a
tools-musl: add support for powerpc
Signed-off-by: Anthony G. Basile <blueness <AT> gentoo.org>
---
tools-musl/portage.ppc.vanilla/bashrc | 15 ++++++
.../portage.ppc.vanilla/package.accept_keywords | 1 +
tools-musl/portage.ppc.vanilla/package.use | 2 +
tools-musl/portage.ppc.vanilla/profile/use.mask | 1 +
tools-musl/run-ppc.sh | 56 ++++++++++++++++++++++
5 files changed, 75 insertions(+)
diff --git a/tools-musl/portage.ppc.vanilla/bashrc b/tools-musl/portage.ppc.vanilla/bashrc
new file mode 100644
index 0000000..f850056
--- /dev/null
+++ b/tools-musl/portage.ppc.vanilla/bashrc
@@ -0,0 +1,15 @@
+post_src_install() {
+ [[ $PN != musl ]] && return 0
+
+ local LDSO_ARCH=$(basename "${D}"/lib/ld-musl-*.so.1)
+ mkdir "${D}"/etc
+ cat <<- EOF > "${D}"/etc/${LDSO_ARCH%so.1}path
+ /lib
+ /usr/lib
+ /usr/local/lib
+ /usr/lib/opengl/xorg-x11/lib
+ /usr/lib/gcc/${CHOST}/4.7.4
+ /usr/${CHOST}/lib
+ /usr/games/lib
+ EOF
+}
diff --git a/tools-musl/portage.ppc.vanilla/package.accept_keywords b/tools-musl/portage.ppc.vanilla/package.accept_keywords
new file mode 100644
index 0000000..8fc87c7
--- /dev/null
+++ b/tools-musl/portage.ppc.vanilla/package.accept_keywords
@@ -0,0 +1 @@
+=sys-devel/gettext-0.19.2 ~amd64 ~arm ~x86 ~ppc
diff --git a/tools-musl/portage.ppc.vanilla/package.use b/tools-musl/portage.ppc.vanilla/package.use
new file mode 100644
index 0000000..faf6df1
--- /dev/null
+++ b/tools-musl/portage.ppc.vanilla/package.use
@@ -0,0 +1,2 @@
+sys-devel/gettext -nls
+sys-fs/e2fsprogs -nls
diff --git a/tools-musl/portage.ppc.vanilla/profile/use.mask b/tools-musl/portage.ppc.vanilla/profile/use.mask
new file mode 100644
index 0000000..cf56f2f
--- /dev/null
+++ b/tools-musl/portage.ppc.vanilla/profile/use.mask
@@ -0,0 +1 @@
+hardened
diff --git a/tools-musl/run-ppc.sh b/tools-musl/run-ppc.sh
new file mode 100755
index 0000000..4294391
--- /dev/null
+++ b/tools-musl/run-ppc.sh
@@ -0,0 +1,56 @@
+#!/bin/bash
+
+source common.sh
+
+prepare_confs() {
+ local arch=$1
+ local flavor=$2
+
+ for s in 1 2 3; do
+
+ local cstage=stage${s}
+ local p=$(( s - 1 ))
+ [[ $p == 0 ]] && p=3
+ local pstage=stage${p}
+ local parch="${arch}"
+
+ local tarch="${arch}"
+ [[ "${arch}" == "ppc" ]] && tarch="powerpc"
+
+ cat stage-all.conf.template | \
+ sed -e "s:\(^version_stamp.*$\):\1-${mydate}:" \
+ -e "s:CSTAGE:${cstage}:g" \
+ -e "s:PSTAGE:${pstage}:g" \
+ -e "s:SARCH:${arch}:g" \
+ -e "s:PARCH:${parch}:g" \
+ -e "s:TARCH:${tarch}:g" \
+ -e "s:FLAVOR:${flavor}:g" \
+ -e "s:MYCATALYST:$(pwd):g" \
+ > stage${s}-${arch}-musl-${flavor}.conf
+ done
+
+ sed -i "/^chost/d" stage3-${arch}-musl-${flavor}.conf
+}
+
+
+main() {
+ >zzz.log
+
+ catalyst -s current | tee -a zzz.log >snapshot.log 2>snapshot.err
+
+ for arch in ppc; do
+ for flavor in vanilla; do
+ prepare_confs ${arch} ${flavor}
+ done
+ done
+
+ # No parallelization
+ for arch in ppc; do
+ for flavor in vanilla; do
+ do_stages ${arch} ${flavor}
+ [[ $? == 1 ]] && echo "FAILURE at ${arch} ${flavor} " | tee zzz.log
+ done
+ done
+}
+
+main $1 &
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2014-11-04 18:26 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-04 18:26 [gentoo-commits] proj/releng:master commit in: tools-musl/portage.ppc.vanilla/, tools-musl/portage.ppc.vanilla/profile/, Anthony G. Basile
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox