From cc45e8a0bd385513fdde17c4be44fbeac150a06d Mon Sep 17 00:00:00 2001 From: Willy Sudiarto Raharjo Date: Tue, 2 Feb 2016 00:45:37 +0700 Subject: system/fio: Fix build. Signed-off-by: Willy Sudiarto Raharjo --- system/fio/fio.SlackBuild | 12 +++++++----- system/fio/fio.patch | 10 ++++++++++ 2 files changed, 17 insertions(+), 5 deletions(-) create mode 100644 system/fio/fio.patch (limited to 'system/fio') diff --git a/system/fio/fio.SlackBuild b/system/fio/fio.SlackBuild index 8af237ec87..0724cc83fc 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 0000000000..fd8e256fd9 --- /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 + #include + #include + #include -- cgit v1.2.3