maintainer-feedback requested: [Bug 220049] ports-mgmt/pkg installs unneeded packages

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Jun 16 15:35:57 UTC 2017


Miroslav Lachman <000.fbsd at quip.cz> has reassigned Bugzilla Automation
<bugzilla at FreeBSD.org>'s request for maintainer-feedback to pkg at FreeBSD.org:
Bug 220049: ports-mgmt/pkg installs unneeded packages
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=220049



--- Description ---
Sometimes (very often in my case with about 20 machines) "pkg install" or "pkg
upgrade" installed some packages which were not needed and running "pkg
autoremove" imediately after previsou upgrade / install command just uninstall
those packages.

This is simple example from today. I just need to install "pgtop", along with
dependencies "libnghttp2" were also installed:



root at fido ~/# pkg install pgtop
Updating codelab repository catalogue...
Fetching meta.txz: 100%    820 B   0.8kB/s    00:01
Fetching packagesite.txz: 100%	136 KiB 139.5kB/s    00:01
Processing entries: 100%
codelab repository update completed. 470 packages processed.
Updating e2efa repository catalogue...
Fetching meta.txz: 100%    820 B   0.8kB/s    00:01
Fetching packagesite.txz: 100%	 37 KiB  37.6kB/s    00:01
Processing entries: 100%
e2efa repository update completed. 114 packages processed.
All repositories are up to date.
The following 4 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
	pgtop: 0.05_3 [e2efa]
	libnghttp2: 1.22.0 [codelab]
	p5-DBI: 1.636_1 [e2efa]
	p5-DBD-Pg: 3.6.2 [e2efa]

Number of packages to be installed: 4

The process will require 3 MiB more space.
977 KiB to be downloaded.

Proceed with this action? [y/N]: y
[1/4] Fetching pgtop-0.05_3.txz: 100%	24 KiB	24.9kB/s    00:01
[2/4] Fetching libnghttp2-1.22.0.txz: 100%  105 KiB 107.1kB/s	 00:01
[3/4] Fetching p5-DBI-1.636_1.txz: 100%  685 KiB 701.6kB/s    00:01
[4/4] Fetching p5-DBD-Pg-3.6.2.txz: 100%  163 KiB 166.6kB/s    00:01
Checking integrity... done (0 conflicting)
[1/4] Installing p5-DBI-1.636_1...
[1/4] Extracting p5-DBI-1.636_1: 100%
[2/4] Installing p5-DBD-Pg-3.6.2...
[2/4] Extracting p5-DBD-Pg-3.6.2: 100%
[3/4] Installing pgtop-0.05_3...
[3/4] Extracting pgtop-0.05_3: 100%
[4/4] Installing libnghttp2-1.22.0...
Extracting libnghttp2-1.22.0: 100%


But nobody needs "libnghttpd2"

root at fido ~/# pkg info -r -d libnghttp2
libnghttp2-1.22.0


root at fido ~/# pkg autoremove
Checking integrity... done (0 conflicting)
Deinstallation has been requested for the following 1 packages:

Installed packages to be REMOVED:
	libnghttp2-1.22.0

Number of packages to be removed: 1

Proceed with deinstalling packages? [y/N]: y
[1/1] Deinstalling libnghttp2-1.22.0...
[1/1] Deleting files for libnghttp2-1.22.0: 100%


Similar issue was encountered on last "pkg upgrade" on almost all our machines
where "libarchive" was installed and immediately deleted by "pkg autoremove".

We are using own Poudriere repo, FreeBSD 10.3, pkg 1.10.1

Let me know how can I debug this issue and I will provide more details.


More information about the freebsd-pkg mailing list