summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support/gpgme
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2017-04-04 15:40:01 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-04-05 23:22:12 +0100
commitc3186382ae0e4576e587ae5c0c0952c906bb8926 (patch)
tree000278553201a7a72349cecc8cafd6c75b264163 /meta/recipes-support/gpgme
parente19289f28ff205413b86412ec9a5f3c85fc4a5e5 (diff)
downloadpoky-c3186382ae0e4576e587ae5c0c0952c906bb8926.tar.gz
gpgme: fix configure if 'import distutils' causes output on stderr
There are a number of reasons that importing a module could cause output on stderr that isn't a fatal error (compatibilty problems with inputrc, or encoding warnings) so backport a patch from autoconf-archive to only check the exit code instead of asserting that stderr is empty. [ YOCTO #11231 ] (From OE-Core rev: ebfd79ae6e5954253c3bb0886d476be480b24de8) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support/gpgme')
-rw-r--r--meta/recipes-support/gpgme/gpgme/python-import.patch19
-rw-r--r--meta/recipes-support/gpgme/gpgme_1.8.0.bb2
2 files changed, 20 insertions, 1 deletions
diff --git a/meta/recipes-support/gpgme/gpgme/python-import.patch b/meta/recipes-support/gpgme/gpgme/python-import.patch
new file mode 100644
index 0000000000..61b77a1f75
--- /dev/null
+++ b/meta/recipes-support/gpgme/gpgme/python-import.patch
@@ -0,0 +1,19 @@
1Don't check for output on stderr to know if an import worked, host inputrc and
2sysroot readline can cause warnings on stderr.
3
4Upstream-Status: Backport (from autoconf-archive 883a2abd)
5Signed-off-by: Ross Burton <ross.burton@intel.com>
6
7diff --git a/m4/ax_python_devel.m4 b/m4/ax_python_devel.m4
8index b990d5b..318b089 100644
9--- a/m4/ax_python_devel.m4
10+++ b/m4/ax_python_devel.m4
11@@ -137,7 +137,7 @@ variable to configure. See ``configure --help'' for reference.
12 #
13 AC_MSG_CHECKING([for the distutils Python package])
14 ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
15- if test -z "$ac_distutils_result"; then
16+ if test $? -eq 0; then
17 AC_MSG_RESULT([yes])
18 else
19 AC_MSG_RESULT([no])
diff --git a/meta/recipes-support/gpgme/gpgme_1.8.0.bb b/meta/recipes-support/gpgme/gpgme_1.8.0.bb
index 2756ef815d..eddf3a0399 100644
--- a/meta/recipes-support/gpgme/gpgme_1.8.0.bb
+++ b/meta/recipes-support/gpgme/gpgme_1.8.0.bb
@@ -15,6 +15,7 @@ SRC_URI = "${GNUPG_MIRROR}/gpgme/${BP}.tar.bz2 \
15 file://python-lang-config.patch \ 15 file://python-lang-config.patch \
16 file://0001-Correctly-install-python-modules.patch \ 16 file://0001-Correctly-install-python-modules.patch \
17 file://0001-Avoid-host-contamination-from-gpg-config.patch \ 17 file://0001-Avoid-host-contamination-from-gpg-config.patch \
18 file://python-import.patch \
18 " 19 "
19 20
20SRC_URI[md5sum] = "722a4153904b9b5dc15485a22d29263b" 21SRC_URI[md5sum] = "722a4153904b9b5dc15485a22d29263b"
@@ -70,4 +71,3 @@ do_configure_prepend () {
70 rm -f ${S}/m4/gpg-error.m4 71 rm -f ${S}/m4/gpg-error.m4
71 rm -f ${S}/m4/libassuan.m4 72 rm -f ${S}/m4/libassuan.m4
72} 73}
73