From owner-freebsd-bugs@freebsd.org Fri Mar 5 22:46:47 2021 Return-Path: Delivered-To: freebsd-bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 5976256A498 for ; Fri, 5 Mar 2021 22:46:47 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 4DsjXR1w3zz3rC9 for ; Fri, 5 Mar 2021 22:46:47 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 3F90F56A497; Fri, 5 Mar 2021 22:46:47 +0000 (UTC) Delivered-To: bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 3F53456A496 for ; Fri, 5 Mar 2021 22:46:47 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4DsjXR1Bptz3r23 for ; Fri, 5 Mar 2021 22:46:47 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 1792518944 for ; Fri, 5 Mar 2021 22:46:47 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 125Mkk7L085369 for ; Fri, 5 Mar 2021 22:46:46 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 125MkkTj085368 for bugs@FreeBSD.org; Fri, 5 Mar 2021 22:46:46 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 254050] pkgbase: pkg autoremove is removing packages it shouldn't Date: Fri, 05 Mar 2021 22:46:47 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: misc X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: me@igalic.co X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Mar 2021 22:46:47 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D254050 Bug ID: 254050 Summary: pkgbase: pkg autoremove is removing packages it shouldn't Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: misc Assignee: bugs@FreeBSD.org Reporter: me@igalic.co setting up a jail with pkgbase: meena@beastix ~> sudo pkg -r /isolates/pkg-auto-remove-bug/root install -r FreeBSD-base FreeBSD-clibs \ FreeBSD-clibs-dev FreeBSD-libexecinfo FreeBSD-rc \ FreeBSD-runtime FreeBSD-utili= ties FreeBSD-vi \ FreeBSD-zoneinfo Updating FreeBSD-base repository catalogue... Fetching meta.conf: 100% 164 B 0.2kB/s 00:01 Fetching packagesite.tzst: 100% 30 KiB 31.0kB/s 00:01 Processing entries: 100% FreeBSD-base repository update completed. 332 packages processed. All repositories are up to date. The following 25 package(s) will be affected (of 0 checked): New packages to be INSTALLED: FreeBSD-clibs: 14.snap20210302214559 [FreeBSD-base] FreeBSD-clibs-dev: 14.snap20210302214559 [FreeBSD-base] FreeBSD-libarchive: 14.snap20210225154922 [FreeBSD-base] FreeBSD-libbegemot: 14.snap20210220023449 [FreeBSD-base] FreeBSD-libbsdxml: 14.snap20210220023449 [FreeBSD-base] FreeBSD-libbsm: 14.snap20210220023449 [FreeBSD-base] FreeBSD-libbz2: 14.snap20210220023449 [FreeBSD-base] FreeBSD-libdwarf: 14.snap20210220023449 [FreeBSD-base] FreeBSD-libefivar: 14.snap20210225154922 [FreeBSD-base] FreeBSD-libevent1: 14.snap20210220023449 [FreeBSD-base] FreeBSD-libexecinfo: 14.snap20210220023449 [FreeBSD-base] FreeBSD-libldns: 14.snap20210220023449 [FreeBSD-base] FreeBSD-liblzma: 14.snap20210220023449 [FreeBSD-base] FreeBSD-libmagic: 14.snap20210220023449 [FreeBSD-base] FreeBSD-libnetmap: 14.snap20210220023449 [FreeBSD-base] FreeBSD-libopie: 14.snap20210220023449 [FreeBSD-base] FreeBSD-libregex: 14.snap20210220023449 [FreeBSD-base] FreeBSD-libsmb: 14.snap20210220023449 [FreeBSD-base] FreeBSD-libsqlite3: 14.snap20210220023449 [FreeBSD-base] FreeBSD-libucl: 14.snap20210220023449 [FreeBSD-base] FreeBSD-rc: 14.snap20210227073719 [FreeBSD-base] FreeBSD-runtime: 14.snap20210302214559 [FreeBSD-base] FreeBSD-utilities: 14.snap20210302214559 [FreeBSD-base] FreeBSD-vi: 14.snap20210227073719 [FreeBSD-base] FreeBSD-zoneinfo: 14.snap20210220023449 [FreeBSD-base] Number of packages to be installed: 25 The process will require 263 MiB more space. 66 MiB to be downloaded. Proceed with this action? [y/N]: y so, everything looks fine! we can chroot into this jail and test basic things out: meena@beastix ~> sudo chroot /isolates/pkg-auto-remove-bug/root root@beastix:/ # su - root@beastix:~ # logout root@beastix:/ # exit cool. sh works, su works, let's remove ""unneeded"" packages: meena@beastix ~> sudo pkg -r /isolates/pkg-auto-remove-bug/root autoremove Checking integrity... done (0 conflicting) Deinstallation has been requested for the following 17 packages: Installed packages to be REMOVED: FreeBSD-libarchive: 14.snap20210225154922 FreeBSD-libbegemot: 14.snap20210220023449 FreeBSD-libbsdxml: 14.snap20210220023449 FreeBSD-libbsm: 14.snap20210220023449 FreeBSD-libbz2: 14.snap20210220023449 FreeBSD-libdwarf: 14.snap20210220023449 FreeBSD-libefivar: 14.snap20210225154922 FreeBSD-libevent1: 14.snap20210220023449 FreeBSD-libldns: 14.snap20210220023449 FreeBSD-liblzma: 14.snap20210220023449 FreeBSD-libmagic: 14.snap20210220023449 FreeBSD-libnetmap: 14.snap20210220023449 FreeBSD-libopie: 14.snap20210220023449 FreeBSD-libregex: 14.snap20210220023449 FreeBSD-libsmb: 14.snap20210220023449 FreeBSD-libsqlite3: 14.snap20210220023449 FreeBSD-libucl: 14.snap20210220023449 Number of packages to be removed: 17 The operation will free 11 MiB. Proceed with deinstalling packages? [y/N]: y and try again: meena@beastix ~> sudo chroot /isolates/pkg-auto-remove-bug/root root@beastix:/ # su - ld-elf.so.1: Shared object "libbsm.so.3" not found, required by "su" root@beastix:/ # we just broke a jail that was working perfectly fine a second ago. --=20 You are receiving this mail because: You are the assignee for the bug.=