Date: Tue, 16 Mar 2021 18:32:42 +0000 From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 254342] devel/valgrind-devel: duplicate file listing on i386 Message-ID: <bug-254342-7788@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D254342 Bug ID: 254342 Summary: devel/valgrind-devel: duplicate file listing on i386 Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: ports-bugs@FreeBSD.org Reporter: dim@FreeBSD.org CC: pjfloyd@wanadoo.fr Flags: maintainer-feedback?(pjfloyd@wanadoo.fr) CC: pjfloyd@wanadoo.fr Created attachment 223333 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D223333&action= =3Dedit Fix pkg-plist by using %%AMD64%% and %%X86%% macros Attempting to install valgrind-devel on i386 after ports r568304 fails with: =3D=3D=3D> Installing for valgrind-devel-3.17.0.g20210219,1 =3D=3D=3D> Checking if valgrind-devel is already installed =3D=3D=3D> Registering installation for valgrind-devel-3.17.0.g20210219,1 pkg-static: duplicate file listing: /usr/local/include/valgrind/libvex_guest_x86.h, ignoring pkg-static: duplicate file listing: /usr/local/include/valgrind/vki/vki-machine-types-x86-freebsd.h, ignoring pkg-static: duplicate file listing: /usr/local/include/valgrind/vki/vki-posixtypes-x86-linux.h, ignoring pkg-static: duplicate file listing: /usr/local/include/valgrind/vki/vki-scnums-x86-linux.h, ignoring pkg-static: duplicate file listing: /usr/local/include/valgrind/vki/vki-x86-freebsd.h, ignoring pkg-static: duplicate file listing: /usr/local/include/valgrind/vki/vki-x86-linux.h, ignoring pkg-static: Unable to access file /wrkdirs/usr/ports/devel/valgrind-devel/work/stage/usr/local/lib/valgrind/x= 86-avx-coresse-valgrind.xml:No such file or directory pkg-static: Unable to access file /wrkdirs/usr/ports/devel/valgrind-devel/work/stage/usr/local/lib/valgrind/x= 86-avx-coresse.xml:No such file or directory pkg-static: Unable to access file /wrkdirs/usr/ports/devel/valgrind-devel/work/stage/usr/local/lib/valgrind/x= 86-avx-linux-valgrind.xml:No such file or directory pkg-static: Unable to access file /wrkdirs/usr/ports/devel/valgrind-devel/work/stage/usr/local/lib/valgrind/x= 86-avx-linux.xml:No such file or directory pkg-static: Unable to access file /wrkdirs/usr/ports/devel/valgrind-devel/work/stage/usr/local/lib/valgrind/x= 86-coresse-valgrind.xml:No such file or directory pkg-static: Unable to access file /wrkdirs/usr/ports/devel/valgrind-devel/work/stage/usr/local/lib/valgrind/x= 86-linux-valgrind.xml:No such file or directory pkg-static: duplicate file listing: /usr/local/lib/valgrind/cachegrind-x86-freebsd, ignoring pkg-static: duplicate file listing: /usr/local/lib/valgrind/callgrind-x86-freebsd, ignoring pkg-static: duplicate file listing: /usr/local/lib/valgrind/dhat-x86-freebs= d, ignoring pkg-static: duplicate file listing: /usr/local/lib/valgrind/drd-x86-freebsd, ignoring pkg-static: duplicate file listing: /usr/local/lib/valgrind/exp-bbv-x86-freebsd, ignoring pkg-static: duplicate file listing: /usr/local/lib/valgrind/getoff-x86-free= bsd, ignoring pkg-static: duplicate file listing: /usr/local/lib/valgrind/helgrind-x86-freebsd, ignoring pkg-static: duplicate file listing: /usr/local/lib/valgrind/lackey-x86-free= bsd, ignoring pkg-static: duplicate file listing: /usr/local/lib/valgrind/libcoregrind-x86-freebsd.a, ignoring pkg-static: duplicate file listing: /usr/local/lib/valgrind/libgcc-sup-x86-freebsd.a, ignoring pkg-static: duplicate file listing: /usr/local/lib/valgrind/libreplacemalloc_toolpreload-x86-freebsd.a, ignoring pkg-static: duplicate file listing: /usr/local/lib/valgrind/libvex-x86-freebsd.a, ignoring pkg-static: duplicate file listing: /usr/local/lib/valgrind/libvexmultiarch-x86-freebsd.a, ignoring pkg-static: duplicate file listing: /usr/local/lib/valgrind/massif-x86-free= bsd, ignoring pkg-static: duplicate file listing: /usr/local/lib/valgrind/memcheck-x86-freebsd, ignoring pkg-static: duplicate file listing: /usr/local/lib/valgrind/none-x86-freebs= d, ignoring pkg-static: duplicate file listing: /usr/local/lib/valgrind/vgpreload_core-x86-freebsd.so, ignoring pkg-static: duplicate file listing: /usr/local/lib/valgrind/vgpreload_dhat-x86-freebsd.so, ignoring pkg-static: duplicate file listing: /usr/local/lib/valgrind/vgpreload_drd-x86-freebsd.so, ignoring pkg-static: duplicate file listing: /usr/local/lib/valgrind/vgpreload_helgrind-x86-freebsd.so, ignoring pkg-static: duplicate file listing: /usr/local/lib/valgrind/vgpreload_massif-x86-freebsd.so, ignoring pkg-static: duplicate file listing: /usr/local/lib/valgrind/vgpreload_memcheck-x86-freebsd.so, ignoring *** Error code 1 This is because the pkg-plist uses %%ARCH%% to expand for the build arch, b= ut the *-x86-* files are also listed separately.=20 I propose to fix this by prefixing the amd64 and x86 lines with %%AMD64%% a= nd %%X86%%, and ditching the %%ARCH% macro. There would be three variants then: 1) amd64 with 32-bit compat on: %%AMD64%% and %%X86%% empty -> both amd64 and x86 files get included 2) amd64 with 32-bit compat off: %%AMD64%% empty and %%X64%% set to @comment -> only amd64 files get included, not x86 3) i386: %%AMD64%% set to @comment, %%X86%% empty -> only x86 files get included, not amd64 --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-254342-7788>