Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-dns/nsd/, net-dns/nsd/files/
Date: Fri, 28 Jan 2022 15:46:49
Message-Id: 1643384786.a27323c9c5ee56359c8a3418dd2b83df0ba4c896.polynomial-c@gentoo
1 commit: a27323c9c5ee56359c8a3418dd2b83df0ba4c896
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jan 28 15:45:55 2022 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Fri Jan 28 15:46:26 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a27323c9
7
8 net-dns/nsd: Fixed build with USE="-ssl"
9
10 Closes: https://bugs.gentoo.org/832213
11 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
12
13 net-dns/nsd/files/nsd-4.3.9-no_ssl.patch | 22 ++++++++++++++++++++++
14 net-dns/nsd/nsd-4.3.9.ebuild | 4 +++-
15 2 files changed, 25 insertions(+), 1 deletion(-)
16
17 diff --git a/net-dns/nsd/files/nsd-4.3.9-no_ssl.patch b/net-dns/nsd/files/nsd-4.3.9-no_ssl.patch
18 new file mode 100644
19 index 000000000000..33553a0ec889
20 --- /dev/null
21 +++ b/net-dns/nsd/files/nsd-4.3.9-no_ssl.patch
22 @@ -0,0 +1,22 @@
23 +From c5e6a8e5e566380c8c6731e9feb7ac686a1c0735 Mon Sep 17 00:00:00 2001
24 +From: "W.C.A. Wijngaards" <wouter@×××××××××.nl>
25 +Date: Fri, 28 Jan 2022 16:38:53 +0100
26 +Subject: [PATCH] - Fix #206: build with --without-ssl fails.
27 +
28 +diff --git a/edns.c b/edns.c
29 +index c7fc39d9..478ec681 100644
30 +--- a/edns.c
31 ++++ b/edns.c
32 +@@ -21,6 +21,12 @@
33 + #include "nsd.h"
34 + #include "query.h"
35 +
36 ++#if !defined(HAVE_SSL) || !defined(HAVE_CRYPTO_MEMCMP)
37 ++/* we need fixed time compare, pull it in from tsig.c */
38 ++#define CRYPTO_memcmp memcmp_fixedtime
39 ++int memcmp_fixedtime(const void *s1, const void *s2, size_t n);
40 ++#endif
41 ++
42 + void
43 + edns_init_data(edns_data_type *data, uint16_t max_length)
44 + {
45
46 diff --git a/net-dns/nsd/nsd-4.3.9.ebuild b/net-dns/nsd/nsd-4.3.9.ebuild
47 index 77567aaed614..e4f824b01061 100644
48 --- a/net-dns/nsd/nsd-4.3.9.ebuild
49 +++ b/net-dns/nsd/nsd-4.3.9.ebuild
50 @@ -1,4 +1,4 @@
51 -# Copyright 1999-2021 Gentoo Authors
52 +# Copyright 1999-2022 Gentoo Authors
53 # Distributed under the terms of the GNU General Public License v2
54
55 EAPI=8
56 @@ -45,6 +45,8 @@ BDEPEND="
57 PATCHES=(
58 # Fix the paths in the munin plugin to match our install
59 "${FILESDIR}"/nsd_munin_.patch
60 +
61 + "${FILESDIR}/${P}-no_ssl.patch" #832213
62 )
63
64 src_prepare() {