diff options
Diffstat (limited to 'system/fio')
-rw-r--r-- | system/fio/fio.SlackBuild | 12 | ||||
-rw-r--r-- | system/fio/fio.patch | 10 |
2 files changed, 17 insertions, 5 deletions
diff --git a/system/fio/fio.SlackBuild b/system/fio/fio.SlackBuild index 8af237ec87c84..0724cc83fc8d1 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 0000000000000..fd8e256fd9a95 --- /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> |