diff options
author | Hongxu Jia <hongxu.jia@windriver.com> | 2018-02-01 01:17:10 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-02-06 11:06:28 +0000 |
commit | 7f6b919759902df4d2665e0d72671b53988c5f0a (patch) | |
tree | f31b4eb074cc6463ba92d9b449f392c6afb78c5d | |
parent | 5a74a370ed29821cca2788cc9a7df440a93e916e (diff) | |
download | poky-7f6b919759902df4d2665e0d72671b53988c5f0a.tar.gz |
gpgme: 1.9.0 -> 1.10.0
1. Disable test at build time to workaround corss-compile
Add 0007 to add option to disable python test and submit
it to upstream
2. Rework patch 0002, since the following commit of upstream.
https://git.gnupg.org/cgi-bin/gitweb.cgi?p=gpgme.git;a=commit;h=7309ce6f5f7c86570953a141965d4f54cd9ad9a0
3. Add patch 0006 to fix build path issue to improve reproducibility
and submit it to upstream
(From OE-Core rev: 80d2e065bb3e2ce7d7f8a956c3fecd26eb582b62)
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-support/gpgme/gpgme/0001-pkgconfig.patch | 10 | ||||
-rw-r--r-- | meta/recipes-support/gpgme/gpgme/0002-gpgme-lang-python-gpg-error-config-should-not-be-use.patch | 66 | ||||
-rw-r--r-- | meta/recipes-support/gpgme/gpgme/0003-Correctly-install-python-modules.patch | 27 | ||||
-rw-r--r-- | meta/recipes-support/gpgme/gpgme/0004-python-import.patch | 6 | ||||
-rw-r--r-- | meta/recipes-support/gpgme/gpgme/0005-gpgme-config-skip-all-lib-or-usr-lib-directories-in-.patch | 6 | ||||
-rw-r--r-- | meta/recipes-support/gpgme/gpgme/0006-fix-build-path-issue.patch | 37 | ||||
-rw-r--r-- | meta/recipes-support/gpgme/gpgme/0007-qt-python-Add-variables-to-tests.patch | 78 | ||||
-rw-r--r-- | meta/recipes-support/gpgme/gpgme_1.10.0.bb (renamed from meta/recipes-support/gpgme/gpgme_1.9.0.bb) | 15 |
8 files changed, 179 insertions, 66 deletions
diff --git a/meta/recipes-support/gpgme/gpgme/0001-pkgconfig.patch b/meta/recipes-support/gpgme/gpgme/0001-pkgconfig.patch index 14a43eeeeb..f1997e15a3 100644 --- a/meta/recipes-support/gpgme/gpgme/0001-pkgconfig.patch +++ b/meta/recipes-support/gpgme/gpgme/0001-pkgconfig.patch | |||
@@ -1,7 +1,7 @@ | |||
1 | From 8ae149035c97d27cd2c624704d1651806c53577e Mon Sep 17 00:00:00 2001 | 1 | From 265faf8fe0acaca2043a248a4df02b0868ffa6de Mon Sep 17 00:00:00 2001 |
2 | From: Richard Purdie <richard.purdie@linuxfoundation.org> | 2 | From: Richard Purdie <richard.purdie@linuxfoundation.org> |
3 | Date: Wed, 16 Aug 2017 02:00:08 -0400 | 3 | Date: Wed, 16 Aug 2017 02:00:08 -0400 |
4 | Subject: [PATCH 1/5] pkgconfig | 4 | Subject: [PATCH 1/4] pkgconfig |
5 | 5 | ||
6 | Update gpgme to use pkgconfig instead of -config files since its | 6 | Update gpgme to use pkgconfig instead of -config files since its |
7 | simpler and less error prone when cross compiling. | 7 | simpler and less error prone when cross compiling. |
@@ -25,10 +25,10 @@ Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> | |||
25 | create mode 100644 src/gpgme.pc.in | 25 | create mode 100644 src/gpgme.pc.in |
26 | 26 | ||
27 | diff --git a/configure.ac b/configure.ac | 27 | diff --git a/configure.ac b/configure.ac |
28 | index 0dac6ce..6a9e507 100644 | 28 | index 6ea4bcd..2a0d528 100644 |
29 | --- a/configure.ac | 29 | --- a/configure.ac |
30 | +++ b/configure.ac | 30 | +++ b/configure.ac |
31 | @@ -866,6 +866,7 @@ AC_CONFIG_FILES(Makefile src/Makefile | 31 | @@ -887,6 +887,7 @@ AC_CONFIG_FILES(Makefile src/Makefile |
32 | src/versioninfo.rc | 32 | src/versioninfo.rc |
33 | src/gpgme.h) | 33 | src/gpgme.h) |
34 | AC_CONFIG_FILES(src/gpgme-config, chmod +x src/gpgme-config) | 34 | AC_CONFIG_FILES(src/gpgme-config, chmod +x src/gpgme-config) |
@@ -299,5 +299,5 @@ index 0000000..b69539f | |||
299 | +Requires: libassuan gpg-error | 299 | +Requires: libassuan gpg-error |
300 | \ No newline at end of file | 300 | \ No newline at end of file |
301 | -- | 301 | -- |
302 | 2.8.1 | 302 | 1.8.3.1 |
303 | 303 | ||
diff --git a/meta/recipes-support/gpgme/gpgme/0002-gpgme-lang-python-gpg-error-config-should-not-be-use.patch b/meta/recipes-support/gpgme/gpgme/0002-gpgme-lang-python-gpg-error-config-should-not-be-use.patch index f1f8c911fc..d20271e311 100644 --- a/meta/recipes-support/gpgme/gpgme/0002-gpgme-lang-python-gpg-error-config-should-not-be-use.patch +++ b/meta/recipes-support/gpgme/gpgme/0002-gpgme-lang-python-gpg-error-config-should-not-be-use.patch | |||
@@ -1,29 +1,28 @@ | |||
1 | From fb165c9bd96aca8c9ee3e4509c9b6e35d238ad2e Mon Sep 17 00:00:00 2001 | 1 | From 30f7a694cc4568ecb24f77c83a6123ed3f4075fa Mon Sep 17 00:00:00 2001 |
2 | From: Mark Hatle <mark.hatle@windriver.com> | 2 | From: Hongxu Jia <hongxu.jia@windriver.com> |
3 | Date: Wed, 16 Aug 2017 02:02:47 -0400 | 3 | Date: Wed, 31 Jan 2018 10:44:19 +0800 |
4 | Subject: [PATCH 2/5] gpgme/lang/python: gpg-error-config should not be used. | 4 | Subject: [PATCH] gpgme/lang/python: gpg-error-config should not be used |
5 | 5 | ||
6 | gpg-error-config was modified by OE to always return an error. So we want | 6 | gpg-error-config was modified by OE to always return an error. |
7 | to find an alternative way to retrieve whatever it is we need. It turns | 7 | So we want to find an alternative way to retrieve whatever it |
8 | out that the system is just trying to find the path to the gpg-error.h, which | 8 | is we need. |
9 | we can pull in from the STAGING_INC environment. | ||
10 | 9 | ||
11 | Upstream-Status: Inappropriate [changes are specific to OE] | 10 | Upstream-Status: Inappropriate [changes are specific to OE] |
12 | 11 | ||
13 | Signed-off-by: Mark Hatle <mark.hatle@windriver.com> | 12 | Signed-off-by: Mark Hatle <mark.hatle@windriver.com> |
14 | 13 | ||
15 | Rebase to 1.9.0 | 14 | Rework to 1.10.0 |
16 | 15 | ||
17 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> | 16 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> |
18 | --- | 17 | --- |
19 | lang/python/setup.py.in | 15 ++------------- | 18 | lang/python/setup.py.in | 10 +--------- |
20 | 1 file changed, 2 insertions(+), 13 deletions(-) | 19 | 1 file changed, 1 insertion(+), 9 deletions(-) |
21 | 20 | ||
22 | diff --git a/lang/python/setup.py.in b/lang/python/setup.py.in | 21 | diff --git a/lang/python/setup.py.in b/lang/python/setup.py.in |
23 | index bf4efa3..7c34487 100755 | 22 | index f9dda20..9f5d61f 100755 |
24 | --- a/lang/python/setup.py.in | 23 | --- a/lang/python/setup.py.in |
25 | +++ b/lang/python/setup.py.in | 24 | +++ b/lang/python/setup.py.in |
26 | @@ -24,7 +24,6 @@ import glob | 25 | @@ -26,7 +26,6 @@ import shutil |
27 | import subprocess | 26 | import subprocess |
28 | 27 | ||
29 | # Out-of-tree build of the gpg bindings. | 28 | # Out-of-tree build of the gpg bindings. |
@@ -31,35 +30,22 @@ index bf4efa3..7c34487 100755 | |||
31 | gpgme_config_flags = ["--thread=pthread"] | 30 | gpgme_config_flags = ["--thread=pthread"] |
32 | gpgme_config = ["gpgme-config"] + gpgme_config_flags | 31 | gpgme_config = ["gpgme-config"] + gpgme_config_flags |
33 | gpgme_h = "" | 32 | gpgme_h = "" |
34 | @@ -52,13 +51,6 @@ else: | 33 | @@ -174,14 +173,7 @@ class BuildExtFirstHack(build): |
35 | devnull = open(os.devnull, "w") | ||
36 | 34 | ||
37 | try: | 35 | def _generate_errors_i(self): |
38 | - subprocess.check_call(gpg_error_config + ['--version'], | ||
39 | - stdout=devnull) | ||
40 | -except: | ||
41 | - sys.exit("Could not find gpg-error-config. " + | ||
42 | - "Please install the libgpg-error development package.") | ||
43 | - | ||
44 | -try: | ||
45 | subprocess.check_call(gpgme_config + ['--version'], | ||
46 | stdout=devnull) | ||
47 | except: | ||
48 | @@ -81,12 +73,9 @@ if not (major > 1 or (major == 1 and minor >= 7)): | ||
49 | if not gpgme_h: | ||
50 | gpgme_h = os.path.join(getconfig("prefix")[0], "include", "gpgme.h") | ||
51 | |||
52 | -gpg_error_prefix = getconfig("prefix", config=gpg_error_config)[0] | ||
53 | -gpg_error_h = os.path.join(gpg_error_prefix, "include", "gpg-error.h") | ||
54 | +gpg_error_h = os.path.join(os.getenv('STAGING_INCDIR'), "gpg-error.h") | ||
55 | if not os.path.exists(gpg_error_h): | ||
56 | - gpg_error_h = \ | ||
57 | - glob.glob(os.path.join(gpg_error_prefix, "include", | ||
58 | - "*", "gpg-error.h"))[0] | ||
59 | + sys.exit("gpg_error_h not found: %s" % gpg_error_h) | ||
60 | 36 | ||
61 | print("Building python gpg module using {} and {}.".format(gpgme_h, gpg_error_h)) | 37 | - try: |
38 | - subprocess.check_call(gpg_error_config + ['--version'], | ||
39 | - stdout=devnull) | ||
40 | - except: | ||
41 | - sys.exit("Could not find gpg-error-config. " + | ||
42 | - "Please install the libgpg-error development package.") | ||
43 | - | ||
44 | - gpg_error_content = self._read_header("gpg-error.h", getconfig("cflags", config=gpg_error_config)) | ||
45 | + gpg_error_content = self._read_header("gpg-error.h", os.environ.get('CFLAGS').split()) | ||
62 | 46 | ||
47 | filter_re = re.compile(r'GPG_ERR_[^ ]* =') | ||
48 | rewrite_re = re.compile(r' *(.*) = .*') | ||
63 | -- | 49 | -- |
64 | 2.8.1 | 50 | 1.8.3.1 |
65 | 51 | ||
diff --git a/meta/recipes-support/gpgme/gpgme/0003-Correctly-install-python-modules.patch b/meta/recipes-support/gpgme/gpgme/0003-Correctly-install-python-modules.patch index d38331171e..7c9cccc0ea 100644 --- a/meta/recipes-support/gpgme/gpgme/0003-Correctly-install-python-modules.patch +++ b/meta/recipes-support/gpgme/gpgme/0003-Correctly-install-python-modules.patch | |||
@@ -1,7 +1,7 @@ | |||
1 | From 62332eec752dd790f4dd071dfb0dbe86be377203 Mon Sep 17 00:00:00 2001 | 1 | From 93aae34ee70b8d50b31a19a65d6ac8290cb148ae Mon Sep 17 00:00:00 2001 |
2 | From: Alexander Kanavin <alex.kanavin@gmail.com> | 2 | From: Hongxu Jia <hongxu.jia@windriver.com> |
3 | Date: Wed, 16 Aug 2017 02:05:34 -0400 | 3 | Date: Tue, 30 Jan 2018 15:28:49 +0800 |
4 | Subject: [PATCH 3/5] Correctly install python modules | 4 | Subject: [PATCH 2/4] Correctly install python modules |
5 | 5 | ||
6 | Upstream-Status: Inappropriate [oe-core specific] | 6 | Upstream-Status: Inappropriate [oe-core specific] |
7 | Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> | 7 | Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> |
@@ -9,22 +9,25 @@ Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> | |||
9 | Rebase to 1.9.0 | 9 | Rebase to 1.9.0 |
10 | 10 | ||
11 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> | 11 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> |
12 | |||
13 | Rebase to 1.10.0 | ||
14 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> | ||
12 | --- | 15 | --- |
13 | lang/python/Makefile.am | 1 + | 16 | lang/python/Makefile.am | 1 + |
14 | 1 file changed, 1 insertion(+) | 17 | 1 file changed, 1 insertion(+) |
15 | 18 | ||
16 | diff --git a/lang/python/Makefile.am b/lang/python/Makefile.am | 19 | diff --git a/lang/python/Makefile.am b/lang/python/Makefile.am |
17 | index d91ead9..67f7cdc 100644 | 20 | index 8d74cbd..ce4f0a5 100644 |
18 | --- a/lang/python/Makefile.am | 21 | --- a/lang/python/Makefile.am |
19 | +++ b/lang/python/Makefile.am | 22 | +++ b/lang/python/Makefile.am |
20 | @@ -106,6 +106,7 @@ install-exec-local: | 23 | @@ -91,6 +91,7 @@ install-exec-local: |
21 | cd python$${VERSION}-gpg ; \ | 24 | --build-base="$$(basename "$${PYTHON}")-gpg" \ |
22 | $$PYTHON setup.py install \ | 25 | install \ |
23 | --prefix $(DESTDIR)$(prefix) \ | 26 | --prefix "$(DESTDIR)$(prefix)" \ |
24 | + --install-lib=$(DESTDIR)${pythondir} \ | 27 | + --install-lib=$(DESTDIR)${pythondir} \ |
25 | --record files.txt \ | ||
26 | --verbose ; \ | 28 | --verbose ; \ |
27 | cat files.txt >> ../install_files.txt ; \ | 29 | done |
30 | |||
28 | -- | 31 | -- |
29 | 2.8.1 | 32 | 1.8.3.1 |
30 | 33 | ||
diff --git a/meta/recipes-support/gpgme/gpgme/0004-python-import.patch b/meta/recipes-support/gpgme/gpgme/0004-python-import.patch index 93071030f9..d2b039dacd 100644 --- a/meta/recipes-support/gpgme/gpgme/0004-python-import.patch +++ b/meta/recipes-support/gpgme/gpgme/0004-python-import.patch | |||
@@ -1,7 +1,7 @@ | |||
1 | From ccbf028eea8815d3b16d6c34b527253a6b108ec3 Mon Sep 17 00:00:00 2001 | 1 | From 32ecc3f058307060e40af86127cd226248a73c41 Mon Sep 17 00:00:00 2001 |
2 | From: Ross Burton <ross.burton@intel.com> | 2 | From: Ross Burton <ross.burton@intel.com> |
3 | Date: Wed, 16 Aug 2017 02:06:45 -0400 | 3 | Date: Wed, 16 Aug 2017 02:06:45 -0400 |
4 | Subject: [PATCH 4/5] python import | 4 | Subject: [PATCH 3/4] python import |
5 | 5 | ||
6 | Don't check for output on stderr to know if an import worked, host inputrc and | 6 | Don't check for output on stderr to know if an import worked, host inputrc and |
7 | sysroot readline can cause warnings on stderr. | 7 | sysroot readline can cause warnings on stderr. |
@@ -30,5 +30,5 @@ index b990d5b..318b089 100644 | |||
30 | else | 30 | else |
31 | AC_MSG_RESULT([no]) | 31 | AC_MSG_RESULT([no]) |
32 | -- | 32 | -- |
33 | 2.8.1 | 33 | 1.8.3.1 |
34 | 34 | ||
diff --git a/meta/recipes-support/gpgme/gpgme/0005-gpgme-config-skip-all-lib-or-usr-lib-directories-in-.patch b/meta/recipes-support/gpgme/gpgme/0005-gpgme-config-skip-all-lib-or-usr-lib-directories-in-.patch index 7a6cc7b84d..963ae874ca 100644 --- a/meta/recipes-support/gpgme/gpgme/0005-gpgme-config-skip-all-lib-or-usr-lib-directories-in-.patch +++ b/meta/recipes-support/gpgme/gpgme/0005-gpgme-config-skip-all-lib-or-usr-lib-directories-in-.patch | |||
@@ -1,7 +1,7 @@ | |||
1 | From 064ae4441e2c11329748a18157988f9e953f9752 Mon Sep 17 00:00:00 2001 | 1 | From 6dcedc4dd055af902719b1a1cb10daa935a27f58 Mon Sep 17 00:00:00 2001 |
2 | From: Alexander Kanavin <alex.kanavin@gmail.com> | 2 | From: Alexander Kanavin <alex.kanavin@gmail.com> |
3 | Date: Thu, 13 Apr 2017 16:40:27 +0300 | 3 | Date: Thu, 13 Apr 2017 16:40:27 +0300 |
4 | Subject: [PATCH 5/5] gpgme-config: skip all /lib* or /usr/lib* directories in | 4 | Subject: [PATCH 4/4] gpgme-config: skip all /lib* or /usr/lib* directories in |
5 | output | 5 | output |
6 | 6 | ||
7 | The logic was not working in multilib setups which use other | 7 | The logic was not working in multilib setups which use other |
@@ -27,5 +27,5 @@ index a4d152e..8342865 100644 | |||
27 | ;; | 27 | ;; |
28 | -L*|-l*) | 28 | -L*|-l*) |
29 | -- | 29 | -- |
30 | 2.8.1 | 30 | 1.8.3.1 |
31 | 31 | ||
diff --git a/meta/recipes-support/gpgme/gpgme/0006-fix-build-path-issue.patch b/meta/recipes-support/gpgme/gpgme/0006-fix-build-path-issue.patch new file mode 100644 index 0000000000..8cc8983e27 --- /dev/null +++ b/meta/recipes-support/gpgme/gpgme/0006-fix-build-path-issue.patch | |||
@@ -0,0 +1,37 @@ | |||
1 | From 180a5669e4a13a550b1b0dcef1689b6c0470fe54 Mon Sep 17 00:00:00 2001 | ||
2 | From: Hongxu Jia <hongxu.jia@windriver.com> | ||
3 | Date: Wed, 31 Jan 2018 11:01:09 +0800 | ||
4 | Subject: [PATCH] fix build path issue | ||
5 | |||
6 | Get the "--root" directory supplied to the "install" command, | ||
7 | and use it as a prefix to strip off the purported filename | ||
8 | encoded in bytecode files. | ||
9 | |||
10 | Since --root added, we need to tweak --prefix and --install-lib | ||
11 | to use relative path. | ||
12 | |||
13 | Upstream-Status: Submitted [gnupg-devel@gnupg.org] | ||
14 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> | ||
15 | --- | ||
16 | lang/python/Makefile.am | 5 +++-- | ||
17 | 1 file changed, 3 insertions(+), 2 deletions(-) | ||
18 | |||
19 | diff --git a/lang/python/Makefile.am b/lang/python/Makefile.am | ||
20 | index ce4f0a5..5a468f1 100644 | ||
21 | --- a/lang/python/Makefile.am | ||
22 | +++ b/lang/python/Makefile.am | ||
23 | @@ -90,8 +90,9 @@ install-exec-local: | ||
24 | build \ | ||
25 | --build-base="$$(basename "$${PYTHON}")-gpg" \ | ||
26 | install \ | ||
27 | - --prefix "$(DESTDIR)$(prefix)" \ | ||
28 | - --install-lib=$(DESTDIR)${pythondir} \ | ||
29 | + --root=${DESTDIR} \ | ||
30 | + --prefix "$(prefix)" \ | ||
31 | + --install-lib=${pythondir} \ | ||
32 | --verbose ; \ | ||
33 | done | ||
34 | |||
35 | -- | ||
36 | 1.8.3.1 | ||
37 | |||
diff --git a/meta/recipes-support/gpgme/gpgme/0007-qt-python-Add-variables-to-tests.patch b/meta/recipes-support/gpgme/gpgme/0007-qt-python-Add-variables-to-tests.patch new file mode 100644 index 0000000000..ce3745cca0 --- /dev/null +++ b/meta/recipes-support/gpgme/gpgme/0007-qt-python-Add-variables-to-tests.patch | |||
@@ -0,0 +1,78 @@ | |||
1 | From f47e8c6f9e461803468a64581d3640d873352eaa Mon Sep 17 00:00:00 2001 | ||
2 | From: Hongxu Jia <hongxu.jia@windriver.com> | ||
3 | Date: Thu, 1 Feb 2018 10:14:30 +0800 | ||
4 | Subject: [PATCH] qt/python: Add variables to tests | ||
5 | |||
6 | * configure.ac, lang/python/Makefile.am: | ||
7 | New variable to `lang/python', set to `lang/python' if RUN_LANG_PYTHON_TESTS | ||
8 | |||
9 | * configure.ac, lang/qt/Makefile.am: | ||
10 | New variable to `lang/qt', set to `lang/qt' if RUN_LANG_QT_TESTS | ||
11 | |||
12 | Upstream-Status: Submitted [gnupg-devel@gnupg.org] | ||
13 | |||
14 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> | ||
15 | --- | ||
16 | configure.ac | 11 +++++++++++ | ||
17 | lang/python/Makefile.am | 3 +++ | ||
18 | lang/qt/Makefile.am | 8 +++++++- | ||
19 | 3 files changed, 21 insertions(+), 1 deletion(-) | ||
20 | |||
21 | diff --git a/configure.ac b/configure.ac | ||
22 | index 608c376..fad7467 100644 | ||
23 | --- a/configure.ac | ||
24 | +++ b/configure.ac | ||
25 | @@ -536,6 +536,17 @@ AC_ARG_ENABLE(g13-test, | ||
26 | run_g13_test=$enableval) | ||
27 | AM_CONDITIONAL(RUN_G13_TESTS, test "$run_g13_test" = "yes") | ||
28 | |||
29 | +run_lang_python_test="yes" | ||
30 | +AC_ARG_ENABLE(lang-python-test, | ||
31 | + AC_HELP_STRING([--disable-lang-python-test], [disable Python regression test]), | ||
32 | + run_lang_python_test=$enableval) | ||
33 | +AM_CONDITIONAL(RUN_LANG_PYTHON_TESTS, test "$run_lang_python_test" = "yes") | ||
34 | + | ||
35 | +run_lang_qt_test="yes" | ||
36 | +AC_ARG_ENABLE(lang-qt-test, | ||
37 | + AC_HELP_STRING([--disable-lang-qt-test], [disable Qt regression test]), | ||
38 | + run_lang_qt_test=$enableval) | ||
39 | +AM_CONDITIONAL(RUN_LANG_QT_TESTS, test "$run_lang_qt_test" = "yes") | ||
40 | |||
41 | # Checks for header files. | ||
42 | AC_CHECK_HEADERS_ONCE([locale.h sys/select.h sys/uio.h argp.h | ||
43 | diff --git a/lang/python/Makefile.am b/lang/python/Makefile.am | ||
44 | index 8d74cbd..43b5d1e 100644 | ||
45 | --- a/lang/python/Makefile.am | ||
46 | +++ b/lang/python/Makefile.am | ||
47 | @@ -24,7 +24,10 @@ EXTRA_DIST = \ | ||
48 | examples \ | ||
49 | src | ||
50 | |||
51 | +if RUN_LANG_PYTHON_TESTS | ||
52 | SUBDIRS = . tests | ||
53 | +endif | ||
54 | + | ||
55 | |||
56 | .PHONY: prepare | ||
57 | prepare: copystamp | ||
58 | diff --git a/lang/qt/Makefile.am b/lang/qt/Makefile.am | ||
59 | index ab85960..a244ede 100644 | ||
60 | --- a/lang/qt/Makefile.am | ||
61 | +++ b/lang/qt/Makefile.am | ||
62 | @@ -19,6 +19,12 @@ | ||
63 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA | ||
64 | # 02111-1307, USA | ||
65 | |||
66 | -SUBDIRS = src tests doc | ||
67 | +if RUN_LANG_QT_TESTS | ||
68 | +qttests = tests | ||
69 | +else | ||
70 | +qttests = | ||
71 | +endif | ||
72 | + | ||
73 | +SUBDIRS = src ${qttests} doc | ||
74 | |||
75 | EXTRA_DIST = README | ||
76 | -- | ||
77 | 1.8.3.1 | ||
78 | |||
diff --git a/meta/recipes-support/gpgme/gpgme_1.9.0.bb b/meta/recipes-support/gpgme/gpgme_1.10.0.bb index 065c34663c..f015f3ad75 100644 --- a/meta/recipes-support/gpgme/gpgme_1.9.0.bb +++ b/meta/recipes-support/gpgme/gpgme_1.10.0.bb | |||
@@ -16,10 +16,12 @@ SRC_URI = "${GNUPG_MIRROR}/gpgme/${BP}.tar.bz2 \ | |||
16 | file://0003-Correctly-install-python-modules.patch \ | 16 | file://0003-Correctly-install-python-modules.patch \ |
17 | file://0004-python-import.patch \ | 17 | file://0004-python-import.patch \ |
18 | file://0005-gpgme-config-skip-all-lib-or-usr-lib-directories-in-.patch \ | 18 | file://0005-gpgme-config-skip-all-lib-or-usr-lib-directories-in-.patch \ |
19 | file://0006-fix-build-path-issue.patch \ | ||
20 | file://0007-qt-python-Add-variables-to-tests.patch \ | ||
19 | " | 21 | " |
20 | 22 | ||
21 | SRC_URI[md5sum] = "1e00bb8ef04d1d05d5a0f19e143854c3" | 23 | SRC_URI[md5sum] = "78b1533c593478982ee2fc548260c563" |
22 | SRC_URI[sha256sum] = "1b29fedb8bfad775e70eafac5b0590621683b2d9869db994568e6401f4034ceb" | 24 | SRC_URI[sha256sum] = "1a8fed1197c3b99c35f403066bb344a26224d292afc048cfdfc4ccd5690a0693" |
23 | 25 | ||
24 | DEPENDS = "libgpg-error libassuan" | 26 | DEPENDS = "libgpg-error libassuan" |
25 | RDEPENDS_${PN}-cpp += "libstdc++" | 27 | RDEPENDS_${PN}-cpp += "libstdc++" |
@@ -49,7 +51,14 @@ LANGUAGES .= "${@bb.utils.contains('PACKAGECONFIG', 'python3', ' python3', '', d | |||
49 | PYTHON_INHERIT = "${@bb.utils.contains('PACKAGECONFIG', 'python2', 'pythonnative', '', d)}" | 51 | PYTHON_INHERIT = "${@bb.utils.contains('PACKAGECONFIG', 'python2', 'pythonnative', '', d)}" |
50 | PYTHON_INHERIT .= "${@bb.utils.contains('PACKAGECONFIG', 'python3', 'python3native', '', d)}" | 52 | PYTHON_INHERIT .= "${@bb.utils.contains('PACKAGECONFIG', 'python3', 'python3native', '', d)}" |
51 | 53 | ||
52 | EXTRA_OECONF += '--enable-languages="${LANGUAGES}"' | 54 | EXTRA_OECONF += '--enable-languages="${LANGUAGES}" \ |
55 | --disable-gpgconf-test \ | ||
56 | --disable-gpg-test \ | ||
57 | --disable-gpgsm-test \ | ||
58 | --disable-g13-test \ | ||
59 | --disable-lang-qt-test \ | ||
60 | --disable-lang-python-test \ | ||
61 | ' | ||
53 | 62 | ||
54 | inherit autotools texinfo binconfig-disabled pkgconfig ${PYTHON_INHERIT} | 63 | inherit autotools texinfo binconfig-disabled pkgconfig ${PYTHON_INHERIT} |
55 | 64 | ||