From f0f8a6e12ccc4872fa72cbbb72eb6de65ff6dcb7 Mon Sep 17 00:00:00 2001 From: Hanspeter Niederstrasser Date: Tue, 4 Jul 2023 14:23:35 -0500 Subject: [PATCH] pciutils: v3.10.0 first attempt builds but needs some work on instructions for getting it to actually read the PCI bus --- .../main/finkinfo/utils/libpci3-shlibs.info | 76 +++++++++++++++++++ .../main/finkinfo/utils/libpci3-shlibs.patch | 21 +++++ 2 files changed, 97 insertions(+) create mode 100644 10.9-libcxx/stable/main/finkinfo/utils/libpci3-shlibs.info create mode 100644 10.9-libcxx/stable/main/finkinfo/utils/libpci3-shlibs.patch diff --git a/10.9-libcxx/stable/main/finkinfo/utils/libpci3-shlibs.info b/10.9-libcxx/stable/main/finkinfo/utils/libpci3-shlibs.info new file mode 100644 index 00000000000..338affb38f1 --- /dev/null +++ b/10.9-libcxx/stable/main/finkinfo/utils/libpci3-shlibs.info @@ -0,0 +1,76 @@ +Package: libpci3-shlibs +Version: 3.10.0 +Revision: 1 +Description: Libpci3 shared libraries +License: GPL +# Free to modify, update, and take over +Maintainer: Hanspeter Niederstrasser + +BuildDepends: << + pkgconfig (>= 0.23) +<< + +Source: https://mj.ucw.cz/download/linux/pci/pciutils-%v.tar.gz +#Source: https://github.com/pciutils/pciutils/archive/refs/tags/v3.10.0.tar.gz +#SourceRename: pciutils-%v.tar.gz +Source-Checksum: SHA256(7deabe38ae5fa88a96a8c4947975cf31c591506db546e9665a10dddbf350ead0) +PatchFile: %n.patch +PatchFile-MD5: 7427e765f03353d91fbf1aa286e45f9d +PatchScript: << + %{default_script} + perl -ni -e 'print unless /Libs.private:/' lib/libpci.pc.in +<< + +CompileScript: << + make ZLIB=yes DNS=yes SHARED=yes PREFIX=%p +<< +InstallScript: << + make install install-lib DESTDIR=%d PREFIX=%p + ln -s %p/lib/libpci.3.dylib %i/lib/libpci.dylib +<< +Shlibs: << + %p/lib/libpci.3.dylib 3.0.0 %n (>= 3.10.0-1) +<< +DocFiles: ChangeLog COPYING README +# +SplitOff: << + Package: pciutils + Description: PCI utilities + Files: << + sbin + share/pci.ids.gz + share/man/man{5,7,8} + << + Depends: << + libpci3-shlibs (>= %v-%r) + << + DocFiles: ChangeLog COPYING README +<< +# +SplitOff2: << + Package: libpci3-dev + Conflicts: libpci3-dev + Replaces: libpci3-dev + Description: Libpci3 development headers + Depends: libpci3-shlibs (= %v-%r) + BuildDependsOnly: True + Files: << + include + lib/libpci.dylib + lib/pkgconfig + << + DocFiles: ChangeLog COPYING README +<< +Homepage: https://mj.ucw.cz/sw/pciutils/ +DescDetail: << +The PCI Utilities are a collection of programs for inspecting and +manipulating configuration of PCI devices, all based on a common +portable library libpci which offers access to the PCI configuration +space on a variety of operating systems. +<< +DescUsage: << +PCI Utils may need to be run as root with SIP disabled to gather any details. +* Boot into Rescue Mode, disable SIP, reboot, then run the command: + sudo nvram boot-args="debug=0x144" +* May need to reboot again. +<< diff --git a/10.9-libcxx/stable/main/finkinfo/utils/libpci3-shlibs.patch b/10.9-libcxx/stable/main/finkinfo/utils/libpci3-shlibs.patch new file mode 100644 index 00000000000..32295c154b6 --- /dev/null +++ b/10.9-libcxx/stable/main/finkinfo/utils/libpci3-shlibs.patch @@ -0,0 +1,21 @@ +diff -ruN pciutils-3.10.0-orig/lib/configure pciutils-3.10.0/lib/configure +--- pciutils-3.10.0-orig/lib/configure 2023-03-05 07:45:24.000000000 -0600 ++++ pciutils-3.10.0/lib/configure 2023-07-04 05:55:59.000000000 -0500 +@@ -315,6 +315,8 @@ + echo >>$m 'PCILIB=$(LIBNAME).$(LIBEXT).$(VERSION)' + elif [ "$LIBEXT" = dll ]; then + echo >>$m 'PCILIB=$(LIBNAME)$(ABI_VERSION).$(LIBEXT)' ++ elif [ "$LIBEXT" = dylib ]; then ++ echo >>$m 'PCILIB=$(LIBNAME).$(ABI_VERSION).$(LIBEXT)' + else + echo >>$m 'PCILIB=$(LIBNAME).$(VERSION).$(LIBEXT)' + fi +@@ -326,7 +328,7 @@ + echo >>$m 'PCILIB_LDFLAGS+=-Wl,-soname,$(LIBNAME).$(LIBEXT).$(ABI_VERSION)' + echo >>$m 'PCILIB_LDFLAGS+=-Wl,--version-script=libpci.ver' + elif [ "$LIBEXT" = dylib ]; then +- echo >>$m 'PCILIB_LDFLAGS+=-Wl,-install_name,$(LIBDIR)/$(PCILIB)' ++ echo >>$m 'PCILIB_LDFLAGS+=-Wl,-install_name,$(LIBDIR)/$(PCILIB),-compatibility_version,$(ABI_VERSION),-current_version,$(VERSION)' + elif [ "$LIBEXT" = dll ]; then + echo >>$m 'PCIIMPDEF=$(LIBNAME)$(ABI_VERSION).def' + # GCC's -fvisibility=hidden is broken for Windows targets, use -Wl,--exclude-all-symbols instead (supported since GNU LD 2.21)