From nobody Tue Sep 09 15:43:47 2025 X-Original-To: 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 4cLp5H5Rspz675FN for ; Tue, 09 Sep 2025 15:43: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 "R12" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4cLp5H4j9zz46FG for ; Tue, 09 Sep 2025 15:43:47 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1757432627; 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=7NK09m4wJJ9ddwJ7cKLFr/SV5wMzEqNDS8uqtmqITzs=; b=ZDqZL8ZhCed+efVnylL45fRx7vNUUerjDcCWMFoRZI5VypgrXRrgzJD03qH1kRnzQr062w 7bIFyrUC4p4cc/Fyeup/oF41f1AEP3IX3iY9TkVPTWDhvf6kRQ7HdFhE50YiS0yppq2Zfw fZoJ3KYuR7nW8ncjRDlKR2kQBRZ2OCsfDR4MPLHJYcK140lBRz8ilHQP4pE1YPT68FG16O 8HnaB3FLxgrMXd9QysJmxfTvxfTiBdy2M1msM9b2scF2Hg2jCzydc3/0/9WLU4HOlw/CMe UYMhI+ep4Ee5cxgIz3IxvLWEOfBicVNrn/RLH609dMskiWuMPENVIve6/sty3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1757432627; 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=7NK09m4wJJ9ddwJ7cKLFr/SV5wMzEqNDS8uqtmqITzs=; b=oENbSWI1on6ewCPssD89ADxut4a4EYKwARwJywyN3Cibaun28SmNY8GIP6CLm9ZeDxc3It WSD3CrCy9v9FMo2kTVklUdUhpVEJQGwh6VO/nDbMRf6+s4epiYzA+TEp4imnIuxEOhn6ew Q887iB5nFwQ/FdVcCI4J2WwFZWpEem6lhg8H43CxInqJ5nCf54HFyEhXfs/2LRTz+SIC/v VQrw44Kr6lTKu5OWSGrvKjR+QLt2aJGqpirr2cL80CrYahUFd4m9ZGqnA1LuFXFB92fVbY XkKSRb/hvda/D6iFUyzsEci2cUpNimyEZAAlb8k/Qt1ibJVHdeRuDL819ahsow== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1757432627; a=rsa-sha256; cv=none; b=pJ1HNAMqBGzmdHHH2N4G6VnRnMbcU8UxuJdptyUuocsGgGQ45E5MPSt+nDqMfbuEJiq3rH JTNiycGf7WG1U00MakfdsuArzV5lgXJoadwWAkCEBg+TIsEGMLYMv2pGny4CzNY5hCglyk Ke2CJerc/+ct5iCkt9eV3z1VFN5Sg4SdMVfuxXJSX90LAeyZBW8YSPApYYyWtccKauQTUl ebfgRHwjG1KuZLYD25B2+56h/3+19060mWr2KNuSb00Lixj8a8TMuVQYx71bD7gPttGP0N JxJl0CQjY4bAl1SnQLOZilRDzTqGkZ5qVlpHFWW+X/fl2VeXJ/ggx13XDnubbQ== 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 4cLp5H3p9fzj6m for ; Tue, 09 Sep 2025 15:43: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 589FhlpH096688 for ; Tue, 9 Sep 2025 15:43:47 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 589FhlY5096686 for bugs@FreeBSD.org; Tue, 9 Sep 2025 15:43:47 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 289414] [PkgBase] pkg upgrade without further arguments breaks the system on upgrades Date: Tue, 09 Sep 2025 15:43: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: 14.3-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: crest@rlwinm.de 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-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: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D289414 Bug ID: 289414 Summary: [PkgBase] pkg upgrade without further arguments breaks the system on upgrades Product: Base System Version: 14.3-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Many People Priority: --- Component: misc Assignee: bugs@FreeBSD.org Reporter: crest@rlwinm.de I installed FreeBSD 14.3/amd64 on little Atom board with 4GB RAM and 32GB e= MMC flash and converted it to PkgBase before the release of any patches for Fre= eBSD 14.3. When I tried to upgrade the system using `pkg upgrade` it broke the system in multiple ways. As usual pkg uninstalled packages to install the new versions, but because = the packages from ports don't properly declare their dependencies on base packa= ges pkg did not (re)install the base system before installing other packages. W= ith most of the base system uninstalled the other packages didn't correctly ins= tall because their hook scripts failed. To make matters worse the otherwise nearly idle system ran out of memory (4= GB RAM + 2GB swap) during the installation of FreeBSD-src. At that point during the upgrade neither libc nor the runtime loader had be installed leaving me with only statically linked binaries to recover. To repair the system I prepended /rescue to my $PATH and used pkg-static to reinstall all base packages. Since not pkg-static was unable to infer the A= BI and OSVERSION used in the repository configurations I had to pass those manually: `pkg-static -o ABI=3DFreeBSD:14:amd64 -o OSVERSION=3D1403000 inst= all -r FreeBSD-base -y -g '*'` If anyone else runs into this on a different release the $OSVERSION of the kernel can be extracted with `/rescue/sysctl kern.osreldate`. I also lost the list of packages I previously installed, but that could be reconstructed from /var/log/messages. This is a massive footgun that will hit many users once package base becomes the default way to update the base system. Also I have no idea why pkg upgr= ade ran out of memory. It feels ridicous that 6GB of RAM aren't enough to update the system without special workarounds. --=20 You are receiving this mail because: You are the assignee for the bug.=