From 1e753a4446aad659439cf9efa6c182c0254f3660 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Thu, 12 Apr 2018 10:31:23 -0700 Subject: [PATCH] Import Debian changes 1.2.2-5.1 freetts (1.2.2-5.1) unstable; urgency=medium * Non-maintainer upload. * build with openjdk-8 instead of default-jdk * Disable custom loadClass in VoiceManager --- cleanup-script.sh | 3 ++ debian/changelog | 8 +++++ debian/control | 2 +- debian/patches/disable-custom-loadclass.diff | 31 ++++++++++++++++++++ debian/patches/series | 1 + debian/rules | 2 +- 6 files changed, 45 insertions(+), 2 deletions(-) create mode 100755 cleanup-script.sh create mode 100644 debian/patches/disable-custom-loadclass.diff diff --git a/cleanup-script.sh b/cleanup-script.sh new file mode 100755 index 0000000..44f6b45 --- /dev/null +++ b/cleanup-script.sh @@ -0,0 +1,3 @@ +#!/bin/sh +git rm -f lib/jsapi.exe lib/jsapi.sh lib/README.txt +rm -f lib/jsapi.exe lib/jsapi.sh lib/README.txt diff --git a/debian/changelog b/debian/changelog index 71f8f1f..13774dd 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,11 @@ +freetts (1.2.2-5.1) unstable; urgency=medium + + * Non-maintainer upload. + * build with openjdk-8 instead of default-jdk + * Disable custom loadClass in VoiceManager + + -- Keith Packard Thu, 12 Apr 2018 10:31:23 -0700 + freetts (1.2.2-5) unstable; urgency=low * update to policy 4.1.3 diff --git a/debian/control b/debian/control index 1ac02a7..ddec8b8 100644 --- a/debian/control +++ b/debian/control @@ -1,7 +1,7 @@ Source: freetts Priority: optional Maintainer: Bdale Garbee -Build-Depends: debhelper (>= 9), default-jdk, ant, ant-optional, junit4, javahelper +Build-Depends: debhelper (>= 9), openjdk-8-jdk, ant, ant-optional, junit4, javahelper Standards-Version: 4.1.3 Section: java Vcs-Git: git://git.gag.com/debian/freetts diff --git a/debian/patches/disable-custom-loadclass.diff b/debian/patches/disable-custom-loadclass.diff new file mode 100644 index 0000000..af8e8c0 --- /dev/null +++ b/debian/patches/disable-custom-loadclass.diff @@ -0,0 +1,31 @@ +Origin: https://sourceforge.net/p/freetts/discussion/137670/thread/938f4b85/ +Last-Update: 2018-04-12 +Description: Disable custom loadClass method + Custom loadClass in VoiceManager breaks under Java 9 + . + freetts (1.2.2-5.1) unstable; urgency=low + . + * Disable custom loadClass in VoiceManager +Author: Keith Packard + +--- + +--- freetts-1.2.2.orig/com/sun/speech/freetts/VoiceManager.java ++++ freetts-1.2.2/com/sun/speech/freetts/VoiceManager.java +@@ -661,7 +661,7 @@ class DynamicClassLoader extends URLClas + + /** + * {@inheritDoc} +- */ ++ * + public Class loadClass(final String name) + throws ClassNotFoundException { + Class loadedClass = findLoadedClass(name); +@@ -678,6 +678,7 @@ class DynamicClassLoader extends URLClas + } + return loadedClass; + } ++ */ + } + + /** diff --git a/debian/patches/series b/debian/patches/series index 4128797..08a244a 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1,3 +1,4 @@ license.terms-missing.diff debian-build-target.diff pulse-audio-compat.diff +disable-custom-loadclass.diff diff --git a/debian/rules b/debian/rules index 5012469..3004cfc 100755 --- a/debian/rules +++ b/debian/rules @@ -9,7 +9,7 @@ # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 -export JAVA_HOME=/usr/lib/jvm/default-java +export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64 #export CLASSPATH= %: -- 2.30.2