diff --git a/reproducible-build-manifest.patch b/reproducible-build-manifest.patch new file mode 100644 index 0000000..faa7218 --- /dev/null +++ b/reproducible-build-manifest.patch @@ -0,0 +1,87 @@ +Remove custom "Build-Id" field from manifest. It contains: +* Timestamp: Makes the build unreproducible. +* Architecture: Makes the build arch-dependent whereas we want it as + noarch.: +* OS and Java version: Too detailed information, triggers too many + publication for no real advantage. + +-- +diff -up fop-2.1/build.xml.orig fop-2.1/build.xml +--- fop-2.1/build.xml.orig 2018-10-29 07:26:58.205413821 +0100 ++++ fop-2.1/build.xml 2018-10-29 07:55:33.117484917 +0100 +@@ -460,7 +460,6 @@ list of possible build targets. + + + +- + + + +@@ -482,7 +481,6 @@ list of possible build targets. + + + +- +
+ + +@@ -506,9 +504,7 @@ list of possible build targets. + + + +- +- +- ++ + + + +@@ -637,7 +633,6 @@ list of possible build targets. + + + +- + + + +@@ -672,7 +667,6 @@ list of possible build targets. + + + +- + + + +@@ -1042,9 +1036,7 @@ NOTE: + + + +- +- +- ++ + + + +@@ -1346,9 +1338,7 @@ NOTE: + + + +- +- +- ++ + + + +diff -up fop-2.1/examples/plan/build.xml.orig fop-2.1/examples/plan/build.xml +--- fop-2.1/examples/plan/build.xml.orig 2018-10-29 07:48:15.749466784 +0100 ++++ fop-2.1/examples/plan/build.xml 2018-10-29 07:48:22.709467073 +0100 +@@ -133,7 +133,6 @@ + + + +- + + + diff --git a/xmlgraphics-fop.changes b/xmlgraphics-fop.changes index 4902029..b08fe63 100644 --- a/xmlgraphics-fop.changes +++ b/xmlgraphics-fop.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Mon Oct 29 06:31:21 UTC 2018 - antoine.belvire@opensuse.org + +- Add reproducible-build-manifest.patch: Remove custom "Build-Id" + from manifests. It contains date and other information making the + build unreproducible (boo#1110024). + ------------------------------------------------------------------- Tue Aug 28 13:51:49 UTC 2018 - tchvatal@suse.com diff --git a/xmlgraphics-fop.spec b/xmlgraphics-fop.spec index de9dc52..8791ca8 100644 --- a/xmlgraphics-fop.spec +++ b/xmlgraphics-fop.spec @@ -40,6 +40,8 @@ Patch1: xmlgraphics-fop-cli.patch Patch2: hyphenation-more-stack.patch Patch3: fix-javadoc-java8.patch Patch4: java8-compatibility.patch +# PATCH-FEATURE-OPENSUSE reproducible-build-manifest.patch -- boo#1110024 +Patch5: reproducible-build-manifest.patch BuildRequires: ant >= 1.6.5 BuildRequires: apache-commons-io >= 2.4 BuildRequires: apache-commons-logging @@ -89,6 +91,7 @@ rm src/java/org/apache/fop/util/bitmap/JAIMonochromeBitmapConverter.java %patch2 -p1 %patch3 -p1 %patch4 -p1 +%patch5 -p1 cp %{SOURCE2} %{SOURCE3} %{SOURCE4} . # Replace keyword "VERSION" in XML files with the real one: