Gentoo Archives: gentoo-commits

From: Aaron Bauman <bman@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-db/sqlitestudio/, dev-db/sqlitestudio/files/
Date: Fri, 29 Mar 2019 05:11:31
Message-Id: 1553836267.4d26198ef2dd685c8b3c4e066e70a1645227d6d1.bman@gentoo
1 commit: 4d26198ef2dd685c8b3c4e066e70a1645227d6d1
2 Author: Stefan Strogin <stefan.strogin <AT> gmail <DOT> com>
3 AuthorDate: Mon Mar 25 16:39:32 2019 +0000
4 Commit: Aaron Bauman <bman <AT> gentoo <DOT> org>
5 CommitDate: Fri Mar 29 05:11:07 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4d26198e
7
8 dev-db/sqlitestudio: add patch to fix build with LibreSSL
9
10 Closes: https://bugs.gentoo.org/681638
11 Package-Manager: Portage-2.3.62, Repoman-2.3.12
12 Signed-off-by: Stefan Strogin <stefan.strogin <AT> gmail.com>
13 Closes: https://github.com/gentoo/gentoo/pull/11495
14 Signed-off-by: Aaron Bauman <bman <AT> gentoo.org>
15
16 .../files/sqlitestudio-3.2.1-libressl.patch | 32 ++++++++++++++++++++++
17 ...o-3.2.1.ebuild => sqlitestudio-3.2.1-r1.ebuild} | 1 +
18 2 files changed, 33 insertions(+)
19
20 diff --git a/dev-db/sqlitestudio/files/sqlitestudio-3.2.1-libressl.patch b/dev-db/sqlitestudio/files/sqlitestudio-3.2.1-libressl.patch
21 new file mode 100644
22 index 00000000000..06552942e94
23 --- /dev/null
24 +++ b/dev-db/sqlitestudio/files/sqlitestudio-3.2.1-libressl.patch
25 @@ -0,0 +1,32 @@
26 +From 64542c8c5cb3ad9249fa353ff4472c405057d743 Mon Sep 17 00:00:00 2001
27 +From: Stefan Strogin <stefan.strogin@×××××.com>
28 +Date: Mon, 25 Mar 2019 18:07:13 +0200
29 +Subject: [PATCH] #3505 Fix compilation with LibreSSL >=2.7.0
30 +
31 +HMAC_CTX_{new,free} were provided by LibreSSL 2.7.0.
32 +Do not redefine them, otherwise it breaks compilation.
33 +
34 +Upstream-Status: Accepted
35 +[https://github.com/pawelsalawa/sqlitestudio/pull/3507]
36 +Signed-off-by: Stefan Strogin <stefan.strogin@×××××.com>
37 +---
38 + Plugins/DbSqliteCipher/sqlcipher.c | 3 ++-
39 + 1 file changed, 2 insertions(+), 1 deletion(-)
40 +
41 +diff --git a/Plugins/DbSqliteCipher/sqlcipher.c b/Plugins/DbSqliteCipher/sqlcipher.c
42 +index 4918cb6f..10c4e5a3 100644
43 +--- a/Plugins/DbSqliteCipher/sqlcipher.c
44 ++++ b/Plugins/DbSqliteCipher/sqlcipher.c
45 +@@ -21638,7 +21638,8 @@ static unsigned int openssl_external_init = 0;
46 + static unsigned int openssl_init_count = 0;
47 + static sqlcipher_sqlite3_mutex* openssl_rand_mutex = NULL;
48 +
49 +-#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
50 ++#if OPENSSL_VERSION_NUMBER < 0x10100000L || \
51 ++ (defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x2070000fL)
52 + static HMAC_CTX *HMAC_CTX_new(void)
53 + {
54 + HMAC_CTX *ctx = OPENSSL_malloc(sizeof(*ctx));
55 +--
56 +2.21.0
57 +
58
59 diff --git a/dev-db/sqlitestudio/sqlitestudio-3.2.1.ebuild b/dev-db/sqlitestudio/sqlitestudio-3.2.1-r1.ebuild
60 similarity index 98%
61 rename from dev-db/sqlitestudio/sqlitestudio-3.2.1.ebuild
62 rename to dev-db/sqlitestudio/sqlitestudio-3.2.1-r1.ebuild
63 index bd8f78a3763..f1b05ce7abe 100644
64 --- a/dev-db/sqlitestudio/sqlitestudio-3.2.1.ebuild
65 +++ b/dev-db/sqlitestudio/sqlitestudio-3.2.1-r1.ebuild
66 @@ -36,6 +36,7 @@ DEPEND="${RDEPEND}
67 dev-qt/qtconcurrent:5
68 test? ( dev-qt/qttest:5 )
69 "
70 +PATCHES=( "${FILESDIR}"/${P}-libressl.patch )
71
72 S="${WORKDIR}"
73 core_build_dir="${S}/output/build"