Date: Mon, 4 Mar 2024 10:53:04 +0100 From: Moin Rahman <bofh@freebsd.org> To: freebsd-ports@freebsd.org Subject: Re: How do I clear no-longer-usable packages from poudriere? Message-ID: <B171D112-3B7D-4EEA-B193-5B68390ABD74@freebsd.org> In-Reply-To: <ZeTCYZsGM1zpLKa9@albert.catwhisker.org> References: <ZeTCYZsGM1zpLKa9@albert.catwhisker.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--Apple-Mail=_F55AA458-92BC-49E3-868E-9B1C6958C7AC Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii > On Mar 3, 2024, at 7:33 PM, David Wolfskill <david@catwhisker.org> = wrote: >=20 > I have a local package-builder that's (generally) been working quite > well for me since Jul 2015 (through a couple of hardware replacements, > sure, but the approach remains the same). >=20 > Today, in trying to chase down what was causing my central "hub" = machine > to whine: >=20 > ld-elf.so.1: /usr/local/lib/libtasn1.so.6: version LIBTASN1_0_3 = required by /usr/local/lib/libgnutls.so.30 not defined >=20 > I found (via the "pkg_libchk" script from ports-mgmt/bsdadminscripts2) > that some just-installed packages are apparently expecting to use > libc.so.6, which hasn't existed on anything here since 18 February. >=20 > (My machines run stable/14 for getting things done; the development > machines also track head, so I have some clue what's coming.) >=20 > The package-builder also builds FreeBSD for its "client" machines. = The > package-builder (and my laptop) track stable/14 daily; the > package-builder does a 2-pass weekend run of package-building (first > pass on Saturday, after updating FreeBSD; second on Sunday). Once the > packages are built, the client machines update FreeBSD (to the latest > snapshot from the package-builder, which is already running that = code). >=20 > The package-builder is thus running the same revision of FreeBSD that > the clients are about to run. And poudriere is using the > package-builder's /usr/src and /usr/ports to construct jails & build > stuff. >=20 > I am trying to ensure a certain level of consistency, here. And today > appears to show that I have failed to do that. >=20 > Is there something less drastic than clearing all poudriere caches of > packages and rebuilding all packages all over again??!? (that will get > me a set of packages consistent with the current state of FreeBSD > sources and ports (stable/14-n266921-8a7d5d73b849 and > main-n654175-6928d3a11398, respectively (at the moment)))? >=20 > At least name resolution isn't broken this time, but printing seems to > have been a casualty. >=20 > Peace, > david > -- > David H. Wolfskill david@catwhisker.org > Alexey Navalny was a courageous man; Putin has made him a martyr. >=20 > See https://www.catwhisker.org/~david/publickey.gpg for my public key. How do you upgrade the poudriere jails? I faced these a couple of years ago on my head builder. And since then I have never used poudriere's jail update method. I used to destroy the jail and recreate the jail. I haven't checked recently again but the main problem was somehow poudriere's jail update method did not used to handle two important methods owhen you are building jails those are `make delete-old` and `make delete-old-libs`. This might have fixed or not but for being the safe side I always delete and create. So I think that when upgrading your jails libc.so.6 were still there while your main host has been handled properly by deleting those libs. And no longer hosted those files. A find foo should be able to get the answers. And hence this chaos. So although for binary cases I still use `poudriere jail -u` for src based jails I delete and recreate the jails. Kind regards, Moin --Apple-Mail=_F55AA458-92BC-49E3-868E-9B1C6958C7AC Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- iQKTBAEBCgB9FiEETfdREoUGjQZKBS+fvbm1phfAvJEFAmXlmgBfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDRE Rjc1MTEyODUwNjhEMDY0QTA1MkY5RkJEQjlCNUE2MTdDMEJDOTEACgkQvbm1phfA vJGmbA/+KuDjXK+Y0v5/M4Jpo0lSTXuirU8fuVIfw9O+sMQzkp3R9BpSZOjSguWT elRb7WbY52C/k+fyVADla0WIbSEasvGTN1+RLC/buFoNVeb4PmQO9zAA8bKwmvGQ g9HIYs77FC6/ofk1lytf+AlMBqfLX2+x9EJHcylpdrdx8764MeFgBBt3YNs+veGD D+YmAeepdQizfNj1eOM/WfQnm5Ty5nQY6ZqdFfX+SsEfmYhSPuKPnds8HqPIg3i9 AOh0g8KUKDWkSFnzkbW6ZuYx+29G0yPOuXLz8vjWNaOP9W/W/nOfl4onnl/ynrtV saKenDhlq0uv5pKXwZZQ8d9iMEzlarRPesLN/CuaDcawUXxctmxg7B0kvIdkPZQP /Cj9S4+OfYte+pjJWFbgDj1u3FBvF3xYOOAdWRQ6HFKp6plpZTI1xkDq+6sOKyLn 8Zf65Lg/DZVLFVb39KWqNWk/1dtSlH6dwUA+bgG0SuF8ro1mtrD8r9AzowgOnosg kU2tFxZTMCDaOs/tRVyRmcsCZ0oJJ8R8Cn3fzq0wW0bPWns3mVcTpeRYY8YN/M9o HzLh118S3EM5p/O30CUNGfS7LeHnOlJeTa1a4HaRoY44ETByNGh3ZRHaiBHBNKMM XyYyB7LtXykufNtttadejNbGe/utjslDyLXLlrTa41oS35fOaf0= =B0C7 -----END PGP SIGNATURE----- --Apple-Mail=_F55AA458-92BC-49E3-868E-9B1C6958C7AC--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?B171D112-3B7D-4EEA-B193-5B68390ABD74>