diff options
Diffstat (limited to 'baserock/strata/coreutils-common')
-rw-r--r-- | baserock/strata/coreutils-common/coreutils.morph | 16 | ||||
-rw-r--r-- | baserock/strata/coreutils-common/diff.morph | 8 | ||||
-rw-r--r-- | baserock/strata/coreutils-common/findutils.morph | 5 | ||||
-rw-r--r-- | baserock/strata/coreutils-common/sed.morph | 13 | ||||
-rw-r--r-- | baserock/strata/coreutils-common/tar.morph | 18 |
5 files changed, 60 insertions, 0 deletions
diff --git a/baserock/strata/coreutils-common/coreutils.morph b/baserock/strata/coreutils-common/coreutils.morph new file mode 100644 index 00000000..19542d79 --- /dev/null +++ b/baserock/strata/coreutils-common/coreutils.morph @@ -0,0 +1,16 @@ +name: coreutils +kind: chunk +build-system: autotools +configure-commands: +- sed -i -e '/^buildreq="/,/^"/{/rsync/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/baserock/strata/coreutils-common/diff.morph b/baserock/strata/coreutils-common/diff.morph new file mode 100644 index 00000000..c5eb809d --- /dev/null +++ b/baserock/strata/coreutils-common/diff.morph @@ -0,0 +1,8 @@ +name: diff +kind: chunk +build-system: autotools +pre-configure-commands: +- sed -i -e '/^buildreq="/,/^"/{/rsync/d}' bootstrap.conf +- ./bootstrap --skip-po --no-git --gnulib-srcdir=gnulib +configure-commands: +- ./configure --prefix="$PREFIX" --disable-gcc-warnings diff --git a/baserock/strata/coreutils-common/findutils.morph b/baserock/strata/coreutils-common/findutils.morph new file mode 100644 index 00000000..c9ba5ab6 --- /dev/null +++ b/baserock/strata/coreutils-common/findutils.morph @@ -0,0 +1,5 @@ +name: findutils +kind: chunk +build-system: autotools +pre-configure-commands: +- ./import-gnulib.sh -d gnulib diff --git a/baserock/strata/coreutils-common/sed.morph b/baserock/strata/coreutils-common/sed.morph new file mode 100644 index 00000000..75b969de --- /dev/null +++ b/baserock/strata/coreutils-common/sed.morph @@ -0,0 +1,13 @@ +name: sed +kind: chunk +build-system: autotools +pre-configure-commands: +- sed -i -e '/^buildreq="/,/^"/{/rsync/d}' bootstrap.conf +- ./bootstrap --skip-po --no-git --gnulib-srcdir=gnulib +configure-commands: +- ./configure --prefix="$PREFIX" --disable-gcc-warnings +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/baserock/strata/coreutils-common/tar.morph b/baserock/strata/coreutils-common/tar.morph new file mode 100644 index 00000000..17d6a597 --- /dev/null +++ b/baserock/strata/coreutils-common/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 |