system/fio: Fix build.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Willy Sudiarto Raharjo 2016-02-02 00:45:37 +07:00
parent 80e18372f2
commit cc45e8a0bd
2 changed files with 17 additions and 5 deletions

View file

@ -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 {} \;

10
system/fio/fio.patch Normal file
View file

@ -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>