summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJavier Jardón <jjardon@gnome.org>2016-08-21 20:34:27 +0100
committerJavier Jardón <jjardon@gnome.org>2016-11-08 19:17:34 +0000
commit8342678159f391e1e4db9f0198966103c75c20a2 (patch)
treecdc6805d3eff8ae69f7ffdce36a1a287954ddd2b
parent3dcb1a2d6f541449ba7d5192c7db9e09204a799b (diff)
downloaddefinitions-8342678159f391e1e4db9f0198966103c75c20a2.tar.gz
Implement /usr merge
Do not create /bin, /sbin, /usr/sbin and /lib Create symlinks /bin -> /usr/bin /sbin -> /usr/bin /usr/sbin -> /usr/bin /lib -> /usr/lib More info here: https://www.freedesktop.org/wiki/Software/systemd/TheCaseForTheUsrMerge/ Change-Id: Ideee202f3063eb867eea40ca85336f6643951289
-rw-r--r--strata/build-essential.morph8
-rw-r--r--strata/build-essential/stage2-fhs-dirs.morph4
-rw-r--r--strata/coreutils-common/coreutils.morph5
-rw-r--r--strata/coreutils-common/sed.morph5
4 files changed, 6 insertions, 16 deletions
diff --git a/strata/build-essential.morph b/strata/build-essential.morph
index c1b09172..280b4950 100644
--- a/strata/build-essential.morph
+++ b/strata/build-essential.morph
@@ -167,8 +167,8 @@ chunks:
- name: stage2-fhs-dirs
morph: strata/build-essential/stage2-fhs-dirs.morph
repo: baserock:baserock/fhs-dirs
- ref: 1218cbd38a4f4e9da75af6f7fae946ca92666afb
- unpetrify-ref: master
+ ref: 9fafca436000bb57ddd5c498f8a75ea7b274f6c5
+ unpetrify-ref: baserock/usr_merge
build-mode: bootstrap
prefix: /tools
@@ -214,8 +214,8 @@ chunks:
- name: fhs-dirs
morph: strata/build-essential/fhs-dirs.morph
repo: baserock:baserock/fhs-dirs
- ref: 1218cbd38a4f4e9da75af6f7fae946ca92666afb
- unpetrify-ref: master
+ ref: 9fafca436000bb57ddd5c498f8a75ea7b274f6c5
+ unpetrify-ref: baserock/usr_merge
build-depends:
- stage2-binutils
- stage2-busybox
diff --git a/strata/build-essential/stage2-fhs-dirs.morph b/strata/build-essential/stage2-fhs-dirs.morph
index 64080217..6f842403 100644
--- a/strata/build-essential/stage2-fhs-dirs.morph
+++ b/strata/build-essential/stage2-fhs-dirs.morph
@@ -3,8 +3,8 @@ kind: chunk
description: create the FHS 2.3 directory hierarchy and the usual files
install-commands:
- sh ./create-fhs-dirs "$DESTDIR"
-- rmdir "$DESTDIR/bin"
-- ln -s "$PREFIX/bin" "$DESTDIR/bin"
+- rmdir "$DESTDIR/usr/bin"
+- ln -s "$PREFIX/bin" "$DESTDIR/usr/bin"
- install -m 644 passwd "$DESTDIR/etc/passwd"
- install -m 600 shadow "$DESTDIR/etc/shadow"
- install -m 644 interfaces "$DESTDIR/etc/network/interfaces"
diff --git a/strata/coreutils-common/coreutils.morph b/strata/coreutils-common/coreutils.morph
index 3071cb9e..ad6b2c32 100644
--- a/strata/coreutils-common/coreutils.morph
+++ b/strata/coreutils-common/coreutils.morph
@@ -10,8 +10,3 @@ 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/sed.morph b/strata/coreutils-common/sed.morph
index 75b969de..87ace803 100644
--- a/strata/coreutils-common/sed.morph
+++ b/strata/coreutils-common/sed.morph
@@ -6,8 +6,3 @@ pre-configure-commands:
- ./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/