[packages/aMule] - added cryptopp patch (fix for cryptopp 6+, from Gentoo); release 6
qboosh
qboosh at pld-linux.org
Mon Dec 31 11:11:14 CET 2018
commit a870549cea6a1c766b4e0702267adaefecd7df56
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Mon Dec 31 11:16:00 2018 +0100
- added cryptopp patch (fix for cryptopp 6+, from Gentoo); release 6
aMule-cryptopp.patch | 11 +++++++++++
aMule.spec | 4 +++-
2 files changed, 14 insertions(+), 1 deletion(-)
---
diff --git a/aMule.spec b/aMule.spec
index cf24d77..c9105a9 100644
--- a/aMule.spec
+++ b/aMule.spec
@@ -5,7 +5,7 @@ Summary: Unix port of eMule client
Summary(pl.UTF-8): Uniksowy port klienta eMule
Name: aMule
Version: 2.3.2
-Release: 5
+Release: 6
License: GPL v2+
Group: X11/Applications
Source0: http://downloads.sourceforge.net/amule/%{name}-%{version}.tar.bz2
@@ -13,6 +13,7 @@ Source0: http://downloads.sourceforge.net/amule/%{name}-%{version}.tar.bz2
Patch0: %{name}-desktop.patch
Patch1: %{name}-cas-datadir.patch
Patch2: %{name}-ac.patch
+Patch3: %{name}-cryptopp.patch
URL: http://www.amule.org/
BuildRequires: GeoIP-devel
BuildRequires: autoconf >= 2.59
@@ -94,6 +95,7 @@ Narzędzie do generownia statystyk aMule.
%patch0 -p1
%patch1 -p1
%patch2 -p1
+%patch3 -p1
%build
%{__aclocal} -I m4
diff --git a/aMule-cryptopp.patch b/aMule-cryptopp.patch
new file mode 100644
index 0000000..29cefb7
--- /dev/null
+++ b/aMule-cryptopp.patch
@@ -0,0 +1,11 @@
+--- aMule-2.3.2/src/ClientCreditsList.cpp.orig 2016-09-16 09:55:06.000000000 +0200
++++ aMule-2.3.2/src/ClientCreditsList.cpp 2018-12-31 11:04:38.491753618 +0100
+@@ -312,7 +312,7 @@
+ // calculate and store public key
+ CryptoPP::RSASSA_PKCS1v15_SHA_Verifier pubkey(*static_cast<CryptoPP::RSASSA_PKCS1v15_SHA_Signer *>(m_pSignkey));
+ CryptoPP::ArraySink asink(m_abyMyPublicKey, 80);
+- pubkey.DEREncode(asink);
++ pubkey.GetMaterial().Save(asink);
+ m_nMyPublicKeyLen = asink.TotalPutLength();
+ asink.MessageEnd();
+ } catch (const CryptoPP::Exception& e) {
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/aMule.git/commitdiff/a870549cea6a1c766b4e0702267adaefecd7df56
More information about the pld-cvs-commit
mailing list