From nobody Mon Mar 17 20:52:03 2025 X-Original-To: ports-bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4ZGnGG1v7Dz5qgjG for ; Mon, 17 Mar 2025 20:52:06 +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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4ZGnGG0lgnz3h6q for ; Mon, 17 Mar 2025 20:52:06 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1742244726; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=zDKGDpa1T5fcf0CjkwMNOzJfgHLFE4u/T6m8PZXhBWE=; b=VylG80GzjhoQ8o/YFoMWr6v4zsvYZYIykQ2s9jGo0tnOJlhvWRMEMYAJfpLCarY8tq5cQW 6Dud0XboV3um283XCMeKDsLzdTz19JcH/8i3w8gkoZDyDcnFRK4n+eCpHP6clGIzfZt1Mx FCMh+ApqxLkYWk4NvY9ZaiRAtzWVZy/8BkC8WrMVv8g7M1CaduJYBfMIT8xwyoI786MZyo y2igK8nkDhfYnU32nxthpuqsY8H+Smnw4UiWvz8lt6Ib0G3RMguaa/OXIGCr77CNKW+oaO aOh8NQU/SuvkWz7ZbGeLJkflJTKpZc+vec8qttL4kSQU4bTEy0XL/6qmIlkyhg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1742244726; a=rsa-sha256; cv=none; b=NQBhkUOtyk8e3c5aPdb2+UaMdMhrmSnVN3Ug05BIMvzb0/KAyoVy14SrJ+JpTHoaITPhe+ G6e7T2rEzrHMM9/iCp9+Z4EbQjOU1dolKsH0/WLlakvxucc07UB+ibW/VIfa1KPIU3QzO3 AmHwE1hgxtnj8tnbECjERfZCI9h+LjnROcIgZLMhvkXwa8STv22zv9ylbjQMI9O4zpKyMJ TafsuCPC4lHU499feb02j7ZBZNt+m3/KHM9nemaxcv1CJdaDTaP36FbKaCqA/r0J+Wv/GM lBB5//T65DKlJKUgGfYYzPq2L+GD0Tk5LWJsMuvUObl4wASidfywONJSo2ZqxA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1742244726; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=zDKGDpa1T5fcf0CjkwMNOzJfgHLFE4u/T6m8PZXhBWE=; b=PpMtAsfbrfqf10igvzNtZxo4cPWPfZQrZ/Kgtz08sxOy1CHk4hcs25hxSyN76Am7MOm4Nq pB1N+AQgmxhgJailSVpaHvSd/8Lgjvc/Iyc8OiW+wxz7qrYCuMOINOX5EcwbIE5HgHlzTo kb4prcmX8U+Ow1QaaWiXZjOWjbwIupiQr39EyFrdf4r47/ejSuYjAOQ/yY2Dg/4zAMkeN4 pbTOlPY17luq2qNMepYU5jIooYe87g3uXkpcBHBKWCfj2S2Auxp5jP/1X1XmzzYp/O/ztC nXrm4ubDP6VKIHL015ezqSe2VETpls7rcbYXjgFWlnNGaRgfEppCxVmyyBrDqA== 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 4ZGnGG0LWbz12tY for ; Mon, 17 Mar 2025 20:52:06 +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 52HKq5In087890 for ; Mon, 17 Mar 2025 20:52:05 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 52HKq5UX087866 for ports-bugs@FreeBSD.org; Mon, 17 Mar 2025 20:52:05 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: ports-bugs@FreeBSD.org Subject: [Bug 285490] pkg upgrade unexpectedly installs uninstalled, non-dependency package Date: Mon, 17 Mar 2025 20:52:03 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: alan@anarchycorp.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ports-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-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-ports-bugs@freebsd.org Sender: owner-freebsd-ports-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D285490 Bug ID: 285490 Summary: pkg upgrade unexpectedly installs uninstalled, non-dependency package Product: Ports & Packages Version: Latest Hardware: amd64 OS: Any Status: New Severity: Affects Many People Priority: --- Component: Individual Port(s) Assignee: ports-bugs@FreeBSD.org Reporter: alan@anarchycorp.com `pkg-upgrade(8)` says: "pkg upgrade will not install new packages, except = as required to fulfil dependencies of the packages listed on the command line.= "=20 It used to be the case that running `pkg upgrade` for a package that was not installed would fail with an error. This seems to not match current reality: ```% pkg info pv pkg: No package(s) matching pv % sudo pkg upgrade pv Updating FreeBSD repository catalogue... FreeBSD repository is up to date. All repositories are up to date. The following 1 package(s) will be affected (of 0 checked): New packages to be INSTALLED: pv: 1.9.15 Number of packages to be installed: 1 95 KiB to be downloaded. Proceed with this action? [y/N]: y [1/1] Fetching pv-1.9.15.pkg: 100% 95 KiB 97.7kB/s 00:01 Checking integrity... done (0 conflicting) [1/1] Installing pv-1.9.15... [1/1] Extracting pv-1.9.15: 100%``` What is expected is that `pkg upgrade` will fail, as the package `pv` is NOT installed and NOT a dependency being installed. It looks to me like the documentation does not match how the software behav= es, so one or the other should change. (My preference is that it behave as the documentation currently says it should, i.e., `pkg upgrade` should never install a brand new package. That's what `pkg install` is for.) This is tested on 14.2-RELEASE with pkg 1.21.3. --=20 You are receiving this mail because: You are the assignee for the bug.=