From 1e7c6779bea7fc0a54ea45388d6981df9bf50b12 Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Sun, 2 Sep 2018 20:11:40 +0200 Subject: [PATCH] python-gobject2: update cross fix --- srcpkgs/python-gobject2/template | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/srcpkgs/python-gobject2/template b/srcpkgs/python-gobject2/template index a63245db388..e7959eca800 100644 --- a/srcpkgs/python-gobject2/template +++ b/srcpkgs/python-gobject2/template @@ -20,8 +20,7 @@ checksum=bb9d25a3442ca7511385a7c01b057492095c263784ef31231ffe589d83a96a5a pre_configure() { NOCONFIGURE=1 autoreconf -fi if [ "$CROSS_BUILD" ]; then - # Fix path to the python-config wrapper. - sed -e "s,^PYTHON_CONFIG=.*,PYTHON_CONFIG=${XBPS_WRAPPERDIR}/python-config,g" -i configure + sed -i "s,\(PYTHON_INCLUDES\)=.*,\1=-I${XBPS_CROSS_BASE}/usr/include/python2.7,g" configure fi }