common/wrapper: python*-config: answer --includes
We haven't run into trouble with this because most configure script
check if $PYTHON-config exist,
thus force packager uses /usr/bin/python{,3}
This commit is contained in:
@@ -70,10 +70,11 @@ python_wrapper() {
|
|||||||
[ -x ${XBPS_WRAPPERDIR}/${wrapper} ] && return 0
|
[ -x ${XBPS_WRAPPERDIR}/${wrapper} ] && return 0
|
||||||
cat >>${XBPS_WRAPPERDIR}/${wrapper}<<_EOF
|
cat >>${XBPS_WRAPPERDIR}/${wrapper}<<_EOF
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
if [ "\$1" = "--includes" ]; then
|
case "\$1" in
|
||||||
echo "-I${XBPS_CROSS_BASE}/usr/include/python${version}"
|
--includes|--cflags)
|
||||||
fi
|
echo "-I${XBPS_CROSS_BASE}/usr/include/python${version}" ;;
|
||||||
exit \$?
|
esac
|
||||||
|
exit 0
|
||||||
_EOF
|
_EOF
|
||||||
chmod 755 ${XBPS_WRAPPERDIR}/${wrapper}
|
chmod 755 ${XBPS_WRAPPERDIR}/${wrapper}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user