pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/sysutils/pciutils pciutils: Update to 3.9.0.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/7527ff34a8ea
branches:  trunk
changeset: 390895:7527ff34a8ea
user:      msaitoh <msaitoh%pkgsrc.org@localhost>
date:      Sat Dec 31 22:21:04 2022 +0000

description:
pciutils: Update to 3.9.0.

2022-11-20  Martin Mares <mj%ucw.cz@localhost>

        * Released as 3.9.0.

        * We decode Compute Express Link (CXL) capabilities.

        * The tree mode of lspci is now compatible with filtering options.

        * When setpci is used with a named register, it checks whether
          the register is present in the particular header type.

        * Linux: The intel-conf[12] back-ends prefer to use ioperm() instead
          of iopl() to gain access to I/O ports.

        * Windows: We have two new back-ends thanks to Pali Rohár.
          One uses the NT SysDbg interface, the other uses kldbgdrv.sys
          (which is a part of the Microsoft WinDbg tool).

        * Windows: We support building libpci as a DLL. Also, Windows
          binaries now include meta-data with version.

        * Hurd: The Hurd back-end works again.

        * mmio-conf1(-ext): Added a new back-end implementing the intel-conf1
          interface over MMIO. This is useful on some ARM machines, but it
          requires manual configuration of the MMIO addresses.

        * As usually, updated pci.ids to the current snapshot of the database.

diffstat:

 sysutils/pciutils/Makefile                   |   4 +-
 sysutils/pciutils/distinfo                   |  13 ++++----
 sysutils/pciutils/patches/patch-aa           |  38 ++++++++++++++++---------
 sysutils/pciutils/patches/patch-ab           |  16 +++++-----
 sysutils/pciutils/patches/patch-lib_filter.c |  42 ----------------------------
 5 files changed, 40 insertions(+), 73 deletions(-)

diffs (207 lines):

diff -r 07b62e8fd0e1 -r 7527ff34a8ea sysutils/pciutils/Makefile
--- a/sysutils/pciutils/Makefile        Sat Dec 31 22:05:04 2022 +0000
+++ b/sysutils/pciutils/Makefile        Sat Dec 31 22:21:04 2022 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.51 2022/07/25 11:12:28 wiz Exp $
+# $NetBSD: Makefile,v 1.52 2022/12/31 22:21:04 msaitoh Exp $
 
-DISTNAME=      pciutils-3.8.0
+DISTNAME=      pciutils-3.9.0
 CATEGORIES=    sysutils
 MASTER_SITES+= https://www.kernel.org/pub/software/utils/pciutils/
 
diff -r 07b62e8fd0e1 -r 7527ff34a8ea sysutils/pciutils/distinfo
--- a/sysutils/pciutils/distinfo        Sat Dec 31 22:05:04 2022 +0000
+++ b/sysutils/pciutils/distinfo        Sat Dec 31 22:21:04 2022 +0000
@@ -1,11 +1,10 @@
-$NetBSD: distinfo,v 1.42 2022/05/14 16:47:48 jperkin Exp $
+$NetBSD: distinfo,v 1.43 2022/12/31 22:21:04 msaitoh Exp $
 
-BLAKE2s (pciutils-3.8.0.tar.gz) = ed9638a759d045122ae4b466582fa4a763d930ed8de71e59519e1f7370249d51
-SHA512 (pciutils-3.8.0.tar.gz) = 49b8ccc87cc82326744de7f0306c0245a5bb87740d3e96b18378cc07477ca176bd3ffaf699bfe9954d61381c57f65aa703c07fa6406fe2be289917dc1715600d
-Size (pciutils-3.8.0.tar.gz) = 564686 bytes
-SHA1 (patch-aa) = 9d852153dbad858a68b1f3503a98578d48cbcf4d
-SHA1 (patch-ab) = 01ed933aa91fd71b37e73899be816894ef4e3d8f
+BLAKE2s (pciutils-3.9.0.tar.gz) = e13facf202c1f599579b9fe00b205383c8e4e7cb2323aa330236d3c70d31de06
+SHA512 (pciutils-3.9.0.tar.gz) = 27751eb2c9ea35047f62d6025c8dab6036cb3d18850bfd6e4ab906f7c9eb6cff059ed655155f6400bb16f953d7b520e72bdd8c1fce7a587a756902cc562af87d
+Size (pciutils-3.9.0.tar.gz) = 892972 bytes
+SHA1 (patch-aa) = 769b844cfded02ae6e2ed595247f6d15a1722f8c
+SHA1 (patch-ab) = 55e799d9db8206868540e55feefc47cde1c0ddfc
 SHA1 (patch-ac) = 83fd2d79a7a4a05593ccd69b9d1f38e6ec4763c8
-SHA1 (patch-lib_filter.c) = 60ab18c9cd4f9850f500f11fe837006bef93ed3a
 SHA1 (patch-lib_i386-io-sunos.h) = 4917244d39b48d38b8173cf3031281ad1c7fec24
 SHA1 (patch-lib_internal.h) = e326bff29cc546bce2e29b465e220321084e8d93
diff -r 07b62e8fd0e1 -r 7527ff34a8ea sysutils/pciutils/patches/patch-aa
--- a/sysutils/pciutils/patches/patch-aa        Sat Dec 31 22:05:04 2022 +0000
+++ b/sysutils/pciutils/patches/patch-aa        Sat Dec 31 22:21:04 2022 +0000
@@ -1,9 +1,9 @@
-$NetBSD: patch-aa,v 1.28 2022/05/13 11:41:57 wiz Exp $
+$NetBSD: patch-aa,v 1.29 2022/12/31 22:21:04 msaitoh Exp $
 
 Adapt the Makefile to make it compliant with pkgsrc.
 
---- Makefile.orig      2022-04-18 16:47:28.000000000 +0000
-+++ Makefile
+--- Makefile.orig      2022-11-20 20:58:03.000000000 +0900
++++ Makefile   2022-12-31 20:13:26.593864823 +0900
 @@ -1,8 +1,7 @@
  # Makefile for The PCI Utilities
  # (c) 1998--2022 Martin Mares <mj%ucw.cz@localhost>
@@ -12,8 +12,8 @@
 -CFLAGS=$(OPT) -Wall -W -Wno-parentheses -Wstrict-prototypes -Wmissing-prototypes
 +CFLAGS=-Wall -W -Wno-parentheses -Wstrict-prototypes -Wmissing-prototypes
  
- VERSION=3.8.0
- DATE=2022-04-18
+ VERSION=3.9.0
+ DATE=2022-11-20
 @@ -13,7 +12,7 @@ RELEASE=
  CROSS_COMPILE=
  
@@ -24,7 +24,7 @@
  # Support for resolving ID's by DNS (yes/no, default: detect)
  DNS=
 @@ -32,25 +31,25 @@ HWDB=
- ABI_VERSION=.3
+ ABI_VERSION=3
  
  # Installation directories
 -PREFIX=/usr/local
@@ -59,16 +59,20 @@
 +#endif
  AR=$(CROSS_COMPILE)ar
  RANLIB=$(CROSS_COMPILE)ranlib
- 
-@@ -130,14 +129,21 @@ distclean: clean
+ DLLTOOL=$(CROSS_COMPILE)dlltool
+@@ -147,18 +146,21 @@ distclean: clean
  
  install: all
  # -c is ignored on Linux, but required on FreeBSD
--      $(DIRINSTALL) -m 755 $(DESTDIR)$(BINDIR) $(DESTDIR)$(SBINDIR) $(DESTDIR)$(IDSDIR) $(DESTDIR)$(MANDIR)/man8 $(DESTDIR)$(MANDIR)/man7 $(DESTDIR)/$(MANDIR)/man5
+-      $(DIRINSTALL) -m 755 $(DESTDIR)$(BINDIR) $(DESTDIR)$(SBINDIR) $(DESTDIR)$(IDSDIR) $(DESTDIR)$(MANDIR)/man8 $(DESTDIR)$(MANDIR)/man7 $(DESTDIR)$(MANDIR)/man5
 -      $(INSTALL) -c -m 755 $(STRIP) lspci$(EXEEXT) $(DESTDIR)$(LSPCIDIR)
 -      $(INSTALL) -c -m 755 $(STRIP) setpci$(EXEEXT) $(DESTDIR)$(SBINDIR)
 -      $(INSTALL) -c -m 755 update-pciids $(DESTDIR)$(SBINDIR)
+-ifneq ($(IDSDIR),)
 -      $(INSTALL) -c -m 644 $(PCI_IDS) $(DESTDIR)$(IDSDIR)
+-else
+-      $(INSTALL) -c -m 644 $(PCI_IDS) $(DESTDIR)$(SBINDIR)
+-endif
 -      $(INSTALL) -c -m 644 lspci.8 setpci.8 update-pciids.8 $(DESTDIR)$(MANDIR)/man8
 -      $(INSTALL) -c -m 644 pcilib.7 $(DESTDIR)$(MANDIR)/man7
 -      $(INSTALL) -c -m 644 pci.ids.5 $(DESTDIR)$(MANDIR)/man5
@@ -89,13 +93,19 @@
 +      $(BSD_INSTALL_MAN) pci.ids.5 $(DESTDIR)$(MANDIR)/man5
  ifeq ($(SHARED),yes)
  ifeq ($(LIBEXT),dylib)
-       ln -sf $(PCILIB) $(DESTDIR)$(LIBDIR)/$(LIBNAME)$(ABI_VERSION).$(LIBEXT)
-@@ -151,13 +157,14 @@ install: install-pcilib
+       ln -sf $(PCILIB) $(DESTDIR)$(LIBDIR)/$(LIBNAME).$(ABI_VERSION).$(LIBEXT)
+@@ -172,19 +174,14 @@ install: install-pcilib
  endif
  
  install-pcilib: lib/$(PCILIB)
 -      $(DIRINSTALL) -m 755 $(DESTDIR)$(LIBDIR)
+-ifeq ($(SHARED)_$(LIBEXT),yes_dll)
+-# DLL library must have executable flag on disk and be placed in same directory as where are EXE files
+-      $(DIRINSTALL) -m 755 $(DESTDIR)$(SBINDIR)
+-      $(INSTALL) -c -m 755 lib/$(PCILIB) $(DESTDIR)$(SBINDIR)
+-else
 -      $(INSTALL) -c -m 644 lib/$(PCILIB) $(DESTDIR)$(LIBDIR)
+-endif
 +      $(BSD_INSTALL_LIB_DIR) $(DESTDIR)$(LIBDIR)
 +      $(BSD_INSTALL_LIB) lib/$(PCILIB) $(DESTDIR)$(LIBDIR)
  
@@ -107,6 +117,6 @@
 +      $(BSD_INSTALL_DATA_DIR) $(DESTDIR)$(PKGCFDIR)
 +      $(BSD_INSTALL_DATA) $(PCIINC_INS) $(DESTDIR)$(INCDIR)/pci
 +      $(BSD_INSTALL_DATA) lib/$(PCILIBPC) $(DESTDIR)$(PKGCFDIR)
- ifeq ($(SHARED),yes)
- ifeq ($(LIBEXT),dylib)
-       ln -sf $(PCILIB) $(DESTDIR)$(LIBDIR)/$(LIBNAME)$(ABI_VERSION).$(LIBEXT)
+ ifneq ($(PCIIMPLIB),$(PCILIB))
+       $(INSTALL) -c -m 644 lib/$(PCIIMPLIB) $(DESTDIR)$(LIBDIR)
+ endif
diff -r 07b62e8fd0e1 -r 7527ff34a8ea sysutils/pciutils/patches/patch-ab
--- a/sysutils/pciutils/patches/patch-ab        Sat Dec 31 22:05:04 2022 +0000
+++ b/sysutils/pciutils/patches/patch-ab        Sat Dec 31 22:21:04 2022 +0000
@@ -1,11 +1,11 @@
-$NetBSD: patch-ab,v 1.6 2022/05/13 23:50:46 tnn Exp $
+$NetBSD: patch-ab,v 1.7 2022/12/31 22:21:04 msaitoh Exp $
 
 lspci on Linux is unprivileged and wants to go in bin, not sbin.
 But that breaks our PLIST so let's not bother with that.
 
---- lib/configure.orig 2022-04-15 21:57:59.000000000 +0000
-+++ lib/configure
-@@ -80,7 +80,6 @@ case $sys in
+--- lib/configure.orig 2022-11-18 22:15:08.000000000 +0900
++++ lib/configure      2022-11-24 18:48:25.439715651 +0900
+@@ -82,7 +82,6 @@ case $sys in
                                                ;;
                esac
                echo >>$c '#define PCI_HAVE_64BIT_ADDRESS'
@@ -13,12 +13,12 @@
                ;;
        sunos)
                case $cpu in
-@@ -301,7 +300,7 @@ else
-               echo >>$m 'SONAME=-Wl,-soname,$(LIBNAME).$(LIBEXT)$(ABI_VERSION)'
+@@ -321,7 +320,7 @@ else
+               echo >>$m 'PCILIB_LDFLAGS+=-Wl,--exclude-all-symbols'
        fi
  fi
 -echo >>$m 'PCILIBPC=$(LIBNAME).pc'
 +echo >>$m 'PCILIBPC=libpci.pc'
  
- echo >>$c "#define PCILIB_VERSION \"$VERSION\""
- sed '/"/{s/^#define \([^ ]*\) "\(.*\)"$/\1=\2/;p;d;};s/^#define \(.*\)/\1=1/' <$c >>$m
+ if [ "$SHARED" != no ] && [ "$LIBEXT" = dll ]; then
+       echo >>$m 'PCIIMPLIB=$(PCILIB).a'
diff -r 07b62e8fd0e1 -r 7527ff34a8ea sysutils/pciutils/patches/patch-lib_filter.c
--- a/sysutils/pciutils/patches/patch-lib_filter.c      Sat Dec 31 22:05:04 2022 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,42 +0,0 @@
-$NetBSD: patch-lib_filter.c,v 1.1 2022/05/13 11:41:57 wiz Exp $
-
-/tmp//ccMwJMwZ.s: Assembler messages:
-/tmp//ccMwJMwZ.s:976: Error: multiple versions [`pci_filter_init@@LIBPCI_3.8'|`pci_filter_init@LIBPCI_3.3'] for symbol `pci_filter_init_v38'
-/tmp//ccMwJMwZ.s:978: Error: multiple versions [`pci_filter_parse_slot@@LIBPCI_3.8'|`pci_filter_parse_slot@LIBPCI_3.3'] for symbol `pci_filter_parse_slot_v38'
-/tmp//ccMwJMwZ.s:980: Error: multiple versions [`pci_filter_parse_id@@LIBPCI_3.8'|`pci_filter_parse_id@LIBPCI_3.3'] for symbol `pci_filter_parse_id_v38'
-/tmp//ccMwJMwZ.s:982: Error: multiple versions [`pci_filter_match@@LIBPCI_3.8'|`pci_filter_match@LIBPCI_3.3'] for symbol `pci_filter_match_v38'
-# cc -Wall -W -Wno-parentheses -Wstrict-prototypes -Wmissing-prototypes   -c -o filter.o filter.c
-/tmp//ccfA72Ke.s: Assembler messages:
-/tmp//ccfA72Ke.s:976: Error: multiple versions [`pci_filter_init@@LIBPCI_3.8'|`pci_filter_init@LIBPCI_3.3'] for symbol `pci_filter_init_v38'
-/tmp//ccfA72Ke.s:978: Error: multiple versions [`pci_filter_parse_slot@@LIBPCI_3.8'|`pci_filter_parse_slot@LIBPCI_3.3'] for symbol `pci_filter_parse_slot_v38'
-/tmp//ccfA72Ke.s:980: Error: multiple versions [`pci_filter_parse_id@@LIBPCI_3.8'|`pci_filter_parse_id@LIBPCI_3.3'] for symbol `pci_filter_parse_id_v38'
-/tmp//ccfA72Ke.s:982: Error: multiple versions [`pci_filter_match@@LIBPCI_3.8'|`pci_filter_match@LIBPCI_3.3'] for symbol `pci_filter_match_v38'
-
-
---- lib/filter.c.orig  2022-04-18 16:46:38.000000000 +0000
-+++ lib/filter.c
-@@ -304,20 +304,20 @@ pci_filter_match_v30(struct pci_filter_v
- 
- STATIC_ALIAS(void pci_filter_init(struct pci_access *a, struct pci_filter *f), pci_filter_init_v38(a, f));
- SYMBOL_VERSION(pci_filter_init_v30, pci_filter_init@LIBPCI_3.0);
--SYMBOL_VERSION(pci_filter_init_v38, pci_filter_init@LIBPCI_3.3);
-+//SYMBOL_VERSION(pci_filter_init_v38, pci_filter_init@LIBPCI_3.3);
- SYMBOL_VERSION(pci_filter_init_v38, pci_filter_init@@LIBPCI_3.8);
- 
- STATIC_ALIAS(char *pci_filter_parse_slot(struct pci_filter *f, char *str), pci_filter_parse_slot_v38(f, str));
- SYMBOL_VERSION(pci_filter_parse_slot_v30, pci_filter_parse_slot@LIBPCI_3.0);
--SYMBOL_VERSION(pci_filter_parse_slot_v38, pci_filter_parse_slot@LIBPCI_3.3);
-+//SYMBOL_VERSION(pci_filter_parse_slot_v38, pci_filter_parse_slot@LIBPCI_3.3);
- SYMBOL_VERSION(pci_filter_parse_slot_v38, pci_filter_parse_slot@@LIBPCI_3.8);
- 
- STATIC_ALIAS(char *pci_filter_parse_id(struct pci_filter *f, char *str), pci_filter_parse_id_v38(f, str));
- SYMBOL_VERSION(pci_filter_parse_id_v30, pci_filter_parse_id@LIBPCI_3.0);
--SYMBOL_VERSION(pci_filter_parse_id_v38, pci_filter_parse_id@LIBPCI_3.3);
-+//SYMBOL_VERSION(pci_filter_parse_id_v38, pci_filter_parse_id@LIBPCI_3.3);
- SYMBOL_VERSION(pci_filter_parse_id_v38, pci_filter_parse_id@@LIBPCI_3.8);
- 
- STATIC_ALIAS(int pci_filter_match(struct pci_filter *f, struct pci_dev *d), pci_filter_match_v38(f, d));
- SYMBOL_VERSION(pci_filter_match_v30, pci_filter_match@LIBPCI_3.0);
--SYMBOL_VERSION(pci_filter_match_v38, pci_filter_match@LIBPCI_3.3);
-+//SYMBOL_VERSION(pci_filter_match_v38, pci_filter_match@LIBPCI_3.3);
- SYMBOL_VERSION(pci_filter_match_v38, pci_filter_match@@LIBPCI_3.8);



Home | Main Index | Thread Index | Old Index