Hello community,

here is the log from the commit of package xmlgraphics-batik for 
openSUSE:Factory checked in at 2018-07-24 17:32:40
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/xmlgraphics-batik (Old)
 and      /work/SRC/openSUSE:Factory/.xmlgraphics-batik.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "xmlgraphics-batik"

Tue Jul 24 17:32:40 2018 rev:17 rq:622060 version:1.9

Changes:
--------
--- /work/SRC/openSUSE:Factory/xmlgraphics-batik/xmlgraphics-batik.changes      
2017-06-01 16:30:09.880864545 +0200
+++ /work/SRC/openSUSE:Factory/.xmlgraphics-batik.new/xmlgraphics-batik.changes 
2018-07-24 17:32:42.588086431 +0200
@@ -1,0 +2,10 @@
+Wed Jul 11 10:21:58 UTC 2018 - [email protected]
+
+- Added patch:
+  * xmlgraphics-batik-securitymanager.patch
+    + Fix build with jdk11
+    + Replace use of SecurityManager::checkSystemClipboardAccess
+      by check for AWTPermission("accessClipboard")
+- Run fdupes on relevant directories
+
+-------------------------------------------------------------------
@@ -12 +22 @@
-- Add BuildRequires: javapackages-local (for maven conversions) 
+- Add BuildRequires: javapackages-local (for maven conversions) 

New:
----
  xmlgraphics-batik-securitymanager.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ xmlgraphics-batik.spec ++++++
--- /var/tmp/diff_new_pack.VUJZxb/_old  2018-07-24 17:32:43.352087394 +0200
+++ /var/tmp/diff_new_pack.VUJZxb/_new  2018-07-24 17:32:43.356087399 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package xmlgraphics-batik
 #
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
 # Copyright (c) 2000-2008, JPackage Project
 #
 # All modifications and additions to the file contributed by third parties
@@ -34,8 +34,10 @@
 Source7:        %{name}.rasterizer.policy
 Patch1:         %{name}-manifests.patch
 Patch2:         %{name}-policy.patch
+Patch3:         %{name}-securitymanager.patch
 BuildRequires:  ant
 # Needed for maven conversions
+BuildRequires:  fdupes
 BuildRequires:  javapackages-local
 BuildRequires:  javapackages-tools
 BuildRequires:  jython
@@ -132,11 +134,12 @@
 %setup -q -n batik-%{version}
 %patch1 -p1
 %patch2 -p1
+%patch3 -p1
 
 %build
 export CLASSPATH=
 export OPT_JAR_LIST=:
-ant -Dant.build.javac.source=1.5 -Dant.build.javac.target=1.5 all-jar jars
+ant all-jar jars
 
 %install
 
@@ -183,6 +186,7 @@
 mkdir -p %{buildroot}%{_datadir}/%{name}
 cp -pr contrib samples test-resources test-sources \
   %{buildroot}%{_datadir}/%{name}
+%fdupes -s %{buildroot}%{_datadir}/%{name}
 ln -s %{name} %{buildroot}%{_datadir}/batik
 
 # policy

++++++ xmlgraphics-batik-securitymanager.patch ++++++
--- 
batik-1.9/batik-swing/src/main/java/org/apache/batik/swing/gvt/JGVTComponent.java
   2017-03-17 16:56:33.000000000 +0100
+++ 
batik-1.9/batik-swing/src/main/java/org/apache/batik/swing/gvt/JGVTComponent.java
   2018-07-11 12:01:32.743072432 +0200
@@ -1275,7 +1275,7 @@
             securityManager = System.getSecurityManager();
             if (securityManager != null) {
                 try {
-                    securityManager.checkSystemClipboardAccess();
+                    securityManager.checkPermission(new 
java.awt.AWTPermission("accessClipboard"));
                 } catch (SecurityException e) {
                     return; // Can't access clipboard.
                 }

Reply via email to