1 |
commit: 7d445832c8128d6d9427ccddf8465b92c65145d7 |
2 |
Author: Michelangelo Scopelliti <kernelpanic <AT> gmx <DOT> it> |
3 |
AuthorDate: Thu Nov 23 21:24:52 2017 +0000 |
4 |
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Nov 23 21:27:32 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7d445832 |
7 |
|
8 |
app-text/podofo: fix for libressl (bug 635890) |
9 |
|
10 |
Closes: https://bugs.gentoo.org/635890 |
11 |
Package-Manager: Portage-2.3.16, Repoman-2.3.6 |
12 |
|
13 |
...ofo-0.9.6_pre20171027-libressl-bug-635890.patch | 26 ++++++++++++++++++++++ |
14 |
app-text/podofo/podofo-0.9.6_pre20171027.ebuild | 4 ++++ |
15 |
2 files changed, 30 insertions(+) |
16 |
|
17 |
diff --git a/app-text/podofo/files/podofo-0.9.6_pre20171027-libressl-bug-635890.patch b/app-text/podofo/files/podofo-0.9.6_pre20171027-libressl-bug-635890.patch |
18 |
new file mode 100644 |
19 |
index 00000000000..2b25dc7b685 |
20 |
--- /dev/null |
21 |
+++ b/app-text/podofo/files/podofo-0.9.6_pre20171027-libressl-bug-635890.patch |
22 |
@@ -0,0 +1,26 @@ |
23 |
+From 85e66b066de98f38e0430428906d5cf5396876a0 Mon Sep 17 00:00:00 2001 |
24 |
+From: Michelangelo Scopelliti <kernelpanic@×××.it> |
25 |
+Date: Thu, 23 Nov 2017 12:29:36 +0000 |
26 |
+Subject: [PATCH] Fix to compile with libressl (does not have OPENSSL_init_ssl) |
27 |
+ |
28 |
+Bug: https://bugs.gentoo.org/635890 |
29 |
+--- |
30 |
+ tools/podofosign/podofosign.cpp | 2 +- |
31 |
+ 1 file changed, 1 insertion(+), 1 deletion(-) |
32 |
+ |
33 |
+diff --git a/tools/podofosign/podofosign.cpp b/tools/podofosign/podofosign.cpp |
34 |
+index a7be1e5..5c9d146 100644 |
35 |
+--- a/tools/podofosign/podofosign.cpp |
36 |
++++ b/tools/podofosign/podofosign.cpp |
37 |
+@@ -875,7 +875,7 @@ int main( int argc, char* argv[] ) |
38 |
+ outputfile = NULL; |
39 |
+ } |
40 |
+ |
41 |
+-#ifdef PODOFO_HAVE_OPENSSL_1_1 |
42 |
++#if defined (PODOFO_HAVE_OPENSSL_1_1) && !defined (LIBRESSL_VERSION_NUMBER) |
43 |
+ OPENSSL_init_ssl(0, NULL); |
44 |
+ #else |
45 |
+ OpenSSL_add_all_algorithms(); |
46 |
+-- |
47 |
+2.13.6 |
48 |
+ |
49 |
|
50 |
diff --git a/app-text/podofo/podofo-0.9.6_pre20171027.ebuild b/app-text/podofo/podofo-0.9.6_pre20171027.ebuild |
51 |
index 67a8f21dd4d..b7e200e657a 100644 |
52 |
--- a/app-text/podofo/podofo-0.9.6_pre20171027.ebuild |
53 |
+++ b/app-text/podofo/podofo-0.9.6_pre20171027.ebuild |
54 |
@@ -29,6 +29,10 @@ DEPEND="${RDEPEND} |
55 |
boost? ( dev-util/boost-build ) |
56 |
test? ( dev-util/cppunit )" |
57 |
|
58 |
+PATCHES=( |
59 |
+ "${FILESDIR}/${P}-libressl-bug-635890.patch" |
60 |
+) |
61 |
+ |
62 |
DOCS="AUTHORS ChangeLog TODO" |
63 |
|
64 |
src_prepare() { |