From 4f3e44d4ac9fd52e4be8b42d5b2cd14ffea3cd8d Mon Sep 17 00:00:00 2001 From: Ross Burton Date: Tue, 10 Dec 2019 17:06:15 +0000 Subject: python-m2crypto: don't use relative paths Signed-off-by: Ross Burton Signed-off-by: Khem Raj --- meta-python/recipes-devtools/python/python-m2crypto.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'meta-python/recipes-devtools/python/python-m2crypto.inc') diff --git a/meta-python/recipes-devtools/python/python-m2crypto.inc b/meta-python/recipes-devtools/python/python-m2crypto.inc index a36ab8a7fa..5f5444f37e 100644 --- a/meta-python/recipes-devtools/python/python-m2crypto.inc +++ b/meta-python/recipes-devtools/python/python-m2crypto.inc @@ -32,7 +32,7 @@ export SWIG_FEATURES # do_configure_prepend() { ${CPP} -dM - < /dev/null | grep -v '__\(STDC\|REGISTER_PREFIX\|GNUC\|STDC_HOSTED\)__' \ - | sed 's/^\(#define \([^ ]*\) .*\)$/#undef \2\n\1/' > SWIG/gcc_macros.h + | sed 's/^\(#define \([^ ]*\) .*\)$/#undef \2\n\1/' > ${S}/SWIG/gcc_macros.h if [ "${SITEINFO_BITS}" = "64" ];then bit="64" @@ -42,11 +42,11 @@ do_configure_prepend() { if [ -e ${STAGING_INCDIR}/openssl/opensslconf-${bit}.h ] ;then for i in SWIG/_ec.i SWIG/_evp.i; do - sed -i -e "s/opensslconf.*\./opensslconf-${bit}\./" "$i" + sed -i -e "s/opensslconf.*\./opensslconf-${bit}\./" "${S}/$i" done elif [ -e ${STAGING_INCDIR}/openssl/opensslconf-n${bit}.h ] ;then for i in SWIG/_ec.i SWIG/_evp.i; do - sed -i -e "s/opensslconf.*\./opensslconf-n${bit}\./" "$i" + sed -i -e "s/opensslconf.*\./opensslconf-n${bit}\./" "${S}/$i" done fi } -- cgit 1.2.3-korg