Gentoo Archives: gentoo-commits

From: Ben Kohler <bkohler@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: www-apache/mod_nss/files/, www-apache/mod_nss/
Date: Tue, 09 Feb 2021 16:59:52
Message-Id: 1612889966.4ac92215090531622c65e6ac10f961dc780156e7.bkohler@gentoo
1 commit: 4ac92215090531622c65e6ac10f961dc780156e7
2 Author: Jakov Smolic <jakov.smolic <AT> sartura <DOT> hr>
3 AuthorDate: Mon Feb 1 12:22:55 2021 +0000
4 Commit: Ben Kohler <bkohler <AT> gentoo <DOT> org>
5 CommitDate: Tue Feb 9 16:59:26 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4ac92215
7
8 www-apache/mod_nss: Bump to 1.0.18
9
10 Closes: https://bugs.gentoo.org/707172
11 Closes: https://bugs.gentoo.org/742455
12
13 Signed-off-by: Jakov Smolic <jakov.smolic <AT> sartura.hr>
14 Signed-off-by: Ben Kohler <bkohler <AT> gentoo.org>
15
16 www-apache/mod_nss/Manifest | 1 +
17 .../mod_nss/files/mod_nss-1.0.18-fno-common.patch | 14 +++++
18 www-apache/mod_nss/mod_nss-1.0.18.ebuild | 64 ++++++++++++++++++++++
19 3 files changed, 79 insertions(+)
20
21 diff --git a/www-apache/mod_nss/Manifest b/www-apache/mod_nss/Manifest
22 index 90c01aff6b2..e13e9e18848 100644
23 --- a/www-apache/mod_nss/Manifest
24 +++ b/www-apache/mod_nss/Manifest
25 @@ -1 +1,2 @@
26 DIST mod_nss-1.0.12.tar.gz 171657 BLAKE2B 75fbde10bb236536aeabc5c15d3d77d9ef4d6b0397dcab433cbfdffdfa2657a59ae2688f0904206897e7fd97e1282f50fe65df37a4cb3457c14c9647bb785fa3 SHA512 f3217f34a20818aea571e17529130290082933b32386a868c8c7f24eb3166bbace4f64d7d73a850c944e54f74342179fff6b9d8af824e0225feeb993aea1d99a
27 +DIST mod_nss-1.0.18.tar.gz 184594 BLAKE2B a2c4b07199bb694b4e5a87ec6bf12bbf32862d44a478da3eb7f374f273786a8d66e3c238fea8e3512fa4986366d44fc8ef4ff77d8965afeee716bcc0685040d0 SHA512 68fe061b40acbe07823ba220a67b0646855b7643e472e757f23b38074fab95aa1b99a3f525748d5dd363b8e278e5521cbacae49c0159700e33f2e1b6b0a0bb77
28
29 diff --git a/www-apache/mod_nss/files/mod_nss-1.0.18-fno-common.patch b/www-apache/mod_nss/files/mod_nss-1.0.18-fno-common.patch
30 new file mode 100644
31 index 00000000000..c6e7babc1d2
32 --- /dev/null
33 +++ b/www-apache/mod_nss/files/mod_nss-1.0.18-fno-common.patch
34 @@ -0,0 +1,14 @@
35 +https://bugs.gentoo.org/707172
36 +--- a/mod_nss.h
37 ++++ b/mod_nss.h
38 +@@ -376,8 +376,8 @@ typedef struct {
39 + */
40 +
41 + /* pool and hash to store ServerName and NSSNickname pairs for SNI */
42 +-apr_pool_t *mp;
43 +-apr_hash_t *ht;
44 ++extern apr_pool_t *mp;
45 ++extern apr_hash_t *ht;
46 +
47 + /* Compatibility between Apache 2.0.x and 2.2.x. The numeric version of
48 + * the version first appeared in Apache 2.0.56-dev. I picked 2.0.55 as it
49
50 diff --git a/www-apache/mod_nss/mod_nss-1.0.18.ebuild b/www-apache/mod_nss/mod_nss-1.0.18.ebuild
51 new file mode 100644
52 index 00000000000..310b5c21508
53 --- /dev/null
54 +++ b/www-apache/mod_nss/mod_nss-1.0.18.ebuild
55 @@ -0,0 +1,64 @@
56 +# Copyright 1999-2021 Gentoo Authors
57 +# Distributed under the terms of the GNU General Public License v2
58 +
59 +EAPI=7
60 +
61 +inherit autotools apache-module
62 +
63 +DESCRIPTION="SSL/TLS module for the Apache HTTP server"
64 +HOMEPAGE="https://pagure.io/mod_nss"
65 +SRC_URI="https://releases.pagure.org/${PN}/${P}.tar.gz"
66 +
67 +LICENSE="Apache-2.0"
68 +SLOT="0"
69 +KEYWORDS="~amd64 ~x86"
70 +IUSE="+ecc"
71 +
72 +# https://bugs.gentoo.org/742455
73 +RESTRICT="test"
74 +
75 +DEPEND="
76 + dev-libs/nspr
77 + dev-libs/nss"
78 +RDEPEND="${DEPEND}
79 + net-dns/bind-tools"
80 +BDEPEND="virtual/pkgconfig"
81 +
82 +APACHE2_MOD_CONF="47_${PN}"
83 +APACHE2_MOD_DEFINE="NSS"
84 +
85 +need_apache2
86 +
87 +PATCHES=( "${FILESDIR}"/${P}-fno-common.patch )
88 +
89 +src_prepare() {
90 + default
91 +
92 + # setup proper exec name
93 + sed -i -e 's/certutil/nsscertutil/' gencert.in || die "sed failed"
94 + eautoreconf
95 +}
96 +
97 +src_configure() {
98 + econf $(use_enable ecc) --with-apxs=${APXS}
99 +}
100 +
101 +src_compile() {
102 + # default src_compile fails:
103 + # In file included from mod_nss.c:16:0:
104 + # mod_nss.h:51:18: fatal error: nspr.h: No such file or directory
105 + emake
106 +}
107 +
108 +src_install() {
109 + # override broken build system
110 + mv .libs/libmodnss.so .libs/"${PN}".so || die "cannot move lib"
111 + dosbin gencert nss_pcache
112 + dodoc docs/mod_nss.html
113 + newbin migrate.pl nss_migrate
114 + dodir /etc/apache2/nss
115 + einstalldocs
116 +
117 + APACHE_MODULESDIR="/usr/$(get_libdir)/apache2/modules"
118 + apache-module_src_install
119 +}