aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-02-02 00:45:37 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-02-05 07:02:20 +0700
commitcc45e8a0bd385513fdde17c4be44fbeac150a06d (patch)
treeddf7a1049ab224046113dcea3fb9fee5b88bad96
parent80e18372f20ddfbe04d2f043727e4f05b261fc83 (diff)
system/fio: Fix build.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--system/fio/fio.SlackBuild12
-rw-r--r--system/fio/fio.patch10
2 files changed, 17 insertions, 5 deletions
diff --git a/system/fio/fio.SlackBuild b/system/fio/fio.SlackBuild
index 8af237ec87c8..0724cc83fc8d 100644
--- a/system/fio/fio.SlackBuild
+++ b/system/fio/fio.SlackBuild
@@ -65,14 +65,16 @@ tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
- \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \
- -exec chmod 755 {} \; -o \
- \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
- -exec chmod 644 {} \;
+ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
+ -o -perm 511 \) -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+
+patch -p1 < $CWD/fio.patch
make install DESTDIR=$PKG prefix="/usr"
-find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
+find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
find $PKG/usr/man -type f -exec gzip -9 {} \;
diff --git a/system/fio/fio.patch b/system/fio/fio.patch
new file mode 100644
index 000000000000..fd8e256fd9a9
--- /dev/null
+++ b/system/fio/fio.patch
@@ -0,0 +1,10 @@
+--- fio-2.2.13/oslib/libmtd_legacy.c.old 2016-02-02 00:41:36.372100029 +0700
++++ fio-2.2.13/oslib/libmtd_legacy.c 2016-02-02 00:42:29.906101418 +0700
+@@ -25,6 +25,7 @@
+
+ /* Imported from mtd-utils by dehrenberg */
+
++#include <stdint.h>
+ #include <limits.h>
+ #include <fcntl.h>
+ #include <unistd.h>