pkgsrc-Bugs archive

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

pkg/57715: gcc packages in x86_64/9.x_2023Q3 spuriously have REQUIRES=/usr/lib/libstdc++.so.7



>Number:         57715
>Category:       pkg
>Synopsis:       gcc packages in x86_64/9.x_2023Q3 spuriously have REQUIRES=/usr/lib/libstdc++.so.7
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Nov 21 03:35:01 +0000 2023
>Originator:     Taylor R Campbell
>Release:        x86_64/9.x_2023Q3
>Organization:
The NetBSD Pkgbuildation
>Environment:
>Description:
The gcc packages in the x86_64 package repository for 9.x from the 2023Q3 branch have been built with spurious REQUIRES=/usr/lib/libstdc++.so.7, making them impossible to install.

The amd64-nb9 package builder has some bizarre symlinks in /chroot/usr/lib that might explain this, although I don't know why these symlinks exist:

amd64-nb9$ cd /chroot/slave1/usr/lib && ls -ld *libstdc++*
-r--r--r--  1 root  wheel   4564266 May 30  2020 libstdc++.a
lrwxr-xr-x  1 root  wheel        16 May 30  2020 libstdc++.so -> libstdc++.so.9.0
lrwxr-xr-x  1 root  wheel        43 Apr  8  2022 libstdc++.so.5 -> /usr/pkg/emul/netbsd/usr/lib/libstdc++.so.5
lrwxr-xr-x  1 root  wheel        45 Apr  8  2022 libstdc++.so.5.0 -> /usr/pkg/emul/netbsd/usr/lib/libstdc++.so.5.0
lrwxr-xr-x  1 root  wheel        43 Apr 24  2022 libstdc++.so.6 -> /usr/pkg/emul/netbsd/usr/lib/libstdc++.so.6
lrwxr-xr-x  1 root  wheel        45 Apr 24  2022 libstdc++.so.6.0 -> /usr/pkg/emul/netbsd/usr/lib/libstdc++.so.6.0
lrwxr-xr-x  1 root  wheel        16 Mar 12  2017 libstdc++.so.7 -> libstdc++.so.7.3
lrwxr-xr-x  1 root  wheel        45 Apr  8  2022 libstdc++.so.7.1 -> /usr/pkg/emul/netbsd/usr/lib/libstdc++.so.7.1
-r--r--r--  1 root  wheel   1318682 Mar 12  2017 libstdc++.so.7.3
lrwxr-xr-x  1 root  wheel        43 Mar 30  2022 libstdc++.so.8 -> /usr/pkg/emul/netbsd/usr/lib/libstdc++.so.8
lrwxr-xr-x  1 root  wheel        45 Mar 30  2022 libstdc++.so.8.0 -> /usr/pkg/emul/netbsd/usr/lib/libstdc++.so.8.0
lrwxr-xr-x  1 root  wheel        16 May 30  2020 libstdc++.so.9 -> libstdc++.so.9.0
-r--r--r--  1 root  wheel   2042576 May 30  2020 libstdc++.so.9.0
-r--r--r--  1 root  wheel   4813338 May 30  2020 libstdc++_p.a
-r--r--r--  1 root  wheel  14850750 Mar 12  2017 libstdc++_pic.a

My best guess is that the libstdc++.so.7.3 symlink is a relic of a former netbsd-8 installation -- and for some reason we're not using a clean netbsd-9 chroot in the builder.  I have no idea what the /usr/pkg/emul symlinks are doing in /usr/lib.
>How-To-Repeat:
pkg_info -B https://cdn.NetBSD.org/pub/pkgsrc/packages/NetBSD/x86_64/9.0_2023Q3/All/gcc13-13.2.0.tgz

(or pkg_add and watch it fail)
>Fix:
Yes, please!

1. Rebuild the packages in a clean chroot.
2. Figure out why libstdc++.so.7 is leaking into the gcc packages even if the chroot isn't a clean netbsd-9 install -- after all, users might reasonably have upgraded from netbsd-8.  The libstdc++.so symlink points to libstdc++.so.9.0, so it shouldn't be getting picked up here.



Home | Main Index | Thread Index | Old Index