Skip to contentSkip to conversation

python-m2crypto: Move swig fix to configure task

PATCH In review Alex Kiernan 4 participants 4 messages Aug 7, 2018 – Aug 10, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 python-m2crypto: Move swig fix to configure task

From: Alex Kiernan <[email protected]>

Fixes:

| DEBUG: Executing shell function do_configure
...
| SWIG/_m2crypto.i:10: Error: Unable to find 'gcc_macros.h' | error: command 'swig' failed with exit status 1

---

 meta-python/recipes-devtools/python/python-m2crypto_0.26.4.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-python/recipes-devtools/python/python-m2crypto_0.26.4.bb +1 -1
index 272c76c..7e22163 100644
@@ -27,7 +27,7 @@ export SWIG_FEATURES
 # Get around a problem with swig, but only if the
 # multilib header file exists.
 #
-do_compile_prepend() {
+do_configure_prepend() {
     ${CPP} -dM - < /dev/null | grep -v __STDC__ | grep -v __REGISTER_PREFIX__ | grep -v __GNUC__ \
 	| sed 's/^\(#define \([^ ]*\) .*\)$/#undef \2\n\1/' > SWIG/gcc_macros.h
     if [ "${SITEINFO_BITS}" = "64" ];then
Signature · 1 line
2.7.4
#1 lore raw

Thanks for this, this fixes that recipe.

Quoted 40 lines · Alex Kiernan

From: Alex Kiernan <[email protected]>

Fixes:

| DEBUG: Executing shell function do_configure
...
| SWIG/_m2crypto.i:10: Error: Unable to find 'gcc_macros.h' | error: command 'swig' failed with exit status 1

---

 meta-python/recipes-devtools/python/python-m2crypto_0.26.4.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-python/recipes-devtools/python/python-m2crypto_0.26.4.bb +1 -1
index 272c76c..7e22163 100644
@@ -27,7 +27,7 @@ export SWIG_FEATURES
 # Get around a problem with swig, but only if the
 # multilib header file exists.
 #
-do_compile_prepend() {
+do_configure_prepend() {
     ${CPP} -dM - < /dev/null | grep -v __STDC__ | grep -v
 __REGISTER_PREFIX__ | grep -v __GNUC__ \
        | sed 's/^\(#define \([^ ]*\) .*\)$/#undef \2\n\1/' >

SWIG/gcc_macros.h

     if [ "${SITEINFO_BITS}" = "64" ];then

--
2.7.4

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

#2 lore raw

Depending on in which order the changes are applied you might want to remove CLEANBROKEN added in:
https://patchwork.openembedded.org/patch/153208/

Quoted 52 lines · Ian Coolidge

Thanks for this, this fixes that recipe.

Quoted 9 lines · Alex Kiernan

From: Alex Kiernan <[email protected]>

Fixes:

| DEBUG: Executing shell function do_configure
...
| SWIG/_m2crypto.i:10: Error: Unable to find 'gcc_macros.h' | error: command 'swig' failed with exit status 1

Review

Quoted 7 lines

---

 meta-python/recipes-devtools/python/python-m2crypto_0.26.4.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
(quoted diff) +0 -0

python-m2crypto_0.26.4.bb

Quoted 15 lines

b/meta-python/recipes-devtools/python/python-m2crypto_0.26.4.bb index 272c76c..7e22163 100644

meta-python/recipes-devtools/python/python-m2crypto_0.26.4.bb +1 -1
@@ -27,7 +27,7 @@ export SWIG_FEATURES
 # Get around a problem with swig, but only if the
 # multilib header file exists.
 #
-do_compile_prepend() {
+do_configure_prepend() {
     ${CPP} -dM - < /dev/null | grep -v __STDC__ | grep -v
 __REGISTER_PREFIX__ | grep -v __GNUC__ \
        | sed 's/^\(#define \([^ ]*\) .*\)$/#undef \2\n\1/' >

SWIG/gcc_macros.h

     if [ "${SITEINFO_BITS}" = "64" ];then
Quoted 9 lines

--
2.7.4

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

#3 lore raw
Quoted 5 lines · Martin Jansa

Depending on in which order the changes are applied you might want to remove CLEANBROKEN added in:
https://patchwork.openembedded.org/patch/153208/

I think we need a V2 of the above listed patch since Alex's fix is right way for this recipe.

Quoted 60 lines
Quoted 40 lines · Ian Coolidge

Thanks for this, this fixes that recipe.

Quoted 9 lines · Alex Kiernan

From: Alex Kiernan <[email protected]>

Fixes:

| DEBUG: Executing shell function do_configure
...
| SWIG/_m2crypto.i:10: Error: Unable to find 'gcc_macros.h' | error: command 'swig' failed with exit status 1

Review

Quoted 7 lines

---

 meta-python/recipes-devtools/python/python-m2crypto_0.26.4.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
(quoted diff) +0 -0

python-m2crypto_0.26.4.bb

Quoted 18 lines

b/meta-python/recipes-devtools/python/python-m2crypto_0.26.4.bb index 272c76c..7e22163 100644

meta-python/recipes-devtools/python/python-m2crypto_0.26.4.bb +1 -1
@@ -27,7 +27,7 @@ export SWIG_FEATURES
 # Get around a problem with swig, but only if the
 # multilib header file exists.
 #
-do_compile_prepend() {
+do_configure_prepend() {
     ${CPP} -dM - < /dev/null | grep -v __STDC__ | grep -v
 __REGISTER_PREFIX__ | grep -v __GNUC__ \
        | sed 's/^\(#define \([^ ]*\) .*\)$/#undef \2\n\1/' >

SWIG/gcc_macros.h

     if [ "${SITEINFO_BITS}" = "64" ];then

--
2.7.4

Quoted 12 lines
Quoted 6 lines

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel