[Git][java-team/fop][master] 2 commits: Use SOURCE_DATE_EPOCH for XMP metadata date in IFRenderer (Closes: #1152747)

Simon Quigley (@tsimonq2) gitlab at salsa.debian.org
Mon Nov 2 20:52:02 GMT 2026



Simon Quigley pushed to branch master at Debian Java Maintainers / fop


Commits:
388c36d3 by Juan Manuel Méndez Rey at 2026-11-01T18:32:36+01:00
Use SOURCE_DATE_EPOCH for XMP metadata date in IFRenderer (Closes: #1152747)

- - - - -
3839d60e by Simon Quigley at 2026-11-02T14:51:59-06:00
Merge branch 'reproducible-xmp-createdate' into 'master'

Use SOURCE_DATE_EPOCH for xmp:CreateDate (Closes: #1152747)

See merge request java-team/fop!3
- - - - -


2 changed files:

- debian/changelog
- debian/patches/0001-PDFInfo.java-Support-SOURCE_DATE_EPOCH-environment-v.patch


Changes:

=====================================
debian/changelog
=====================================
@@ -1,3 +1,12 @@
+fop (1:2.10+dfsg1-3) UNRELEASED; urgency=medium
+
+  * Team upload.
+  * Also use SOURCE_DATE_EPOCH for the XMP metadata date set in
+    IFRenderer, so xmp:CreateDate is reproducible. Thanks to Vagrant
+    Cascadian for finding the place in the code (Closes: #1152747)
+
+ -- Juan Manuel Méndez Rey <juan.mendezr at proton.me>  Sun, 01 Nov 2026 18:25:54 +0100
+
 fop (1:2.10+dfsg1-2) unstable; urgency=medium
 
   * Team upload.


=====================================
debian/patches/0001-PDFInfo.java-Support-SOURCE_DATE_EPOCH-environment-v.patch
=====================================
@@ -1,13 +1,15 @@
 Author: Vagrant Cascadian <vagrant at reproducible-builds.org>
         tony mancill <tmancill at debian.org>
+        Juan Manuel Méndez Rey <juan.mendezr at proton.me>
 Description: Use SOURCE_DATE_EPOCH environment variable when set instead of
  current system time to enable reproducible generation of PDF documents.
  If you desire the previous behavior, either unset SOURCE_DATE_EPOCH or
  overwrite it to a non-integer value.
  Also see: https://reproducible-builds.org/docs/source-date-epoch/
 Forwarded: not-needed
-Last-Update: 2024-02-18
+Last-Update: 2026-11-01
 Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=978499
+Bug-Debian: https://bugs.debian.org/1152747
 
 --- a/fop-core/src/main/java/org/apache/fop/pdf/PDFInfo.java
 +++ b/fop-core/src/main/java/org/apache/fop/pdf/PDFInfo.java
@@ -143,3 +145,15 @@ Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=978499
              // Ignoring the filename here for simplicity even though it's recommended
              // by the PDF spec
              digest.update(PDFDocument.encode(String.valueOf(document.getCurrentFileSize())));
+--- a/fop-core/src/main/java/org/apache/fop/render/intermediate/IFRenderer.java
++++ b/fop-core/src/main/java/org/apache/fop/render/intermediate/IFRenderer.java
+@@ -544,7 +544,8 @@
+         } else {
+             xmpBasic.setCreatorTool(Version.getVersion());
+         }
+-        xmpBasic.setMetadataDate(new java.util.Date());
++        final java.util.Date sourceDateEpoch = org.apache.fop.pdf.PDFInfo.getSourceDateEpoch();
++        xmpBasic.setMetadataDate(sourceDateEpoch != null ? sourceDateEpoch : new java.util.Date());
+         if (getUserAgent().getCreationDate() != null) {
+             xmpBasic.setCreateDate(getUserAgent().getCreationDate());
+         } else {



View it on GitLab: https://salsa.debian.org/java-team/fop/-/compare/b296a3b87ca694222b893d4eb56c8d0d901ed42e...3839d60edf249e67457a135b3c8844cce6c227c2

-- 
View it on GitLab: https://salsa.debian.org/java-team/fop/-/compare/b296a3b87ca694222b893d4eb56c8d0d901ed42e...3839d60edf249e67457a135b3c8844cce6c227c2
You're receiving this email because of your account on salsa.debian.org. Manage all notifications: https://salsa.debian.org/-/profile/notifications | Help: https://salsa.debian.org/help


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-java-commits/attachments/20261102/ecdd86a0/attachment.htm>


More information about the pkg-java-commits mailing list