Re: Patching Conditionally for 12.3 Releases
- Reply: Nuno Teixeira : "Re: Patching Conditionally for 12.3 Releases"
- In reply to: Nuno Teixeira : "Patching Conditionally for 12.3 Releases"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 23 Aug 2022 09:22:44 UTC
* Nuno Teixeira <eduardo@freebsd.org> [20220822 21:52]: > .if ${OPSYS} == FreeBSD && ${OSVERSION} < 1100069 > EXTRA_PATCHES= ${PATCHDIR}/extra-patch-fbsd10 > .endif Possible alternative without if: EXTRA_PATCHES= ${EXTRA_PATCHES_${OPSYS}} EXTRA_PATCHES_FreeBSD= ${${OSVERSION}<1300000:?${PATCHDIR}/extra-foo:} Not sure whether that's more readable. Maybe worth considering if this extra patch would be the only reason to introduce bsd.port.pre.mk otherwise. -- Felix Palmen <zirias@FreeBSD.org> {private} felix@palmen-it.de -- ports committer (mentee) -- {web} http://palmen-it.de {pgp public key} http://palmen-it.de/pub.txt {pgp fingerprint} 6936 13D5 5BBF 4837 B212 3ACC 54AD E006 9879 F231