summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Dale <richard.dale@codethink.co.uk>2015-06-19 11:57:55 +0100
committerRichard Dale <richard.dale@codethink.co.uk>2015-06-19 11:57:55 +0100
commitd6ef00b8235e01802d6c89633db3f494df5d1522 (patch)
tree46672f6d9e4ec22cd12ba8516ef7330b4268c98a
parentac9b2a68f3488baa24d9c3f6d91d403fc3ec09ab (diff)
downloaddefinitions-d6ef00b8235e01802d6c89633db3f494df5d1522.tar.gz
Add a coreutils-common-musl stratum with sed as Linux kernel build dependency
-rw-r--r--strata/coreutils-common-musl.morph43
-rw-r--r--strata/coreutils-common/coreutils-musl.morph17
-rw-r--r--strata/coreutils-common/diff-musl.morph11
-rw-r--r--strata/coreutils-common/sed-musl.morph16
4 files changed, 87 insertions, 0 deletions
diff --git a/strata/coreutils-common-musl.morph b/strata/coreutils-common-musl.morph
new file mode 100644
index 00000000..4e325284
--- /dev/null
+++ b/strata/coreutils-common-musl.morph
@@ -0,0 +1,43 @@
+name: coreutils-common-musl
+kind: stratum
+description: |
+ We need to split this so we can build stuff using coreutils but we can not
+ having it in the final systems (for example in genivi ones that do not
+ accept GPLv3 code)
+build-depends:
+- morph: strata/core-wrt.morph
+chunks:
+- name: gperf
+ morph: strata/core/gperf.morph
+ repo: upstream:gperf
+ ref: 5094e4a539adf845111013f82c2c4fcaec637983
+ unpetrify-ref: baserock/morph
+ build-depends: []
+- name: patch
+ morph: strata/core/patch.morph
+ repo: upstream:patch
+ ref: 3bbb26c928a147cfcf0756f1cc0a1307e5cc663f
+ unpetrify-ref: baserock/v2.7.1
+ build-depends: []
+- name: coreutils
+ morph: strata/coreutils-common/coreutils-musl.morph
+ repo: upstream:coreutils
+ ref: 9df9643842e4b4d8ece710fe6105f32fa38a0d22
+ unpetrify-ref: baserock/8.23
+ build-depends:
+ - gperf
+ - patch
+- name: sed
+ morph: strata/coreutils-common/sed-musl.morph
+ repo: upstream:sed
+ ref: ed4b1d7c04f92b330b940d4f0d02cd51d2473ce9
+ unpetrify-ref: baserock/morph
+ build-depends:
+ - coreutils
+- name: diff
+ morph: strata/coreutils-common/diff-musl.morph
+ repo: upstream:diffutils
+ ref: bd86eb1a1e87ab85a7c8dbb658fa829ce69c252e
+ unpetrify-ref: baserock/v3.3
+ build-depends:
+ - coreutils
diff --git a/strata/coreutils-common/coreutils-musl.morph b/strata/coreutils-common/coreutils-musl.morph
new file mode 100644
index 00000000..5f624650
--- /dev/null
+++ b/strata/coreutils-common/coreutils-musl.morph
@@ -0,0 +1,17 @@
+name: coreutils-musl
+kind: chunk
+build-system: autotools
+configure-commands:
+- sed -i -e '/^buildreq="/,/^"/{/rsync/d}' bootstrap.conf
+- sed -i -e '/^buildreq="/,/^"/{/gettext/d}' bootstrap.conf
+- bash bootstrap --skip-po --no-git --gnulib-srcdir=gnulib
+- FORCE_UNSAFE_CONFIGURE=1 ./configure --prefix="$PREFIX" --disable-nls
+build-commands:
+- make WERROR_CFLAGS=
+install-commands:
+- make INSTALL_PROGRAM=install DESTDIR="$DESTDIR" install
+# This hack is for supporting "fdatasync" argument in "dd" command
+# which busybox "dd" does not support.
+# This hack should dissappear when we merge /usr/bin and /bin.
+- mkdir -p "$DESTDIR"/bin/
+- ln -sf ../usr/bin/dd "$DESTDIR"/bin/
diff --git a/strata/coreutils-common/diff-musl.morph b/strata/coreutils-common/diff-musl.morph
new file mode 100644
index 00000000..1fc46dc2
--- /dev/null
+++ b/strata/coreutils-common/diff-musl.morph
@@ -0,0 +1,11 @@
+name: diff
+kind: chunk
+build-system: autotools
+
+pre-configure-commands:
+- sed -i -e '/^buildreq="/,/^"/{/rsync/d}' bootstrap.conf
+- sed -i -e '/^buildreq="/,/^"/{/gettext/d}' bootstrap.conf
+- ./bootstrap --skip-po --no-git --gnulib-srcdir=gnulib
+
+configure-commands:
+- ./configure --prefix="$PREFIX" --disable-gcc-warnings --disable-nls
diff --git a/strata/coreutils-common/sed-musl.morph b/strata/coreutils-common/sed-musl.morph
new file mode 100644
index 00000000..8565b0cf
--- /dev/null
+++ b/strata/coreutils-common/sed-musl.morph
@@ -0,0 +1,16 @@
+name: sed
+kind: chunk
+build-system: autotools
+pre-configure-commands:
+- sed -i -e '/^buildreq="/,/^"/{/rsync/d}' bootstrap.conf
+- sed -i -e '/^buildreq="/,/^"/{/gettext/d}' bootstrap.conf
+- ./bootstrap --skip-po --no-git --gnulib-srcdir=gnulib
+
+configure-commands:
+- ac_c_werror_flag=no ./configure --prefix="$PREFIX" --disable-gcc-warnings --disable-nls
+
+post-install-commands:
+# This hack is to use GNU sed instead the busybox one.
+# This will dissappear when we merge /usr/bin and /bin.
+- mkdir -p "$DESTDIR"/bin/
+- ln -sf ../usr/bin/sed "$DESTDIR"/bin/