Gentoo Archives: gentoo-commits

From: Georgy Yakovlev <gyakovlev@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-java/icedtea-web/, dev-java/icedtea-web/files/
Date: Sat, 05 Sep 2020 05:24:41
Message-Id: 1599283423.d79c65a0c600776066d2e0ebe2d261a41c345d57.gyakovlev@gentoo
1 commit: d79c65a0c600776066d2e0ebe2d261a41c345d57
2 Author: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
3 AuthorDate: Sat Sep 5 04:32:54 2020 +0000
4 Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
5 CommitDate: Sat Sep 5 05:23:43 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d79c65a0
7
8 dev-java/icedtea-web: fix multiple qa issues in 1.8.4
9
10 disabled a lot of useless/old functionality
11
12 Bug: https://bugs.gentoo.org/711392
13 Closes: https://bugs.gentoo.org/715316
14 Closes: https://bugs.gentoo.org/684330
15 Closes: https://github.com/gentoo/gentoo/pull/17413
16 Package-Manager: Portage-3.0.5, Repoman-3.0.1
17 Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org>
18
19 dev-java/icedtea-web/files/README.gentoo-r2 | 14 +++++
20 dev-java/icedtea-web/icedtea-web-1.8.4.ebuild | 88 +++++++++++++--------------
21 2 files changed, 57 insertions(+), 45 deletions(-)
22
23 diff --git a/dev-java/icedtea-web/files/README.gentoo-r2 b/dev-java/icedtea-web/files/README.gentoo-r2
24 new file mode 100644
25 index 00000000000..4644f988e7e
26 --- /dev/null
27 +++ b/dev-java/icedtea-web/files/README.gentoo-r2
28 @@ -0,0 +1,14 @@
29 +Browser plugin
30 +--------------
31 +
32 +The IcedTea browser plugin (NPPlugin) is no longer available,
33 +as modern browsers no longer support this plugin format.
34 +
35 +JVM selection
36 +-------------
37 +
38 +By default, Web Start uses the JVM
39 +selected via eselect environment variable.
40 +Note that this doesn't have to be an IcedTea. Openjdk will also work.
41 +The choice can be overridden using the itweb-settings program.
42 +Simply blank out the field to restore the default behaviour.
43
44 diff --git a/dev-java/icedtea-web/icedtea-web-1.8.4.ebuild b/dev-java/icedtea-web/icedtea-web-1.8.4.ebuild
45 index 4f1ee675217..47e9c74510e 100644
46 --- a/dev-java/icedtea-web/icedtea-web-1.8.4.ebuild
47 +++ b/dev-java/icedtea-web/icedtea-web-1.8.4.ebuild
48 @@ -1,12 +1,12 @@
49 # Copyright 1999-2020 Gentoo Authors
50 # Distributed under the terms of the GNU General Public License v2
51
52 -EAPI="7"
53 +EAPI=7
54
55 -README_GENTOO_SUFFIX="-r1"
56 +README_GENTOO_SUFFIX="-r2"
57 CRATES="dunce-0.1.1"
58
59 -inherit autotools eutils multilib readme.gentoo-r1 java-pkg-2 cargo xdg-utils
60 +inherit autotools cargo readme.gentoo-r1
61
62 DESCRIPTION="FOSS Java browser plugin and Web Start implementation"
63 HOMEPAGE="http://icedtea.classpath.org"
64 @@ -14,79 +14,77 @@ SRC_URI="https://github.com/AdoptOpenJDK/${PN}/archive/${P}.tar.gz
65 $(cargo_crate_uris ${CRATES})"
66 LICENSE="GPL-2 GPL-2-with-linking-exception LGPL-2"
67 SLOT="0"
68 -KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
69 -IUSE="doc javascript nsplugin tagsoup test"
70 -RESTRICT="test"
71 +KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
72 +IUSE="doc"
73
74 -CDEPEND="javascript? ( dev-java/rhino:1.6 )
75 - nsplugin? ( >=dev-libs/glib-2.16:2= )
76 - tagsoup? ( dev-java/tagsoup:0 )"
77 +# tests require ton of java deps we don't have packaged/working
78 +# but rust tests pass.
79 +RESTRICT="test"
80
81 -DEPEND="${CDEPEND}
82 +BDEPEND="
83 app-arch/zip
84 - >=virtual/jdk-1.7
85 + >=virtual/jdk-1.8
86 virtual/pkgconfig
87 virtual/rust
88 - nsplugin? ( net-misc/npapi-sdk )
89 - test? ( >=dev-java/junit-4.8:4 )"
90 + doc? ( sys-devel/bc )
91 +"
92
93 -RDEPEND="${CDEPEND}
94 +RDEPEND="
95 >=app-eselect/eselect-java-0.2.0
96 - >=virtual/jre-1.7
97 - nsplugin? (
98 - !dev-java/oracle-jdk-bin[nsplugin]
99 - !dev-java/oracle-jre-bin[nsplugin]
100 - )"
101 + >=virtual/jre-1.8
102 +"
103
104 S="${WORKDIR}/IcedTea-Web-${P}"
105
106 +QA_FLAGS_IGNORED="usr/bin/.*"
107 +
108 src_prepare() {
109 eapply_user
110 -
111 - if java-pkg_is-vm-version-ge "1.8" ; then
112 - sed -i 's/JAVADOC_OPTS=/\0-Xdoclint:none /g' Makefile.am || die
113 - fi
114 -
115 + sed -i 's/JAVADOC_OPTS=/\0-Xdoclint:none /g' Makefile.am || die
116 eautoreconf
117 cargo_gen_config
118 }
119
120 src_configure() {
121 - local tagsoup
122 - use tagsoup && tagsoup="$(java-pkg_getjars tagsoup)"
123 -
124 - local config=(
125 - # Rename javaws to itweb-javaws as eselect java-vm manages
126 - # javaws to prevent a clash with Oracle's implementation.
127 + # some functionality (tagsoup rhino) is disabled, because dev-java is
128 + # unmaintained and a lot of things simply does not build anymore.
129 + # native plugins also disabled, modern browsers no longer support it.
130 + local myconf=(
131 + --disable-native-plugin
132 --program-transform-name='s/^javaws$/itweb-javaws/'
133 - --libdir="${EPREFIX}"/usr/$(get_libdir)/nsbrowser/plugins
134 - --with-java="${EPREFIX}"/usr/bin/java
135 - --with-jdk-home="${JAVA_HOME}"
136 + --with-java="${EPREFIX}/usr/bin/java"
137 + --with-jdk-home="${EPREFIX}/etc/java-config-2/current-system-vm"
138 --with-itw-libs=DISTRIBUTION
139 + --without-rhino
140 + --without-tagsoup
141 $(use_enable doc docs)
142 - $(use_enable nsplugin native-plugin)
143 - $(use_with javascript rhino)
144 - $(use_with tagsoup tagsoup "${tagsoup}")
145 )
146 -
147 - # See bug #573060.
148 - xdg_environment_reset
149 -
150 - # Rely on the --with-jdk-home option given above.
151 - unset JAVA_HOME JDK_HOME CLASSPATH JAVAC JAVACFLAGS
152 -
153 - CONFIG_SHELL="${BASH}" econf "${config[@]}"
154 + export CARGO_HOME="${ECARGO_HOME}"
155 + CONFIG_SHELL="${EPREFIX}/bin/bash" econf "${myconf[@]}"
156 }
157
158 src_compile() {
159 - emake CARGO_HOME="${ECARGO_HOME}"
160 + # races in makefile
161 + emake -j1 #nowarn
162 }
163
164 src_install() {
165 default
166 + rm -v "${ED}/usr/bin/itw-modularjdk.args" || die
167 + rename -v '.bash' '' "${ED}/usr/share/bash-completion/completions/"*.bash || die
168 + rename -v 'javaws' 'itweb-javaws' "${ED}/usr/share/man/man1/"javaws.1* || die
169 + mv -v "${ED}/usr/share/bash-completion/completions/"{javaws,itweb-javaws} || die
170 + sed -i 's/javaws/itweb-javaws/g' \
171 + "${ED}/usr/share/bash-completion/completions/itweb-javaws" || die
172 +
173 readme.gentoo_create_doc
174 }
175
176 +src_test() {
177 + # we want to override cargo.eclass' src_test
178 + :
179 +}
180 +
181 pkg_postinst() {
182 readme.gentoo_print_elog
183 }