NetBSD Problem Report #57396

From martin@aprisoft.de  Sun May  7 19:57:18 2023
Return-Path: <martin@aprisoft.de>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id B85E51A923A
	for <gnats-bugs@gnats.NetBSD.org>; Sun,  7 May 2023 19:57:18 +0000 (UTC)
Message-Id: <20230507195709.6E49A5CC81D@emmas.aprisoft.de>
Date: Sun,  7 May 2023 21:57:09 +0200 (CEST)
From: martin@NetBSD.org
Reply-To: martin@NetBSD.org
To: gnats-bugs@NetBSD.org
Subject: sysutils/pciutils fails to build on NetBSD -current
X-Send-Pr-Version: 3.95

>Number:         57396
>Category:       pkg
>Synopsis:       sysutils/pciutils fails to build on NetBSD -current
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun May 07 20:00:01 +0000 2023
>Closed-Date:    Mon May 08 02:12:10 +0000 2023
>Last-Modified:  Mon May 08 02:12:10 +0000 2023
>Originator:     Martin Husemann
>Release:        NetBSD 10.99.4
>Organization:
The NetBSD Foundation, Inc.
>Environment:
System: NetBSD martins.aprisoft.de 10.99.4 NetBSD 10.99.4 (GENERIC) #168: Sun Apr 30 14:03:53 CEST 2023 martin@martins.aprisoft.de:/usr/src/sys/arch/amd64/compile/GENERIC amd64
Architecture: x86_64
Machine: amd64
>Description:

Build fails with:

gmake[1]: Leaving directory '/usr/pkgobj/sysutils/pciutils/work/pciutils-3.10.0/lib'
/usr/bin/install -d -o root -g wheel -m 755 /usr/pkgobj/sysutils/pciutils/work/.destdir/usr/pkg/lib
/usr/bin/install -c -o root -g wheel -m 755 lib/libpciutils.so.3.10.0 /usr/pkgobj/sysutils/pciutils/work/.destdir/usr/pkg/lib
/usr/bin/install -d -o root -g wheel -m 755 /usr/pkgobj/sysutils/pciutils/work/.destdir/usr/pkg/bin
/usr/bin/install -d -o root -g wheel -m 755 /usr/pkgobj/sysutils/pciutils/work/.destdir/usr/pkg/sbin
/usr/bin/install -d -o root -g wheel -m 755 /usr/pkgobj/sysutils/pciutils/work/.destdir/usr/pkg/share/pciutils
/usr/bin/install -d -o root -g wheel -m 755 /usr/pkgobj/sysutils/pciutils/work/.destdir/usr/pkg/man/man8
/usr/bin/install -d -o root -g wheel -m 755 /usr/pkgobj/sysutils/pciutils/work/.destdir/usr/pkg/man/man7
/usr/bin/install -d -o root -g wheel -m 755 /usr/pkgobj/sysutils/pciutils/work/.destdir//usr/pkg/man/man5
/usr/bin/install -c -s -o root -g wheel -m 755 lspci /usr/pkgobj/sysutils/pciutils/work/.destdir/usr/pkg/sbin
install: Cannot execute -s: No such file or directory
install: stripping /usr/pkgobj/sysutils/pciutils/work/.destdir/usr/pkg/sbin/lspci: No such file or directory
gmake: *** [Makefile:156: install] Error 1


>How-To-Repeat:
s/a

>Fix:
n/a

>Release-Note:

>Audit-Trail:
From: Thomas Klausner <wiz@NetBSD.org>
To: NetBSD bugtracking <gnats-bugs@NetBSD.org>
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 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

From: David Holland <dholland-pbugs@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/57396: sysutils/pciutils fails to build on NetBSD -current
Date: Mon, 8 May 2023 02:04:25 +0000

 On Sun, May 07, 2023 at 08:45:02PM +0000, Thomas Klausner wrote:
  >  /usr/bin/install -c  -o pbulk -g builder -m 755 lspci /scratch/sysutils/pc$
                        ^^

 For Martin (and me too) there's an -s in there when it fails. It fails
 because the makefile sets STRIP to -s (which is no longer used after
 the makefile patch) and /usr/bin/install -s uses $STRIP as the path
 for strip(1).

 Fixing.

 -- 
 David A. Holland
 dholland@netbsd.org

From: "David A. Holland" <dholland@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/57396 CVS commit: pkgsrc/sysutils/pciutils
Date: Mon, 8 May 2023 02:06:37 +0000

 Module Name:	pkgsrc
 Committed By:	dholland
 Date:		Mon May  8 02:06:37 UTC 2023

 Modified Files:
 	pkgsrc/sysutils/pciutils: distinfo
 	pkgsrc/sysutils/pciutils/patches: patch-aa

 Log Message:
 sysutils/pciutils: fix build

 If pkgsrc is configured to install with -s to strip, leftover settings
 in the makefile were causing /usr/bin/install to try to exec "-s" as
 the strip program. Patch out those leftovers.

 PR 57396


 To generate a diff of this commit:
 cvs rdiff -u -r1.44 -r1.45 pkgsrc/sysutils/pciutils/distinfo
 cvs rdiff -u -r1.30 -r1.31 pkgsrc/sysutils/pciutils/patches/patch-aa

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->closed
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Mon, 08 May 2023 02:12:10 +0000
State-Changed-Why:
fixed


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.