linux-pci.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] update-pciids: fix PCI_COMPRESSED_IDS value when zlib is disabled
@ 2012-01-31 15:56 Mike Frysinger
  2013-04-01 19:52 ` [PCIUTILS] " Martin Mares
  0 siblings, 1 reply; 3+ messages in thread
From: Mike Frysinger @ 2012-01-31 15:56 UTC (permalink / raw)
  To: Martin Mares; +Cc: linux-pci

If you build with zlib disabled, then PCI_COMPRESSED_IDS is not defined,
which generates the line in the update script:
	PCI_COMPRESSED_IDS=
which in turn causes the update script to warn:
	bash: [: : integer expression expected

So default it to 0 to avoid that logic.

Reported-by: AlphatPC@gmail.com
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
 Makefile |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/Makefile b/Makefile
index d5ed7ac..86fb0c7 100644
--- a/Makefile
+++ b/Makefile
@@ -77,6 +77,7 @@ ls-map.o: ls-map.c $(LSPCIINC)
 setpci.o: setpci.c pciutils.h $(PCIINC)
 common.o: common.c pciutils.h $(PCIINC)
 
+PCI_COMPRESSED_IDS ?= 0
 update-pciids: update-pciids.sh
 	sed <$< >$@ "s@^DEST=.*@DEST=$(IDSDIR)/$(PCI_IDS)@;s@^PCI_COMPRESSED_IDS=.*@PCI_COMPRESSED_IDS=$(PCI_COMPRESSED_IDS)@"
 	chmod +x $@
-- 
1.7.8.4


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-04-01 20:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-31 15:56 [PATCH] update-pciids: fix PCI_COMPRESSED_IDS value when zlib is disabled Mike Frysinger
2013-04-01 19:52 ` [PCIUTILS] " Martin Mares
2013-04-01 20:20   ` Mike Frysinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).