diff options
author | Timo Teräs <timo.teras@iki.fi> | 2013-09-30 14:26:40 +0000 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2013-09-30 14:26:40 +0000 |
commit | f6ee0e0b56a6685ae58a5458621b66d7962853be (patch) | |
tree | 18f646e7939da165ef5010d04691b63a7b547143 /main | |
parent | 9ac6b1ff120ebba1555e8343fad13021ccfcb21f (diff) | |
download | aports-f6ee0e0b56a6685ae58a5458621b66d7962853be.tar.bz2 aports-f6ee0e0b56a6685ae58a5458621b66d7962853be.tar.xz |
main/libnfnetlink: fix musl build
Diffstat (limited to 'main')
-rw-r--r-- | main/libnfnetlink/APKBUILD | 15 | ||||
-rw-r--r-- | main/libnfnetlink/fix-includes.patch | 10 |
2 files changed, 23 insertions, 2 deletions
diff --git a/main/libnfnetlink/APKBUILD b/main/libnfnetlink/APKBUILD index 41641eae1b..c724700cbf 100644 --- a/main/libnfnetlink/APKBUILD +++ b/main/libnfnetlink/APKBUILD @@ -10,13 +10,19 @@ license="GPL-2" depends="" makedepends="" subpackages="$pkgname-dev" -source="http://www.netfilter.org/projects/libnfnetlink/files/libnfnetlink-$pkgver.tar.bz2" +source="http://www.netfilter.org/projects/libnfnetlink/files/libnfnetlink-$pkgver.tar.bz2 + fix-includes.patch" _builddir="$srcdir/$pkgname-$pkgver" prepare() { cd "$_builddir" update_config_sub || return 1 + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done } build() { @@ -38,4 +44,9 @@ package() { make DESTDIR="$pkgdir" install || return 1 rm "$pkgdir"/usr/lib/*.la } -md5sums="98927583d2016a9fb1936fed992e2c5e libnfnetlink-1.0.1.tar.bz2" +md5sums="98927583d2016a9fb1936fed992e2c5e libnfnetlink-1.0.1.tar.bz2 +e441bfc59a021e3871da9300fccf2b36 fix-includes.patch" +sha256sums="f270e19de9127642d2a11589ef2ec97ef90a649a74f56cf9a96306b04817b51a libnfnetlink-1.0.1.tar.bz2 +78a20a154e7e36f3f2c974705d4db488011d2fb532234f59dee7453efb84bdee fix-includes.patch" +sha512sums="2ec2cd389c04e21c8a02fb3f6d6f326fc33ca9589577f1739c23d883fe2ee9feaa16e83b6ed09063ad886432e49565dc3256277d035260aca5aab17954b46104 libnfnetlink-1.0.1.tar.bz2 +d2d5fdbca911e34b03d06de461921a1a65d3b7819fb07a6376c91411dbc2677f0299eb4fd02985e6879ad6b109232b0a873d4e6ff88708651ea16c9c5df35720 fix-includes.patch" diff --git a/main/libnfnetlink/fix-includes.patch b/main/libnfnetlink/fix-includes.patch new file mode 100644 index 0000000000..f4a5674ee2 --- /dev/null +++ b/main/libnfnetlink/fix-includes.patch @@ -0,0 +1,10 @@ +--- libnfnetlink-1.0.1.orig/include/libnfnetlink/linux_nfnetlink.h ++++ libnfnetlink-1.0.1/include/libnfnetlink/linux_nfnetlink.h +@@ -1,6 +1,6 @@ + #ifndef _NFNETLINK_H + #define _NFNETLINK_H +-#include <linux/types.h> ++#include <sys/types.h> + #include <libnfnetlink/linux_nfnetlink_compat.h> + + enum nfnetlink_groups { |