From: Nicki Křížek Date: Tue, 30 Dec 2025 12:36:41 +0000 (+0100) Subject: Prefer Python 3.12 if available X-Git-Tag: v9.21.18~21^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=144779f3e5769394133cea3e2f0b87df30e9ef97;p=thirdparty%2Fbind9.git Prefer Python 3.12 if available This ensures that python3.12 is used testing on older distributions like EL8 and EL9, where the platform default python3 is older. python3.11 was explicitly added due to FreeBSD, which doesn't have that binary symlinked to any other name (like python3). Previously, it worked only incidentally - when python3 was listed first, it triggered special meson code for python detection, which is no longer the case when python3.12 is listed first. --- diff --git a/meson.build b/meson.build index 84b8d93a1dc..4ffc0c5e4c2 100644 --- a/meson.build +++ b/meson.build @@ -99,7 +99,7 @@ fstrm_capture = find_program('fstrm_capture', required: false) git = find_program('git', required: false) jq = find_program('jq', required: false) nc = find_program('nc', required: false) -python = find_program(['python3', 'python'], required: false) +python = find_program(['python3.12', 'python3.11', 'python3', 'python'], required: false) xmllint = find_program('xmllint', required: false) xsltproc = find_program('xsltproc', required: false) pytest = find_program(