Re: Setting default version in Poudriere
- In reply to: Pat : "Re: Setting default version in Poudriere"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 10 Jul 2024 16:59:05 UTC
On Jul 10, 2024, at 12:39 PM, Pat <cli_junkie@protonmail.com> wrote: > On Monday, July 8th, 2024 at 13:01, Matthew Seaman <matthew@FreeBSD.org> wrote: > >> >> >> On 08/07/2024 13:24, Pat wrote: >> >>> On Friday, July 5th, 2024 at 21:14, Daniel Lysfjord lysfjord.daniel@smokepit.net wrote: >>> >>>> I would suggest just creating a port for postgres 15.6 in addition to >>>> the 15.7 that's already in the ports tree >>> >>> Thank you Daniel. That makes sense, but I do not know how to create a >>> port. Can you point me to any documentation that would explain what I >>> am missing? And apologies if there is something obvious that I >>> missed. >> >> >> In this case, all you need to do is look at the history of the >> databases/postgresql15-server port in eg. GitHub -- >> >> https://github.com/freebsd/freebsd-ports/tree/main/databases/postgresql15-server >> >> where you want to look at Makefile and distinfo in paticular. >> >> You can see what was changed from the last update and basically revert >> those for your purposes. Postgresql ports are unfortunately rather more >> complicated than most since they use a common base for all postgresql >> branches, but hopefully you can make sense of it. >> >> OTOH, if you already have postgresql-15.6 installed anywhere, you can >> make a package tarball from that: >> >> pkg create -f tbz postgresql15-server-15.6 > > Now that is a handy trick, and will probably work well for our needs! You might also want to look at the /usr/ports/UPDATING entry for upgrading between major versions of PostgreSQL (e.g., the 20230908 entry). It uses "pkg create" to create an installable package version of the existing PostgreSQL binaries prior to installing the new ones and performing the upgrade. Cheers, Paul.