Open diederikdehaas opened 1 year ago
I started looking at a build issue for 32-bit systems/hosts (will report on that later)
It turned out that backporting the below referenced commits since 1.8.0 fixed that build issue, see https://salsa.debian.org/rrdtool-team/rrdtool/-/merge_requests/4 for details.
Specifically after "Fix BUILD_DATE in rrdtool help output" Salsa's CI (and thus the build i386
job) succeeded.
No idea why, but I'll take it ;-)
Sounds like this might work to prefer python3
diff --git a/configure.ac b/configure.ac index be8b4d6e..140ad111 100644 --- a/configure.ac +++ b/configure.ac @@ -1018,7 +1018,7 @@ AC_ARG_ENABLE(python,AS_HELP_STRING([--disable-python],[do not build the python
if test "$enable_python" = "yes"; then dnl Check for python -AM_PATH_PYTHON(2.3,[],[enable_python=no]) +AM_PATH_PYTHON(3,[],[AM_PATH_PYTHON(2.3,[],[enable_python=no])]) AM_CHECK_PYTHON_HEADERS(,[enable_python=no;AC_MSG_WARN(could not find Python headers)]) fi
Describe the bug Apparently I still have python2 installed on my (amd64) system and when running
./configure
it selected that to build bindings for. I (ofc) also have python3 installed (andpython3-dev
), but it didn't select that. Given that python2 is EOL, I think it should use python3 if that's available.To Reproduce Steps to reproduce the behavior:
cd
into the directory containing the project (rrdtool-1.x
)./bootstrap
and then./configure
Expected behavior If python3 is installed, it should use/prefer that over python2
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context I started looking at a build issue for 32-bit systems/hosts (will report on that later) when I noticed this issue.
When I followed the steps to reproduce on a (clean armhf/32bit) system with only python3 (and
python3-dev
) installed, it did the right thing.