Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pciutils: v3.10.0 first attempt #1039

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
76 changes: 76 additions & 0 deletions 10.9-libcxx/stable/main/finkinfo/utils/libpci3-shlibs.info
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>

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.
<<
21 changes: 21 additions & 0 deletions 10.9-libcxx/stable/main/finkinfo/utils/libpci3-shlibs.patch
Original file line number Diff line number Diff line change
@@ -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)