From owner-freebsd-ports@freebsd.org Fri Jun 16 15:44:03 2017 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 84F4CC31E49 for ; Fri, 16 Jun 2017 15:44:03 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 7011912B for ; Fri, 16 Jun 2017 15:44:03 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: by mailman.ysv.freebsd.org (Postfix) id 6C0F8C31E48; Fri, 16 Jun 2017 15:44:03 +0000 (UTC) Delivered-To: ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6B7BBC31E46 for ; Fri, 16 Jun 2017 15:44:03 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from elsa.codelab.cz (elsa.codelab.cz [94.124.105.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 311BF12A for ; Fri, 16 Jun 2017 15:44:03 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from elsa.codelab.cz (localhost [127.0.0.1]) by elsa.codelab.cz (Postfix) with ESMTP id 6779B2846B for ; Fri, 16 Jun 2017 17:37:11 +0200 (CEST) Received: from illbsd.quip.test (ip-86-49-16-209.net.upcbroadband.cz [86.49.16.209]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by elsa.codelab.cz (Postfix) with ESMTPSA id 5132928430 for ; Fri, 16 Jun 2017 17:37:10 +0200 (CEST) To: FreeBSD Ports From: Miroslav Lachman <000.fbsd@quip.cz> Subject: ports-mgmt/pkg installs unneeded packages Message-ID: <5943FB25.9080609@quip.cz> Date: Fri, 16 Jun 2017 17:37:09 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:42.0) Gecko/20100101 Firefox/42.0 SeaMonkey/2.39 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Jun 2017 15:44:03 -0000 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@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@fido ~/# pkg info -r -d libnghttp2 libnghttp2-1.22.0 root@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. I created PR https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=220049 Miroslav Lachman