package dependencies broken?

Checking pkg is required by someone

Code:
# pkg info -r libffi33
libffi33-3.3_2:

Trying to uninstall

Code:
# pkg delete libffi33-3.3_2
Checking integrity... done (0 conflicting)
Deinstallation has been requested for the following 11 packages (of 0 packages in the universe):

Installed packages to be REMOVED:
        libffi33: 3.3_2
        py38-bcrypt: 3.2.0
        py38-carbon: 1.1.8
        py38-cffi: 1.15.0
        py38-cryptography: 3.3.2
        py38-graphite-web: 1.1.8_1
        py38-openssl: 20.0.1,1
        py38-service_identity: 18.1.0
        py38-twisted: 22.1.0
        py38-txamqp: 0.8.2
        py38-urllib3: 1.26.8,1

Number of packages to be removed: 11

The operation will free 47 MiB.

Proceed with deinstalling packages? [y/N]:

Wtf?! Why pkg wants to delete these 11 packages?
 
Yes, because these other packages depend on the one you want to remove. You are supposed to read the output from pkg, and make an informed and intelligent decision whether you want to delete these other packages too.

Consider the alternatives: If you delete a package that other things depend on (that other things need to function), those things would now be broken. Doesn't that sound worse?
 
Yes, because these other packages depend on the one you want to remove.

But how am I supposed to know that they depend on it? pkg_info says that nothing depends on the libffi33 package. Also I checked the packages that are removed with it, they don't depend on it either.

This causes scripts like pkg_cutleaves to work incorrectly
 
For your information. If i remove libffi it takes with it 1519 packages...
I was surprised myself.
So I'm just gone live with libffi it's nice,fine and sweet.
Instead of pkg_cutleaves run "pkg autoremove". ?
 
How did you check that? Using pkg info -r?
yes. I later found out that libffi33 provides the shared lib that other packages require.
Why is this done by some separate mechanism and not shown in the dependencies?
Code:
# pkg info -b libffi33
libffi33-3.3_2:
        libffi.so.7

 # pkg info -B py38-cffi
py38-cffi-1.15.0:
        libffi.so.7


Code:
 # pkg check -Bda
Checking all packages: 100%
no effect
 
There is indeed some weirdness.
When i do "pkg remove" it wants to remove a lot of packages.
But i can't list them with a pkg command...
 
Back
Top