pkgsrc-Bugs archive

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

pkg/58857: gcc10-libs REQUIRES libraries so it cannot be added wth new pkg_add



>Number:         58857
>Category:       pkg
>Synopsis:       gcc10-libs REQUIRES libraries so it cannot be added wth new pkg_add
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Nov 27 15:55:00 +0000 2024
>Originator:     Stephen Borrill
>Release:        pkgsrc-2024Q3
>Organization:
Precedence Technologies Ltd
>Environment:
etBSD  9.4_STABLE NetBSD 9.4_STABLE (XEN3_DOMU) #0: Thu May 16 12:24:02 UTC 2024  mkrepro%mkrepro.NetBSD.org@localhost:/usr/src/sys/arch/xen/compile/XEN3_DOMU amd64
>Description:
On NetBSD 9.4 I'm doing a limited pkg bulk build.

mk.conf includes the follows to allow GCC 10 to be built and used:

.if \\
        empty(PKGPATH:Mdevel/gmake) && \\
        empty(PKGPATH:Mlang/gcc10) && \\
        empty(PKGPATH:Mlang/gcc10-libs) && \\
        empty(PKGPATH:Mlang/perl5) && \\
        empty(PKGPATH:Mpkgtools/cwrappers) && \\
        empty(PKGPATH:Mpkgtools/digest) && \\
        empty(PKGPATH:Mpkgtools/mktools) && \\
        empty(PKGPATH:Mtextproc/gsed)
GCC_REQD=10
.endif
PYTHON_VERSION_DEFAULT=312

Packages to build are:
editors/joe
net/chrony
net/rsync
shells/tcsh
sysutils/xe-guest-utilities

pbulk fails to build py312-flit_core with the following in depends.log:

pkg_add: Missing required library: /usr/pkg/gcc10//lib/./libgcc_s.so.1
pkg_add: Missing required library: /usr/pkg/gcc10//lib/./libquadmath.so.0
pkg_add: Missing required library: /usr/pkg/gcc10//lib/./libstdc++.so.7
pkg_add: Can't install dependency gcc10-libs>=10.2.0
pkg_add: Expected dependency gcc10-libs>=10.2.0 still missing
pkg_add: Can't install dependency libffi>=3.4.2nb3
pkg_add: Expected dependency libffi>=3.4.2nb3 still missing
pkg_add: 1 package addition failed

This is in response to running:
PKG_PATH=/usr/pkgsrc/packages.base/All /usr/pkg_bulk/sbin/pkg_add -K /usr/pkg/pkgdb digest-20220214 mktools-20220614 cwrappers-20220403 python312-3.12.6

More specifically, this is when trying to install the gcc10-libs package with pkg_add bootstrapped by pbulk:

# PKG_PATH=/usr/pkgsrc/packages.base/All /usr/pkg_bulk/sbin/pkg_add -K /usr/pkg/pkgdb gcc10-libs
pkg_add: Missing required library: /usr/pkg/gcc10//lib/./libgcc_s.so.1
pkg_add: Missing required library: /usr/pkg/gcc10//lib/./libquadmath.so.0
pkg_add: Missing required library: /usr/pkg/gcc10//lib/./libstdc++.so.7
pkg_add: 1 package addition failed

pkg_add in base adds it just fine:
# PKG_PATH=/usr/pkgsrc/packages.base/All /usr/sbin/pkg_add -K /usr/pkg/pkgdb gcc10-libs
# echo $?
0

Versions as follows:
# /usr/pkg_bulk/sbin/pkg_add -V
20240826

# /usr/sbin/pkg_add -V
20201218

pkg_info -B gcc10-libs shows:

REQUIRES=/usr/pkg/gcc10//lib/./libgcc_s.so.1
REQUIRES=/usr/pkg/gcc10//lib/./libquadmath.so.0
REQUIRES=/usr/pkg/gcc10//lib/./libstdc++.so.7

This is also the same in TNF bulk builds, e.g. http://cdn.netbsd.org/pub/pkgsrc/packages/NetBSD/amd64/9.4/All/gcc10-libs-10.5.0nb3.tgz

It appears therefore that successful bulk builds only work if one of the following is true:

1) using old pkg_install
2) using pkg_install in base
3) GCC_REQD=10 is not being set

For some reason, this seems to be particularly triggered by packages that depend on python

>How-To-Repeat:
1) bootstrap pbulk from pkgsrc-2024Q3 on NetBSD 9.4
2) Add the mk.conf fragment above to switch to GCC 10
3) Bulk build a restricted pkg list that includes a package that depends on python e.g. devel/py-flit_core

>Fix:
No fix


Home | Main Index | Thread Index | Old Index