17
0

11 Commits

Author SHA256 Message Date
b9c7e53945 Accepting request 1250478 from Java:packages
more reproducible changes

OBS-URL: https://build.opensuse.org/request/show/1250478
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xmlgraphics-fop?expand=0&rev=53
2025-03-07 15:38:47 +00:00
8ca0f30702 OBS-URL: https://build.opensuse.org/package/show/Java:packages/xmlgraphics-fop?expand=0&rev=121 2025-03-05 17:53:03 +00:00
3212ebb250 OBS-URL: https://build.opensuse.org/package/show/Java:packages/xmlgraphics-fop?expand=0&rev=120 2025-03-05 14:44:06 +00:00
df00d5d47d Accepting request 1207477 from Java:packages
2.10 fixing bsc#1231428, CVE-2024-28168

OBS-URL: https://build.opensuse.org/request/show/1207477
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xmlgraphics-fop?expand=0&rev=52
2024-10-13 15:33:19 +00:00
800c44427e OBS-URL: https://build.opensuse.org/package/show/Java:packages/xmlgraphics-fop?expand=0&rev=118 2024-10-12 19:39:15 +00:00
3e7a0f287f OBS-URL: https://build.opensuse.org/package/show/Java:packages/xmlgraphics-fop?expand=0&rev=117 2024-10-12 16:49:16 +00:00
b1c1cbdc4a OBS-URL: https://build.opensuse.org/package/show/Java:packages/xmlgraphics-fop?expand=0&rev=116 2024-10-11 23:30:07 +00:00
fd02563083 OBS-URL: https://build.opensuse.org/package/show/Java:packages/xmlgraphics-fop?expand=0&rev=115 2024-10-11 20:53:24 +00:00
4ab4b1491e OBS-URL: https://build.opensuse.org/package/show/Java:packages/xmlgraphics-fop?expand=0&rev=114 2024-10-11 18:26:22 +00:00
ff17f51619 Accepting request 1205393 from Java:packages
Adapt scripts to the new javapackages-tools version

OBS-URL: https://build.opensuse.org/request/show/1205393
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xmlgraphics-fop?expand=0&rev=51
2024-10-04 15:08:32 +00:00
b78642e4df OBS-URL: https://build.opensuse.org/package/show/Java:packages/xmlgraphics-fop?expand=0&rev=112 2024-10-03 10:53:55 +00:00
3 changed files with 3 additions and 48 deletions

View File

@@ -1,36 +0,0 @@
diff -urEbwB fop-2.10.orig/fop-core/src/main/java/org/apache/fop/pdf/PDFOutputIntent.java fop-2.10/fop-core/src/main/java/org/apache/fop/pdf/PDFOutputIntent.java
--- fop-2.10.orig/fop-core/src/main/java/org/apache/fop/pdf/PDFOutputIntent.java 2026-02-06 15:00:51.925506699 +0100
+++ fop-2.10/fop-core/src/main/java/org/apache/fop/pdf/PDFOutputIntent.java 2026-02-06 15:01:50.805544209 +0100
@@ -130,7 +130,6 @@
/** {@inheritDoc} */
public byte[] toPDF() {
ByteArrayOutputStream bout = new ByteArrayOutputStream(128);
- try {
bout.write(encode("<<\n"));
bout.write(encode("/Type /OutputIntent\n"));
@@ -165,9 +164,6 @@
}
bout.write(encode(">>"));
- } catch (IOException ioe) {
- log.error("Ignored I/O exception", ioe);
- }
byte[] bytes = bout.toByteArray();
IOUtils.closeQuietly(bout);
return bytes;
diff -urEbwB fop-2.10.orig/fop-core/src/main/java/org/apache/fop/render/pdf/AbstractImageAdapter.java fop-2.10/fop-core/src/main/java/org/apache/fop/render/pdf/AbstractImageAdapter.java
--- fop-2.10.orig/fop-core/src/main/java/org/apache/fop/render/pdf/AbstractImageAdapter.java 2026-02-06 15:00:51.933619573 +0100
+++ fop-2.10/fop-core/src/main/java/org/apache/fop/render/pdf/AbstractImageAdapter.java 2026-02-06 15:05:54.463586122 +0100
@@ -261,11 +261,7 @@
isDeviceGray = Arrays.equals(reds, blues) && Arrays.equals(blues, greens);
if (isDeviceGray) {
indexed.add(new PDFName("DeviceGray"));
- try {
baout.write(blues);
- } catch (IOException e) {
- e.printStackTrace();
- }
} else {
indexed.add(new PDFName(toPDFColorSpace(icm.getColorSpace()).getName()));
for (int i = 0; i < c; i++) {

View File

@@ -1,10 +1,3 @@
-------------------------------------------------------------------
Fri Feb 6 14:08:26 UTC 2026 - Fridrich Strba <fstrba@suse.com>
- Added patch
* ioexception.patch
+ fix build with commons-io >= 2.19
-------------------------------------------------------------------
Wed Mar 5 17:50:56 UTC 2025 - Fridrich Strba <fstrba@suse.com>

View File

@@ -43,14 +43,13 @@ Patch4: encoding.patch
Patch5: reproducible-build-manifest.patch
Patch6: fop-2.10-QDox-2.0.patch
Patch7: reproducible.patch
Patch8: ioexception.patch
Patch9: java8-compatibility.patch
Patch8: java8-compatibility.patch
BuildRequires: ant >= 1.9.15
BuildRequires: apache-pdfbox >= 2.0.23
BuildRequires: bouncycastle
BuildRequires: bouncycastle-pkix
BuildRequires: bouncycastle-util
BuildRequires: commons-io >= 2.19
BuildRequires: commons-io >= 2.4
BuildRequires: commons-logging
BuildRequires: docbook-xsl-stylesheets
BuildRequires: jakarta-servlet
@@ -88,9 +87,8 @@ find -name "*.jar" | xargs -t rm
%patch -P 5 -p1
%patch -P 6 -p1
%patch -P 7 -p1
%patch -P 8 -p1
%if %{?pkg_vcmp:%pkg_vcmp java-devel >= 9}%{!?pkg_vcmp:0}
%patch -P 9 -p1
%patch -P 8 -p1
%endif
# Replace keyword "VERSION" in XML files with the real one: