Hello community,
here is the log from the commit of package libgcrypt for openSUSE:Factory checked in at 2012-03-26 11:03:04
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/libgcrypt (Old)
and /work/SRC/openSUSE:Factory/.libgcrypt.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "libgcrypt", Maintainer is "MVyskocil@suse.com"
Changes:
--------
--- /work/SRC/openSUSE:Factory/libgcrypt/libgcrypt.changes 2012-02-15 16:16:23.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.libgcrypt.new/libgcrypt.changes 2012-03-26 11:03:05.000000000 +0200
@@ -6,0 +7,5 @@
+Sat Dec 24 23:51:26 UTC 2011 - opensuse@dstoecker.de
+
+- add the missing IDEA algorithm after the patent is no longer relevant
+
+------------------------------------------------------------------
New:
----
idea.c.gz
libgcrypt-1.5.0-idea.patch
libgcrypt-1.5.0-idea_codecleanup.patch
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ libgcrypt.spec ++++++
--- /var/tmp/diff_new_pack.EN5Z8P/_old 2012-03-26 11:03:07.000000000 +0200
+++ /var/tmp/diff_new_pack.EN5Z8P/_new 2012-03-26 11:03:07.000000000 +0200
@@ -19,7 +19,7 @@
Name: libgcrypt
BuildRequires: libgpg-error-devel
BuildRequires: libtool
-Url: http://www.gnu.org/directory/Security/libgcrypt.html
+Url: http://directory.fsf.org/wiki/Libgcrypt
Version: 1.5.0
Release: 0
Summary: The GNU Crypto Library
@@ -27,10 +27,13 @@
Group: Development/Libraries/C and C++
Source: %name-%version.tar.bz2
Source2: baselibs.conf
+Source3: idea.c.gz
Patch0: %name-ppc64.patch
Patch1: libgcrypt-strict-aliasing.patch
Patch3: libgcrypt-1.4.1-rijndael_no_strict_aliasing.patch
Patch4: libgcrypt-sparcv9.diff
+Patch5: libgcrypt-1.5.0-idea.patch
+Patch6: libgcrypt-1.5.0-idea_codecleanup.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
@@ -58,7 +61,9 @@
Summary: The GNU Crypto Library
License: GFDL-1.1 ; GPL-2.0+ ; LGPL-2.1+ ; MIT
Group: Development/Libraries/C and C++
-Requires: libgcrypt11 = %version libgpg-error-devel
+Requires: glibc-devel
+Requires: libgcrypt11 = %version
+Requires: libgpg-error-devel
# bug437293
%ifarch ppc64
Obsoletes: libgcrypt-devel-64bit
@@ -75,14 +80,17 @@
%prep
%setup -q -n libgcrypt-%version
+gzip -dc < %{S:3} > cipher/idea.c
%patch0 -p1
%patch1
%patch3 -p1
%patch4 -p1
+%patch5 -p1
+%patch6 -p1
%build
# define ciphers to build
-ENABLE_CIPHER="arcfour blowfish cast5 des aes twofish serpent rfc2268 seed camellia"
+ENABLE_CIPHER="arcfour blowfish cast5 des aes twofish serpent rfc2268 seed camellia idea"
ENABLE_PUBKEY="dsa elgamal rsa ecc"
ENABLE_DIGEST="crc md4 md5 rmd160 sha1 sha256 sha512 tiger whirlpool"
#
++++++ libgcrypt-1.5.0-idea.patch ++++++
diff -ur libgcrypt-1.5.0/cipher/cipher.c libgcrypt-1.5.0f/cipher/cipher.c
--- libgcrypt-1.5.0/cipher/cipher.c 2011-04-19 16:06:57.000000000 +0200
+++ libgcrypt-1.5.0f/cipher/cipher.c 2011-12-25 00:45:18.391287616 +0100
@@ -60,6 +60,12 @@
{ &_gcry_cipher_spec_blowfish,
&dummy_extra_spec, GCRY_CIPHER_BLOWFISH },
#endif
+#if USE_IDEA
+ { &_gcry_cipher_spec_idea,
+ &dummy_extra_spec, GCRY_CIPHER_IDEA },
+#else
+# warn IDEA not supported
+#endif
#if USE_DES
{ &_gcry_cipher_spec_des,
&dummy_extra_spec, GCRY_CIPHER_DES },
diff -ur libgcrypt-1.5.0/cipher/Makefile.am libgcrypt-1.5.0f/cipher/Makefile.am
--- libgcrypt-1.5.0/cipher/Makefile.am 2011-03-11 09:47:39.000000000 +0100
+++ libgcrypt-1.5.0f/cipher/Makefile.am 2011-12-25 00:39:27.051857406 +0100
@@ -51,6 +51,7 @@
dsa.c \
elgamal.c \
ecc.c \
+idea.c \
md4.c \
md5.c \
rijndael.c rijndael-tables.h \
diff -ur libgcrypt-1.5.0/configure.ac libgcrypt-1.5.0f/configure.ac
--- libgcrypt-1.5.0/configure.ac 2011-06-29 10:53:22.000000000 +0200
+++ libgcrypt-1.5.0f/configure.ac 2011-12-25 00:39:27.050857305 +0100
@@ -155,7 +155,7 @@
LIBGCRYPT_CONFIG_HOST="$host"
# Definitions for symmetric ciphers.
-available_ciphers="arcfour blowfish cast5 des aes twofish serpent rfc2268 seed"
+available_ciphers="arcfour blowfish cast5 des aes twofish serpent rfc2268 seed idea"
available_ciphers="$available_ciphers camellia"
enabled_ciphers=""
@@ -1005,6 +1005,12 @@
AC_DEFINE(USE_CAST5, 1, [Defined if this module should be included])
fi
+LIST_MEMBER(idea, $enabled_ciphers)
+if test "$found" = "1" ; then
+ GCRYPT_CIPHERS="$GCRYPT_CIPHERS idea.lo"
+ AC_DEFINE(USE_IDEA, 1, [Defined if this module should be included])
+fi
+
LIST_MEMBER(des, $enabled_ciphers)
if test "$found" = "1" ; then
GCRYPT_CIPHERS="$GCRYPT_CIPHERS des.lo"
diff -ur libgcrypt-1.5.0/src/cipher.h libgcrypt-1.5.0f/src/cipher.h
--- libgcrypt-1.5.0/src/cipher.h 2011-06-10 10:53:41.000000000 +0200
+++ libgcrypt-1.5.0f/src/cipher.h 2011-12-25 00:40:25.323733275 +0100
@@ -118,6 +118,7 @@
/* Declarations for the cipher specifications. */
extern gcry_cipher_spec_t _gcry_cipher_spec_blowfish;
+extern gcry_cipher_spec_t _gcry_cipher_spec_idea;
extern gcry_cipher_spec_t _gcry_cipher_spec_des;
extern gcry_cipher_spec_t _gcry_cipher_spec_tripledes;
extern gcry_cipher_spec_t _gcry_cipher_spec_arcfour;
++++++ libgcrypt-1.5.0-idea_codecleanup.patch ++++++
diff -ur libgcrypt-1.5.0/cipher/idea.c libgcrypt-1.5.0f/cipher/idea.c
--- libgcrypt-1.5.0/cipher/idea.c 2011-12-25 00:45:06.747113267 +0100
+++ libgcrypt-1.5.0f/cipher/idea.c 2011-12-25 00:45:18.393287816 +0100
@@ -89,6 +89,9 @@
#include