summaryrefslogtreecommitdiffstats
path: root/base
diff options
context:
space:
mode:
Diffstat (limited to 'base')
-rw-r--r--base/libnl/.md5sum4
-rw-r--r--base/libnl/Pkgfile14
-rw-r--r--base/libnl/libnl-1.1-fix-compilation.patch10
3 files changed, 18 insertions, 10 deletions
diff --git a/base/libnl/.md5sum b/base/libnl/.md5sum
index cccbfde32..b6d232abc 100644
--- a/base/libnl/.md5sum
+++ b/base/libnl/.md5sum
@@ -1,4 +1,2 @@
-c5dc2c568e2ecd1227b37a5dd1757a7b 01-missing_declaration.patch
-fc990228bd3b9eb29f55127e86f3fdfa gcc43.patch
+e1f5e82c8aa1b3ad025c7b588178de1e libnl-1.1-fix-compilation.patch
ae970ccd9144e132b68664f98e7ceeb1 libnl-1.1.tar.gz
-ad524b445efaccf70c0b004f74d296f5 libnl-1.pc
diff --git a/base/libnl/Pkgfile b/base/libnl/Pkgfile
index 30a2b1245..2eb2acd03 100644
--- a/base/libnl/Pkgfile
+++ b/base/libnl/Pkgfile
@@ -6,17 +6,17 @@
name=libnl
version=1.1
-release=1
-source=(http://kiao.no-ip.info/sources/$name-$version.tar.gz\
- http://nutyx.meticul.eu/files/patchs/$name/{libnl-1.pc,01-missing_declaration.patch,gcc43.patch})
+release=2
+source=(http://kiao.no-ip.info/sources/$name-$version.tar.gz
+ libnl-1.1-fix-compilation.patch
+ )
+
build() {
cd $name-$version
- patch -Np1 -i ../01-missing_declaration.patch
- patch -Np1 -i ../gcc43.patch
+ patch -Np1 -i ../libnl-1.1-fix-compilation.patch
+
./configure --prefix=/usr
make
make DESTDIR=$PKG install
- install -D -m0644 ../libnl-1.pc $PKG/usr/lib/pkgconfig/libnl-1.pc
-
}
diff --git a/base/libnl/libnl-1.1-fix-compilation.patch b/base/libnl/libnl-1.1-fix-compilation.patch
new file mode 100644
index 000000000..891562a39
--- /dev/null
+++ b/base/libnl/libnl-1.1-fix-compilation.patch
@@ -0,0 +1,10 @@
+--- libnl-1.1.orig/include/netlink-local.h 2008-01-14 16:48:45.000000000 +0100
++++ libnl-1.1/include/netlink-local.h 2009-06-26 11:15:33.186011844 +0200
+@@ -26,6 +26,7 @@
+ #include <sys/socket.h>
+ #include <inttypes.h>
+ #include <assert.h>
++#include <limits.h>
+
+ #include <arpa/inet.h>
+ #include <netdb.h>