aboutsummaryrefslogtreecommitdiffstats
path: root/main/jfsutils
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2013-01-05 00:48:43 +0100
committerCarlo Landmeter <clandmeter@gmail.com>2013-01-05 00:48:43 +0100
commit4c76f29b450b5bfaf546ca7ae49569dd3e320882 (patch)
tree194c116e00980e81615b8b78d67b4114be65fb20 /main/jfsutils
parentc9cdaa7f7816a5cd724ed077071697844e6a2506 (diff)
downloadaports-4c76f29b450b5bfaf546ca7ae49569dd3e320882.tar.bz2
aports-4c76f29b450b5bfaf546ca7ae49569dd3e320882.tar.xz
main/jfsutils: fix build on eglibc 2.17
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 19c28838fc..86bbd721ee 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 0000000000..06a74bf32e
--- /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"
+