From b94c4b3f2a25f734c5d1613de6770d237c5beebd Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Tue, 14 Jan 2014 08:14:33 +0000 Subject: main/dosfstools: build fix for musl copied from sabotage linux --- main/dosfstools/APKBUILD | 17 +++++++----- .../dosfstools-loff_and_BLOCK_SIZE.patch | 31 ++++++++++++++++++++++ 2 files changed, 42 insertions(+), 6 deletions(-) create mode 100644 main/dosfstools/dosfstools-loff_and_BLOCK_SIZE.patch (limited to 'main/dosfstools') diff --git a/main/dosfstools/APKBUILD b/main/dosfstools/APKBUILD index d1bab20c50..0b9a5e728c 100644 --- a/main/dosfstools/APKBUILD +++ b/main/dosfstools/APKBUILD @@ -1,7 +1,7 @@ # Maintainer: Natanael Copa pkgname=dosfstools pkgver=3.0.24 -pkgrel=0 +pkgrel=1 pkgdesc="DOS filesystem utilities" url="http://www.daniel-baumann.ch/software/dosfstools/" arch="all" @@ -9,10 +9,12 @@ license="GPL3+" depends="" makedepends="libiconv-dev" subpackages="$pkgname-doc" -source="http://daniel-baumann.ch/files/software/dosfstools/dosfstools-$pkgver.tar.xz" +source="http://daniel-baumann.ch/files/software/dosfstools/dosfstools-$pkgver.tar.xz + dosfstools-loff_and_BLOCK_SIZE.patch + " _builddir="$srcdir"/$pkgname-$pkgver -build() { +build() { cd "$_builddir" make OPTFLAGS="$CFLAGS" LDFLAGS="-liconv $LDFLAGS" || return 1 } @@ -26,6 +28,9 @@ package() { install || return 1 } -md5sums="41931f36ebee6e79e9dafe85cc916f2b dosfstools-3.0.24.tar.xz" -sha256sums="1e21b7e7c8872fb3debf2a7fdc8c223a5f592a6efa8ae181a92f558ed28274c1 dosfstools-3.0.24.tar.xz" -sha512sums="9e75e3868f42d4cb404998e8a0cd7d3bc7fe4fc0cf68559644c960fe73e7f0eb67c26ff169085c9e1858e5402efed813b883a5f3682aea29e4d0fc9c9142a006 dosfstools-3.0.24.tar.xz" +md5sums="41931f36ebee6e79e9dafe85cc916f2b dosfstools-3.0.24.tar.xz +66da181b7245895aac09f51902dcedcb dosfstools-loff_and_BLOCK_SIZE.patch" +sha256sums="1e21b7e7c8872fb3debf2a7fdc8c223a5f592a6efa8ae181a92f558ed28274c1 dosfstools-3.0.24.tar.xz +f9d313d3204c5b2b2a9a9ccb2906cd29aa17f66daa710c8f3358adc6e081479d dosfstools-loff_and_BLOCK_SIZE.patch" +sha512sums="9e75e3868f42d4cb404998e8a0cd7d3bc7fe4fc0cf68559644c960fe73e7f0eb67c26ff169085c9e1858e5402efed813b883a5f3682aea29e4d0fc9c9142a006 dosfstools-3.0.24.tar.xz +7d36320e31502fb977f8f589b0b35a7c4b9358e08bd77852f516a0421a60ebce9190134d22f0d857146de701b1c5655e62b8ae643f87d9e8a09cc41b1fdf742c dosfstools-loff_and_BLOCK_SIZE.patch" diff --git a/main/dosfstools/dosfstools-loff_and_BLOCK_SIZE.patch b/main/dosfstools/dosfstools-loff_and_BLOCK_SIZE.patch new file mode 100644 index 0000000000..6c5d6c7d25 --- /dev/null +++ b/main/dosfstools/dosfstools-loff_and_BLOCK_SIZE.patch @@ -0,0 +1,31 @@ +--- src/fsck.fat.h ++++ src/fsck.fat.h +@@ -27,6 +27,7 @@ + #ifndef _DOSFSCK_H + #define _DOSFSCK_H + ++#include + #include + #define _LINUX_STAT_H /* hack to avoid inclusion of */ + #define _LINUX_STRING_H_ /* hack to avoid inclusion of */ +--- src/io.h ++++ src/io.h +@@ -27,7 +27,7 @@ + #ifndef _IO_H + #define _IO_H + +-#include /* for loff_t */ ++#include /* for loff_t */ + + loff_t llseek(int fd, loff_t offset, int whence); + +--- src/mkfs.fat.c ++++ src/mkfs.fat.c +@@ -49,6 +49,7 @@ + #include + #include + #include ++#include + #include + #include + #include -- cgit v1.2.3