summaryrefslogtreecommitdiff
path: root/package/pciutils/patches
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@uclibc-ng.org>2016-09-17 09:20:08 +0200
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2016-09-17 09:26:09 +0200
commite96fb6171d9cf0078051eb9d5d7f08ce8fc1d1f7 (patch)
treebeaf6648e2062800215c1ad0a807b9f038248ed8 /package/pciutils/patches
parentea95d68cf3015f9688fea02b782c2fc5fac4b8e5 (diff)
pciutils: use shared library version, useful for other packages
Diffstat (limited to 'package/pciutils/patches')
-rw-r--r--package/pciutils/patches/patch-Makefile33
-rw-r--r--package/pciutils/patches/patch-lib_configure6
2 files changed, 33 insertions, 6 deletions
diff --git a/package/pciutils/patches/patch-Makefile b/package/pciutils/patches/patch-Makefile
index 9cadfa9c2..6beca8f8d 100644
--- a/package/pciutils/patches/patch-Makefile
+++ b/package/pciutils/patches/patch-Makefile
@@ -1,6 +1,24 @@
---- pciutils-3.1.7.orig/Makefile 2010-01-31 18:42:12.000000000 +0100
-+++ pciutils-3.1.7/Makefile 2010-10-10 20:15:01.000000000 +0200
-@@ -52,7 +52,7 @@ PCIINC_INS=lib/config.h lib/header.h lib
+--- pciutils-3.5.1.orig/Makefile 2016-05-22 09:57:08.000000000 +0200
++++ pciutils-3.5.1/Makefile 2016-09-17 09:12:16.449352397 +0200
+@@ -19,7 +19,7 @@ ZLIB=
+ DNS=
+
+ # Build libpci as a shared library (yes/no; or local for testing; requires GCC)
+-SHARED=no
++SHARED=yes
+
+ # Use libkmod to resolve kernel modules on Linux (yes/no, default: detect)
+ LIBKMOD=
+@@ -32,7 +32,7 @@ HWDB=
+ ABI_VERSION=.3
+
+ # Installation directories
+-PREFIX=/usr/local
++PREFIX=/usr
+ SBINDIR=$(PREFIX)/sbin
+ SHAREDIR=$(PREFIX)/share
+ IDSDIR=$(SHAREDIR)
+@@ -59,7 +59,7 @@ PCIINC_INS=lib/config.h lib/header.h lib
export
@@ -9,3 +27,12 @@
lib/$(PCILIB): $(PCIINC) force
$(MAKE) -C lib all
+@@ -125,7 +125,7 @@ endif
+ endif
+
+ ifeq ($(SHARED),yes)
+-install: install-pcilib
++install: install-lib
+ endif
+
+ install-pcilib: lib/$(PCILIB)
diff --git a/package/pciutils/patches/patch-lib_configure b/package/pciutils/patches/patch-lib_configure
index 1c9629487..4914ae425 100644
--- a/package/pciutils/patches/patch-lib_configure
+++ b/package/pciutils/patches/patch-lib_configure
@@ -1,7 +1,7 @@
$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
---- pciutils-3.1.7.orig/lib/configure 2009-07-04 18:11:04.000000000 +0200
-+++ pciutils-3.1.7/lib/configure 2010-10-10 20:14:17.000000000 +0200
-@@ -64,7 +64,6 @@ case $sys in
+--- pciutils-3.5.1.orig/lib/configure 2015-09-14 17:47:08.000000000 +0200
++++ pciutils-3.5.1/lib/configure 2016-09-17 09:09:30.578679773 +0200
+@@ -65,7 +65,6 @@ case $sys in
echo_n " sysfs proc"
echo >>$c '#define PCI_HAVE_PM_LINUX_SYSFS'
echo >>$c '#define PCI_HAVE_PM_LINUX_PROC'