Re: Get ${OSREL} at install time

From: Felix Palmen <>
Date: Tue, 18 Apr 2023 13:12:51 UTC
* Nuno Teixeira <> [20230418 13:45]:
> I will do further tests and open an PR so other people try it (I hope).

I would suggest a final improvement: You should probably sanity-check
what you get from freebsd-version (and in case it isn't sane, stick to
the compile-time defaults). That's because it's perfectly possible to
install packages with "pkg -r" into a prefix that doesn't even have base
installed (so, also no freebsd-version available there).

 Felix Palmen <>     {private}
 -- ports committer (mentee) --            {web}
 {pgp public key}
 {pgp fingerprint} 6936 13D5 5BBF 4837 B212  3ACC 54AD E006 9879 F231