freebsd / pkg

Package management tool for FreeBSD. Help at #pkg on Libera Chat or pkg@FreeBSD.org
Other
746 stars 279 forks source link

pkg autoremove removes a shared lib dependency #1639

Open mariancerny opened 6 years ago

mariancerny commented 6 years ago

When I install vim from my portbuild machine it installs gettext-runtime as well:

# pkg install vim

New packages to be INSTALLED:
    vim: 8.0.1309
    gettext-runtime: 0.19.8.1_1

However, when I run pkg autoremove, gettext gets removed:

# pkg autoremove

Installed packages to be REMOVED:
    gettext-runtime-0.19.8.1_1

After I confirm the removal, vim does not run:

Shared object "libintl.so.8" not found, required by "vim"

Vim has the dependency for shared lib properly registered:

# pkg info -rdbB vim
vim-8.0.1309
Shared Libs required:
    libintl.so.8

And gettext-runtime provides the required shared lib:

# pkg info -rdbB gettext-runtime
gettext-runtime-0.19.8.1_1
Shared Libs provided:
    libasprintf.so.0
    libintl.so.8
Depends on     :
    indexinfo-0.3.1

So I believe pkg autoremove should not have removed the gettext-runtime shared lib dependency.

assistcontrol commented 6 years ago

This is a bug in the vim port, not pkg.

mariancerny commented 6 years ago

I believe this is a bug of pkg as well.

pkg autoremove should not have removed the gettext-runtime shared lib dependency.

The bug of the vim port has been fixed.