Python2 bindings fail to cross compile
checking whether to create python bindings... testing
checking for python... /usr/bin/python
checking for python version... 2.7
checking for python platform... linux2
checking for python script directory... ${prefix}/lib/python2.7/site-packages
checking for python extension module directory... ${exec_prefix}/lib/python2.7/site-packages
configure: error: Python explicitly requested and python headers were not found
make: *** [Makefile:428: config.status] Error 1
Working around this by not building python2 bindings. Not sure if anyone will notice they are gone.
What version are you using?
2.8.5
We were able to workaround it in a previous version by changing the PYINCLUDEDIR line in the configure file.
Do you want to share the workaround so that it can be evaluated for merging?
sed -i \
"s;^PYINCLUDEDIR=.*;PYINCLUDEDIR=${XBPS_CROSS_BASE}/usr/include/python${py2_ver};" \
configure
Where XBPS_CROSS_BASE is something like aarch64-unknown-linux-gnu. But that only worked with 2.8.4. Void dropped the python2 bindings when the package updated to 2.8.5.
I'm going to close this out. Thanks for reporting it. Cross compiling seems non-operational for other reasons.