From b49d3291e192e6d823cef8a9ee3658ea3873f01b41cde063b359b09635d978b4 Mon Sep 17 00:00:00 2001 From: Pedro Monreal Gonzalez Date: Tue, 24 Aug 2021 10:37:54 +0000 Subject: [PATCH] Accepting request 913985 from home:pmonrealgonzalez:branches:devel:libraries:c_c++ - Fix building test t-lock with pthread. [bsc#1189745] * Explicitly add -lpthread to compile the t-lock test. * Add libgcrypt-pthread-in-t-lock-test.patch OBS-URL: https://build.opensuse.org/request/show/913985 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libgcrypt?expand=0&rev=151 --- libgcrypt-pthread-in-t-lock-test.patch | 13 +++++++++++++ libgcrypt.changes | 7 +++++++ libgcrypt.spec | 2 ++ 3 files changed, 22 insertions(+) create mode 100644 libgcrypt-pthread-in-t-lock-test.patch diff --git a/libgcrypt-pthread-in-t-lock-test.patch b/libgcrypt-pthread-in-t-lock-test.patch new file mode 100644 index 0000000..da1a602 --- /dev/null +++ b/libgcrypt-pthread-in-t-lock-test.patch @@ -0,0 +1,13 @@ +Index: libgcrypt-1.9.3/tests/Makefile.am +=================================================================== +--- libgcrypt-1.9.3.orig/tests/Makefile.am ++++ libgcrypt-1.9.3/tests/Makefile.am +@@ -74,7 +74,7 @@ prime_LDADD = $(standard_ldadd) @LDADD_F + t_mpi_bit_LDADD = $(standard_ldadd) @LDADD_FOR_TESTS_KLUDGE@ + t_secmem_LDADD = $(standard_ldadd) @LDADD_FOR_TESTS_KLUDGE@ + testapi_LDADD = $(standard_ldadd) @LDADD_FOR_TESTS_KLUDGE@ +-t_lock_LDADD = $(standard_ldadd) $(GPG_ERROR_MT_LIBS) @LDADD_FOR_TESTS_KLUDGE@ ++t_lock_LDADD = $(standard_ldadd) $(GPG_ERROR_MT_LIBS) -lpthread @LDADD_FOR_TESTS_KLUDGE@ + t_lock_CFLAGS = $(GPG_ERROR_MT_CFLAGS) + testdrv_LDADD = $(LDADD_FOR_TESTS_KLUDGE) + diff --git a/libgcrypt.changes b/libgcrypt.changes index bca8446..5289b3a 100644 --- a/libgcrypt.changes +++ b/libgcrypt.changes @@ -16,6 +16,13 @@ Mon Aug 23 10:11:55 UTC 2021 - Pedro Monreal - Remove not needed patch libgcrypt-sparcv9.diff +------------------------------------------------------------------- +Thu Jul 15 12:53:45 UTC 2021 - Pedro Monreal + +- Fix building test t-lock with pthread. [bsc#1189745] + * Explicitly add -lpthread to compile the t-lock test. + * Add libgcrypt-pthread-in-t-lock-test.patch + ------------------------------------------------------------------- Fri Jun 11 13:17:54 UTC 2021 - Pedro Monreal diff --git a/libgcrypt.spec b/libgcrypt.spec index 499a2d9..7504af9 100644 --- a/libgcrypt.spec +++ b/libgcrypt.spec @@ -75,6 +75,8 @@ Patch26: libgcrypt-PCT-RSA.patch Patch27: libgcrypt-PCT-DSA.patch Patch28: libgcrypt-PCT-ECC.patch Patch29: libgcrypt-fips_selftest_trigger_file.patch +#PATCH-FIX-SUSE bsc#1189745 The t-lock test is not build with phtread in gcc7, works in gcc11 +Patch30: libgcrypt-pthread-in-t-lock-test.patch BuildRequires: automake >= 1.14 BuildRequires: fipscheck BuildRequires: libgpg-error-devel >= 1.27