Discussion:
maintainer-feedback requested: [Bug 220049] ports-mgmt/pkg installs unneeded packages
b***@freebsd.org
2017-06-16 15:35:57 UTC
Permalink
Miroslav Lachman <***@quip.cz> has reassigned Bugzilla Automation
<***@FreeBSD.org>'s request for maintainer-feedback to ***@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:



***@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"

***@fido ~/# pkg info -r -d libnghttp2
libnghttp2-1.22.0


***@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.
b***@freebsd.org
2017-06-17 22:59:56 UTC
Permalink
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=220049

Bryan Drewery <***@FreeBSD.org> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |***@FreeBSD.org

--- Comment #1 from Bryan Drewery <***@FreeBSD.org> ---
This is likely an old issue with tracking shared library dependencies.
https://github.com/freebsd/pkg/issues/1015
--
You are receiving this mail because:
You are the assignee for the bug.
b***@freebsd.org
2017-06-18 09:38:25 UTC
Permalink
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=220049

Kubilay Kocak <***@FreeBSD.org> changed:

What |Removed |Added
----------------------------------------------------------------------------
See Also| |https://github.com/freebsd/
| |pkg/issues/1015
Flags| |merge-quarterly?
Status|New |Open
Keywords| |needs-qa
--
You are receiving this mail because:
You are the assignee for the bug.
b***@freebsd.org
2017-06-20 14:31:33 UTC
Permalink
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=220049

--- Comment #2 from Miroslav Lachman <***@quip.cz> ---
(In reply to Bryan Drewery from comment #1)
A found referenced bug before I filed this PR because I thought it was already
fixed and this is new one.
Is this old issue?
--
You are receiving this mail because:
You are the assignee for the bug.
b***@freebsd.org
2017-06-30 10:13:26 UTC
Permalink
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=220049

--- Comment #3 from Miroslav Lachman <***@quip.cz> ---
Is there something I can fix / workaround in local pkg database? It is really
annoying to run pkg autoremove after each pkg install or pkg upgrade.

It always want to install libarchive and some other libs.

# pkg install pear-Net_DNS2
Updating codelab repository catalogue...
codelab repository is up to date.
All repositories are up to date.
The following 3 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
pear-Net_DNS2: 1.4.3
libarchive: 3.3.1,1
lzo2: 2.10_1

Number of packages to be installed: 3
--
You are receiving this mail because:
You are the assignee for the bug.
b***@freebsd.org
2018-07-07 14:48:54 UTC
Permalink
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=220049

Zsolt Udvari <***@uzsolt.hu> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |***@uzsolt.hu

--- Comment #4 from Zsolt Udvari <***@uzsolt.hu> ---
*** Bug 228389 has been marked as a duplicate of this bug. ***
--
You are receiving this mail because:
You are the assignee for the bug.
Loading...