From 113f70ec80afe48d98b60293be3d2f09155d301c Mon Sep 17 00:00:00 2001 From: Alon Bar-Lev Date: Fri, 23 Sep 2016 23:29:55 +0300 Subject: app-crypt/gpgme: fix qt tests issue Bug: 594922 Package-Manager: portage-2.2.28 --- .../files/gpgme-1.7.0-build-tests-disable.patch | 40 +++++++++++ .../gpgme/files/gpgme-1.7.0-build-tests.patch | 82 ++++++++++++++++++++++ app-crypt/gpgme/gpgme-1.7.0.ebuild | 9 ++- 3 files changed, 126 insertions(+), 5 deletions(-) create mode 100644 app-crypt/gpgme/files/gpgme-1.7.0-build-tests-disable.patch create mode 100644 app-crypt/gpgme/files/gpgme-1.7.0-build-tests.patch (limited to 'app-crypt') diff --git a/app-crypt/gpgme/files/gpgme-1.7.0-build-tests-disable.patch b/app-crypt/gpgme/files/gpgme-1.7.0-build-tests-disable.patch new file mode 100644 index 000000000000..7d56ad32d6fc --- /dev/null +++ b/app-crypt/gpgme/files/gpgme-1.7.0-build-tests-disable.patch @@ -0,0 +1,40 @@ +From 516022b0cd1a43973a467bb5b7e6813b9444d608 Mon Sep 17 00:00:00 2001 +From: Alon Bar-Lev +Date: Fri, 23 Sep 2016 22:46:39 +0300 +Subject: [PATCH] build: tests: remove non working + +Signed-off-by: Alon Bar-Lev +--- + lang/qt/tests/Makefile.am | 2 +- + tests/gpg/Makefile.am | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/lang/qt/tests/Makefile.am b/lang/qt/tests/Makefile.am +index a41dc8c..e05c8a3 100644 +--- a/lang/qt/tests/Makefile.am ++++ b/lang/qt/tests/Makefile.am +@@ -25,7 +25,7 @@ TESTS_ENVIRONMENT = GNUPGHOME=$(abs_builddir) + EXTRA_DIST = initial.test + + TESTS = initial.test t-keylist t-keylocate t-ownertrust t-tofuinfo \ +- t-encrypt t-wkspublish ++ t-wkspublish + + moc_files = t-keylist.moc t-keylocate.moc t-ownertrust.moc t-tofuinfo.moc \ + t-encrypt.moc t-support.hmoc t-wkspublish.moc +diff --git a/tests/gpg/Makefile.am b/tests/gpg/Makefile.am +index 9877843..90a1dfd 100644 +--- a/tests/gpg/Makefile.am ++++ b/tests/gpg/Makefile.am +@@ -36,7 +36,7 @@ endif + + c_tests = \ + t-encrypt t-encrypt-sym t-encrypt-sign t-sign t-signers \ +- t-decrypt t-verify t-decrypt-verify t-sig-notation t-export \ ++ t-decrypt t-verify t-decrypt-verify t-export \ + t-import t-trustlist t-edit t-keylist t-keylist-sig t-wait \ + t-encrypt-large t-file-name t-gpgconf t-encrypt-mixed $(tests_unix) + +-- +2.7.3 + diff --git a/app-crypt/gpgme/files/gpgme-1.7.0-build-tests.patch b/app-crypt/gpgme/files/gpgme-1.7.0-build-tests.patch new file mode 100644 index 000000000000..719ddac16258 --- /dev/null +++ b/app-crypt/gpgme/files/gpgme-1.7.0-build-tests.patch @@ -0,0 +1,82 @@ +From c2f352363615a4581e01999eb4230f4921cc6f9f Mon Sep 17 00:00:00 2001 +From: Alon Bar-Lev +Date: Fri, 23 Sep 2016 23:05:35 +0300 +Subject: [PATCH] build: avoid build tests if not required + +Signed-off-by: Alon Bar-Lev +--- + lang/qt/tests/Makefile.am | 2 +- + tests/Makefile.am | 2 +- + tests/gpg/Makefile.am | 2 +- + tests/gpgsm/Makefile.am | 2 +- + tests/opassuan/Makefile.am | 2 +- + 5 files changed, 5 insertions(+), 5 deletions(-) + +diff --git a/lang/qt/tests/Makefile.am b/lang/qt/tests/Makefile.am +index 36ecfe4..63186e7 100644 +--- a/lang/qt/tests/Makefile.am ++++ b/lang/qt/tests/Makefile.am +@@ -62,7 +62,7 @@ nodist_t_keylist_SOURCES = $(moc_files) + + BUILT_SOURCES = $(moc_files) + +-noinst_PROGRAMS = t-keylist t-keylocate t-ownertrust t-tofuinfo t-encrypt \ ++check_PROGRAMS = t-keylist t-keylocate t-ownertrust t-tofuinfo t-encrypt \ + run-keyformailboxjob t-wkspublish + + CLEANFILES = secring.gpg pubring.gpg pubring.kbx trustdb.gpg dirmngr.conf \ +diff --git a/tests/Makefile.am b/tests/Makefile.am +index c71914f..b698e11 100644 +--- a/tests/Makefile.am ++++ b/tests/Makefile.am +@@ -31,7 +31,7 @@ LDADD = ../src/libgpgme.la @GPG_ERROR_LIBS@ + + noinst_HEADERS = run-support.h + +-noinst_PROGRAMS = $(TESTS) run-keylist run-export run-import run-sign \ ++check_PROGRAMS = $(TESTS) run-keylist run-export run-import run-sign \ + run-verify run-encrypt run-identify run-decrypt run-genkey \ + run-keysign run-tofu + +diff --git a/tests/gpg/Makefile.am b/tests/gpg/Makefile.am +index 90a1dfd..671a2f3 100644 +--- a/tests/gpg/Makefile.am ++++ b/tests/gpg/Makefile.am +@@ -64,7 +64,7 @@ LDADD = ../../src/libgpgme.la + t_thread1_LDADD = ../../src/libgpgme-pthread.la -lpthread + + # We don't run t-genkey in the test suite, because it takes too long +-noinst_PROGRAMS = $(c_tests) t-genkey ++check_PROGRAMS = $(c_tests) t-genkey + + clean-local: + -$(top_srcdir)/tests/start-stop-agent --stop +diff --git a/tests/gpgsm/Makefile.am b/tests/gpgsm/Makefile.am +index 41645b6..1bdb712 100644 +--- a/tests/gpgsm/Makefile.am ++++ b/tests/gpgsm/Makefile.am +@@ -40,7 +40,7 @@ LDADD = ../../src/libgpgme.la + + # We don't run t-genkey in the test suite, because it takes too long + # and needs a working pinentry. +-noinst_PROGRAMS = $(c_tests) t-genkey cms-keylist cms-decrypt ++check_PROGRAMS = $(c_tests) t-genkey cms-keylist cms-decrypt + + key_id = 32100C27173EF6E9C4E9A25D3D69F86D37A4F939 + +diff --git a/tests/opassuan/Makefile.am b/tests/opassuan/Makefile.am +index 31d26ed..608b608 100644 +--- a/tests/opassuan/Makefile.am ++++ b/tests/opassuan/Makefile.am +@@ -27,7 +27,7 @@ EXTRA_DIST = + AM_CPPFLAGS = -I$(top_builddir)/src @GPG_ERROR_CFLAGS@ + LDADD = ../../src/libgpgme.la + +-noinst_PROGRAMS = $(TESTS) t-command ++check_PROGRAMS = $(TESTS) t-command + + DISTCLEANFILES = + +-- +2.7.3 + diff --git a/app-crypt/gpgme/gpgme-1.7.0.ebuild b/app-crypt/gpgme/gpgme-1.7.0.ebuild index bb05f4033c2c..41ebf7059ab3 100644 --- a/app-crypt/gpgme/gpgme-1.7.0.ebuild +++ b/app-crypt/gpgme/gpgme-1.7.0.ebuild @@ -4,7 +4,7 @@ EAPI="6" -inherit eutils qmake-utils +inherit autotools eutils DESCRIPTION="GnuPG Made Easy is a library for making GnuPG easier to use" HOMEPAGE="http://www.gnupg.org/related_software/gpgme" @@ -33,14 +33,13 @@ REQUIRED_USE="qt5? ( cxx )" PATCHES=( "${FILESDIR}"/${PN}-1.1.8-et_EE.patch + "${FILESDIR}"/${P}-build-tests.patch + "${FILESDIR}"/${P}-build-tests-disable.patch ) src_prepare() { default - - # remove non working tests - sed -i 's/\tt-sig-notation\$(EXEEXT)/\t/' tests/gpg/Makefile.in || die - sed -i 's/ t-encrypt\$(EXEEXT)//' lang/qt/tests/Makefile.in || die + eautoreconf } src_configure() { -- cgit v1.2.3-65-gdbad