pkgsrc-Bugs archive

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

Re: pkg/57396: sysutils/pciutils fails to build on NetBSD -current



The following reply was made to PR pkg/57396; it has been noted by GNATS.

From: Thomas Klausner <wiz%NetBSD.org@localhost>
To: NetBSD bugtracking <gnats-bugs%NetBSD.org@localhost>
Cc: 
Subject: Re: pkg/57396: sysutils/pciutils fails to build on NetBSD -current
Date: Sun, 7 May 2023 22:42:28 +0200

 On Sun, May 07, 2023 at 08:00:01PM +0000, martin%NetBSD.org@localhost wrote:
 > >Synopsis:       sysutils/pciutils fails to build on NetBSD -current
 
 Works for me on 10.99.4/amd64.
 
 # make package
 => Bootstrap dependency digest>=20211023: found digest-20220214
 => Checksum BLAKE2s OK for pciutils-3.10.0.tar.gz
 => Checksum SHA512 OK for pciutils-3.10.0.tar.gz
 work -> /scratch/sysutils/pciutils/work
 ===> Installing dependencies for pciutils-3.10.0
 => Tool dependency mktools-[0-9]*: found mktools-20220614
 => Tool dependency gmake>=3.81: found gmake-4.4.1
 => Tool dependency cwrappers>=20150314: found cwrappers-20220403
 => Tool dependency checkperms>=1.1: found checkperms-1.12
 ===> Skipping vulnerability checks.
 WARNING: No /usr/pkg/pkgdb/pkg-vulnerabilities file found.
 WARNING: To fix run: `/usr/sbin/pkg_admin -K /usr/pkg/pkgdb fetch-pkg-vulnerabilities'.
 ===> Overriding tools for pciutils-3.10.0
 ===> Extracting for pciutils-3.10.0
 ===> Patching for pciutils-3.10.0
 => Applying pkgsrc patches for pciutils-3.10.0
 => Verifying /usr/pkgsrc/sysutils/pciutils/patches/patch-aa
 => Applying pkgsrc patch /usr/pkgsrc/sysutils/pciutils/patches/patch-aa
 Hmm...  Looks like a unified diff to me...
 The text leading up to this was:
 --------------------------
 |$NetBSD: patch-aa,v 1.30 2023/05/07 10:20:44 wiz Exp $
 |
 |Adapt the Makefile to make it compliant with pkgsrc.
 |
 |--- Makefile.orig      2023-05-01 12:59:54.000000000 +0000
 |+++ Makefile
 --------------------------
 Patching file Makefile using Plan A...
 Hunk #1 succeeded at 1.
 Hunk #2 succeeded at 12.
 Hunk #3 succeeded at 147.
 Hunk #4 succeeded at 175.
 done
 => Verifying /usr/pkgsrc/sysutils/pciutils/patches/patch-ab
 => Applying pkgsrc patch /usr/pkgsrc/sysutils/pciutils/patches/patch-ab
 Hmm...  Looks like a unified diff to me...
 The text leading up to this was:
 --------------------------
 |$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-11-18 22:15:08.000000000 +0900
 |+++ lib/configure      2022-11-24 18:48:25.439715651 +0900
 --------------------------
 Patching file lib/configure using Plan A...
 Hunk #1 succeeded at 85 (offset 3 lines).
 Hunk #2 succeeded at 329 (offset 9 lines).
 done
 => Verifying /usr/pkgsrc/sysutils/pciutils/patches/patch-ac
 => Applying pkgsrc patch /usr/pkgsrc/sysutils/pciutils/patches/patch-ac
 Hmm...  Looks like a unified diff to me...
 The text leading up to this was:
 --------------------------
 |$NetBSD: patch-ac,v 1.3 2022/05/13 11:41:57 wiz Exp $
 |
 |--- lib/libpci.pc.in.orig      2020-12-06 18:17:21.000000000 +0000
 |+++ lib/libpci.pc.in
 --------------------------
 Patching file lib/libpci.pc.in using Plan A...
 Hunk #1 succeeded at 6.
 done
 => Verifying /usr/pkgsrc/sysutils/pciutils/patches/patch-lib_i386-io-sunos.h
 => Applying pkgsrc patch /usr/pkgsrc/sysutils/pciutils/patches/patch-lib_i386-io-sunos.h
 Hmm...  Looks like a unified diff to me...
 The text leading up to this was:
 --------------------------
 |$NetBSD: patch-lib_i386-io-sunos.h,v 1.2 2021/12/17 20:07:24 maya Exp $
 |
 |Fix assembly syntax to work with clang.
 |
 |--- lib/i386-io-sunos.h.orig   2019-02-13 10:05:03.000000000 +0000
 |+++ lib/i386-io-sunos.h
 --------------------------
 Patching file lib/i386-io-sunos.h using Plan A...
 Hunk #1 succeeded at 26 (offset -1 lines).
 Hunk #2 succeeded at 34 (offset -1 lines).
 Hunk #3 succeeded at 42 (offset -1 lines).
 done
 => Verifying /usr/pkgsrc/sysutils/pciutils/patches/patch-lib_internal.h
 => Applying pkgsrc patch /usr/pkgsrc/sysutils/pciutils/patches/patch-lib_internal.h
 Hmm...  Looks like a unified diff to me...
 The text leading up to this was:
 --------------------------
 |$NetBSD: patch-lib_internal.h,v 1.3 2023/05/07 10:20:44 wiz Exp $
 |
 |no symbol versioning available on SunOS
 |
 |--- lib/internal.h.orig        2023-03-05 13:45:24.000000000 +0000
 |+++ lib/internal.h
 --------------------------
 Patching file lib/internal.h using Plan A...
 Hunk #1 succeeded at 18.
 done
 ===> Creating toolchain wrappers for pciutils-3.10.0
 ===> Configuring for pciutils-3.10.0
 => Fixing library link specification in pkg-config file.
 => Replacing sh interpreter in *.sh.
 INFO: [replace-interpreter] Nothing changed in update-pciids.sh.
 => Adding run-time search paths to pkg-config files.
 => Checking for portability problems in extracted files
 ===> Building for pciutils-3.10.0
 cd lib && ./configure
 Configuring libpci for your system... amd64--netbsd 10.99.3 amd64 netbsd
 Looking for access methods... nbsd-libpci mem-ports ecam dump
 Checking for zlib support... no (set manually)
 Checking for DNS support... yes (auto-detected)
 Checking whether to build a shared library... yes (set manually)
 /usr/pkg/bin/gmake -C lib all
 gmake[1]: Entering directory '/scratch/sysutils/pciutils/work/pciutils-3.10.0/lib'
 gcc -O2 -fPIC -g -fPIC -D_FORTIFY_SOURCE=2 -fstack-clash-protection -g  -c -o init.o init.c
 gcc -O2 -fPIC -g -fPIC -D_FORTIFY_SOURCE=2 -fstack-clash-protection -g  -c -o access.o access.c
 gcc -O2 -fPIC -g -fPIC -D_FORTIFY_SOURCE=2 -fstack-clash-protection -g  -c -o generic.o generic.c
 gcc -O2 -fPIC -g -fPIC -D_FORTIFY_SOURCE=2 -fstack-clash-protection -g  -c -o dump.o dump.c
 gcc -O2 -fPIC -g -fPIC -D_FORTIFY_SOURCE=2 -fstack-clash-protection -g  -c -o names.o names.c
 gcc -O2 -fPIC -g -fPIC -D_FORTIFY_SOURCE=2 -fstack-clash-protection -g  -c -o filter.o filter.c
 gcc -O2 -fPIC -g -fPIC -D_FORTIFY_SOURCE=2 -fstack-clash-protection -g  -c -o names-hash.o names-hash.c
 gcc -O2 -fPIC -g -fPIC -D_FORTIFY_SOURCE=2 -fstack-clash-protection -g  -c -o names-parse.o names-parse.c
 gcc -O2 -fPIC -g -fPIC -D_FORTIFY_SOURCE=2 -fstack-clash-protection -g  -c -o names-net.o names-net.c
 gcc -O2 -fPIC -g -fPIC -D_FORTIFY_SOURCE=2 -fstack-clash-protection -g  -c -o names-cache.o names-cache.c
 gcc -O2 -fPIC -g -fPIC -D_FORTIFY_SOURCE=2 -fstack-clash-protection -g  -c -o names-hwdb.o names-hwdb.c
 gcc -O2 -fPIC -g -fPIC -D_FORTIFY_SOURCE=2 -fstack-clash-protection -g  -c -o params.o params.c
 gcc -O2 -fPIC -g -fPIC -D_FORTIFY_SOURCE=2 -fstack-clash-protection -g  -c -o caps.o caps.c
 gcc -O2 -fPIC -g -fPIC -D_FORTIFY_SOURCE=2 -fstack-clash-protection -g  -c -o mmio-ports.o mmio-ports.c
 gcc -O2 -fPIC -g -fPIC -D_FORTIFY_SOURCE=2 -fstack-clash-protection -g  -c -o ecam.o ecam.c
 gcc -O2 -fPIC -g -fPIC -D_FORTIFY_SOURCE=2 -fstack-clash-protection -g  -c -o nbsd-libpci.o nbsd-libpci.c
 gcc -shared -O2 -fPIC -g -fPIC -D_FORTIFY_SOURCE=2 -fstack-clash-protection -Wl,-zrelro -Wl,-znow -Wl,-R/usr/pkg/lib -Wl,-soname,libpciutils.so.3 -Wl,--version-script=libpci.ver -o libpciutils.so.3.10.0 init.o access.o generic.o dump.o names.o filter.o names-hash.o names-parse.o names-net.o names-cache.o names-hwdb.o params.o caps.o mmio-ports.o ecam.o nbsd-libpci.o -lpci
 sed <libpci.pc.in >libpci.pc -e 's,@PREFIX@,/usr/pkg,' \
         -e 's,@INCDIR@,/usr/pkg/include,' \
         -e 's,@LIBDIR@,/usr/pkg/lib,' \
         -e 's,@IDSDIR@,/usr/pkg/share/pciutils,' \
         -e 's,@VERSION@,3.10.0,' \
         -e 's,@LDLIBS@,,' \
         -e 's,@WITH_LIBS@,-lpci,'
 gmake[1]: Leaving directory '/scratch/sysutils/pciutils/work/pciutils-3.10.0/lib'
 gcc -O2 -fPIC -g -fPIC -D_FORTIFY_SOURCE=2 -fstack-clash-protection -g  -c -o lspci.o lspci.c
 gcc -O2 -fPIC -g -fPIC -D_FORTIFY_SOURCE=2 -fstack-clash-protection -g  -c -o ls-vpd.o ls-vpd.c
 gcc -O2 -fPIC -g -fPIC -D_FORTIFY_SOURCE=2 -fstack-clash-protection -g  -c -o ls-caps.o ls-caps.c
 gcc -O2 -fPIC -g -fPIC -D_FORTIFY_SOURCE=2 -fstack-clash-protection -g  -c -o ls-caps-vendor.o ls-caps-vendor.c
 gcc -O2 -fPIC -g -fPIC -D_FORTIFY_SOURCE=2 -fstack-clash-protection -g  -c -o ls-ecaps.o ls-ecaps.c
 gcc -O2 -fPIC -g -fPIC -D_FORTIFY_SOURCE=2 -fstack-clash-protection -g  -c -o ls-kernel.o ls-kernel.c
 gcc -O2 -fPIC -g -fPIC -D_FORTIFY_SOURCE=2 -fstack-clash-protection -g  -c -o ls-tree.o ls-tree.c
 gcc -O2 -fPIC -g -fPIC -D_FORTIFY_SOURCE=2 -fstack-clash-protection -g  -c -o ls-map.o ls-map.c
 gcc -O2 -fPIC -g -fPIC -D_FORTIFY_SOURCE=2 -fstack-clash-protection -g  -c -o common.o common.c
 gcc -Wl,-zrelro -Wl,-znow -Wl,-R/usr/pkg/lib  lspci.o ls-vpd.o ls-caps.o ls-caps-vendor.o ls-ecaps.o ls-kernel.o ls-tree.o ls-map.o common.o lib/libpciutils.so.3.10.0  -o lspci
 gcc -O2 -fPIC -g -fPIC -D_FORTIFY_SOURCE=2 -fstack-clash-protection -g  -c -o setpci.o setpci.c
 gcc -Wl,-zrelro -Wl,-znow -Wl,-R/usr/pkg/lib  setpci.o common.o lib/libpciutils.so.3.10.0  -o setpci
 gcc -O2 -fPIC -g -fPIC -D_FORTIFY_SOURCE=2 -fstack-clash-protection -g  -c -o example.o example.c
 gcc -Wl,-zrelro -Wl,-znow -Wl,-R/usr/pkg/lib  example.o lib/libpciutils.so.3.10.0  -o example
 M=`echo 2023-05-01 | sed 's/-01-/-January-/;s/-02-/-February-/;s/-03-/-March-/;s/-04-/-April-/;s/-05-/-May-/;s/-06-/-June-/;s/-07-/-July-/;s/-08-/-August-/;s/-09-/-September-/;s/-10-/-October-/;s/-11-/-November-/;s/-12-/-December-/;s/\(.*\)-\(.*\)-\(.*\)/\3 \2 \1/'` ; sed <lspci.man >lspci.8 "s/@TODAY@/$M/;s/@VERSION@/pciutils-3.10.0/;s#@IDSDIR@#/usr/pkg/share/pciutils#;s#@PCI_IDS@#pci.ids#"
 Makefile:131: warning: pattern recipe did not update peer target 'lspci.5'.
 Makefile:131: warning: pattern recipe did not update peer target 'lspci.7'.
 M=`echo 2023-05-01 | sed 's/-01-/-January-/;s/-02-/-February-/;s/-03-/-March-/;s/-04-/-April-/;s/-05-/-May-/;s/-06-/-June-/;s/-07-/-July-/;s/-08-/-August-/;s/-09-/-September-/;s/-10-/-October-/;s/-11-/-November-/;s/-12-/-December-/;s/\(.*\)-\(.*\)-\(.*\)/\3 \2 \1/'` ; sed <setpci.man >setpci.8 "s/@TODAY@/$M/;s/@VERSION@/pciutils-3.10.0/;s#@IDSDIR@#/usr/pkg/share/pciutils#;s#@PCI_IDS@#pci.ids#"
 Makefile:131: warning: pattern recipe did not update peer target 'setpci.5'.
 Makefile:131: warning: pattern recipe did not update peer target 'setpci.7'.
 M=`echo 2023-05-01 | sed 's/-01-/-January-/;s/-02-/-February-/;s/-03-/-March-/;s/-04-/-April-/;s/-05-/-May-/;s/-06-/-June-/;s/-07-/-July-/;s/-08-/-August-/;s/-09-/-September-/;s/-10-/-October-/;s/-11-/-November-/;s/-12-/-December-/;s/\(.*\)-\(.*\)-\(.*\)/\3 \2 \1/'` ; sed <pcilib.man >pcilib.7 "s/@TODAY@/$M/;s/@VERSION@/pciutils-3.10.0/;s#@IDSDIR@#/usr/pkg/share/pciutils#;s#@PCI_IDS@#pci.ids#"
 Makefile:131: warning: pattern recipe did not update peer target 'pcilib.5'.
 Makefile:131: warning: pattern recipe did not update peer target 'pcilib.8'.
 M=`echo 2023-05-01 | sed 's/-01-/-January-/;s/-02-/-February-/;s/-03-/-March-/;s/-04-/-April-/;s/-05-/-May-/;s/-06-/-June-/;s/-07-/-July-/;s/-08-/-August-/;s/-09-/-September-/;s/-10-/-October-/;s/-11-/-November-/;s/-12-/-December-/;s/\(.*\)-\(.*\)-\(.*\)/\3 \2 \1/'` ; sed <pci.ids.man >pci.ids.5 "s/@TODAY@/$M/;s/@VERSION@/pciutils-3.10.0/;s#@IDSDIR@#/usr/pkg/share/pciutils#;s#@PCI_IDS@#pci.ids#"
 Makefile:131: warning: pattern recipe did not update peer target 'pci.ids.7'.
 Makefile:131: warning: pattern recipe did not update peer target 'pci.ids.8'.
 sed <update-pciids.sh >update-pciids "s@^DEST=.*@DEST=/usr/pkg/share/pciutils/pci.ids@;s@^PCI_COMPRESSED_IDS=.*@PCI_COMPRESSED_IDS=@"
 chmod +x update-pciids
 M=`echo 2023-05-01 | sed 's/-01-/-January-/;s/-02-/-February-/;s/-03-/-March-/;s/-04-/-April-/;s/-05-/-May-/;s/-06-/-June-/;s/-07-/-July-/;s/-08-/-August-/;s/-09-/-September-/;s/-10-/-October-/;s/-11-/-November-/;s/-12-/-December-/;s/\(.*\)-\(.*\)-\(.*\)/\3 \2 \1/'` ; sed <update-pciids.man >update-pciids.8 "s/@TODAY@/$M/;s/@VERSION@/pciutils-3.10.0/;s#@IDSDIR@#/usr/pkg/share/pciutils#;s#@PCI_IDS@#pci.ids#"
 Makefile:131: warning: pattern recipe did not update peer target 'update-pciids.5'.
 Makefile:131: warning: pattern recipe did not update peer target 'update-pciids.7'.
 ===> Installing for pciutils-3.10.0
 => Generating pre-install file lists
 /usr/pkg/bin/gmake -C lib all
 gmake[1]: Entering directory '/scratch/sysutils/pciutils/work/pciutils-3.10.0/lib'
 gmake[1]: Nothing to be done for 'all'.
 gmake[1]: Leaving directory '/scratch/sysutils/pciutils/work/pciutils-3.10.0/lib'
 /usr/bin/install -d -o pbulk -g builder -m 755 /scratch/sysutils/pciutils/work/.destdir/usr/pkg/lib
 /usr/bin/install -c -o pbulk -g builder -m 755 lib/libpciutils.so.3.10.0 /scratch/sysutils/pciutils/work/.destdir/usr/pkg/lib
 /usr/bin/install -d -o pbulk -g builder -m 755 /scratch/sysutils/pciutils/work/.destdir/usr/pkg/bin
 /usr/bin/install -d -o pbulk -g builder -m 755 /scratch/sysutils/pciutils/work/.destdir/usr/pkg/sbin
 /usr/bin/install -d -o pbulk -g builder -m 755 /scratch/sysutils/pciutils/work/.destdir/usr/pkg/share/pciutils
 /usr/bin/install -d -o pbulk -g builder -m 755 /scratch/sysutils/pciutils/work/.destdir/usr/pkg/man/man8
 /usr/bin/install -d -o pbulk -g builder -m 755 /scratch/sysutils/pciutils/work/.destdir/usr/pkg/man/man7
 /usr/bin/install -d -o pbulk -g builder -m 755 /scratch/sysutils/pciutils/work/.destdir//usr/pkg/man/man5
 /usr/bin/install -c  -o pbulk -g builder -m 755 lspci /scratch/sysutils/pciutils/work/.destdir/usr/pkg/sbin
 /usr/bin/install -c  -o pbulk -g builder -m 755 setpci /scratch/sysutils/pciutils/work/.destdir/usr/pkg/sbin
 /usr/bin/install -c -o pbulk -g builder -m 755 update-pciids /scratch/sysutils/pciutils/work/.destdir/usr/pkg/sbin
 /usr/bin/install -c -o pbulk -g builder -m 644 pci.ids /scratch/sysutils/pciutils/work/.destdir/usr/pkg/share/pciutils
 for fn in lspci.8 setpci.8 update-pciids.8; do \
         /usr/bin/install -c -o pbulk -g builder -m 644 $fn /scratch/sysutils/pciutils/work/.destdir/usr/pkg/man/man8;       \
 done
 /usr/bin/install -c -o pbulk -g builder -m 644 pcilib.7 /scratch/sysutils/pciutils/work/.destdir/usr/pkg/man/man7
 /usr/bin/install -c -o pbulk -g builder -m 644 pci.ids.5 /scratch/sysutils/pciutils/work/.destdir/usr/pkg/man/man5
 ln -sf libpciutils.so.3.10.0 /scratch/sysutils/pciutils/work/.destdir/usr/pkg/lib/libpciutils.so.3
 /usr/bin/install -d -o pbulk -g builder -m 755 /scratch/sysutils/pciutils/work/.destdir/usr/pkg/include/pci
 /usr/bin/install -d -o pbulk -g builder -m 755 /scratch/sysutils/pciutils/work/.destdir/usr/pkg/lib/pkgconfig
 /usr/bin/install -c -o pbulk -g builder -m 644 lib/config.h lib/header.h lib/pci.h lib/types.h /scratch/sysutils/pciutils/work/.destdir/usr/pkg/include/pci
 /usr/bin/install -c -o pbulk -g builder -m 644 lib/libpci.pc /scratch/sysutils/pciutils/work/.destdir/usr/pkg/lib/pkgconfig
 ln -sf libpciutils.so.3.10.0 /scratch/sysutils/pciutils/work/.destdir/usr/pkg/lib/libpciutils.so.3
 ln -sf libpciutils.so.3 /scratch/sysutils/pciutils/work/.destdir/usr/pkg/lib/libpciutils.so
 => Automatic manual page handling
 => Generating post-install file lists
 => Checking file-check results for pciutils-3.10.0
 => Checking for non-existent script interpreters in pciutils-3.10.0
 => Checking file permissions in pciutils-3.10.0
 warning: /scratch: group-writable directory.
 0 errors and 1 warnings.
 => Checking for PIE in pciutils-3.10.0
 => Checking for RELRO in pciutils-3.10.0
 => Checking for missing run-time search paths in pciutils-3.10.0
 => Checking for work-directory references in pciutils-3.10.0
 => Creating binary package /scratch/sysutils/pciutils/work/.packages/pciutils-3.10.0.tgz
 ===> Building binary package for pciutils-3.10.0
 => Creating binary package /packages/All/pciutils-3.10.0.tgz
 


Home | Main Index | Thread Index | Old Index