audit-userspace icon indicating copy to clipboard operation
audit-userspace copied to clipboard

Python2 bindings fail to cross compile

Open CameronNemo opened this issue 6 years ago • 4 comments

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.

CameronNemo avatar Mar 20 '19 06:03 CameronNemo

What version are you using?

stevegrubb avatar Mar 20 '19 22:03 stevegrubb

2.8.5

We were able to workaround it in a previous version by changing the PYINCLUDEDIR line in the configure file.

CameronNemo avatar Mar 21 '19 03:03 CameronNemo

Do you want to share the workaround so that it can be evaluated for merging?

stevegrubb avatar Nov 14 '19 16:11 stevegrubb

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.

CameronNemo avatar Nov 14 '19 17:11 CameronNemo

I'm going to close this out. Thanks for reporting it. Cross compiling seems non-operational for other reasons.

stevegrubb avatar Aug 02 '23 14:08 stevegrubb