summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@codethink.co.uk>2014-06-05 15:02:19 +0000
committerRichard Maw <richard.maw@codethink.co.uk>2014-06-06 09:47:17 +0000
commit5f4b406b03dc9fa27c78184df5b1d501e373ca01 (patch)
tree7edee2fc5e1fb60caa90f3bb26b1becde9691b99
parentc716e89ba5d3f5c4331f64d9c380ab3d6b560b4e (diff)
downloade2fsprogs-5f4b406b03dc9fa27c78184df5b1d501e373ca01.tar.gz
e2fsprogs gets built after util-linux, which means when both provide a tool, the version in e2fsprogs gets used. Unfortunately, we'd prefer the version in util-linux, since it gets more actively maintained.
-rw-r--r--e2fsprogs.morph21
1 files changed, 21 insertions, 0 deletions
diff --git a/e2fsprogs.morph b/e2fsprogs.morph
new file mode 100644
index 00000000..801f8abe
--- /dev/null
+++ b/e2fsprogs.morph
@@ -0,0 +1,21 @@
+name: e2fsprogs
+kind: chunk
+build-system: autotools
+configure-commands:
+# Configure with the usual paths for binaries and config
+# but also disable whatever we can that is already provided by util-linux
+# Disabling e2fsprofs' libblkid does not work, but we don't have to
+# install it.
+- |
+ ./configure --prefix="$PREFIX" --sysconfdir=/etc \
+ --disable-libuuid --disable-uuidd --disable-fsck
+install-commands:
+# e2fsprogs also includes tools that are provided by util-linux, so we
+# need to selectively exclude them. Removing them directly from DESTDIR
+# causes problems, so we need to remove them beforehand.
+- |
+ td="$(mktemp -d)"
+ make DESTDIR="$td" install
+ find "$td" \( -name blkid -o -name findfs -o -name fsck \) -delete
+ find "$td" \( -name blkid.8 -o -name findfs.8 \) -delete
+ mv "$td"/* "$DESTDIR"