This commit is contained in:
parent
2f7bd65780
commit
379d4ad016
11
xmlgraphics-batik-securitymanager.patch
Normal file
11
xmlgraphics-batik-securitymanager.patch
Normal file
@ -0,0 +1,11 @@
|
||||
--- 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.
|
||||
}
|
@ -1,3 +1,13 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Jul 11 10:21:58 UTC 2018 - fstrba@suse.com
|
||||
|
||||
- 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
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri May 19 15:45:22 UTC 2017 - tchvatal@suse.com
|
||||
|
||||
@ -9,7 +19,7 @@ Fri May 19 15:45:22 UTC 2017 - tchvatal@suse.com
|
||||
-------------------------------------------------------------------
|
||||
Fri May 19 11:09:42 UTC 2017 - vsistek@suse.com
|
||||
|
||||
- Add BuildRequires: javapackages-local (for maven conversions)
|
||||
- Add BuildRequires: javapackages-local (for maven conversions)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Mar 20 15:16:57 UTC 2017 - sknorr@suse.com
|
||||
|
@ -34,8 +34,10 @@ Source6: %{name}-squiggle.desktop
|
||||
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 @@ Demonstrations and samples for %{name}.
|
||||
%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 @@ cp -p %{SOURCE5} %{buildroot}%{_bindir}/%{name}-slideshow
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user