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

If I install packages of which none depends on gcc13 (by pkg(1))
and install gcc13 afterwards (via pkg(1))
the previously installed dependency free packages suddenly seem to have a dependency on gcc13 .

Never seen this problem before updating to pkg(1) >1.21.3.


Steps to reproduce:

cd /usr/ports/inoffical/mymetadesktopport && env USE_PACKAGE_DEPENDS=1 make

pkg info | wc -l
     652
pkg info | grep -i  gcc
gccmakedep-1.0.4               Create dependencies in makefiles using 'gcc -M'


At this point, resolving run-dependencies for inoffical/mymetadesktopport results in 652 installed ports without gcc13.


pkg install gcc13
pkg: Insufficient privileges to install packages
Trying again as 'root':
Updating localrepo_x86-64-v3 repository catalogue...
localrepo_x86-64-v3 repository is up to date.
All repositories are up to date.
Updating database digests format: 100%
Checking integrity... done (0 conflicting)
The following 1 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
        gcc13: 13.3.0

Number of packages to be installed: 1

The process will require 321 MiB more space.

Proceed with this action? [y/N]: y
[1/1] Installing gcc13-13.3.0...
[1/1] Extracting gcc13-13.3.0: 100%


At this point, gcc13 was installed and nothing else changed!
See what happens if I want to revert the last step, ie remove gcc13 immediately afterwards again:

pkg delete gcc13

Checking integrity... done (0 conflicting)
Deinstallation has been requested for the following 222 packages (of 0 packages in the universe):

Installed packages to be REMOVED:
        7-zip: 24.09
        Imath: 3.1.12
        abseil: 20250127.0
:
:
:
 xscreensaver: 6.09
        xsnow: 3.8.4
        xv: 6.0.2

Number of packages to be removed: 222

The operation will free 5 GiB.

Proceed with deinstalling packages? [y/N]:


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!)


Thanks in advance,

-harry



Reply via email to