Skip to contentSkip to conversation

pciutils: bump to version 3.3.1

PATCH New Gustavo Zacarias 2 participants 3 messages Apr 9, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 pciutils: bump to version 3.3.1

---
 package/pciutils/pciutils.hash |  2 +-
 package/pciutils/pciutils.mk   | 11 +++++++++--
 2 files changed, 10 insertions(+), 3 deletions(-)
package/pciutils/pciutils.hash +1 -1
index 89da715..cc901d1 100644
@@ -1,2 +1,2 @@
 # From https://www.kernel.org/pub/software/utils/pciutils/sha256sums.asc
-sha256	413395d4bdc66fdedd6c993ed9083d1dd73812bf2a679d320f73de35c7801301	pciutils-3.3.0.tar.xz
+sha256	514a3bdb77e4cdbe9e970e1885af46e0ba2011bf97364368c455ade0edd4e3a9	pciutils-3.3.1.tar.xz
package/pciutils/pciutils.mk +9 -2
index 5df3a17..1410738 100644
@@ -4,13 +4,20 @@
 #
 ################################################################################
 
-PCIUTILS_VERSION = 3.3.0
+PCIUTILS_VERSION = 3.3.1
 PCIUTILS_SITE = $(BR2_KERNEL_MIRROR)/software/utils/pciutils
 PCIUTILS_SOURCE = pciutils-$(PCIUTILS_VERSION).tar.xz
 PCIUTILS_INSTALL_STAGING = YES
 PCIUTILS_LICENSE = GPLv2+
 PCIUTILS_LICENSE_FILES = COPYING
 
+ifeq ($(BR2_PACKAGE_HAS_UDEV),y)
+PCIUTILS_DEPENDENCIES += udev
+PCIUTILS_MAKE_OPTS += HWDB=yes
+else
+PCIUTILS_MAKE_OPTS += HWDB=no
+endif
+
 ifeq ($(BR2_PACKAGE_ZLIB),y)
 PCIUTILS_ZLIB=yes
 PCIUTILS_DEPENDENCIES += zlib
@@ -33,7 +40,7 @@ else
 PCIUTILS_SHARED=yes
 endif
 
-PCIUTILS_MAKE_OPTS = \
+PCIUTILS_MAKE_OPTS += \
 	CC="$(TARGET_CC)" \
 	HOST="$(KERNEL_ARCH)-linux" \
 	OPT="$(TARGET_CFLAGS)" \
Signature · 1 line
2.0.5
#1 lore raw

PATCH 1/1 pciutils: bump to version 3.3.1

Dear Gustavo Zacarias,

Quoted 5 lines · Gustavo Zacarias
---
 package/pciutils/pciutils.hash |  2 +-
 package/pciutils/pciutils.mk   | 11 +++++++++--
 2 files changed, 10 insertions(+), 3 deletions(-)

I've applied, even though I believe things could be done in a bit nicer way, see below.

Quoted 27 lines
package/pciutils/pciutils.mk +8 -1
index 5df3a17..1410738 100644
@@ -4,13 +4,20 @@
 #
 ################################################################################
 
-PCIUTILS_VERSION = 3.3.0
+PCIUTILS_VERSION = 3.3.1
 PCIUTILS_SITE = $(BR2_KERNEL_MIRROR)/software/utils/pciutils
 PCIUTILS_SOURCE = pciutils-$(PCIUTILS_VERSION).tar.xz
 PCIUTILS_INSTALL_STAGING = YES
 PCIUTILS_LICENSE = GPLv2+
 PCIUTILS_LICENSE_FILES = COPYING
 
+ifeq ($(BR2_PACKAGE_HAS_UDEV),y)
+PCIUTILS_DEPENDENCIES += udev
+PCIUTILS_MAKE_OPTS += HWDB=yes
+else
+PCIUTILS_MAKE_OPTS += HWDB=no
+endif
+
 ifeq ($(BR2_PACKAGE_ZLIB),y)
 PCIUTILS_ZLIB=yes
 PCIUTILS_DEPENDENCIES += zlib

package/pciutils/pciutils.mk else · line 46

Quoted 8 lines
package/pciutils/pciutils.mk +1 -1
@@ -33,7 +40,7 @@ else
 PCIUTILS_SHARED=yes
 endif
 
-PCIUTILS_MAKE_OPTS = \
+PCIUTILS_MAKE_OPTS += \
 	CC="$(TARGET_CC)" \
 	HOST="$(KERNEL_ARCH)-linux" \
 	OPT="$(TARGET_CFLAGS)" \

It's a little bit strange to have the unconditional PCIUTILS_MAKE_OPTS after the conditional ones.

But it's also tied to the fact that for udev you've decided to add HWDB=<foo> in PCIUTILS_MAKE_OPTS, while for the other dependencies, they do PCIUTILS_ZLIB = <foo>, and then in PCIUTILS_MAKE_OPTS, they have ZLIB=$(PCIUTILS_ZLIB).

So things are not very consistent right now. If you can send a follow-up patch to make things a bit more consistent, it'd be great.

Thanks a lot!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
#2 lore raw

PATCH 1/1 pciutils: bump to version 3.3.1

Quoted 10 lines · Thomas Petazzoni

It's a little bit strange to have the unconditional PCIUTILS_MAKE_OPTS after the conditional ones.

But it's also tied to the fact that for udev you've decided to add HWDB=<foo> in PCIUTILS_MAKE_OPTS, while for the other dependencies, they do PCIUTILS_ZLIB = <foo>, and then in PCIUTILS_MAKE_OPTS, they have ZLIB=$(PCIUTILS_ZLIB).

So things are not very consistent right now. If you can send a follow-up patch to make things a bit more consistent, it'd be great.

Yes, i'll send a cleanup.
Regards.