* add icedtea-web
This commit is contained in:
parent
757c58ce4a
commit
e69c908b37
91
java/icedtea-web/PKGBUILD
Normal file
91
java/icedtea-web/PKGBUILD
Normal file
@ -0,0 +1,91 @@
|
||||
# POWER Maintainer: Alexander Baldeck <alex.bldck@gmail.com>
|
||||
# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
|
||||
# Maintainer: Guillaume ALAUX <guillaume@archlinux.org>
|
||||
# Contributor: Andreas Radke <andyrtr@archlinux.org>
|
||||
|
||||
pkgbase=icedtea-web
|
||||
pkgname=('icedtea-web' 'icedtea-web-doc')
|
||||
pkgver=1.8.3
|
||||
pkgrel=2
|
||||
pkgdesc='Additional components for OpenJDK - Browser plug-in and Web Start implementation'
|
||||
url='https://github.com/AdoptOpenJDK/IcedTea-Web'
|
||||
arch=(x86_64 powerpc64le)
|
||||
license=('GPL2')
|
||||
makedepends=('java-environment=8' 'zip' 'libxtst' 'npapi-sdk' 'rhino' 'junit'
|
||||
'firefox' 'rust' 'bc')
|
||||
optdepends=('rhino: for using proxy auto config files')
|
||||
source=(https://github.com/AdoptOpenJDK/IcedTea-Web/archive/${pkgbase}-${pkgver}.tar.gz
|
||||
java13-SecurityManager.patch
|
||||
compiler-flags.patch)
|
||||
sha256sums=('41b6f09a7b44ad6b85d5086c289557f6f6340baa51be71bc4361aa26a844e7af'
|
||||
'ee2221225afd4a577c1133b8ea4ddb7a596c7c8443cffc9185d21d404bd09f8c'
|
||||
'4db38a59012bf4c3dc857f340924ecbc796d89f15521abdc367bc39301be7a19')
|
||||
sha512sums=('878f2abffdce56ad487d495c68c70d07553a01ec379ab81b29dee4a9ddc34182337eb4b019d84dbe32160c9b9160ff2010e566cfa9beacf901bd5a14332a2c9e'
|
||||
'2ced4eb0542ed91a59d766bb4ca0db28a1f9b9569f48bf5b80ff178c81700067cc28a2ec99d06f479fa402ef4f290da291ad8275e52d1cbd27bee445e3ce3f7c'
|
||||
'0689abbe5fa5b616a3c71caf038a42bc69a4950e923cce3c658c15a85a140f5d2e19a96429fc82cfe38c42fdc7bca4a305fd613e3483a8f98a6ee3daaf0a8304')
|
||||
|
||||
prepare() {
|
||||
cd IcedTea-Web-${pkgbase}-${pkgver}
|
||||
patch -Np0 < "${srcdir}/compiler-flags.patch"
|
||||
patch -Np1 < "${srcdir}/java13-SecurityManager.patch"
|
||||
autoreconf -fiv
|
||||
}
|
||||
|
||||
build() {
|
||||
cd IcedTea-Web-${pkgbase}-${pkgver}
|
||||
./configure \
|
||||
--prefix=/usr/share/${pkgbase} \
|
||||
--datarootdir=/usr/share \
|
||||
--with-jdk-home=/usr/lib/jvm/default \
|
||||
--with-jre-home=/usr/lib/jvm/default-runtime \
|
||||
--with-java=/usr/bin/java \
|
||||
--with-browser-tests \
|
||||
--with-firefox=/usr/bin/firefox \
|
||||
--without-epiphany \
|
||||
--with-itw-libs=DISTRIBUTION
|
||||
make
|
||||
}
|
||||
|
||||
check() {
|
||||
cd IcedTea-Web-${pkgbase}-${pkgver}
|
||||
make -k check
|
||||
}
|
||||
|
||||
|
||||
package_icedtea-web() {
|
||||
depends=('java-runtime-openjdk' 'desktop-file-utils')
|
||||
provides=('java-web-start')
|
||||
|
||||
cd IcedTea-Web-${pkgbase}-${pkgver}
|
||||
make DESTDIR="${pkgdir}" install
|
||||
|
||||
# Install desktop files
|
||||
install -Dm 644 javaws.png -t "${pkgdir}"/usr/share/pixmaps
|
||||
install -Dm 644 *.desktop -t "${pkgdir}"/usr/share/applications
|
||||
|
||||
## link binaries into /usr/bin + jre/bin
|
||||
install -m 755 -d "${pkgdir}"/usr/bin
|
||||
for file in "${pkgdir}/usr/share/${pkgbase}/bin/"*; do
|
||||
ln -sf "/usr/share/${pkgbase}/bin/$(basename "${file}")" "${pkgdir}"/usr/bin
|
||||
done
|
||||
|
||||
## link the mozilla-plugin - test it here http://www.java.com/en/download/help/testvm.xml
|
||||
install -m 755 -d "${pkgdir}"/usr/lib/mozilla/plugins/
|
||||
ln -sf /usr/share/${pkgbase}/lib/IcedTeaPlugin.so "${pkgdir}"/usr/lib/mozilla/plugins/
|
||||
|
||||
# remove splitted doc files
|
||||
rm -rf "${pkgdir}"/usr/share/doc
|
||||
}
|
||||
|
||||
package_icedtea-web-doc() {
|
||||
pkgdesc+=' (documentation)'
|
||||
|
||||
cd IcedTea-Web-${pkgbase}-${pkgver}
|
||||
make DESTDIR="${pkgdir}" install-data-local
|
||||
# remove javaws about and man page
|
||||
rm -rf "${pkgdir}"/usr/lib
|
||||
rm -rf "${pkgdir}"/usr/share/man
|
||||
rm -rf "${pkgdir}"/usr/share/icedtea-web
|
||||
}
|
||||
|
||||
# vim: ts=2 sw=2 et:
|
69
java/icedtea-web/compiler-flags.patch
Normal file
69
java/icedtea-web/compiler-flags.patch
Normal file
@ -0,0 +1,69 @@
|
||||
--- Makefile.am 2019-09-16 15:31:52.584052355 +0200
|
||||
+++ Makefile.am 2019-09-16 17:06:33.643083502 +0200
|
||||
@@ -593,7 +593,7 @@
|
||||
$(PLUGIN_DIR)/%.o: $(PLUGIN_SRCDIR)/%.cc
|
||||
mkdir -p $(PLUGIN_DIR) && \
|
||||
cd $(PLUGIN_DIR) && \
|
||||
- $(CXX) $(CXXFLAGS) \
|
||||
+ $(CXX) $(CXXFLAGS) $(CPPFLAGS) \
|
||||
$(DEFS) $(VERSION_DEFS) \
|
||||
-DJDK_UPDATE_VERSION="\"$(JDK_UPDATE_VERSION)\"" \
|
||||
-DPLUGIN_NAME="\"IcedTea-Web Plugin\"" \
|
||||
@@ -614,10 +614,11 @@
|
||||
|
||||
$(PLUGIN_DIR)/$(BUILT_PLUGIN_LIBRARY): $(addprefix $(PLUGIN_DIR)/,$(PLUGIN_OBJECTS))
|
||||
cd $(PLUGIN_DIR) && \
|
||||
- $(CXX) $(CXXFLAGS) \
|
||||
+ $(CXX) $(CXXFLAGS) $(CPPFLAGS) \
|
||||
$(PLUGIN_OBJECTS) \
|
||||
$(GLIB_LIBS) \
|
||||
$(MOZILLA_LIBS) \
|
||||
+ $(LDFLAGS) \
|
||||
-shared -o $@
|
||||
|
||||
# Start of CPP Unit test targets
|
||||
@@ -629,7 +630,7 @@
|
||||
for cppfile in $$(find $(CPP_UNITTEST_FRAMEWORK_SRCDIR) -name '*.cpp') ; \
|
||||
do \
|
||||
objfile="$(CPP_UNITTEST_FRAMEWORK_BUILDDIR)/$$(basename $${cppfile%.cpp}).o" ; \
|
||||
- $(CXX) $(CXXFLAGS) -c $$cppfile -o $$objfile || exit 1 ; \
|
||||
+ $(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $$cppfile -o $$objfile || exit 1 ; \
|
||||
done ; \
|
||||
ar cr $(CPP_UNITTEST_FRAMEWORK_LIB) $(CPP_UNITTEST_FRAMEWORK_BUILDDIR)/*.o ; \
|
||||
popd
|
||||
@@ -648,7 +649,7 @@
|
||||
do \
|
||||
objfile="$(CPP_UNITTEST_DIR)/$$(basename $${cppfile%.cc}).o" ; \
|
||||
echo "Compiling $$cppfile to $$objfile"; \
|
||||
- $(CXX) $(CXXFLAGS) \
|
||||
+ $(CXX) $(CXXFLAGS) $(CPPFLAGS) \
|
||||
$(DEFS) $(VERSION_DEFS) \
|
||||
-DJDK_UPDATE_VERSION="\"$(JDK_UPDATE_VERSION)\"" \
|
||||
-DPLUGIN_NAME="\"IcedTea-Web Plugin\"" \
|
||||
@@ -674,7 +675,7 @@
|
||||
|
||||
$(CPP_UNITTEST_EXECUTABLE): $(CPP_UNITTEST_FRAMEWORK_LIB) stamps/cpp-unit-tests-compile.stamp
|
||||
cd $(CPP_UNITTEST_DIR) && \
|
||||
- $(CXX) $(CXXFLAGS) \
|
||||
+ $(CXX) $(CXXFLAGS) $(CPPFLAGS) $(LDFLAGS) \
|
||||
$(addprefix $(PLUGIN_DIR)/,$(PLUGIN_OBJECTS)) \
|
||||
$(CPP_UNITTEST_DIR)/*.o \
|
||||
-lrt \
|
||||
@@ -1753,7 +1754,7 @@
|
||||
|
||||
$(COVERABLE_PLUGIN_DIR)/%.o: $(PLUGIN_SRCDIR)/%.cc
|
||||
cd $(COVERABLE_PLUGIN_DIR) && \
|
||||
- $(CXX) $(CXXFLAGS) \
|
||||
+ $(CXX) $(CXXFLAGS) $(CPPFLAGS) \
|
||||
$(DEFS) $(VERSION_DEFS) \
|
||||
-DJDK_UPDATE_VERSION="\"$(JDK_UPDATE_VERSION)\"" \
|
||||
-DPLUGIN_NAME="\"IcedTea-Web Plugin with jacoco coverage agent\"" \
|
||||
@@ -1775,7 +1776,7 @@
|
||||
|
||||
$(COVERABLE_PLUGIN_DIR)/$(BUILT_PLUGIN_LIBRARY): $(addprefix $(COVERABLE_PLUGIN_DIR)/,$(PLUGIN_OBJECTS))
|
||||
cd $(COVERABLE_PLUGIN_DIR) && \
|
||||
- $(CXX) $(CXXFLAGS) \
|
||||
+ $(CXX) $(CXXFLAGS) $(CPPFLAGS) $(LDFLAGS) \
|
||||
$(PLUGIN_OBJECTS) \
|
||||
$(GLIB_LIBS) \
|
||||
$(MOZILLA_LIBS) \
|
65
java/icedtea-web/java13-SecurityManager.patch
Normal file
65
java/icedtea-web/java13-SecurityManager.patch
Normal file
@ -0,0 +1,65 @@
|
||||
From 276806d9984331c754fb636ab11f05e78b3fc8c7 Mon Sep 17 00:00:00 2001
|
||||
From: Martin Schelldorfer <schelldorfer@gmail.com>
|
||||
Date: Fri, 20 Sep 2019 14:51:29 +0200
|
||||
Subject: [PATCH] #437 Application cannot be started with JDK 13 -
|
||||
AWTSecurityManager was removed
|
||||
|
||||
---
|
||||
.../jnlp/runtime/JNLPSecurityManager.java | 30 +------------------
|
||||
1 file changed, 1 insertion(+), 29 deletions(-)
|
||||
|
||||
diff --git a/netx/net/sourceforge/jnlp/runtime/JNLPSecurityManager.java b/netx/net/sourceforge/jnlp/runtime/JNLPSecurityManager.java
|
||||
index 367b2b25..be418103 100644
|
||||
--- a/netx/net/sourceforge/jnlp/runtime/JNLPSecurityManager.java
|
||||
+++ b/netx/net/sourceforge/jnlp/runtime/JNLPSecurityManager.java
|
||||
@@ -29,7 +29,6 @@
|
||||
import net.sourceforge.jnlp.util.logging.OutputController;
|
||||
import net.sourceforge.jnlp.util.WeakList;
|
||||
import net.sourceforge.swing.SwingUtils;
|
||||
-import sun.awt.AWTSecurityManager;
|
||||
import sun.awt.AppContext;
|
||||
|
||||
/**
|
||||
@@ -47,7 +46,7 @@
|
||||
* @author <a href="mailto:jmaxwell@users.sourceforge.net">Jon A. Maxwell (JAM)</a> - initial author
|
||||
* @version $Revision: 1.17 $
|
||||
*/
|
||||
-class JNLPSecurityManager extends AWTSecurityManager {
|
||||
+class JNLPSecurityManager extends SecurityManager {
|
||||
|
||||
// todo: some apps like JDiskReport can close the VM even when
|
||||
// an exit class is set - fix!
|
||||
@@ -424,33 +423,6 @@
|
||||
}
|
||||
|
||||
/**
|
||||
- * This returns the appropriate {@link AppContext}. Hooks in AppContext
|
||||
- * check if the current {@link SecurityManager} is an instance of
|
||||
- * AWTSecurityManager and if so, call this method to give it a chance to
|
||||
- * return the appropriate appContext based on the application that is
|
||||
- * running.
|
||||
- * <p>
|
||||
- * This can be called from any thread (possibly a swing thread) to find out
|
||||
- * the AppContext for the thread (which may correspond to a particular
|
||||
- * applet).
|
||||
- * </p>
|
||||
- */
|
||||
- @Override
|
||||
- public AppContext getAppContext() {
|
||||
- ApplicationInstance app = getApplication();
|
||||
- if (app == null) {
|
||||
- /*
|
||||
- * if we cannot find an application based on the code on the stack,
|
||||
- * then assume it is the main application
|
||||
- */
|
||||
- return mainAppContext;
|
||||
- } else {
|
||||
- return app.getAppContext();
|
||||
- }
|
||||
-
|
||||
- }
|
||||
-
|
||||
- /**
|
||||
* Tests if a client can get access to the AWT event queue. This version allows
|
||||
* complete access to the EventQueue for its own AppContext-specific EventQueue.
|
||||
*
|
Loading…
x
Reference in New Issue
Block a user