[gentoo-commits] repo/gentoo:master commit in: dev-java/icedtea-web/files/, dev-java/icedtea-web/

2022-05-11 Thread Florian Schmaus
commit: 47bad21c79c7886701279312dc6923538dd12fd2
Author: Yuan Liao  gmail  com>
AuthorDate: Wed Mar 16 18:22:19 2022 +
Commit: Florian Schmaus  gentoo  org>
CommitDate: Wed May 11 19:51:03 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=47bad21c

dev-java/icedtea-web: EAPI 8, restrict build VM to 1.8

- java-pkg-2.eclass is inherited to set up JDK 8 as the build VM
  properly, so a JAVA_HOME that points to JDK 8 is always passed to the
  ./configure script regardless of the eselect-java system VM setting.

- The 'itw-modularjdk.args' file is now installed to an FHS-compliant
  path to allow the programs from this package to be run with JRE 9+.
  These programs are compatible with JRE 9+ under the condition that
  this file is installed.  The file is required for integration with the
  Java Platform Module System introduced in Java 9.

- README.gentoo is updated to convey the USE="-headless-awt" requirement
  for any JRE used to run those programs.  This seems to be a
  runtime-only requirement, as using a JDK with this USE flag disabled
  would not cause any build errors during testing.

Bug: https://bugs.gentoo.org/659174
Bug: https://bugs.gentoo.org/698582
Bug: https://bugs.gentoo.org/783027
Bug: https://bugs.gentoo.org/831895
Signed-off-by: Yuan Liao  gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/24610
Signed-off-by: Florian Schmaus  gentoo.org>

 dev-java/icedtea-web/files/README.gentoo-r3  |  16 +++
 dev-java/icedtea-web/icedtea-web-1.8.8-r1.ebuild | 118 +++
 2 files changed, 134 insertions(+)

diff --git a/dev-java/icedtea-web/files/README.gentoo-r3 
b/dev-java/icedtea-web/files/README.gentoo-r3
new file mode 100644
index ..fc199f3c50f2
--- /dev/null
+++ b/dev-java/icedtea-web/files/README.gentoo-r3
@@ -0,0 +1,16 @@
+Browser plugin
+--
+
+The IcedTea browser plugin (NPPlugin) is no longer available,
+as modern browsers no longer support this plugin format.
+
+JVM selection
+-
+
+By default, Web Start uses the JVM
+selected via eselect environment variable.
+Note that this doesn't have to be an IcedTea. Openjdk will also work.
+Also note that the selected JVM must have been installed with the
+'headless-awt' USE flag *disabled*.
+The choice can be overridden using the itweb-settings program.
+Simply blank out the field to restore the default behaviour.

diff --git a/dev-java/icedtea-web/icedtea-web-1.8.8-r1.ebuild 
b/dev-java/icedtea-web/icedtea-web-1.8.8-r1.ebuild
new file mode 100644
index ..238bb9080267
--- /dev/null
+++ b/dev-java/icedtea-web/icedtea-web-1.8.8-r1.ebuild
@@ -0,0 +1,118 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+README_GENTOO_SUFFIX="-r3"
+CRATES="dunce-0.1.1"
+
+inherit autotools bash-completion-r1 cargo java-pkg-2 readme.gentoo-r1 
xdg-utils
+
+DESCRIPTION="FOSS Java browser plugin and Web Start implementation"
+HOMEPAGE="https://github.com/AdoptOpenJDK/IcedTea-Web;
+SRC_URI="https://github.com/AdoptOpenJDK/${PN}/archive/${P}.tar.gz
+   $(cargo_crate_uris ${CRATES})"
+LICENSE="GPL-2 GPL-2-with-linking-exception LGPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
+IUSE="doc"
+
+# tests require ton of java deps we don't have packaged/working
+# but rust tests pass.
+RESTRICT="test"
+
+BDEPEND="
+   app-arch/zip
+   sys-devel/bc
+   virtual/pkgconfig
+   virtual/rust
+   doc? ( sys-devel/bc )
+"
+
+# Build within Portage using JDK 11+ (also presumably 9+) fails during
+# src_configure:
+#  configure: error: sun.security.util.SecurityConstants not found.
+#
+# When upstream's build instructions are executed outside Portage using
+# JDK 11+, ./configure also fails, though a different error pops up:
+#  configure: error: sun.applet.AppletImageRef not found.
+#
+# If even the upstream build instructions fail outside Portage with JDK 11+,
+# then it is very unlikely that the build issue within Portage is fixable.
+# The upstream has moved forward to development of 2.0.0 and 3.0.0 versions,
+# so they might no longer be interested in fixing the legacy 1.x versions.
+#
+# The 'sun.applet.AppletImageRef not found' issue has been reported to
+# FreeBSD ,
+# and some efforts there to fix the issue were unsuccessful.  They seem
+# to have ended up with restricting Java version to 8
+# .
+#
+# Thus, the build VM version is restricted to 1.8 here.
+DEPEND="
+   virtual/jdk:1.8
+"
+
+RDEPEND="
+   >=app-eselect/eselect-java-0.2.0
+   >=virtual/jre-1.8:*
+"
+
+S="${WORKDIR}/IcedTea-Web-${P}"
+
+QA_FLAGS_IGNORED="usr/bin/.*"
+
+src_prepare() {
+   eapply_user
+   sed -i 's/JAVADOC_OPTS=/\0-Xdoclint:none /g' Makefile.am || die
+   eautoreconf
+   cargo_gen_config
+}
+
+src_configure() {
+   

[gentoo-commits] repo/gentoo:master commit in: dev-java/icedtea-web/files/, dev-java/icedtea-web/

2016-02-18 Thread James Le Cuirot
commit: 57ebab71b3b347b1cc607ea6180f96fed188712b
Author: James Le Cuirot  gentoo  org>
AuthorDate: Thu Feb 18 09:57:27 2016 +
Commit: James Le Cuirot  gentoo  org>
CommitDate: Thu Feb 18 09:59:39 2016 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=57ebab71

dev-java/icedtea-web: Remove unnecessary lib checks, closes #574286

Also tighten the glib dependency.

Package-Manager: portage-2.2.27

 .../files/icedtea-web-1.6-respect-ldflags.patch| 29 ++
 .../files/icedtea-web-1.6-unused-libs.patch| 20 +++
 ...eb-1.6.1.ebuild => icedtea-web-1.6.1-r1.ebuild} |  5 ++--
 3 files changed, 42 insertions(+), 12 deletions(-)

diff --git a/dev-java/icedtea-web/files/icedtea-web-1.6-respect-ldflags.patch 
b/dev-java/icedtea-web/files/icedtea-web-1.6-respect-ldflags.patch
index 1d03b7c..551bb9c 100644
--- a/dev-java/icedtea-web/files/icedtea-web-1.6-respect-ldflags.patch
+++ b/dev-java/icedtea-web/files/icedtea-web-1.6-respect-ldflags.patch
@@ -1,18 +1,27 @@
 --- Makefile.am.orig   2015-09-11 14:02:04.245280051 +0100
-+++ Makefile.am2015-12-18 21:37:43.328862431 +
-@@ -344,7 +344,7 @@
- $(PLUGIN_DIR)/%.o: $(PLUGIN_SRCDIR)/%.cc
-   mkdir -p $(PLUGIN_DIR) && \
 Makefile.am.orig   2016-01-27 22:20:28.288032089 +
+@@ -362,7 +362,7 @@ 
+ 
+ $(PLUGIN_DIR)/$(BUILT_PLUGIN_LIBRARY): $(addprefix 
$(PLUGIN_DIR)/,$(PLUGIN_OBJECTS))
cd $(PLUGIN_DIR) && \
 -  $(CXX) $(CXXFLAGS) \
 +  $(CXX) $(CXXFLAGS) $(LDFLAGS) \
-  $(DEFS) $(VERSION_DEFS) \
- -DJDK_UPDATE_VERSION="\"$(JDK_UPDATE_VERSION)\"" \
- -DPLUGIN_NAME="\"IcedTea-Web Plugin\"" \
-@@ -362,7 +362,7 @@
+ $(PLUGIN_OBJECTS) \
+ $(GLIB_LIBS) \
+ $(MOZILLA_LIBS) \
+@@ -419,7 +419,7 @@ 
+ 
+ $(CPP_UNITTEST_EXECUTABLE): $(CPP_UNITTEST_FRAMEWORK_LIB) 
stamps/cpp-unit-tests-compile.stamp 
+   cd $(CPP_UNITTEST_DIR) && \
+-  $(CXX) $(CXXFLAGS) \
++  $(CXX) $(CXXFLAGS) $(LDFLAGS) \
+ $(addprefix $(PLUGIN_DIR)/,$(PLUGIN_OBJECTS)) \
+ $(CPP_UNITTEST_DIR)/*.o \
+ -lrt \
+@@ -1252,7 +1252,7 @@ 
  
- $(PLUGIN_DIR)/$(BUILT_PLUGIN_LIBRARY): $(addprefix 
$(PLUGIN_DIR)/,$(PLUGIN_OBJECTS))
-   cd $(PLUGIN_DIR) && \
+ $(COVERABLE_PLUGIN_DIR)/$(BUILT_PLUGIN_LIBRARY): $(addprefix 
$(COVERABLE_PLUGIN_DIR)/,$(PLUGIN_OBJECTS))
+   cd $(COVERABLE_PLUGIN_DIR) && \
 -  $(CXX) $(CXXFLAGS) \
 +  $(CXX) $(CXXFLAGS) $(LDFLAGS) \
  $(PLUGIN_OBJECTS) \

diff --git a/dev-java/icedtea-web/files/icedtea-web-1.6-unused-libs.patch 
b/dev-java/icedtea-web/files/icedtea-web-1.6-unused-libs.patch
new file mode 100644
index 000..b0dc15d
--- /dev/null
+++ b/dev-java/icedtea-web/files/icedtea-web-1.6-unused-libs.patch
@@ -0,0 +1,20 @@
+--- configure.ac.orig  2015-09-11 14:02:04.250280108 +0100
 configure.ac   2016-02-18 09:36:04.684624293 +
+@@ -55,17 +55,6 @@
+ IT_SET_VERSION
+ IT_CHECK_XULRUNNER_VERSION
+ 
+-AC_CHECK_LIB(z, main,, [AC_MSG_ERROR("zlib not found - try installing 
zlib-devel")])
+-dnl Check for libX11 headers and libraries.
+-PKG_CHECK_MODULES(X11, x11,[X11_FOUND=yes],[X11_FOUND=no])
+-if test "x${X11_FOUND}" = xno
+-then
+-  AC_MSG_ERROR([Could not find x11 - \
+-  Try installing libX11-devel.])
+-fi
+-AC_SUBST(X11_CFLAGS)
+-AC_SUBST(X11_LIBS)
+-
+ dnl PR46074 (gcc) - Missing java.net cookie code required by IcedTea plugin
+ dnl IT563 - NetX uses sun.security code
+ dnl IT605 - NetX depends on sun.misc.HexDumpEncoder

diff --git a/dev-java/icedtea-web/icedtea-web-1.6.1.ebuild 
b/dev-java/icedtea-web/icedtea-web-1.6.1-r1.ebuild
similarity index 94%
rename from dev-java/icedtea-web/icedtea-web-1.6.1.ebuild
rename to dev-java/icedtea-web/icedtea-web-1.6.1-r1.ebuild
index 651a655..4ec469c 100644
--- a/dev-java/icedtea-web/icedtea-web-1.6.1.ebuild
+++ b/dev-java/icedtea-web/icedtea-web-1.6.1-r1.ebuild
@@ -18,7 +18,7 @@ IUSE="doc javascript nsplugin tagsoup test"
 RESTRICT="test"
 
 CDEPEND="javascript? ( dev-java/rhino:1.6 )
-   nsplugin? ( >=dev-libs/glib-2.16 )
+   nsplugin? ( >=dev-libs/glib-2.16:2= )
tagsoup? ( dev-java/tagsoup:0 )"
 
 DEPEND="${CDEPEND}
@@ -39,7 +39,8 @@ RDEPEND="${CDEPEND}
 src_prepare() {
# http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=2779
# http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=2780
-   epatch 
"${FILESDIR}"/${PN}-1.6-{javadoc,no-hg,launchers,respect-ldflags}.patch
+   # http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=2855
+   epatch 
"${FILESDIR}"/${PN}-1.6-{javadoc,no-hg,launchers,respect-ldflags,unused-libs}.patch
 
if java-pkg_is-vm-version-ge "1.8" ; then
sed -i 's/JAVADOC_OPTS=/\0-Xdoclint:none /g' Makefile.am || die



[gentoo-commits] repo/gentoo:master commit in: dev-java/icedtea-web/files/, dev-java/icedtea-web/

2016-01-01 Thread James Le Cuirot
commit: d08ce156e9c3f25c13d73e23c041114c901aaf36
Author: James Le Cuirot  gentoo  org>
AuthorDate: Fri Jan  1 17:15:56 2016 +
Commit: James Le Cuirot  gentoo  org>
CommitDate: Fri Jan  1 22:49:14 2016 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d08ce156

dev-java/icedtea-web: Version bump, addressing many issues

 * Bump to version 1.6.1 (#530860)
 * Respect java-config's VM selection (#538144, #552640)
 * Use new eselect-java that looks for itweb-javaws (#504678)
 * Fix USE=doc under stricter Java 8 (#558718)
 * Don't call hg because .hg directory is missing (#528268)

This version no longer relies on eselect java-nsplugin as it installs
the plugin directly under /usr/lib/nsbrowser/plugins. It blocks the
Oracle plugins because Firefox cannot disable them individually.

Package-Manager: portage-2.2.26

 dev-java/icedtea-web/Manifest  |  1 +
 dev-java/icedtea-web/files/README.gentoo-r1| 56 +++
 .../files/icedtea-web-1.6-javadoc.patch| 11 +++
 .../files/icedtea-web-1.6-launchers.patch  | 79 
 .../icedtea-web/files/icedtea-web-1.6-no-hg.patch  | 49 +
 .../files/icedtea-web-1.6-respect-ldflags.patch| 20 ++
 dev-java/icedtea-web/icedtea-web-1.6.1.ebuild  | 83 ++
 7 files changed, 299 insertions(+)

diff --git a/dev-java/icedtea-web/Manifest b/dev-java/icedtea-web/Manifest
index 6b08126..cb9393d 100644
--- a/dev-java/icedtea-web/Manifest
+++ b/dev-java/icedtea-web/Manifest
@@ -1 +1,2 @@
 DIST icedtea-web-1.5.1.tar.gz 1616344 SHA256 
03f16356fa84564f1ae32286e0a090a464c87ec123b40602dcea925757900195 SHA512 
ef47eecbbb52fcb44ec9585db4c4428025201b04968dfcfc26061160d80b29ee649752f21ffe891cfa5c6bf775d0bc1dbb7dbd9a79794e052bb8b865fa94d039
 WHIRLPOOL 
955b5cc565fa62d2f5eb85a3253751cd284a4cb926619afe60920123878281a77f348a7c26cdafea2c6d4cd760fe4d399041b665b86ff1bbaf441e25f9f18379
+DIST icedtea-web-1.6.1.tar.gz 1776222 SHA256 
a9b46ab6c9dc303c89651143596bc5abea29242b9bdcabdd2dab7c606592c920 SHA512 
dae39818f74a098289acd0736d27c2e68b10b603a3fb0a180cf4b6444345cbe71ab1ba77dfb198f053f9567bb18aa96de09049c3b595b3d292d142a7ae7d3ef9
 WHIRLPOOL 
96826d17daee16dfa99f6439678cc509c94556955839b7e8bc43c1993ee04740f35b0547d56649bb9f7a625b5b2515be9d173b642ccb15cb1dead83a03586a6e

diff --git a/dev-java/icedtea-web/files/README.gentoo-r1 
b/dev-java/icedtea-web/files/README.gentoo-r1
new file mode 100644
index 000..219e14e
--- /dev/null
+++ b/dev-java/icedtea-web/files/README.gentoo-r1
@@ -0,0 +1,56 @@
+Browser plugin
+--
+
+The IcedTea browser plugin (NPPlugin) is now made immediately
+available to supporting browsers without the need for eselect. Note
+that Chromium-based browsers no longer support NPAPI-based plugins
+since the code was removed in September 2015. The list of supporting
+browsers is shrinking but still includes Firefox as of version 46.
+
+JVM selection
+-
+
+By default, IcedTea's browser plugin and Web Start uses the JVM
+selected via eselect or the GENTOO_VM environment variable. Note that
+this doesn't have to be an IcedTea JVM. An Oracle JVM will also
+work. The choice can be overridden using the itweb-settings
+program. Simply blank out the field to restore the default behaviour.
+
+Coexistence with Oracle's plugin
+
+
+The IcedTea browser plugin can no longer be installed alongside
+Oracle's plugin. This used to be possible thanks to eselect
+java-nsplugin but this was removed in an effort to simplify things. No
+one is likely to need both, especially with plugins being all but
+outlawed these days. To avoid any blockers, simply enable the nsplugin
+USE flag on icedtea-web or the Oracle packages, but not both.
+
+If you're wondering why we don't just leave plugin selection to the
+browser, it's because Firefox (and probably others) only allows you to
+disable all the Java plugins together, not individually.
+
+Coexistence with Oracle's Web Start
+---
+
+/usr/bin/javaws, the executable used to launch JNLP files from a
+browser, will always use IcedTea's implementation over Oracle's when
+icedtea-web is installed, regardless of which JVM has been
+selected. This is primarily for consistency with the browser
+plugin. If you want to use Oracle's implementation then simply
+uninstall icedtea-web.
+
+32-bit plugin on 64-bit systems
+---
+
+This is no longer supported as the 64-bit plugin can launch a 32-bit
+JVM. Other reasons for running a 32-bit browser on a 64-bit system
+have long passed.
+
+32-bit JVM on 64-bit systems
+
+
+The emul-linux-x86-java package was removed in 2015 with the migration
+to full multilib. icedtea-bin now provides this feature via the
+multilib USE flag. Once installed, using the 32-bit variant is simply
+a case of selecting that VM as described above.

diff --git