summaryrefslogtreecommitdiffstats
path: root/main/jfsutils
diff options
context:
space:
mode:
Diffstat (limited to 'main/jfsutils')
-rw-r--r--main/jfsutils/APKBUILD15
-rw-r--r--main/jfsutils/missing-stdinth.patch11
2 files changed, 23 insertions, 3 deletions
diff --git a/main/jfsutils/APKBUILD b/main/jfsutils/APKBUILD
index 19c28838f..86bbd721e 100644
--- a/main/jfsutils/APKBUILD
+++ b/main/jfsutils/APKBUILD
@@ -11,11 +11,19 @@ depends=
install=
makedepends="e2fsprogs-dev" # pkgconfig is pulled in externally.
subpackages="$pkgname-doc"
-source="http://jfs.sourceforge.net/project/pub/jfsutils-$pkgver.tar.gz"
+source="http://jfs.sourceforge.net/project/pub/jfsutils-$pkgver.tar.gz
+ missing-stdinth.patch"
_builddir="$srcdir"/$pkgname-$pkgver
+
prepare() {
- cd "$_builddir"
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
}
build () {
@@ -31,4 +39,5 @@ package() {
make -j1 LDCONFIG=: DESTDIR="${pkgdir}" install || return 1
}
-md5sums="8809465cd48a202895bc2a12e1923b5d jfsutils-1.1.15.tar.gz"
+md5sums="8809465cd48a202895bc2a12e1923b5d jfsutils-1.1.15.tar.gz
+da6e6be4d89d5652d9c1e99424634e42 missing-stdinth.patch"
diff --git a/main/jfsutils/missing-stdinth.patch b/main/jfsutils/missing-stdinth.patch
new file mode 100644
index 000000000..06a74bf32
--- /dev/null
+++ b/main/jfsutils/missing-stdinth.patch
@@ -0,0 +1,11 @@
+--- jfsutils-1.1.15/fscklog/extract.c.orig
++++ jfsutils-1.1.15/fscklog/extract.c
+@@ -28,6 +28,7 @@
+ #include <stdio.h>
+ #include <string.h>
+ #include <unistd.h>
++#include <stdint.h>
+
+ #include "devices.h"
+ #include "diskmap.h"
+