From nobody Tue Aug 19 08:40:07 2025 X-Original-To: freebsd-pkgbase@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 4c5jhL15Pjz64Ymy for ; Tue, 19 Aug 2025 08:40:18 +0000 (UTC) (envelope-from mad@madpilot.net) Received: from vogon.madpilot.net (vogon.madpilot.net [159.69.1.99]) (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 mx1.freebsd.org (Postfix) with ESMTPS id 4c5jhK2psCz3mlv for ; Tue, 19 Aug 2025 08:40:17 +0000 (UTC) (envelope-from mad@madpilot.net) Authentication-Results: mx1.freebsd.org; none Received: from localhost (mail [IPv6:fd5c:5351:d272::3]) by vogon.madpilot.net (Postfix) with ESMTP id 4c5jh95QffzLl7j; Tue, 19 Aug 2025 10:40:09 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=madpilot.net; h= content-transfer-encoding:content-type:content-type:in-reply-to :from:from:content-language:references:subject:subject:date:date :message-id:received; s=cyq4qetkgngm; t=1755592807; x= 1757407208; bh=Ftzx8Wp6UeKXs7faSzu1WF8O1oVew86upYVtL7XiUvc=; b=U ge3IYfSvV3YVt2bmrPZa30zl6rYZ1HpTmsfUV04Y1VA1y80pSRma5coiLZ+VJTda 7WhGQGLj58epgFwCGQq7/KRaIQXmszHz28VOf6IDLdwqgegWns6gAkm03gLZMweA /bWXqFiMPGKzVtIzvRQ24B9P4e5PrC0pkM0H4tmnN51mvB6z5MwpgZ+V6yDMi+Bk Gp5Uumq8g/GJpIzKBSRFxX4Q9FXbUZ+nc6RR8AsDs5oDTSvfpG1d42ca2uFdMkei WuHXifuFxBPVlOfMDb9Izf1GB+0ndPEZErVPylKvYOyIBeWHVrTeP8GQGcvcLIox JYxoGiiyceSq7fNJwVAbw== Received: from vogon.madpilot.net ([IPv6:fd5c:5351:d272::3]) by localhost (vogon.madpilot.net [IPv6:fd5c:5351:d272::3]) (amavis, port 10026) with ESMTP id A2ucQKsSZuaU; Tue, 19 Aug 2025 10:40:07 +0200 (CEST) Message-ID: <048d1e94-f019-4708-ad4e-748ccf345677@madpilot.net> Date: Tue, 19 Aug 2025 10:40:07 +0200 Subject: Re: HEADS-UP: pkgbase pkg upgrade breaks systems Re: after updating to latest, pkg base segfaults and leaves me unbootable To: Tilde Joy , freebsd-pkgbase@freebsd.org References: <582d802f-da93-415c-9dee-1f1f1beb1830@smeets.xyz> <6d5b80be-b333-4ec3-9082-42d97fad52c8@madpilot.net> <1a1f3edb-456e-4754-951f-2a0373a22099@ultros.pro> Content-Language: en-US, it, en-GB From: Guido Falsi Autocrypt: addr=mad@madpilot.net; keydata= xsBNBE+G+l0BCADi/WBQ0aRJfnE7LBPsM0G3m/m3Yx7OPu4iYFvS84xawmRHtCNjWIntsxuX fptkmEo3Rsw816WUrek8dxoUAYdHd+EcpBcnnDzfDH5LW/TZ4gbrFezrHPdRp7wdxi23GN80 qPwHEwXuF0X4Wy5V0OO8B6VT/nA0ADYnBDhXS52HGIJ/GCUjgqJn+phDTdCFLvrSFdmgx4Wl c0W5Z1p5cmDF9l8L/hc959AeyNf7I9dXnjekGM9gVv7UDUYzCifR3U8T0fnfdMmS8NeI9NC+ wuREpRO4lKOkTnj9TtQJRiptlhcHQiAlG1cFqs7EQo57Tqq6cxD1FycZJLuC32bGbgalABEB AAHNHkd1aWRvIEZhbHNpIDxtYWRAbWFkcGlsb3QubmV0PsLAeQQTAQgAIwIbAwIeAQIXgAUL CQgHAwUVCgkICwQWAgMBBQJS79AgAhkBAAoJEBrmhg5Wy9KTc0kH/RO64ORBlTbTHaUaOj8F Je5O5NU2Pt9Cyt5ZWBRvxntr1zPTJGKRPS9ihlIfqT4ZvEngQGp57EUyFbCpI0UWasTerImM tt5WACnGmCzUTB39UXx8Oy4b1EgWeT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iuMLKGbw36fcmkZPpSDOfHcP0XH8Z+u9CWj0xUkTxAlZ/7 i6gYSUpG2JWNtdmE/X8VVEyXusCLwy0K0BI60A/4dRTIX3C4QKrJ3ZbUXegz70ynjHf+lQMZ 9IZKASoRMuS5FozPQh6abvmwZEPdf5I9riUElzvHrqJ8Bx0t3Pujdoth+yNHpnBxrtO8LkQd rQ58P0SwcaIX33T2U9pG8bhu5YVR88FQ8OQ0cEsPBpDncg== In-Reply-To: <1a1f3edb-456e-4754-951f-2a0373a22099@ultros.pro> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:24940, ipnet:159.69.0.0/16, country:DE] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Rspamd-Queue-Id: 4c5jhK2psCz3mlv List-Id: Packaging the FreeBSD base system List-Archive: https://lists.freebsd.org/archives/freebsd-pkgbase List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-pkgbase@FreeBSD.org On 8/19/25 03:23, Tilde Joy wrote: > On 8/14/25 18:17, Guido Falsi wrote: > >> Hi, >> >> I was also bitten by this. I'm sharing how I got past the issue in >> case it could be useful to others. >> >> I recovered by rolling back to a previous ZFS snapshot using an USB >> installation media. This can be a viable solution depending on FS >> being used and availability of snapshots. >> >> Anyway, after taking the machine to a usable state I was able to >> update past the tripping point by doing: >> >> pkg-static upgrade -r -g 'FreeBSD-runtime*' 'FreeBSD-pkg- >> bootstrap*' 'FreeBSD-clibs*' >> >> (the bootstrap part is most probably not needed) >> >> this will tell you it wants to remove the pkg package, but will not do >> so, since there is no '-f' option. After this proceed with a `pkg- >> static -r upgrade`. >> >> Depending on how old the previous installation is you will need to >> check for new packages to install, I was missing a bunch -dev and -man >> ones, and some new ones. >> >> I then had to add this to libmap.conf (actually to /usr/local/etc/ >> libmap.d/upgrade.conf): >> >> libcrypto.so.30 libcrypto.so.35 >> libutil.so.9 libutil.so.10 >> libssl.so.30 libssl.so.35 >> >> >> So old ports depending on old libraries still work. I'm keeping these >> for a while, until I can perform a `pkg upgrade -f` >> >> >> Hope this can be helpful until the issue is solved. > > thanks for this guido, this helped me out a lot, > > in my case the first command still aborted with pkg trying to remove > itself, Yes, my procedure was based on the upgrade of a machine with few ports instal;led (I use it almost exclusively as headless builder) On machines with Xorg, XFCE and a bunch more ports things got more complicated, I did need to remove and later reinstall a bunch of ports. So a general procedure cannot be written down, many factors at play, but upgrading clibs and runtime individually and leveraging libmap are the main takeaways. Another option, in such situations, could be booting with an installation media, configure access to the repo (copying files to an USB key, configuring network manually etc.) and using pkg-static from there, pointing to the actual installation. But I did not test this so, be careful! > i had to run the arguments separately: > > pkg-static upgrade -r FreeBSD-base -g 'FreeBSD-runtime*' > pkg-static upgrade -r FreeBSD-base -g 'FreeBSD-pkg-bootstrap*' > pkg-static upgrade -r FreeBSD-base -g 'FreeBSD-clibs*' > > and these were the new packages i installed: > > FreeBSD-bsdconfig > FreeBSD-gssd > FreeBSD-kerberos-kdc > FreeBSD-libmilter > FreeBSD-rip > FreeBSD-test > > not sure if any of these were essential or not, can't hurt to have them > i suppose, > but i'm finally updated to 15.0-PRERELEASE <3 There are a bunch of new base packages that need to be installed. There used to be a recipe to find new and old packages on the wiki but I cannot find it anymore, anyway this is what I do (taken from the old wiki page): pkg query -e '%o = base' %n > /tmp/b.out pkg rquery -r mpnet-base %n > /tmp/a.out diff /tmp/a.out /tmp/b.out | sed -e '/-dbg/d' | grep "^[<>]" the sed to remove -dbg packages is there because I usually don't install those. -- Guido Falsi