public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] proj/releng:master commit in: tools-musl/portage.mipsel3.vanilla/env/, ...
@ 2014-06-18 10:57 Anthony G. Basile
  0 siblings, 0 replies; only message in thread
From: Anthony G. Basile @ 2014-06-18 10:57 UTC (permalink / raw
  To: gentoo-commits

commit:     1dc7171669ed03a837aa654981c9274641bcfc11
Author:     Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Wed Jun 18 10:57:51 2014 +0000
Commit:     Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Wed Jun 18 10:57:51 2014 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/releng.git;a=commit;h=1dc71716

tools-musl: switch to catalyst for mipsel3

---
 tools-musl/portage.mipsel3.vanilla/bashrc          |  15 +++
 .../portage.mipsel3.vanilla/env/libintl.conf       |   2 +
 .../portage.mipsel3.vanilla/env/parallel.conf      |   1 +
 tools-musl/portage.mipsel3.vanilla/package.env     |   9 ++
 .../portage.mipsel3.vanilla/package.keywords       |   2 +
 tools-musl/portage.mipsel3.vanilla/package.mask    |   6 ++
 tools-musl/portage.mipsel3.vanilla/package.unmask  |   1 +
 tools-musl/portage.mipsel3.vanilla/package.use     |   2 +
 .../portage.mipsel3.vanilla/profile/use.mask       |   1 +
 tools-musl/run-mipsel3.sh                          | 116 +++++++++++++++++++++
 10 files changed, 155 insertions(+)

diff --git a/tools-musl/portage.mipsel3.vanilla/bashrc b/tools-musl/portage.mipsel3.vanilla/bashrc
new file mode 100644
index 0000000..70b67d2
--- /dev/null
+++ b/tools-musl/portage.mipsel3.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}"/usr/etc
+	cat > "${D}"/usr/etc/${LDSO_ARCH%so.1}path <<EOF
+/lib
+/usr/lib
+/usr/local/lib
+/usr/lib/opengl/xorg-x11/lib
+/usr/lib/gcc/${CHOST}/4.7.3
+/usr/${CHOST}/lib
+/usr/games/lib
+EOF
+}

diff --git a/tools-musl/portage.mipsel3.vanilla/env/libintl.conf b/tools-musl/portage.mipsel3.vanilla/env/libintl.conf
new file mode 100644
index 0000000..06356b5
--- /dev/null
+++ b/tools-musl/portage.mipsel3.vanilla/env/libintl.conf
@@ -0,0 +1,2 @@
+CFLAGS="-Wl,-lintl"
+LDFLAGS="-lintl"

diff --git a/tools-musl/portage.mipsel3.vanilla/env/parallel.conf b/tools-musl/portage.mipsel3.vanilla/env/parallel.conf
new file mode 100644
index 0000000..c67232a
--- /dev/null
+++ b/tools-musl/portage.mipsel3.vanilla/env/parallel.conf
@@ -0,0 +1 @@
+MAKEOPTS=-j1

diff --git a/tools-musl/portage.mipsel3.vanilla/package.env b/tools-musl/portage.mipsel3.vanilla/package.env
new file mode 100644
index 0000000..3574877
--- /dev/null
+++ b/tools-musl/portage.mipsel3.vanilla/package.env
@@ -0,0 +1,9 @@
+dev-libs/glib libintl.conf
+dev-libs/libelf libintl.conf
+sys-apps/attr libintl.conf
+sys-apps/kbd libintl.conf
+sys-apps/man-db parallel.conf
+sys-apps/net-tools libintl.conf
+sys-fs/e2fsprogs libintl.conf
+sys-fs/eudev libintl.conf
+sys-process/procps libintl.conf

diff --git a/tools-musl/portage.mipsel3.vanilla/package.keywords b/tools-musl/portage.mipsel3.vanilla/package.keywords
new file mode 100644
index 0000000..47e53b0
--- /dev/null
+++ b/tools-musl/portage.mipsel3.vanilla/package.keywords
@@ -0,0 +1,2 @@
+=sys-libs/musl-1.1.2 ~*
+=sys-apps/getent-0 ~*

diff --git a/tools-musl/portage.mipsel3.vanilla/package.mask b/tools-musl/portage.mipsel3.vanilla/package.mask
new file mode 100644
index 0000000..d4a8d93
--- /dev/null
+++ b/tools-musl/portage.mipsel3.vanilla/package.mask
@@ -0,0 +1,6 @@
+>app-misc/pax-utils-0.7
+dev-util/pkgconfig
+>sys-apps/kbd-1.15.5-r99
+sys-apps/systemd
+>sys-devel/gcc-4.7.3-r99
+sys-fs/udev

diff --git a/tools-musl/portage.mipsel3.vanilla/package.unmask b/tools-musl/portage.mipsel3.vanilla/package.unmask
new file mode 100644
index 0000000..6aabccd
--- /dev/null
+++ b/tools-musl/portage.mipsel3.vanilla/package.unmask
@@ -0,0 +1 @@
+=dev-libs/openssl-1.0.1g-r99::hardened-dev

diff --git a/tools-musl/portage.mipsel3.vanilla/package.use b/tools-musl/portage.mipsel3.vanilla/package.use
new file mode 100644
index 0000000..35c7125
--- /dev/null
+++ b/tools-musl/portage.mipsel3.vanilla/package.use
@@ -0,0 +1,2 @@
+dev-util/pkgconf pkg-config
+sys-libs/musl nls

diff --git a/tools-musl/portage.mipsel3.vanilla/profile/use.mask b/tools-musl/portage.mipsel3.vanilla/profile/use.mask
new file mode 100644
index 0000000..cf56f2f
--- /dev/null
+++ b/tools-musl/portage.mipsel3.vanilla/profile/use.mask
@@ -0,0 +1 @@
+hardened

diff --git a/tools-musl/run-mipsel3.sh b/tools-musl/run-mipsel3.sh
new file mode 100644
index 0000000..46cf291
--- /dev/null
+++ b/tools-musl/run-mipsel3.sh
@@ -0,0 +1,116 @@
+#!/bin/bash
+
+source /etc/catalyst/catalyst.conf
+
+mydate=`date +%Y%m%d`
+
+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 tarch="${arch%3}"
+    local parch="mips/${tarch}"
+
+    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" \
+	-e "s|^cflags:.*|cflags: -O2 -march=mips3 -mplt -Wa,-mfix-loongson2f-nop -pipe|" \
+	-e "s|^cxxflags:.*|cxxflags: -O2 -march=mips3 -mplt -Wa,-mfix-loongson2f-nop -pipe|" \
+        >  stage${s}-${arch}-musl-${flavor}.conf
+  done
+
+  sed -i "/^chost/d" stage3-${arch}-musl-${flavor}.conf
+}
+
+banner() {
+cat << EOF | tee -a zzz.log > stage$1-$2-musl-$3.log
+
+************************************************************************
+*    stage$1-$2-musl-$3
+************************************************************************"
+
+EOF
+}
+
+
+do_stages() {
+  local arch=$1
+  local flavor=$2
+
+  for s in 1 2 3; do
+    local tgpath="${storedir}/builds/${flavor}/${arch}"
+    local target="stage${s}-${arch}-musl-${flavor}-${mydate}.tar.bz2"
+    local tglink="stage${s}-${arch}-musl-${flavor}.tar.bz2"
+
+    if [[ ! -f "${tgpath}/${tglink}" ]]; then
+       touch stage${s}-${arch}-musl-${flavor}.log
+       echo "!!! ${target} at ${tgpath} doesn't exit" \
+         | tee -a zzz.log \
+         > stage${s}-${arch}-musl-${flavor}.err
+       return 1
+    fi
+
+    banner ${s} ${arch} ${flavor}
+    catalyst -f stage${s}-${arch}-musl-${flavor}.conf \
+      | tee -a zzz.log \
+      > stage${s}-${arch}-musl-${flavor}.log \
+      2> stage${s}-${arch}-musl-${flavor}.err
+
+    if [[ -f "${tgpath}/${target}" ]]; then
+      rm -f "${tgpath}/${tglink}"
+      ln -s ${target} "${tgpath}/${tglink}"
+    else
+      echo "!!! ${target} was not generated" \
+        | tee -a zzz.log \
+        >stage${s}-${arch}-musl-${flavor}.err
+      return 1
+    fi
+  done
+
+  return 0
+}
+
+
+#
+# approximate timings:
+#
+# catalyst -s current	3 minutes
+# catalyst -f stage1  130 minutes
+#
+
+main() {
+  >zzz.log
+
+#  catalyst -s current | tee -a zzz.log >snapshot.log 2>snapshot.err
+
+  for arch in mipsel3; do
+    for flavor in vanilla; do
+      prepare_confs ${arch} ${flavor}
+    done
+  done
+  
+#  for arch in mipsel3; do
+#    for flavor in vanilla; do
+#      do_stages ${arch} ${flavor}
+#      ret=$?
+#      if [[ $? == 1 ]]; then
+#         echo "FAILURE at ${arch} ${flavor} " | tee zzz.log
+#         return 1
+#      fi
+#    done
+#  done
+}
+
+main $1 &


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2014-06-18 10:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-18 10:57 [gentoo-commits] proj/releng:master commit in: tools-musl/portage.mipsel3.vanilla/env/, 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