aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjkim <jkim@FreeBSD.org>2015-02-06 04:13:39 +0800
committerjkim <jkim@FreeBSD.org>2015-02-06 04:13:39 +0800
commit26a9639b1a5166c99ce8340a9b9e45d5f7dc6dee (patch)
treedbe549463bb6e9cadb825762cbe258b927ae3d67
parentdf58a11fefe8f11f740ea3e32b7db1cfd4e6a64e (diff)
downloadfreebsd-ports-gnome-26a9639b1a5166c99ce8340a9b9e45d5f7dc6dee.tar.gz
freebsd-ports-gnome-26a9639b1a5166c99ce8340a9b9e45d5f7dc6dee.tar.zst
freebsd-ports-gnome-26a9639b1a5166c99ce8340a9b9e45d5f7dc6dee.zip
Update to 1.5.2.
-rw-r--r--java/icedtea-web/Makefile7
-rw-r--r--java/icedtea-web/distinfo4
-rw-r--r--java/icedtea-web/files/extrapatch-jdk8324
-rw-r--r--java/icedtea-web/files/patch-Makefile.in32
-rw-r--r--java/icedtea-web/files/patch-netx-XDesktopEntry.java12
5 files changed, 67 insertions, 312 deletions
diff --git a/java/icedtea-web/Makefile b/java/icedtea-web/Makefile
index 490c37faab97..4685c16928db 100644
--- a/java/icedtea-web/Makefile
+++ b/java/icedtea-web/Makefile
@@ -1,8 +1,7 @@
# $FreeBSD$
PORTNAME= icedtea-web
-PORTVERSION= 1.5
-PORTREVISION= 1
+PORTVERSION= 1.5.2
CATEGORIES= java www
MASTER_SITES= http://icedtea.wildebeest.org/download/source/ \
http://icedtea.classpath.org/download/source/
@@ -46,7 +45,9 @@ PORTDOCS= netx
CONFIGURE_ARGS= --with-asm=no --with-ecj=no --with-emma=no --with-jacoco=no
CONFIGURE_ARGS+=--with-jdk-home="${JAVA_HOME}"
-CONFIGURE_ENV= ac_cv_path_BIN_BASH=${bash_CMD}
+CONFIGURE_ARGS+=--with-jre-home="${JAVA_HOME}/jre"
+CONFIGURE_ARGS+=--with-tagsoup=no
+CONFIGURE_ENV= BIN_BASH=${bash_CMD}
SH= ${bash_CMD}
OPTIONS_DEFINE= PLUGIN RHINO TEST
diff --git a/java/icedtea-web/distinfo b/java/icedtea-web/distinfo
index c0be6b23c220..08c80c361de0 100644
--- a/java/icedtea-web/distinfo
+++ b/java/icedtea-web/distinfo
@@ -1,2 +1,2 @@
-SHA256 (icedtea-web-1.5.tar.gz) = 1c09f40b873a95c9863178b0f6cd2645fef493cc19d346510655a94948527c2d
-SIZE (icedtea-web-1.5.tar.gz) = 1583000
+SHA256 (icedtea-web-1.5.2.tar.gz) = b29e8ff2533cc6521a6509a002001f4c97c80a004460063156d003898da13bf3
+SIZE (icedtea-web-1.5.2.tar.gz) = 1583105
diff --git a/java/icedtea-web/files/extrapatch-jdk8 b/java/icedtea-web/files/extrapatch-jdk8
index e03eba553455..ac0e0198c3e2 100644
--- a/java/icedtea-web/files/extrapatch-jdk8
+++ b/java/icedtea-web/files/extrapatch-jdk8
@@ -77,17 +77,6 @@
* @throws ParseException if the JNLP file was invalid
*/
public JNLPFile(InputStream input, URL codebase, ParserSettings settings) throws ParseException {
---- netx/net/sourceforge/jnlp/SecurityDesc.java 2014-04-02 06:20:59.680124000 -0400
-+++ netx/net/sourceforge/jnlp/SecurityDesc.java 2014-05-15 16:57:19.000000000 -0400
-@@ -90,7 +90,7 @@
- * The HTML permission level corresponding to the given String. If null is given, null comes
- * back. If there is no permission level that can be granted in HTML matching the given String,
- * null is also returned.
-- * @param jnlpString the JNLP permission String
-+ * @param htmlString the JNLP permission String
- * @return the matching RequestedPermissionLevel
- */
- public RequestedPermissionLevel fromHtmlString(final String htmlString) {
--- netx/net/sourceforge/jnlp/controlpanel/ControlPanel.java 2014-04-02 06:20:59.683125000 -0400
+++ netx/net/sourceforge/jnlp/controlpanel/ControlPanel.java 2014-05-15 16:57:19.000000000 -0400
@@ -292,12 +292,13 @@
@@ -185,124 +174,6 @@
cbCompression.setSelectedIndex(Integer.parseInt(this.config.getProperty(properties[3])));
cbCompression.addItemListener(new ItemListener() {
@Override
---- netx/net/sourceforge/jnlp/controlpanel/UnsignedAppletsTrustingListPanel.java 2014-04-02 06:20:59.683125000 -0400
-+++ netx/net/sourceforge/jnlp/controlpanel/UnsignedAppletsTrustingListPanel.java 2014-05-15 16:57:19.000000000 -0400
-@@ -51,6 +51,7 @@
- import java.util.Date;
- import java.util.List;
- import java.util.regex.Pattern;
-+
- import javax.swing.DefaultCellEditor;
- import javax.swing.JComboBox;
- import javax.swing.JDialog;
-@@ -72,6 +73,7 @@
- import javax.swing.table.TableCellRenderer;
- import javax.swing.table.TableModel;
- import javax.swing.table.TableRowSorter;
-+
- import net.sourceforge.jnlp.config.DeploymentConfiguration;
- import net.sourceforge.jnlp.runtime.Translator;
- import net.sourceforge.jnlp.security.appletextendedsecurity.AppletSecurityLevel;
-@@ -95,9 +97,9 @@
- private javax.swing.JButton moveRowDownButton;
- private javax.swing.JCheckBox askBeforeActionCheckBox;
- private javax.swing.JCheckBox filterRegexesCheckBox;
-- private javax.swing.JComboBox mainPolicyComboBox;
-- private javax.swing.JComboBox deleteTypeComboBox;
-- private javax.swing.JComboBox viewFilter;
-+ private javax.swing.JComboBox<AppletSecurityLevel> mainPolicyComboBox;
-+ private javax.swing.JComboBox<String> deleteTypeComboBox;
-+ private javax.swing.JComboBox<String> viewFilter;
- private javax.swing.JLabel globalBehaviourLabel;
- private javax.swing.JLabel securityLevelLabel;
- private javax.swing.JScrollPane userTableScrollPane;
-@@ -175,7 +177,7 @@
- setButtons((!currentModel.back.isReadOnly()));
- }
-
-- public String appletItemsToCaption(List<UnsignedAppletActionEntry> ii, String caption) {
-+ public static String appletItemsToCaption(List<UnsignedAppletActionEntry> ii, String caption) {
- StringBuilder sb = new StringBuilder();
- for (UnsignedAppletActionEntry i : ii) {
- sb.append(appletItemToCaption(i, caption)).append("\n");
-@@ -197,7 +199,7 @@
-
- public static void removeSelectedFromTable(JTable table, boolean ask, UnsignedAppletActionTableModel data, Component forDialog) {
- int[] originalIndexes = table.getSelectedRows();
-- List<Integer> newIndexes = new ArrayList<Integer>(originalIndexes.length);
-+ List<Integer> newIndexes = new ArrayList<>(originalIndexes.length);
- for (int i = 0; i < originalIndexes.length; i++) {
- //we need to remap values first
- int modelRow = table.convertRowIndexToModel(originalIndexes[i]);
-@@ -249,7 +251,7 @@
- userTable = createTbale(customModel);
- globalTable = createTbale(globalModel);
- helpButton = new javax.swing.JButton();
-- mainPolicyComboBox = new JComboBox(new AppletSecurityLevel[]{
-+ mainPolicyComboBox = new JComboBox<>(new AppletSecurityLevel[] {
- AppletSecurityLevel.DENY_ALL,
- AppletSecurityLevel.DENY_UNSIGNED,
- AppletSecurityLevel.ASK_UNSIGNED,
-@@ -258,8 +260,8 @@
- mainPolicyComboBox.setSelectedItem(AppletSecurityLevel.getDefault());
- securityLevelLabel = new javax.swing.JLabel();
- globalBehaviourLabel = new javax.swing.JLabel();
-- deleteTypeComboBox = new javax.swing.JComboBox();
-- viewFilter = new javax.swing.JComboBox();
-+ deleteTypeComboBox = new javax.swing.JComboBox<>();
-+ viewFilter = new javax.swing.JComboBox<>();
- deleteButton = new javax.swing.JButton();
- testUrlButton = new javax.swing.JButton();
- addRowButton = new javax.swing.JButton();
-@@ -335,7 +337,7 @@
-
- globalBehaviourLabel.setText(Translator.R("APPEXTSECguiPanelGlobalBehaviourCaption"));
-
-- deleteTypeComboBox.setModel(new javax.swing.DefaultComboBoxModel(new String[]{
-+ deleteTypeComboBox.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] {
- Translator.R("APPEXTSECguiPanelDeleteMenuSelected"),
- Translator.R("APPEXTSECguiPanelDeleteMenuAllA"),
- Translator.R("APPEXTSECguiPanelDeleteMenuAllN"),
-@@ -343,7 +345,7 @@
- Translator.R("APPEXTSECguiPanelDeleteMenuAlln"),
- Translator.R("APPEXTSECguiPanelDeleteMenuAllAll")}));
-
-- viewFilter.setModel(new javax.swing.DefaultComboBoxModel(new String[]{
-+ viewFilter.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] {
- Translator.R("APPEXTSECguiPanelShowOnlyPermanent"),
- Translator.R("APPEXTSECguiPanelShowOnlyTemporal"),
- Translator.R("APPEXTSECguiPanelShowAll"),
-@@ -681,7 +683,7 @@
- }
- }
-
-- private void helpButtonActionPerformed(java.awt.event.ActionEvent evt) {
-+ private static void helpButtonActionPerformed(java.awt.event.ActionEvent evt) {
- JDialog d = new ExtendedAppletSecurityHelp(null, false);
- ScreenFinder.centerWindowsToCurrentScreen(d);
- d.setVisible(true);
-@@ -701,7 +703,11 @@
- public TableCellEditor getCellEditor(int row, int column) {
- int columnx = convertColumnIndexToModel(column);
- if (columnx == 0) {
-- return new DefaultCellEditor(new JComboBox(new ExecuteAppletAction[]{ExecuteAppletAction.ALWAYS, ExecuteAppletAction.NEVER, ExecuteAppletAction.YES, ExecuteAppletAction.NO}));
-+ return new DefaultCellEditor(new JComboBox<>(new ExecuteAppletAction[] {
-+ ExecuteAppletAction.ALWAYS,
-+ ExecuteAppletAction.NEVER,
-+ ExecuteAppletAction.YES,
-+ ExecuteAppletAction.NO }));
- }
- if (columnx == 2) {
- column = convertColumnIndexToModel(column);
-@@ -761,7 +767,7 @@
- private void removeByBehaviour(ExecuteAppletAction unsignedAppletAction) {
- UnsignedAppletActionEntry[] items = currentModel.back.toArray();
- if (askBeforeActionCheckBox.isSelected()) {
-- List<UnsignedAppletActionEntry> toBeDeleted = new ArrayList<UnsignedAppletActionEntry>();
-+ List<UnsignedAppletActionEntry> toBeDeleted = new ArrayList<>();
- for (int i = 0; i < items.length; i++) {
- UnsignedAppletActionEntry unsignedAppletActionEntry = items[i];
- if (unsignedAppletActionEntry.getUnsignedAppletAction() == unsignedAppletAction) {
--- netx/net/sourceforge/jnlp/security/VariableX509TrustManagerJDK6.java 2014-04-02 06:20:59.679124000 -0400
+++ netx/net/sourceforge/jnlp/security/VariableX509TrustManagerJDK6.java 2014-05-15 16:57:19.000000000 -0400
@@ -1,75 +0,0 @@
@@ -869,26 +740,25 @@
if (argsList.contains(HELP_FLAG)) {
map.put(HELP_FLAG, null);
---- netx/net/sourceforge/jnlp/security/policyeditor/PolicyEditorPermissions.java 2014-04-02 06:20:59.679124000 -0400
-+++ netx/net/sourceforge/jnlp/security/policyeditor/PolicyEditorPermissions.java 2014-05-15 16:57:20.000000000 -0400
-@@ -123,13 +123,14 @@
+--- netx/net/sourceforge/jnlp/security/policyeditor/PolicyEditorPermissions.java 2014-08-14 06:15:47.038832000 -0400
++++ netx/net/sourceforge/jnlp/security/policyeditor/PolicyEditorPermissions.java 2014-10-21 18:32:55.000000000 -0400
+@@ -128,12 +128,13 @@
private final PolicyEditorPermissions[] permissions;
- private final String title;
+ private final String title;
- private Group(String title, PolicyEditorPermissions... permissions) {
+
+ private Group(final String title, final PolicyEditorPermissions... permissions) {
this.title = title;
this.permissions = permissions;
-
}
- public static boolean anyContains(PolicyEditorPermissions permission) {
+ public static boolean anyContains(final PolicyEditorPermissions permission) {
- for (Group g : Group.values()) {
+ for (final Group g : Group.values()) {
if (g.contains(permission)) {
return true;
-@@ -138,10 +139,10 @@
+@@ -142,10 +143,10 @@
return false;
}
@@ -902,7 +772,7 @@
if (g.contains(pairs.getKey())) {
return true;
}
-@@ -157,10 +158,10 @@
+@@ -161,10 +162,10 @@
* - none is selected
*/
public int getState (final Map<PolicyEditorPermissions, Boolean> map) {
@@ -917,7 +787,7 @@
if (b == null){
return 0;
}
-@@ -170,23 +171,22 @@
+@@ -174,23 +175,22 @@
allTrue = false;
}
}
@@ -945,7 +815,7 @@
}
public String getTitle() {
-@@ -199,7 +199,7 @@
+@@ -203,7 +203,7 @@
}
@@ -1185,17 +1055,17 @@
throw new InvalidJarHeaderException("Jar " + file.getName() + " do not heave valid header. You can skip this check by -Xignoreheaders");
}
}
---- netx/net/sourceforge/jnlp/util/logging/ConsoleOutputPane.java 2014-04-02 06:20:59.684125000 -0400
-+++ netx/net/sourceforge/jnlp/util/logging/ConsoleOutputPane.java 2014-05-15 16:57:20.000000000 -0400
-@@ -15,6 +15,7 @@
+--- netx/net/sourceforge/jnlp/util/logging/ConsoleOutputPane.java 2014-08-14 06:15:47.055833000 -0400
++++ netx/net/sourceforge/jnlp/util/logging/ConsoleOutputPane.java 2014-10-21 19:02:25.000000000 -0400
+@@ -17,6 +17,7 @@
import java.util.Observer;
import java.util.concurrent.atomic.AtomicBoolean;
import java.util.regex.Pattern;
+
import javax.swing.ButtonGroup;
- import javax.swing.JFrame;
- import javax.swing.JMenuItem;
-@@ -26,6 +27,7 @@
+ import javax.swing.DefaultComboBoxModel;
+ import javax.swing.GroupLayout;
+@@ -41,6 +42,7 @@
import javax.swing.text.Document;
import javax.swing.text.PlainDocument;
import javax.swing.text.html.HTMLDocument;
@@ -1203,41 +1073,41 @@
import net.sourceforge.jnlp.runtime.JNLPRuntime;
import net.sourceforge.jnlp.runtime.Translator;
import net.sourceforge.jnlp.util.logging.headers.ObservableMessagesProvider;
-@@ -247,7 +249,6 @@
+@@ -104,7 +106,7 @@
+ showPreInit = new JCheckBox();
+ sortByLabel = new JLabel();
+ regExLabel = new JCheckBox();
+- sortBy = new JComboBox();
++ sortBy = new JComboBox<>();
+ searchLabel = new JLabel();
+ autorefresh = new JCheckBox();
+ refresh = new JButton();
+@@ -313,7 +315,6 @@
statistics.setText(model.createStatisticHint());
}
- @SuppressWarnings("unchecked")
private void initComponents() {
-
- jPanel2 = new javax.swing.JPanel();
-@@ -267,7 +268,7 @@
- showPreInit = new javax.swing.JCheckBox();
- sortByLabel = new javax.swing.JLabel();
- regExLabel = new javax.swing.JCheckBox();
-- sortBy = new javax.swing.JComboBox();
-+ sortBy = new javax.swing.JComboBox<>();
- searchLabel = new javax.swing.JLabel();
- autorefresh = new javax.swing.JCheckBox();
- refresh = new javax.swing.JButton();
-@@ -362,7 +363,7 @@
+ //this is crucial, otherwie PlainDocument implementatin is repalcing all \n by space
+ ((PlainDocument)regExFilter.getDocument()).getDocumentProperties().remove("filterNewlines");
+@@ -380,7 +381,7 @@
regExLabel.setText(Translator.R("COPregex") + ":");
regExLabel.addActionListener(getDefaultActionSingleton());
-- sortBy.setModel(new javax.swing.DefaultComboBoxModel(new String[]{
-+ sortBy.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] {
+- sortBy.setModel(new DefaultComboBoxModel(new String[] {
++ sortBy.setModel(new DefaultComboBoxModel<>(new String[] {
Translator.R("COPAsArrived"),
Translator.R("COPuser"),
Translator.R("COPorigin"),
-@@ -943,7 +944,7 @@
- private javax.swing.JCheckBox showThread2;
- private javax.swing.JCheckBox showUser;
- private javax.swing.JCheckBox sortCopyAll;
-- private javax.swing.JComboBox sortBy;
-+ private javax.swing.JComboBox<String> sortBy;
- private javax.swing.JLabel sortByLabel;
- private javax.swing.JLabel statistics;
- private javax.swing.JCheckBox wordWrap;
+@@ -961,7 +962,7 @@
+ private final JCheckBox showThread2;
+ private final JCheckBox showUser;
+ private final JCheckBox sortCopyAll;
+- private final JComboBox sortBy;
++ private final JComboBox<String> sortBy;
+ private final JLabel sortByLabel;
+ private final JLabel statistics;
+ private final JCheckBox wordWrap;
--- netx/net/sourceforge/nanoxml/XMLElement.java 2014-04-02 06:20:59.669124000 -0400
+++ netx/net/sourceforge/nanoxml/XMLElement.java 2014-05-15 16:57:20.000000000 -0400
@@ -39,7 +39,7 @@
@@ -1409,119 +1279,3 @@
"application/x-java-bean;jpi-version=" JPI_VERSION ":class,jar:IcedTea;" \
"application/x-java-vm-npruntime::IcedTea;"
---- tests/test-extensions/net/sourceforge/jnlp/tools/CodeSignerCreator.java 2014-04-02 06:20:59.637124000 -0400
-+++ tests/test-extensions/net/sourceforge/jnlp/tools/CodeSignerCreator.java 2014-05-15 16:57:20.000000000 -0400
-@@ -25,17 +25,24 @@
-
- package net.sourceforge.jnlp.tools;
-
-+import java.lang.reflect.Constructor;
-+import java.lang.reflect.InvocationTargetException;
-+import java.lang.reflect.Method;
- import java.security.CodeSigner;
-+import java.security.InvalidKeyException;
-+import java.security.NoSuchAlgorithmException;
-+import java.security.NoSuchProviderException;
- import java.security.PrivateKey;
-+import java.security.SignatureException;
- import java.security.Timestamp;
- import java.security.cert.CertPath;
-+import java.security.cert.CertificateException;
- import java.security.cert.CertificateFactory;
- import java.security.cert.X509Certificate;
- import java.util.ArrayList;
- import java.util.Date;
-
- import sun.security.x509.AlgorithmId;
--import sun.security.x509.CertAndKeyGen;
- import sun.security.x509.CertificateAlgorithmId;
- import sun.security.x509.CertificateIssuerName;
- import sun.security.x509.CertificateSerialNumber;
-@@ -72,13 +79,10 @@
- // KeyTool#doGenKeyPair
- X500Name x500Name = new X500Name(dname);
-
-- CertAndKeyGen keypair = new CertAndKeyGen(keyAlgName, sigAlgName);
-+ KeyPair keyPair = new KeyPair(keyAlgName, sigAlgName, keysize);
-+ PrivateKey privKey = keyPair.getPrivateKey();
-
-- keypair.generate(keysize);
-- PrivateKey privKey = keypair.getPrivateKey();
--
-- X509Certificate oldCert = keypair.getSelfCertificate(x500Name,
-- notBefore, validity * 24L * 60L * 60L);
-+ X509Certificate oldCert = keyPair.getSelfCertificate(x500Name, notBefore, validity);
-
- // KeyTool#doSelfCert
- byte[] encoded = oldCert.getEncoded();
-@@ -142,4 +146,70 @@
- Timestamp certTimestamp = new Timestamp(jarEntryCert.getNotBefore(), certPath);
- return new CodeSigner(certPath, certTimestamp);
- }
-+
-+ /**
-+ * A wrapper over JDK-internal CertAndKeyGen Class.
-+ * <p>
-+ * This is an internal class whose package changed between OpenJDK 7 and 8.
-+ * Use reflection to access the right thing.
-+ */
-+ public static class KeyPair {
-+
-+ private /* CertAndKeyGen */ Object keyPair;
-+
-+ public KeyPair(String keyAlgName, String sigAlgName, int keySize) throws NoSuchAlgorithmException, InvalidKeyException {
-+ try {
-+ // keyPair = new CertAndKeyGen(keyAlgName, sigAlgName);
-+ Class<?> certAndKeyGenClass = Class.forName(getCertAndKeyGenClass());
-+ Constructor<?> constructor = certAndKeyGenClass.getDeclaredConstructor(String.class, String.class);
-+ keyPair = constructor.newInstance(keyAlgName, sigAlgName);
-+
-+ // keyPair.generate(keySize);
-+ Method generate = certAndKeyGenClass.getMethod("generate", int.class);
-+ generate.invoke(keyPair, keySize);
-+ } catch (ClassNotFoundException | NoSuchMethodException | SecurityException | InstantiationException |
-+ IllegalAccessException | IllegalArgumentException | InvocationTargetException certAndKeyGenClassError) {
-+ throw new AssertionError("Unable to use CertAndKeyGen class", certAndKeyGenClassError);
-+ }
-+ }
-+
-+ public PrivateKey getPrivateKey() {
-+ try {
-+ // return keyPair.getPrivateKey();
-+ Class<?> klass = keyPair.getClass();
-+ Method method = klass.getMethod("getPrivateKey");
-+ return (PrivateKey) method.invoke(keyPair);
-+ } catch (NoSuchMethodException | IllegalAccessException | IllegalArgumentException | InvocationTargetException error) {
-+ throw new AssertionError(error);
-+ }
-+ }
-+
-+ public X509Certificate getSelfCertificate(X500Name name, Date notBefore, long validityInDays)
-+ throws InvalidKeyException, CertificateException, SignatureException,
-+ NoSuchAlgorithmException, NoSuchProviderException {
-+ try {
-+ // return keyPair.getSelfCertificate(name, notBefore, validityInDays * 24L * 60L * 60L);
-+ Class<?> klass = keyPair.getClass();
-+ Method method = klass.getMethod("getSelfCertificate", X500Name.class, Date.class, long.class);
-+ return (X509Certificate) method.invoke(keyPair, name, notBefore, validityInDays * 24L * 60L * 60L);
-+ } catch (InvocationTargetException ite) {
-+ throw new RuntimeException(ite.getCause());
-+ } catch (NoSuchMethodException | IllegalAccessException | IllegalArgumentException error) {
-+ throw new AssertionError(error);
-+ }
-+ }
-+
-+ private String getCertAndKeyGenClass() {
-+ String javaVersion = System.getProperty("java.version");
-+ String className = null;
-+ if (javaVersion.startsWith("1.7")) {
-+ className = "sun.security.x509.CertAndKeyGen";
-+ } else if (javaVersion.startsWith("1.8")) {
-+ className = "sun.security.tools.keytool.CertAndKeyGen";
-+ } else {
-+ throw new AssertionError("Unrecognized Java Version");
-+ }
-+ return className;
-+ }
-+ }
- }
diff --git a/java/icedtea-web/files/patch-Makefile.in b/java/icedtea-web/files/patch-Makefile.in
index bd0c95b9da34..21650451abd0 100644
--- a/java/icedtea-web/files/patch-Makefile.in
+++ b/java/icedtea-web/files/patch-Makefile.in
@@ -1,5 +1,5 @@
---- Makefile.in.orig 2014-04-02 06:21:18.672343000 -0400
-+++ Makefile.in 2014-04-09 20:12:29.000000000 -0400
+--- Makefile.in.orig 2014-08-15 03:08:34.349127000 -0400
++++ Makefile.in 2014-10-21 18:14:35.000000000 -0400
@@ -309,9 +309,9 @@
#end of exported autoconf copies
@@ -12,7 +12,7 @@
# the launcher needs to know $(bindir) and $(datadir) which can be different at
# make-time from configure-time
-@@ -851,34 +851,36 @@
+@@ -852,34 +852,36 @@
@ENABLE_PLUGIN_TRUE@ ${INSTALL_DATA} $(abs_top_builddir)/liveconnect/lib/classes.jar $(DESTDIR)$(datadir)/$(PACKAGE_NAME)/plugin.jar
${INSTALL_DATA} $(NETX_DIR)/lib/classes.jar $(DESTDIR)$(datadir)/$(PACKAGE_NAME)/netx.jar
${INSTALL_DATA} $(NETX_SRCDIR)/javaws_splash.png $(DESTDIR)$(datadir)/$(PACKAGE_NAME)/javaws_splash.png
@@ -58,7 +58,7 @@
rm -f $(DESTDIR)$(bindir)/$(javaws)
rm -f $(DESTDIR)$(bindir)/$(itweb_settings)
rm -f $(DESTDIR)$(bindir)/$(policyeditor)
-@@ -1041,10 +1043,10 @@
+@@ -1042,10 +1044,10 @@
find $(NETX_SRCDIR) -name '*.java' | sort > $@ ; \
for src in $(NETX_EXCLUDE_SRCS) ; \
do \
@@ -72,7 +72,7 @@
stamps/netx-html-gen.stamp:
(cd $$NETX_SRCDIR/..; \
-@@ -1058,7 +1060,7 @@
+@@ -1059,7 +1061,7 @@
mkdir -p stamps
touch $@
@@ -81,7 +81,7 @@
mkdir -p $(NETX_DIR)
$(BOOT_DIR)/bin/javac $(IT_JAVACFLAGS) \
-d $(NETX_DIR) \
-@@ -1069,7 +1071,8 @@
+@@ -1070,7 +1072,8 @@
(cd $(NETX_RESOURCE_DIR); \
for files in $$(find . -type f); \
do \
@@ -91,7 +91,7 @@
$(NETX_DIR)/net/sourceforge/jnlp/resources/$${files}; \
done)
cp -a $(NETX_SRCDIR)/net/sourceforge/jnlp/runtime/pac-funcs.js \
-@@ -1099,7 +1102,7 @@
+@@ -1100,7 +1103,7 @@
rm -f $(NETX_RESOURCE_DIR)/{NEWS,AUTHORS,COPYING,ChangeLog}.html
clean-desktop-files:
@@ -100,7 +100,7 @@
rm -f itweb-settings.desktop
launcher.build/$(javaws): launcher/launchers.in
-@@ -1132,7 +1135,7 @@
+@@ -1133,7 +1136,7 @@
fi
javaws.desktop: javaws.desktop.in
@@ -109,7 +109,7 @@
itweb-settings.desktop: $(srcdir)/itweb-settings.desktop.in
sed "s#PATH_TO_ITWEB_SETTINGS#$(bindir)/$(itweb_settings)#" \
-@@ -1140,7 +1143,7 @@
+@@ -1141,7 +1144,7 @@
policyeditor.desktop: $(srcdir)/policyeditor.desktop.in
sed 's#PATH_TO_POLICYEDITOR#$(bindir)/$(policyeditor)#' \
@@ -118,7 +118,7 @@
# documentation
-@@ -1251,7 +1254,7 @@
+@@ -1252,7 +1255,7 @@
notSrcFiles=`find . -mindepth 1 -type f \! -name "*.java" | sed "s/.\/*//"` ; \
$(BOOT_DIR)/bin/javac -cp $(NETX_DIR)/lib/classes.jar:$(abs_top_builddir)/liveconnect -d "$(REPRODUCERS_BUILD_DIR)/$$dir/" $$srcFiles ; \
if [ -n "$$notSrcFiles" ] ; then \
@@ -127,7 +127,7 @@
fi ; \
cd "$(REPRODUCERS_BUILD_DIR)/$$dir/" ; \
if [ -f $(META_MANIFEST) ]; \
-@@ -1306,7 +1309,7 @@
+@@ -1307,7 +1310,7 @@
path="`dirname $$slashed_dir`" ; \
file="`basename $$slashed_dir`.jar" ; \
echo "copying $$dir.jar to $$path as $$file" ; \
@@ -136,7 +136,7 @@
cp $$dir".jar" "$$path"/"$$file" ; \
fi ; \
done ; \
-@@ -1434,7 +1437,7 @@
+@@ -1435,7 +1438,7 @@
whiteListed=`cat $(REPRODUCERS_CLASS_WHITELIST)`; \
cd $(TEST_EXTENSIONS_TESTS_DIR) ; \
class_names= ; \
@@ -145,7 +145,7 @@
class_name=`echo $$test | sed -e 's|\.class$$||' -e 's|^\./||'` ; \
class_name=`echo $$class_name | sed -e 's|/|.|g' ` ; \
INLCUDE="NO" ; \
-@@ -1624,7 +1627,7 @@
+@@ -1625,7 +1628,7 @@
$(UNIT_CLASS_NAMES):
cd $(NETX_UNIT_TEST_DIR) ; \
class_names= ; \
@@ -154,7 +154,7 @@
class_name=`echo $$test | sed -e 's|\.class$$||' -e 's|^\./||'` ; \
class_name=`echo $$class_name | sed -e 's|/|.|g' ` ; \
class_names="$$class_names $$class_name" ; \
-@@ -1635,10 +1638,7 @@
+@@ -1636,10 +1639,7 @@
$(TESTS_DIR)/$(REPORT_STYLES_DIRNAME) $(UNIT_CLASS_NAMES)
filename=" " ; \
cd $(NETX_UNIT_TEST_SRCDIR) ; \
@@ -165,8 +165,8 @@
+ tar -c -f - `find . -type f \! -iname "*.java"` | tar -x -f - -C $(NETX_UNIT_TEST_DIR) ; \
cd $(NETX_UNIT_TEST_DIR) ; \
class_names=`cat $(UNIT_CLASS_NAMES)` ; \
- CLASSPATH=$(NETX_DIR)/lib/classes.jar:$(abs_top_builddir)/liveconnect/lib/classes.jar:$(JUNIT_JAR):$(JUNIT_RUNNER_JAR):$(TEST_EXTENSIONS_DIR):.:$(TEST_EXTENSIONS_SRCDIR):$(TAGSOUP_JAR) \
-@@ -2128,9 +2128,7 @@
+ CLASSPATH=$(NETX_DIR)/lib/classes.jar:$(abs_top_builddir)/liveconnect/lib/classes.jar:$(JUNIT_JAR):$(JUNIT_RUNNER_JAR):$(TEST_EXTENSIONS_DIR):.:$(TEST_EXTENSIONS_SRCDIR):$(TAGSOUP_JAR) ; \
+@@ -2131,9 +2131,7 @@
@ENABLE_PLUGIN_TRUE@ $(PLUGIN_TEST_SRCS) ;
@ENABLE_PLUGIN_TRUE@ $(BOOT_DIR)/bin/jar cf plugin/tests/LiveConnect/PluginTest.jar \
@ENABLE_PLUGIN_TRUE@ plugin/tests/LiveConnect/*.class ;
diff --git a/java/icedtea-web/files/patch-netx-XDesktopEntry.java b/java/icedtea-web/files/patch-netx-XDesktopEntry.java
index a16de3eb52ee..51fe60a90246 100644
--- a/java/icedtea-web/files/patch-netx-XDesktopEntry.java
+++ b/java/icedtea-web/files/patch-netx-XDesktopEntry.java
@@ -1,11 +1,11 @@
---- netx/net/sourceforge/jnlp/util/XDesktopEntry.java.orig 2013-05-03 15:08:24.357518000 -0400
-+++ netx/net/sourceforge/jnlp/util/XDesktopEntry.java 2013-06-11 11:04:56.000000000 -0400
-@@ -102,7 +102,7 @@
+--- netx/net/sourceforge/jnlp/util/XDesktopEntry.java.orig 2014-08-14 06:15:47.054833000 -0400
++++ netx/net/sourceforge/jnlp/util/XDesktopEntry.java 2014-10-17 17:37:24.000000000 -0400
+@@ -103,7 +103,7 @@
}
- //Shortcut executes the jnlp from cache and system preferred java..
-- fileContents += "Exec=" + "javaws" + " \"" + cacheFile.getAbsolutePath() + "\"\n";
-+ fileContents += "Exec=" + "itweb-javaws" + " \"" + cacheFile.getAbsolutePath() + "\"\n";
+ //Shortcut executes the jnlp as it was with system preferred java. It should work fine offline
+- fileContents += "Exec=" + "javaws" + " \"" + file.getSourceLocation() + "\"\n";
++ fileContents += "Exec=" + "itweb-javaws" + " \"" + file.getSourceLocation() + "\"\n";
return new StringReader(fileContents);