2
0
mirror of https://codeberg.org/kiss-community/repo synced 2024-07-04 23:12:28 +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 patch -p1 < disable-symver.patch
# LVM2 calls 'fmt -1' throughout the build process. # LVM2 calls 'fmt -1' throughout the build process.
# This is a part of the GNU coreutils and is not included # Busybox doesn't provide this command, however
# in KISS. All 'fmt -1' does is split each word in a string # all it does is split words one per line and
# on a new line so lets just use the shell as an alternative. # 'tr' can be used in its place.
mkdir -p fakebin sed -i'' 's/fmt -1/tr " " "\\n"/' make.tmpl.in
cat > fakebin/fmt <<EOF sed -i'' 's/fmt -1/tr " " "\\n"/' libdm/make.tmpl.in
#!/bin/sh -f
printf '%s\n' \$(cat -)
EOF
chmod +x fakebin/fmt
export PATH=$PATH:$PWD/fakebin
# The build fails when using busybox's 'mkdir'(?), # The build fails when using busybox's 'mkdir'(?),
# swap to using 'install -d' instead which works. # swap to using 'install -d' instead which works.