SHA256
1
0
forked from pool/gpgme

Accepting request 69198 from Base:System

Fix test failure with the new gnupg

OBS-URL: https://build.opensuse.org/request/show/69198
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gpgme?expand=0&rev=35
This commit is contained in:
Sascha Peilicke 2011-05-03 07:09:00 +00:00 committed by Git OBS Bridge
commit bce525c263
3 changed files with 29 additions and 0 deletions

View File

@ -0,0 +1,21 @@
Cherry picked from commit 43f38db1afe9830b888076adeec1eec21f32335c
From 43f38db1afe9830b888076adeec1eec21f32335c Mon Sep 17 00:00:00 2001
From: Marcus Brinkmann <marcus.brinkmann@ruhr-uni-bochum.de>
Date: Wed, 27 Apr 2011 12:56:19 +0200
Subject: [PATCH] Update GPGME test suite for use with GnuPG 2.1.
diff --git a/tests/gpg/t-encrypt-sign.c b/tests/gpg/t-encrypt-sign.c
index 9da5ff0..9d00340 100644
--- a/tests/gpg/t-encrypt-sign.c
+++ b/tests/gpg/t-encrypt-sign.c
@@ -60,7 +60,8 @@ check_result (gpgme_sign_result_t result, gpgme_sig_mode_t type)
result->signatures->pubkey_algo);
exit (1);
}
- if (result->signatures->hash_algo != GPGME_MD_SHA1)
+ if (result->signatures->hash_algo != GPGME_MD_SHA1
+ && result->signatures->hash_algo != GPGME_MD_RMD160)
{
fprintf (stderr, "Wrong hash algorithm reported: %i\n",
result->signatures->hash_algo);

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Apr 28 06:24:11 UTC 2011 - idoenmez@novell.com
- Add gnupg-2.0.17-test-failure.patch: fix test failure with gnupg 2.0.17
-------------------------------------------------------------------
Fri Feb 4 15:44:26 CET 2011 - sbrabec@suse.cz

View File

@ -33,6 +33,8 @@ Group: Productivity/Security
Source: ftp://ftp.gnupg.org/gcrypt/gpgme/%{name}-%{version}.tar.bz2
Source2: baselibs.conf
Patch0: gpgme-1.3.0-gpgme-config-remove-extraneous-libs.patch
# PATCH-FIX-UPSTREAM gnupg-2.0.17-test-failure.patch idoenmez@suse.de -- Fix test failure with gnupg 2.0.17
Patch1: gnupg-2.0.17-test-failure.patch
BuildRequires: libassuan-devel >= 1.1.0
BuildRequires: libgpg-error-devel >= 1.4
PreReq: %install_info_prereq
@ -103,6 +105,7 @@ of standard widgets for common key selection tasks is even planned.
%prep
%setup -q
%patch0 -p1
%patch1 -p1
%build
sh autogen.sh