[arch-commits] Commit in libnl/trunk (PKGBUILD fix-compilation.patch)

Pierre Schmitz pierre at archlinux.org
Sat Sep 10 11:32:49 UTC 2011


    Date: Saturday, September 10, 2011 @ 07:32:48
  Author: pierre
Revision: 137670

upgpkg: libnl 1.1-3

rebuild of old package

Added:
  libnl/trunk/fix-compilation.patch
Modified:
  libnl/trunk/PKGBUILD

-----------------------+
 PKGBUILD              |   20 +++++++++++---------
 fix-compilation.patch |   10 ++++++++++
 2 files changed, 21 insertions(+), 9 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2011-09-10 11:25:12 UTC (rev 137669)
+++ PKGBUILD	2011-09-10 11:32:48 UTC (rev 137670)
@@ -3,24 +3,26 @@
 # Contributor: William Rea <sillywilly at gmail.com>
 
 pkgname=libnl
-pkgver=2.0
-pkgrel=1
+pkgver=1.1
+pkgrel=3
 pkgdesc="Library for applications dealing with netlink sockets"
 arch=('i686' 'x86_64')
 url="http://www.infradead.org/~tgr/libnl/"
 license=('GPL')
 depends=('glibc')
-source=(http://www.infradead.org/~tgr/libnl/files/${pkgname}-${pkgver}.tar.gz)
-sha256sums=('5a40dc903d3ca1074da7424b908bec8ff16936484798c7e46e53e9db8bc87a9c')
-options=(!makeflags !libtool)
+source=("http://www.infradead.org/~tgr/libnl/files/${pkgname}-${pkgver}.tar.gz"
+        'fix-compilation.patch')
+md5sums=('ae970ccd9144e132b68664f98e7ceeb1'
+         'e1f5e82c8aa1b3ad025c7b588178de1e')
 
 build() {
-  cd "${srcdir}"/${pkgname}-${pkgver}
-  ./configure --prefix=/usr --sysconfdir=/etc
+  cd ${srcdir}/libnl-${pkgver}
+  patch -Np1 -i ${srcdir}/fix-compilation.patch
+  ./configure --prefix=/usr
   make
 }
 
 package() {
-  cd "${srcdir}"/${pkgname}-${pkgver}
-  make DESTDIR="${pkgdir}" install
+  cd ${srcdir}/libnl-${pkgver}
+  make DESTDIR=${pkgdir} install
 }

Added: fix-compilation.patch
===================================================================
--- fix-compilation.patch	                        (rev 0)
+++ fix-compilation.patch	2011-09-10 11:32:48 UTC (rev 137670)
@@ -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>




More information about the arch-commits mailing list