Gentoo Archives: gentoo-commits

From: "Jakov Smolić" <jsmolic@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: profiles/, dev-java/jss/, dev-java/jss/files/
Date: Sun, 26 Dec 2021 17:52:43
Message-Id: 1640541000.e7e084bdd8e0c19a2ed47b9a8c3e85ca8e1186a7.jsmolic@gentoo
1 commit: e7e084bdd8e0c19a2ed47b9a8c3e85ca8e1186a7
2 Author: Jakov Smolić <jsmolic <AT> gentoo <DOT> org>
3 AuthorDate: Sun Dec 26 17:50:00 2021 +0000
4 Commit: Jakov Smolić <jsmolic <AT> gentoo <DOT> org>
5 CommitDate: Sun Dec 26 17:50:00 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e7e084bd
7
8 dev-java/jss: treeclean
9
10 Closes: https://bugs.gentoo.org/721052
11 Signed-off-by: Jakov Smolić <jsmolic <AT> gentoo.org>
12
13 dev-java/jss/Manifest | 1 -
14 dev-java/jss/files/jss-3.4-target_source.patch | 11 --
15 dev-java/jss/files/jss-4.2.5-use_pkg-config.patch | 24 ----
16 dev-java/jss/files/jss-4.3-cflags.patch | 11 --
17 dev-java/jss/files/jss-4.3-javadoc.patch | 11 --
18 dev-java/jss/files/jss-4.3-secitem.patch | 154 ----------------------
19 dev-java/jss/files/jss-4.3.2-ldflags.patch | 11 --
20 dev-java/jss/jss-4.3.2.ebuild | 95 -------------
21 dev-java/jss/metadata.xml | 16 ---
22 profiles/package.mask | 8 --
23 10 files changed, 342 deletions(-)
24
25 diff --git a/dev-java/jss/Manifest b/dev-java/jss/Manifest
26 deleted file mode 100644
27 index 08f711777829..000000000000
28 --- a/dev-java/jss/Manifest
29 +++ /dev/null
30 @@ -1 +0,0 @@
31 -DIST jss-4.3.2.tar.bz2 435542 BLAKE2B 9623018e6e67654219fa439fdc907777cd286aa28b6bdbafee39a7082f949bc393d60dba32ca0b49178ecd423dcff0aa3ad411abb9db9332c6429d7751d89127 SHA512 3296da72f204fc4a0ea58dd889cf2721a4afa0ec7b5406312e64354cc67edcfc370140ad22a24f0dfcf11e438e69ebe9da45a70b5cbaa4026b40fd5fcf96c232
32
33 diff --git a/dev-java/jss/files/jss-3.4-target_source.patch b/dev-java/jss/files/jss-3.4-target_source.patch
34 deleted file mode 100644
35 index 5d5ce6409654..000000000000
36 --- a/dev-java/jss/files/jss-3.4-target_source.patch
37 +++ /dev/null
38 @@ -1,11 +0,0 @@
39 ---- a/mozilla/security/jss/build_java.pl
40 -+++ b/mozilla/security/jss/build_java.pl
41 -@@ -190,7 +190,7 @@
42 - #
43 - if( scalar(@source_list) > 0 ) {
44 - ensure_dir_exists($class_dir);
45 -- print_do("$javac $javac_opt_flag -sourcepath . -d $class_dir " .
46 -+ print_do("$javac $ENV{JAVA_GENTOO_OPTS} $javac_opt_flag -sourcepath . -d $class_dir " .
47 - "$classpath " . join(" ",@source_list));
48 - }
49 -
50
51 diff --git a/dev-java/jss/files/jss-4.2.5-use_pkg-config.patch b/dev-java/jss/files/jss-4.2.5-use_pkg-config.patch
52 deleted file mode 100644
53 index adf2862c90e6..000000000000
54 --- a/dev-java/jss/files/jss-4.2.5-use_pkg-config.patch
55 +++ /dev/null
56 @@ -1,24 +0,0 @@
57 -Submitted By: Mario Fetka (mario-fetka at gmx dot at)
58 -Date: 2007-10-06
59 -Initial Package Version: 4.2.5
60 -Origin: me
61 -Upstream Status: #392775 UNCONFIRMED
62 -Description: this patch adds pkgconfig support to jss coreconf
63 -!!!! no check for NSS_PKGCONFIG NSPR_PKGCONFIG at the moment !!!!
64 -
65 ---- a/mozilla/security/coreconf/location.mk
66 -+++ b/mozilla/security/coreconf/location.mk
67 -@@ -67,6 +67,13 @@
68 -
69 - GARBAGE += $(DEPENDENCIES) core $(wildcard core.[0-9]*)
70 -
71 -+ifdef USE_PKGCONFIG
72 -+ NSPR_INCLUDE_DIR = `${PKG_CONFIG} --variable=includedir $(NSPR_PKGCONFIG)`
73 -+ NSPR_LIB_DIR = `${PKG_CONFIG} --variable=libdir $(NSPR_PKGCONFIG)`
74 -+ NSS_INCLUDE_DIR = `${PKG_CONFIG} --variable=includedir $(NSS_PKGCONFIG)`
75 -+ NSS_LIB_DIR = `${PKG_CONFIG} --variable=libdir $(NSS_PKGCONFIG)`
76 -+endif
77 -+
78 - ifdef NSPR_INCLUDE_DIR
79 - INCLUDES += -I$(NSPR_INCLUDE_DIR)
80 - endif
81
82 diff --git a/dev-java/jss/files/jss-4.3-cflags.patch b/dev-java/jss/files/jss-4.3-cflags.patch
83 deleted file mode 100644
84 index 8b9705ca1e3d..000000000000
85 --- a/dev-java/jss/files/jss-4.3-cflags.patch
86 +++ /dev/null
87 @@ -1,11 +0,0 @@
88 ---- a/security/coreconf/command.mk
89 -+++ b/security/coreconf/command.mk
90 -@@ -45,7 +45,7 @@
91 - CCF = $(CC) $(CFLAGS)
92 - LINK_DLL = $(LINK) $(OS_DLLFLAGS) $(DLLFLAGS)
93 - LINK_EXE = $(LINK) $(OS_LFLAGS) $(LFLAGS)
94 --CFLAGS = $(OPTIMIZER) $(OS_CFLAGS) $(XP_DEFINE) $(DEFINES) $(INCLUDES) \
95 -+CFLAGS += $(OPTIMIZER) $(OS_CFLAGS) $(XP_DEFINE) $(DEFINES) $(INCLUDES) \
96 - $(XCFLAGS)
97 - PERL = perl
98 - RANLIB = echo
99
100 diff --git a/dev-java/jss/files/jss-4.3-javadoc.patch b/dev-java/jss/files/jss-4.3-javadoc.patch
101 deleted file mode 100644
102 index 87941029bcee..000000000000
103 --- a/dev-java/jss/files/jss-4.3-javadoc.patch
104 +++ /dev/null
105 @@ -1,11 +0,0 @@
106 ---- a/security/jss/build_java.pl
107 -+++ b/security/jss/build_java.pl
108 -@@ -323,7 +323,7 @@
109 - ensure_dir_exists("$dist_dir/jssdoc");
110 - my $targets = join(" ", @packages);
111 - print "$targets\n";
112 -- print_do("$javadoc -breakiterator -sourcepath . -d $dist_dir/jssdoc $html_header_opt $targets");
113 -+ print_do("$javadoc -Xdoclint:none -breakiterator -sourcepath . -d $dist_dir/jssdoc $html_header_opt $targets");
114 - print_do("cp $dist_dir/jssdoc/index.html $dist_dir/jssdoc/index.html.bak");
115 - print_do("cp $dist_dir/jssdoc/overview-summary.html $dist_dir/jssdoc/index.html");
116 - }
117
118 diff --git a/dev-java/jss/files/jss-4.3-secitem.patch b/dev-java/jss/files/jss-4.3-secitem.patch
119 deleted file mode 100644
120 index a215bc628ea7..000000000000
121 --- a/dev-java/jss/files/jss-4.3-secitem.patch
122 +++ /dev/null
123 @@ -1,154 +0,0 @@
124 ---- a/security/jss/org/mozilla/jss/CryptoManager.c
125 -+++ b/security/jss/org/mozilla/jss/CryptoManager.c
126 -@@ -35,7 +35,7 @@
127 - * ***** END LICENSE BLOCK ***** */
128 - #include "_jni/org_mozilla_jss_CryptoManager.h"
129 -
130 --#include <secitem.h>
131 -+#include <nss/secitem.h>
132 - #include <secmod.h>
133 - #include <cert.h>
134 - #include <certt.h>
135 ---- a/security/jss/org/mozilla/jss/SecretDecoderRing/KeyManager.c
136 -+++ b/security/jss/org/mozilla/jss/SecretDecoderRing/KeyManager.c
137 -@@ -36,7 +36,7 @@
138 -
139 - #include "_jni/org_mozilla_jss_SecretDecoderRing_KeyManager.h"
140 - #include <nspr.h>
141 --#include <secitem.h>
142 -+#include <nss/secitem.h>
143 - #include <jss_exceptions.h>
144 - #include <jssutil.h>
145 - #include <pk11func.h>
146 ---- a/security/jss/org/mozilla/jss/crypto/PQGParams.c
147 -+++ b/security/jss/org/mozilla/jss/crypto/PQGParams.c
148 -@@ -39,7 +39,7 @@
149 - #include <nspr.h>
150 -
151 - #include <plarena.h>
152 --#include <secitem.h>
153 -+#include <nss/secitem.h>
154 - #include <secoidt.h>
155 - #include <keyt.h> /* for PQGParams */
156 - #include <pk11pqg.h>
157 ---- a/security/jss/org/mozilla/jss/crypto/SecretDecoderRing.c
158 -+++ b/security/jss/org/mozilla/jss/crypto/SecretDecoderRing.c
159 -@@ -36,7 +36,7 @@
160 -
161 - #include "_jni/org_mozilla_jss_crypto_SecretDecoderRing.h"
162 - #include <nspr.h>
163 --#include <secitem.h>
164 -+#include <nss/secitem.h>
165 - #include <pk11sdr.h>
166 - #include <jss_exceptions.h>
167 - #include <jssutil.h>
168 ---- a/security/jss/org/mozilla/jss/pkcs11/PK11Cipher.c
169 -+++ b/security/jss/org/mozilla/jss/pkcs11/PK11Cipher.c
170 -@@ -40,7 +40,7 @@
171 - #include <plarena.h>
172 - #include <seccomon.h>
173 - #include <pk11func.h>
174 --#include <secitem.h>
175 -+#include <nss/secitem.h>
176 -
177 - /* JSS includes */
178 - #include <java_ids.h>
179 ---- a/security/jss/org/mozilla/jss/pkcs11/PK11KeyPairGenerator.c
180 -+++ b/security/jss/org/mozilla/jss/pkcs11/PK11KeyPairGenerator.c
181 -@@ -40,7 +40,7 @@
182 - #include <pk11pqg.h>
183 - #include <nspr.h>
184 - #include <key.h>
185 --#include <secitem.h>
186 -+#include <nss/secitem.h>
187 -
188 - #include <jssutil.h>
189 - #include <pk11util.h>
190 ---- a/security/jss/org/mozilla/jss/pkcs11/PK11KeyWrapper.c
191 -+++ b/security/jss/org/mozilla/jss/pkcs11/PK11KeyWrapper.c
192 -@@ -40,7 +40,7 @@
193 - #include <plarena.h>
194 - #include <seccomon.h>
195 - #include <pk11func.h>
196 --#include <secitem.h>
197 -+#include <nss/secitem.h>
198 - #include <keyt.h>
199 -
200 - /* JSS includes */
201 ---- a/security/jss/org/mozilla/jss/pkcs11/PK11MessageDigest.c
202 -+++ b/security/jss/org/mozilla/jss/pkcs11/PK11MessageDigest.c
203 -@@ -40,7 +40,7 @@
204 - #include <plarena.h>
205 - #include <seccomon.h>
206 - #include <pk11func.h>
207 --#include <secitem.h>
208 -+#include <nss/secitem.h>
209 -
210 - /* JSS includes */
211 - #include <java_ids.h>
212 ---- a/security/jss/org/mozilla/jss/pkcs11/PK11PrivKey.c
213 -+++ b/security/jss/org/mozilla/jss/pkcs11/PK11PrivKey.c
214 -@@ -43,7 +43,7 @@
215 - #include <secerr.h>
216 - #include <nspr.h>
217 - #include <key.h>
218 --#include <secitem.h>
219 -+#include <nss/secitem.h>
220 -
221 - #include <jss_bigint.h>
222 - #include <jssutil.h>
223 ---- a/security/jss/org/mozilla/jss/pkcs11/PK11Signature.c
224 -+++ b/security/jss/org/mozilla/jss/pkcs11/PK11Signature.c
225 -@@ -35,7 +35,7 @@
226 - * ***** END LICENSE BLOCK ***** */
227 -
228 - #include <nspr.h>
229 --#include <secitem.h>
230 -+#include <nss/secitem.h>
231 - #include <secoidt.h>
232 - #include <secmodt.h>
233 - #include <pk11func.h>
234 ---- a/security/jss/org/mozilla/jss/pkcs11/PK11Token.c
235 -+++ b/security/jss/org/mozilla/jss/pkcs11/PK11Token.c
236 -@@ -53,7 +53,7 @@
237 - #include <jss_bigint.h>
238 - #include <Algorithm.h>
239 -
240 --#include <secitem.h>
241 -+#include <nss/secitem.h>
242 - #include "java_ids.h"
243 -
244 - #include "pk11util.h"
245 ---- a/security/jss/org/mozilla/jss/ssl/callbacks.c
246 -+++ b/security/jss/org/mozilla/jss/ssl/callbacks.c
247 -@@ -39,7 +39,7 @@
248 - #include <nspr.h>
249 - #include <java_ids.h>
250 - #include <jss_exceptions.h>
251 --#include <secitem.h>
252 -+#include <nss/secitem.h>
253 - #include <jssutil.h>
254 - #include <certt.h>
255 - #include <keythi.h>
256 ---- a/security/jss/org/mozilla/jss/util/jssutil.c
257 -+++ b/security/jss/org/mozilla/jss/util/jssutil.c
258 -@@ -38,7 +38,7 @@
259 - #include <nspr.h>
260 - #include <plstr.h>
261 - #include <seccomon.h>
262 --#include <secitem.h>
263 -+#include <nss/secitem.h>
264 - #include "jssutil.h"
265 - #include "jss_bigint.h"
266 - #include "jss_exceptions.h"
267 ---- a/security/jss/org/mozilla/jss/util/jssutil.h
268 -+++ b/security/jss/org/mozilla/jss/util/jssutil.h
269 -@@ -39,7 +39,7 @@
270 - /* Need to include these first.
271 - * #include <nspr.h>
272 - * #include <jni.h>
273 -- * #include <secitem.h>
274 -+ * #include <nss/secitem.h>
275 - */
276 -
277 - PR_BEGIN_EXTERN_C
278
279 diff --git a/dev-java/jss/files/jss-4.3.2-ldflags.patch b/dev-java/jss/files/jss-4.3.2-ldflags.patch
280 deleted file mode 100644
281 index 11687fac4a09..000000000000
282 --- a/dev-java/jss/files/jss-4.3.2-ldflags.patch
283 +++ /dev/null
284 @@ -1,11 +0,0 @@
285 ---- a/security/coreconf/Linux.mk
286 -+++ b/security/coreconf/Linux.mk
287 -@@ -142,7 +142,7 @@
288 - ARCH = linux
289 -
290 - DSO_CFLAGS = -fPIC
291 --DSO_LDOPTS = -shared $(ARCHFLAG)
292 -+DSO_LDOPTS = $(LDFLAGS) -shared $(ARCHFLAG)
293 - # The linker on Red Hat Linux 7.2 and RHEL 2.1 (GNU ld version 2.11.90.0.8)
294 - # incorrectly reports undefined references in the libraries we link with, so
295 - # we don't use -z defs there.
296
297 diff --git a/dev-java/jss/jss-4.3.2.ebuild b/dev-java/jss/jss-4.3.2.ebuild
298 deleted file mode 100644
299 index 5c5137e81997..000000000000
300 --- a/dev-java/jss/jss-4.3.2.ebuild
301 +++ /dev/null
302 @@ -1,95 +0,0 @@
303 -# Copyright 1999-2021 Gentoo Authors
304 -# Distributed under the terms of the GNU General Public License v2
305 -
306 -EAPI="5"
307 -
308 -JAVA_PKG_IUSE="doc source"
309 -
310 -inherit multilib toolchain-funcs java-pkg-2
311 -
312 -DESCRIPTION="Network Security Services for Java (JSS)"
313 -HOMEPAGE="https://developer.mozilla.org/en-US/docs/Mozilla/Projects/NSS/JSS"
314 -# 4.3.2 was released but was seemingly never announced. The binary jar
315 -# exists on Mozilla's servers but Chewi could only find a source tarball
316 -# at https://obs.kolabsys.com/package/show/Kolab:3.4/jss. However, you
317 -# need to register in order to download it, hence he has mirrored it.
318 -SRC_URI="https://dev.gentoo.org/~chewi/distfiles/${P}.tar.bz2"
319 -LICENSE="MPL-1.1"
320 -SLOT="3.4"
321 -KEYWORDS="amd64 x86"
322 -IUSE="examples test"
323 -
324 -CDEPEND=">=dev-libs/nspr-4.7.1
325 - >=dev-libs/nss-3.12.5"
326 -
327 -DEPEND="${CDEPEND}
328 - dev-lang/perl
329 - >=virtual/jdk-1.6
330 - virtual/pkgconfig
331 - test? ( dev-libs/nss[utils] )"
332 -
333 -RDEPEND="${CDEPEND}
334 - >=virtual/jre-1.6"
335 -
336 -S="${WORKDIR}/${P}/mozilla"
337 -
338 -java_prepare() {
339 - epatch "${FILESDIR}"/${PN}-3.4-target_source.patch
340 - epatch "${FILESDIR}"/${PN}-4.2.5-use_pkg-config.patch
341 - epatch "${FILESDIR}"/${PN}-4.3-cflags.patch
342 - epatch "${FILESDIR}"/${PN}-4.3.2-ldflags.patch
343 - epatch "${FILESDIR}"/${PN}-4.3-secitem.patch
344 -
345 - if java-pkg_is-vm-version-ge 1.8; then
346 - epatch "${FILESDIR}"/${PN}-4.3-javadoc.patch
347 - fi
348 -}
349 -
350 -src_compile() {
351 - local ARGS=(
352 - "CC=$(tc-getCC)"
353 - "AR=$(tc-getAR) cr \$@"
354 - "OS_RELEASE=2.6"
355 - "BUILD_OPT=1"
356 - )
357 -
358 - tc-export PKG_CONFIG
359 -
360 - export JAVA_GENTOO_OPTS="$(java-pkg_javac-args)"
361 - use amd64 && export USE_64=1
362 -
363 - cd "${S}/security/coreconf" || die
364 - emake -j1 "${ARGS[@]}"
365 -
366 - cd "${S}/security/jss" || die
367 - emake -j1 "${ARGS[@]}" USE_PKGCONFIG=1 NSS_PKGCONFIG=nss NSPR_PKGCONFIG=nspr
368 - use doc && emake -j1 "${ARGS[@]}" javadoc
369 -}
370 -
371 -# Chewi has managed to reach a test pass rate of 31/40 (78%) but the
372 -# remainder fail due to JSS not having kept pace with the ciphersuites
373 -# in NSS. There's not much we can do about that. The suite also leaves
374 -# java processes running and exits successfully on failure.
375 -RESTRICT="test"
376 -
377 -src_test() {
378 - # Parts of NSS are required for the tests.
379 - ln -snf "${EROOT}usr/$(get_libdir)/libnssckbi.so" dist/Linux*.OBJ/lib/ || die
380 - ln -snf "${EROOT}usr/bin" dist/Linux*.OBJ/ || die
381 -
382 - # The tests must be run from this directory.
383 - cd security/jss/org/mozilla/jss/tests || die
384 - BUILD_OPT=1 perl all.pl dist "${S}"/dist/Linux*.OBJ/ || die "tests failed"
385 -}
386 -
387 -src_install() {
388 - java-pkg_dojar dist/*.jar
389 -
390 - # Use this instead of the one in dist because it is a symlink
391 - # and doso handles symlinks by just symlinking to the original
392 - java-pkg_doso ./security/${PN}/lib/*/*.so
393 -
394 - use doc && java-pkg_dojavadoc dist/jssdoc
395 - use source && java-pkg_dosrc ./security/jss/org
396 - use examples && java-pkg_doexamples ./security/jss/samples
397 -}
398
399 diff --git a/dev-java/jss/metadata.xml b/dev-java/jss/metadata.xml
400 deleted file mode 100644
401 index e72f25cb0541..000000000000
402 --- a/dev-java/jss/metadata.xml
403 +++ /dev/null
404 @@ -1,16 +0,0 @@
405 -<?xml version="1.0" encoding="UTF-8"?>
406 -<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
407 -<pkgmetadata>
408 -<maintainer type="project">
409 - <email>java@g.o</email>
410 - <name>Java</name>
411 -</maintainer>
412 -
413 -<longdescription>
414 -
415 -Network Security Services for Java (JSS) is a Java interface to NSS. It supports
416 -most of the security standards and encryption technologies supported by NSS. JSS
417 -also provides a pure Java interface for ASN.1 types and BER/DER encoding.
418 -
419 -</longdescription>
420 -</pkgmetadata>
421
422 diff --git a/profiles/package.mask b/profiles/package.mask
423 index 7dc8344a09e5..058fd237126a 100644
424 --- a/profiles/package.mask
425 +++ b/profiles/package.mask
426 @@ -275,14 +275,6 @@ www-apache/mod_extract_forwarded
427 # Removal in 30 days. Bug #827654
428 www-apache/mod_evasive
429
430 -# Volkmar W. Pogatzki <gentoo@××××××××.net> (2021-11-26)
431 -# Library without consumers. Removal in 30 days.
432 -dev-java/jss
433 -
434 -# Alfredo Tupone <tupone@g.o> (2021-11-26)
435 -# EAPI 6. Removal in 30 days. Bug @827158
436 -=dev-lang/gnat-gpl-2019-r2
437 -
438 # Hans de Graaff <graaff@g.o> (2021-11-26)
439 # Mask new rubygems version for testing. This version uses a new
440 # gentoo-defaults profile, bug #789957