From nobody Fri Sep 12 17:11:31 2025 X-Original-To: pkg@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 4cNgv95M9Hz67gtC for ; Fri, 12 Sep 2025 17:11:33 +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 "R12" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4cNgv94fgfz3fSt for ; Fri, 12 Sep 2025 17:11:33 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1757697093; 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: in-reply-to:in-reply-to:references:references; bh=z9tI6mDOZpRiIhgytdnCcfy6uwYCYoLms6TF8ys1jH8=; b=e+UgB1ltckNXtXMjEKH8xITyvgSenKe7WRow67r34BQWEC5Oayjk2f6hMbfgRwUGPqJDNe CBssPSqM/ydpoQ3eFHGB1P19iXiZo1asGqwUwT/XU2iTXHJ1EbGG3M1l/V7cgtOAGklVUE dFVIZL33psaKbViuIiucoJeCoqSggYmFh3sGdlxO+dGLtl0Huq803a8Bh20h8aqRNEliNo YWYaYJx8wu4EtqIJepjBcfbYpXPEIOpY0jqTtGe4+AyujKzkkZ39sLoeitb9UZEVf/dqRt t6MkiHrXYRZ3KSoAq1+X8cDlGyPEvj6mVIjbenyxyxg5RL0mSqfDlicYeyaqDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1757697093; 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: in-reply-to:in-reply-to:references:references; bh=z9tI6mDOZpRiIhgytdnCcfy6uwYCYoLms6TF8ys1jH8=; b=iUWF13V1zUmJKhh0FPMyaeGKyBFwKLz8oc9GioaEK/41ORjGDwbZUa3G8hzF7Ka1YInViR PU/q7hVgTDdQ+DgakiFBHLO3PmhWpoRvd+YfjoWsn+8YmvRkcdLZnDLUvekfy6oM4wyv6+ HqxIoJJLDXHdPFrq+whjUWHuv3l5cCsJwdN/RhabufAe/GbUUCq7yJSDfV0NhvOftHSsLS fHv5bsaWWYA0HZIs+ZNu6myyQad+02sVfNSv0exdCssIv61evlywnnSWqovhmMB6zl5G5U QJDwg4L0xnaXydjpb/9FUCGq2GFZ2IaKnAyjWmI0LzLmmVHoJQHL+fb3iLFkwQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1757697093; a=rsa-sha256; cv=none; b=SCHbBS7c/guQwmHEsWAVaZvfO/8sakEw171mfsOkoGRI3qPZszOyulotXvYV90Z8Gxw09x StrDm95f0BLZzpAwS/+cOQN6GCqzo7FB02naFJUblAIhjulWvSR/Xmo7l1lxWWcZEUb+Ya qVBTHAh8meRBYouJ54a1l7YeraKrRnHOpyK15XJ1bbfODOuf0BwR5bEcQS8uxYYvMbKNcE /Kw+LawdWDgJt/jTyxTBUOIoTj5LacpDXcsFhqKCHST81e8ndxvhzEpaAuhmgjcQTRocNT lS6oXwAo6A5pcyOv50rKucuLIOJ4GhEtEQs6WdqXJgUOxqE4qUtoHEBksYmauA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4cNgv942qLz11dJ for ; Fri, 12 Sep 2025 17:11:33 +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 58CHBXkH055503 for ; Fri, 12 Sep 2025 17:11:33 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 58CHBXc2055502 for pkg@FreeBSD.org; Fri, 12 Sep 2025 17:11:33 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: pkg@FreeBSD.org Subject: [Bug 289414] pkg upgrade without further arguments breaks the system on upgrades Date: Fri, 12 Sep 2025 17:11:31 +0000 X-Bugzilla-Reason: CC AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: misc X-Bugzilla-Version: 14.3-RELEASE X-Bugzilla-Keywords: pkgbase X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: markj@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: pkg@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: cc bug_status Message-ID: In-Reply-To: References: 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: Binary package management and package tools discussion List-Archive: https://lists.freebsd.org/archives/freebsd-pkg List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-pkg@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D289414 Mark Johnston changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |markj@FreeBSD.org Status|New |Open --- Comment #5 from Mark Johnston --- It's hard to say exactly what the problem is here without a log of what happened. There are a few known problems: - pkg tends to deinstall packages during an upgrade if a dependent shared library version was bumped; this will be addressed by using the BACKUP_LIBRARIES option and perhaps making it the default for pkgbase packa= ges - pkg will sometimes split upgrades into separate deinstall+install steps, which as you note creates a window where upgrade scripts can fail because required utilities are missing There's some ongoing work to resolve both of these issues. Furthermore, starting with 15.0 we will aim to be more conservative about moving files between pkgbase packages so as to avoid triggering splits, at least until s= ome longer-term pkg work has landed which solves the problem more fundamentally. In 15.0 it will be possible to use freebsd-update to manage pkgbase upgrade= s, which will also avoid some of these footguns. --=20 You are receiving this mail because: You are on the CC list for the bug. You are the assignee for the bug.=