tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: doxygen build failing with python confusion



On Fri, Mar 24, 2023 at 07:55:51PM -0400, Greg Troxel wrote:
> doxygen is failing with:
> 
>   [ 15%] Generating ../generated_src/configvalues.h
>   cd /tmp/work/devel/doxygen/work/doxygen-1.9.6/cmake-pkgsrc-build/src && /usr/pkg/bin/python2.7 /tmp/work/devel/doxygen/work/doxygen-1.9.6/src/configgen.py -maph /tmp/work/devel/doxygen/work/doxygen-1.9.6/src/config.xml > /tmp/work/devel/doxygen/work/doxygen-1.9.6/cmake-pkgsrc-build/generated_src/configvalues.h
> 
>   No module named pyexpat
> 
> and the bug is that cmake is finding 2.7 (which is installed) instead of
> the python3.10 which is the chosen version from including python for
> build.  I am not particularly good at at cmake and out of time today, so
> I'm mentioning it here in case any one knows how to fix it easily.
> Probably it's adding -Dpython_I_want_is_3.10 or somethig to the cmake
> invocation :-)

/usr/pkgsrc/devel/cmake/patches/patch-Modules_FindPythonInterp.cmake

has

+  SET(_VERSIONS ${_PYTHON2_VERSIONS} ${_PYTHON3_VERSIONS})

perhaps it should be

+  SET(_VERSIONS ${_PYTHON3_VERSIONS} ${_PYTHON2_VERSIONS})

instead?
 Thomas


Home | Main Index | Thread Index | Old Index