2
0
mirror of https://codeberg.org/kiss-community/repo synced 2024-07-02 14:02:27 +00:00

lvm2: Simpler fmt workaround

This commit is contained in:
Dylan Araps 2019-11-17 21:42:41 +00:00
parent 8c3faba65b
commit 1c41bf6fec
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E

View File

@ -4,16 +4,11 @@ patch -p1 < fix-stdio-usage.patch
patch -p1 < disable-symver.patch
# LVM2 calls 'fmt -1' throughout the build process.
# This is a part of the GNU coreutils and is not included
# in KISS. All 'fmt -1' does is split each word in a string
# on a new line so lets just use the shell as an alternative.
mkdir -p fakebin
cat > fakebin/fmt <<EOF
#!/bin/sh -f
printf '%s\n' \$(cat -)
EOF
chmod +x fakebin/fmt
export PATH=$PATH:$PWD/fakebin
# Busybox doesn't provide this command, however
# all it does is split words one per line and
# 'tr' can be used in its place.
sed -i'' 's/fmt -1/tr " " "\\n"/' make.tmpl.in
sed -i'' 's/fmt -1/tr " " "\\n"/' libdm/make.tmpl.in
# The build fails when using busybox's 'mkdir'(?),
# swap to using 'install -d' instead which works.