17
0

9 Commits

Author SHA256 Message Date
Fridrich Štrba
32d2dd06fa fix build with newer commons-io versions 2026-02-06 14:58:53 +01:00
20982c869b Accepting request 1236864 from Java:packages
typo in changes

OBS-URL: https://build.opensuse.org/request/show/1236864
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xmlgraphics-commons?expand=0&rev=33
2025-01-12 10:08:51 +00:00
43891e4384 OBS-URL: https://build.opensuse.org/package/show/Java:packages/xmlgraphics-commons?expand=0&rev=68 2025-01-10 13:04:14 +00:00
17220e1e70 Accepting request 1207475 from Java:packages
2.10 needed by bsc#1231428, CVE-2024-28168

OBS-URL: https://build.opensuse.org/request/show/1207475
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xmlgraphics-commons?expand=0&rev=32
2024-10-13 15:33:15 +00:00
802c68e9ec OBS-URL: https://build.opensuse.org/package/show/Java:packages/xmlgraphics-commons?expand=0&rev=66 2024-10-12 16:19:01 +00:00
64ba32f394 OBS-URL: https://build.opensuse.org/package/show/Java:packages/xmlgraphics-commons?expand=0&rev=65 2024-10-11 23:31:23 +00:00
cfe11f4319 OBS-URL: https://build.opensuse.org/package/show/Java:packages/xmlgraphics-commons?expand=0&rev=64 2024-10-11 22:56:03 +00:00
658359b505 OBS-URL: https://build.opensuse.org/package/show/Java:packages/xmlgraphics-commons?expand=0&rev=63 2024-10-11 22:55:06 +00:00
e109bbaf19 OBS-URL: https://build.opensuse.org/package/show/Java:packages/xmlgraphics-commons?expand=0&rev=62 2024-10-11 18:07:35 +00:00
3 changed files with 25 additions and 1 deletions

14
ioexception.patch Normal file
View File

@@ -0,0 +1,14 @@
--- xmlgraphics-commons-2.10/src/main/java/org/apache/xmlgraphics/image/loader/impl/ImageLoaderRawJPEG.java 2026-02-06 14:46:33.830690789 +0100
+++ xmlgraphics-commons-2.10/src/main/java/org/apache/xmlgraphics/image/loader/impl/ImageLoaderRawJPEG.java 2026-02-06 14:52:44.657115723 +0100
@@ -226,11 +226,7 @@
final int alignment = 4;
int padding = (alignment - (iccStream.size() % alignment)) % alignment;
if (padding != 0) {
- try {
iccStream.write(new byte[padding]);
- } catch (IOException ioe) {
- throw new IOException("Error while aligning ICC stream: " + ioe.getMessage());
- }
}
ICC_Profile iccProfile = null;

View File

@@ -1,3 +1,11 @@
-------------------------------------------------------------------
Fri Feb 6 13:57:35 UTC 2026 - Fridrich Strba <fstrba@suse.com>
- Added patch:
* ioexception.patch
+ do not forward IOException that is not thrown with newer
commons-io versions
-------------------------------------------------------------------
Sat Oct 12 16:14:58 UTC 2024 - Fridrich Strba <fstrba@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package xmlgraphics-commons
#
# Copyright (c) 2025 SUSE LLC
# Copyright (c) 2026 SUSE LLC and contributors
# Copyright (c) 2000-2008, JPackage Project
#
# All modifications and additions to the file contributed by third parties
@@ -27,6 +27,7 @@ URL: https://xmlgraphics.apache.org/commons/
Source0: https://archive.apache.org/dist/xmlgraphics/commons/source/xmlgraphics-commons-%{version}-src.tar.gz
Patch0: xmlgraphics-commons-build_xml.patch
Patch1: xmlgraphics-commons-jdk10.patch
Patch2: ioexception.patch
BuildRequires: ant >= 1.6.5
BuildRequires: commons-io >= 1.1
BuildRequires: commons-logging
@@ -55,6 +56,7 @@ Javadoc for package %{name}.
%setup -q %{name}-%{version}
%patch -P 0
%patch -P 1 -p1
%patch -P 2 -p1
find . -name "*.jar" | xargs rm
%build