On 2025-03-04 16:58, Harry Schmalzbauer wrote:
On 2025-03-04 16:40, Harry Schmalzbauer wrote:
On 2025-03-04 13:34, Gleb Popov wrote:
On Tue, Mar 4, 2025 at 1:56 PM Harry Schmalzbauer <[email protected]> wrote:

Today I noticed, that lang/gcc13 gets post hoc registered as dependency
for completely unrelated packages!

This is the provides/requires mechanism of pkg, which started to have
a broader effect recently. It is still somewhat WIP, see
https://reviews.freebsd.org/D49136

Thanks for your help, highly appreciated!


Why/how does that happen?  (note that nothing changed between 'pkg
install gcc13' and 'pkg delete gcc13' - but gcc13 wants to doom 222
unrelated packages!)

Can you please provide an output of following commands?

pkg query %b gcc13


Please note that due to math/openblas buidlfailure, I switched to GCC_DEFAULT=14 (https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=285140), and interestingly, this pkg(1) issue affects gcc14 the same way.

pkg query %b gcc14
libubsan.so.1:32
libubsan.so.1
libstdc++.so.6:32
libstdc++.so.6
libquadmath.so.0:32
libquadmath.so.0
liblto_plugin.so
libitm.so.1:32
libitm.so.1
libgomp.so.1:32
libgomp.so.1
libgfortran.so.5:32
libgfortran.so.5
libgccjit.so.0
libgcc_s.so.1:32
libgcc_s.so.1
libcp1plugin.so.0
libcc1plugin.so.0
libcc1.so.0
libatomic.so.1:32
libatomic.so.1
libasan.so.8:32
libasan.so.8

and

pkg query %B <any packages that gets removed when gcc13 is removed>

...

Seems my packages were created with wrong shared lib requirement:
To be deleted: flac
 'pkg query %B flac':
                libthr.so.3
                libogg.so.0
                libm.so.5
                libgcc_s.so.1
                libcxxrt.so.1
                libc.so.7
                libc++.so.1
  Matching $gcc_provided_shlibs:
                libgcc_s.so.1:32
                libgcc_s.so.1

pkg info -F ./pkg/FreeBSD:14:amd64/OPTS:x11pulsemedia:haswell/All/flac-1.5.0,1.pkg
flac-1.5.0,1
Name           : flac
Version        : 1.5.0,1
Origin         : audio/flac
Architecture   : FreeBSD:14:amd64
Prefix         : /usr/local
Categories     : audio
Licenses       : BSD3CLAUSE and GFDL and GPLv2 and LGPL21
Maintainer     : [email protected]
WWW            : https://www.xiph.org/flac/
Comment        : Free lossless audio codec
Options        :
        DOCS           : on
Shared Libs required:
        libthr.so.3
        libm.so.5
        libc.so.7
        libc++.so.1
        libcxxrt.so.1
        libgcc_s.so.1
        libogg.so.0
Shared Libs provided:
        libFLAC++.so.11
        libFLAC.so.14
Annotations    :
        cpe            : cpe:2.3:a:flac_project:flac:1.5.0:::::freebsd14:x64
        FreeBSD_version: 1402501
Flat size      : 7.38MiB


No idea why 'ibgcc_s.so.1' is listed in flac...

Thanks for your help, I guess I have to investigate what went wrong beforehand... Unfortunately no time this week. My build environment used to work quiet well until recently.  Will look into D49136 as soon as time permits.
For now, I need to postpone and consider it to be a local problem.


Thanks,

-harry


Reply via email to