Package: jmodeltest
Version: 2.1.10+dfsg-3
Severity: serious
Control: tags -1 patch

As pointed out in

https://bugs.debian.org/859001
https://bugs.debian.org/859004
https://bugs.debian.org/859005

I recommend to remove libbrowserlauncher from Stretch because it is not
working at all.

To prevent jmodeltest from being removed, here is a patch that replaces
the package by a freedesktop.org compatible miniversion.

Cheers

Ole
diff -Nru jmodeltest-2.1.10+dfsg/debian/changelog jmodeltest-2.1.10+dfsg/debian/changelog
--- jmodeltest-2.1.10+dfsg/debian/changelog	2016-08-17 15:43:53.000000000 +0200
+++ jmodeltest-2.1.10+dfsg/debian/changelog	2017-03-30 14:03:42.000000000 +0200
@@ -1,3 +1,10 @@
+jmodeltest (2.1.10+dfsg-3.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Use custom BrowserLauncher. Fixes: #-1
+
+ -- Ole Streicher <oleb...@debian.org>  Thu, 30 Mar 2017 14:03:42 +0200
+
 jmodeltest (2.1.10+dfsg-3) unstable; urgency=medium
 
   * Add missing command line arguments to wrapper
diff -Nru jmodeltest-2.1.10+dfsg/debian/control jmodeltest-2.1.10+dfsg/debian/control
--- jmodeltest-2.1.10+dfsg/debian/control	2016-08-17 15:43:53.000000000 +0200
+++ jmodeltest-2.1.10+dfsg/debian/control	2017-03-30 13:53:46.000000000 +0200
@@ -13,7 +13,6 @@
                libjfreechart-java,
                libmpj-java,
                libpal-java,
-               libbrowserlauncher-java,
                prottest,
                texlive-latex-base,
                texlive-fonts-recommended,
diff -Nru jmodeltest-2.1.10+dfsg/debian/copyright jmodeltest-2.1.10+dfsg/debian/copyright
--- jmodeltest-2.1.10+dfsg/debian/copyright	2016-08-17 15:43:53.000000000 +0200
+++ jmodeltest-2.1.10+dfsg/debian/copyright	2017-03-30 14:03:26.000000000 +0200
@@ -26,7 +26,8 @@
 License: GPL-3+
 
 Files: debian/*
-Copyright: 2015 Andreas Tille <ti...@debian.org>
+Copyright: 2015 Andreas Tille <ti...@debian.org>,
+ 2017 Ole Streicher <oleb...@debian.org>
 License: GPL-2+
 
 License: GPL-2+
diff -Nru jmodeltest-2.1.10+dfsg/debian/patches/series jmodeltest-2.1.10+dfsg/debian/patches/series
--- jmodeltest-2.1.10+dfsg/debian/patches/series	2016-08-17 15:43:53.000000000 +0200
+++ jmodeltest-2.1.10+dfsg/debian/patches/series	2017-03-30 13:56:17.000000000 +0200
@@ -2,3 +2,4 @@
 do_not_chmod_anything_in_usr_bin.patch
 adapt_config.patch
 replace_natbib_bst_by_plainnat.patch
+use_custom_BrowserLauncher.patch
diff -Nru jmodeltest-2.1.10+dfsg/debian/patches/use_custom_BrowserLauncher.patch jmodeltest-2.1.10+dfsg/debian/patches/use_custom_BrowserLauncher.patch
--- jmodeltest-2.1.10+dfsg/debian/patches/use_custom_BrowserLauncher.patch	1970-01-01 01:00:00.000000000 +0100
+++ jmodeltest-2.1.10+dfsg/debian/patches/use_custom_BrowserLauncher.patch	2017-03-30 14:02:06.000000000 +0200
@@ -0,0 +1,23 @@
+Author: Ole Streicher <oleb...@debian.org>
+Last-Update: Thu, 30 Mar 2017 13:58:11 +0200
+Description: Use custom BrowserLauncher
+
+--- /dev/null
++++ b/src/main/java/edu/stanfort/ejalbert/BrowserLauncher.java
+@@ -0,0 +1,16 @@
++package edu.stanford.ejalbert;
++import java.io.IOException;
++
++/*
++ * Simple replacement for the BrowserLauncher, which is compatible to the
++ * Free Desktop Consortium. Written by Ole Streicher <oleb...@debian.org>
++ * License here: GPL-2+, to match with the other Debian files
++ */
++public class BrowserLauncher {
++    public void openURLinBrowser(String url)  {
++	try {
++	    Runtime.getRuntime().exec(new String[] { "xdg-open", url } );
++	} catch (IOException e) {
++	}
++    }
++}

Reply via email to