I see this in the build log for valgrind-3.22.0-7.fc40: -- Running tests in cachegrind/tests ---------------------------------- ann-diff1: valgrind --cachegrind-out-file=cachegrind.out ./../../tests/true sh: line 1: python3: command not found post check failed: python3 ../cg_diff --mod-funcname="s/main/MAIN/" ann1.cgout ann1b.cgout > ann-diff1.cgout && python3 ../cg_annotate --mod-filename="s/a.c/A.c/" --mod-funcname s/MAIN/Main/ ann-diff1.cgout https://kojipkgs.fedoraproject.org//packages/valgrind/3.22.0/7.fc40/data/logs/x86_64/build.log Reproducible: Always
Thanks for spotting this. Dunno how we missed this before. Fixed in rawhide. commit 1cabfb854f3ba203673a27e673dfc63b6291bbf6 (HEAD -> rawhide) Author: Mark Wielaard <mjw> Date: Sat Apr 13 16:59:09 2024 +0200 Add BuildRequires: python3-devel For running the testsuite. Some of the python scripts require python 3.9+ https://bugzilla.redhat.com/show_bug.cgi?id=2274913
I'm not entirely sure, but /usr/bin/python3 is usually obtained through python3, python3-devel is for building Python extension modules (which could still be relevant to valgrind, but perhaps not?).
(In reply to Florian Weimer from comment #2) > I'm not entirely sure, but /usr/bin/python3 is usually obtained through > python3, python3-devel is for building Python extension modules (which could > still be relevant to valgrind, but perhaps not?). According to https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_buildrequire_python3_devel every package that uses Python (at runtime and/or build time) must explicitly include BuildRequires: python3-devel in its .spec file. It explains that the *-devel package brings in relevant RPM macros.
You are right, of course. In glibc.spec, we have: # We use python for the microbenchmarks and locale data regeneration # from unicode sources (carried out manually). We choose python3 # explicitly because it supports both use cases. On some # distributions, python3 does not actually install /usr/bin/python3, # so we also depend on python3-devel. BuildRequires: python3 python3-devel