diff options
author | Pedro Alvarez <pedro.alvarez@codethink.co.uk> | 2015-02-15 11:51:26 +0000 |
---|---|---|
committer | Pedro Alvarez <pedro.alvarez@codethink.co.uk> | 2015-02-24 11:48:33 +0000 |
commit | a7505f0f912e936d6e961bdcf3196e68e75d56fb (patch) | |
tree | 5c693741256cb562ed0741dfe99d7338ca53d4d5 | |
parent | 20e14bbae61c98115fa41fead67f6d511689a0ff (diff) | |
download | definitions-a7505f0f912e936d6e961bdcf3196e68e75d56fb.tar.gz |
glibc: Avoid generation /lib /lib64
-rw-r--r-- | strata/build-essential/glibc.morph | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/strata/build-essential/glibc.morph b/strata/build-essential/glibc.morph index cf4f1f96..eded604d 100644 --- a/strata/build-essential/glibc.morph +++ b/strata/build-essential/glibc.morph @@ -84,3 +84,22 @@ install-commands: netgroup: nis EOF - install -m 644 -o root -g root nsswitch.conf "$DESTDIR/etc/nsswitch.conf" + +post-install-commands: +# Avoid the creation of /sbin /lib /lib64 +- | + mkdir -p "$DESTDIR"/usr/sbin + mkdir -p "$DESTDIR"/usr/lib + mkdir -p "$DESTDIR"/usr/lib64 + if test -e "$DESTDIR/sbin"; then + mv "$DESTDIR"/sbin/* "$DESTDIR"/usr/sbin/ + rm -r "$DESTDIR/sbin" + fi + if test -e "$DESTDIR/lib"; then + mv "$DESTDIR"/lib/* "$DESTDIR"/usr/lib/ + rm -r "$DESTDIR/lib" + fi + if test -e "$DESTDIR/lib64"; then + mv "$DESTDIR"/lib64/* "$DESTDIR"/usr/lib64/ + rm -r "$DESTDIR/lib64" + fi |