diff options
author | Richard Dale <richard.dale@codethink.co.uk> | 2015-06-26 14:50:03 +0100 |
---|---|---|
committer | Richard Dale <richard.dale@codethink.co.uk> | 2015-06-26 14:50:03 +0100 |
commit | 908930edf5da55265c15b0454c92bd8eeab42d33 (patch) | |
tree | eb124b4cc64010c78efebc553a234b1e38094407 /strata/coreutils-common-wrt | |
parent | 5038ed0365b6bf009759225b539ba960b378cd2e (diff) | |
download | definitions-908930edf5da55265c15b0454c92bd8eeab42d33.tar.gz |
Improve naming, use '-wrt' rather than '-musl'baserock/rdale/openwrt
Diffstat (limited to 'strata/coreutils-common-wrt')
-rw-r--r-- | strata/coreutils-common-wrt/coreutils.morph | 17 | ||||
-rw-r--r-- | strata/coreutils-common-wrt/diff.morph | 11 | ||||
-rw-r--r-- | strata/coreutils-common-wrt/sed.morph | 16 | ||||
-rw-r--r-- | strata/coreutils-common-wrt/tar.morph | 18 |
4 files changed, 62 insertions, 0 deletions
diff --git a/strata/coreutils-common-wrt/coreutils.morph b/strata/coreutils-common-wrt/coreutils.morph new file mode 100644 index 00000000..a7147bda --- /dev/null +++ b/strata/coreutils-common-wrt/coreutils.morph @@ -0,0 +1,17 @@ +name: coreutils +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-wrt/diff.morph b/strata/coreutils-common-wrt/diff.morph new file mode 100644 index 00000000..1fc46dc2 --- /dev/null +++ b/strata/coreutils-common-wrt/diff.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-wrt/sed.morph b/strata/coreutils-common-wrt/sed.morph new file mode 100644 index 00000000..8565b0cf --- /dev/null +++ b/strata/coreutils-common-wrt/sed.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/ diff --git a/strata/coreutils-common-wrt/tar.morph b/strata/coreutils-common-wrt/tar.morph new file mode 100644 index 00000000..17d6a597 --- /dev/null +++ b/strata/coreutils-common-wrt/tar.morph @@ -0,0 +1,18 @@ +name: tar +kind: chunk +build-system: autotools +pre-configure-commands: +- rm .gitmodules +- bash bootstrap --skip-po --gnulib-srcdir="$(pwd)/gnulib" --paxutils-srcdir="$(pwd)/paxutils" +configure-commands: +# Configure flag notes: +# 1. Needed to run configure as root +# 2. Disable some warning that cause the build to fail +# 3. To use GNU tar instead the busybox one. +# This will dissappear when we merge /usr/bin and /bin + +- | + `# [1]` env FORCE_UNSAFE_CONFIGURE=1 \ + ./configure --prefix="$PREFIX" \ + `# [2]` --disable-gcc-warnings \ + `# [3]` --bindir=/bin |