---
strata/coreutils-common.morph | 21 +++++++++++++++++++++
strata/coreutils-common/coreutils.morph | 9 +++++++++
strata/coreutils-common/patch.morph | 9 +++++++++
strata/foundation.morph | 6 ------
strata/foundation/patch.morph | 9 ---------
strata/tools.morph | 6 ------
strata/tools/coreutils.morph | 9 ---------
7 files changed, 39 insertions(+), 30 deletions(-)
create mode 100644 strata/coreutils-common.morph
create mode 100644 strata/coreutils-common/coreutils.morph
create mode 100644 strata/coreutils-common/patch.morph
delete mode 100644 strata/foundation/patch.morph
delete mode 100644 strata/tools/coreutils.morph
diff --git a/strata/coreutils-common.morph b/strata/coreutils-common.morph
new file mode 100644
index 0000000..a920498
--- /dev/null
+++ b/strata/coreutils-common.morph
@@ -0,0 +1,21 @@
+name: coreutils-common
+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.morph
+chunks:
+- name: patch
+ morph: strata/coreutils-common/patch.morph
+ repo: upstream:patch
+ ref: 9a16dcb97aac1a26af4372d95bd62b84f3f1264a
+ unpetrify-ref: baserock/morph
+ build-depends: []
+- name: coreutils
+ morph: strata/coreutils-common/coreutils.morph
+ repo: upstream:coreutils
+ ref: 9df9643842e4b4d8ece710fe6105f32fa38a0d22
+ unpetrify-ref: baserock/8.23
+ build-depends: []
diff --git a/strata/coreutils-common/coreutils.morph
b/strata/coreutils-common/coreutils.morph
new file mode 100644
index 0000000..820a4ee
--- /dev/null
+++ b/strata/coreutils-common/coreutils.morph
@@ -0,0 +1,9 @@
+name: coreutils
+kind: chunk
+build-system: autotools
+configure-commands:
+- sed -i -e '/^buildreq="/,/^"/{/rsync/d}' bootstrap.conf
+- bash bootstrap --skip-po
+- FORCE_UNSAFE_CONFIGURE=1 ./configure --prefix="$PREFIX" --disable-nls
--enable-no-install-program='[,base64,basename,cat,chcon,chgrp,chmod,chown,chroot,cksum,comm,cp,csplit,cut,date,dd,df,dir,dircolors,dirname,du,echo,env,expand,expr,false,fold,ginstall,groups,head,hostid,id,kill,ln,logname,ls,md5sum,mkdir,mkfifo,mknod,mktemp,mv,nice,nohup,od,printenv,printf,pwd,readlink,realpath,rm,rmdir,seq,sha1sum,sha224sum,sha256sum,sha384sum,sha512sum,sleep,sort,split,stat,stty,sum,sync,tac,tail,tee,test,timeout,touch,tr,true,tty,uname,unexpand,uniq,unlink,uptime,users,wc,who,whoami,yes'
+install-commands:
+- make INSTALL_PROGRAM=install DESTDIR="$DESTDIR" install
diff --git a/strata/coreutils-common/patch.morph b/strata/coreutils-common/patch.morph
new file mode 100644
index 0000000..65e07e6
--- /dev/null
+++ b/strata/coreutils-common/patch.morph
@@ -0,0 +1,9 @@
+name: patch
+kind: chunk
+configure-commands:
+- bash bootstrap --skip-po
+- ./configure --prefix=/usr --bindir=/bin --libexecdir=/usr/sbin --disable-nls
+build-commands:
+- make
+install-commands:
+- make DESTDIR="$DESTDIR" install
diff --git a/strata/foundation.morph b/strata/foundation.morph
index f321eb8..092449b 100644
--- a/strata/foundation.morph
+++ b/strata/foundation.morph
@@ -123,12 +123,6 @@ chunks:
unpetrify-ref: baserock/morph
build-depends:
- groff
-- name: patch
- morph: strata/foundation/patch.morph
- repo: upstream:patch
- ref: 9a16dcb97aac1a26af4372d95bd62b84f3f1264a
- unpetrify-ref: baserock/morph
- build-depends: []
- name: tbdiff
morph: strata/foundation/tbdiff.morph
repo: baserock:baserock/tbdiff
diff --git a/strata/foundation/patch.morph b/strata/foundation/patch.morph
deleted file mode 100644
index 65e07e6..0000000
--- a/strata/foundation/patch.morph
+++ /dev/null
@@ -1,9 +0,0 @@
-name: patch
-kind: chunk
-configure-commands:
-- bash bootstrap --skip-po
-- ./configure --prefix=/usr --bindir=/bin --libexecdir=/usr/sbin --disable-nls
-build-commands:
-- make
-install-commands:
-- make DESTDIR="$DESTDIR" install
diff --git a/strata/tools.morph b/strata/tools.morph
index 333b173..a09c24f 100644
--- a/strata/tools.morph
+++ b/strata/tools.morph
@@ -4,12 +4,6 @@ description: Extra development tools included in the devel system
build-depends:
- morph: strata/foundation.morph
chunks:
-- name: coreutils
- morph: strata/tools/coreutils.morph
- repo: upstream:coreutils
- ref: 9df9643842e4b4d8ece710fe6105f32fa38a0d22
- unpetrify-ref: baserock/8.23
- build-depends: []
- name: distcc
morph: strata/tools/distcc.morph
repo: upstream:distcc
diff --git a/strata/tools/coreutils.morph b/strata/tools/coreutils.morph
deleted file mode 100644
index 820a4ee..0000000
--- a/strata/tools/coreutils.morph
+++ /dev/null
@@ -1,9 +0,0 @@
-name: coreutils
-kind: chunk
-build-system: autotools
-configure-commands:
-- sed -i -e '/^buildreq="/,/^"/{/rsync/d}' bootstrap.conf
-- bash bootstrap --skip-po
-- FORCE_UNSAFE_CONFIGURE=1 ./configure --prefix="$PREFIX" --disable-nls
--enable-no-install-program='[,base64,basename,cat,chcon,chgrp,chmod,chown,chroot,cksum,comm,cp,csplit,cut,date,dd,df,dir,dircolors,dirname,du,echo,env,expand,expr,false,fold,ginstall,groups,head,hostid,id,kill,ln,logname,ls,md5sum,mkdir,mkfifo,mknod,mktemp,mv,nice,nohup,od,printenv,printf,pwd,readlink,realpath,rm,rmdir,seq,sha1sum,sha224sum,sha256sum,sha384sum,sha512sum,sleep,sort,split,stat,stty,sum,sync,tac,tail,tee,test,timeout,touch,tr,true,tty,uname,unexpand,uniq,unlink,uptime,users,wc,who,whoami,yes'
-install-commands:
-- make INSTALL_PROGRAM=install DESTDIR="$DESTDIR" install
--
2.1.2