This commit is contained in:
parent
7b4c62170a
commit
c540ae8505
@ -1,10 +1,13 @@
|
|||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Jul 18 12:09:04 UTC 2024 - Fridrich Strba <fstrba@suse.com>
|
Thu Jul 18 12:09:04 UTC 2024 - Fridrich Strba <fstrba@suse.com>
|
||||||
|
|
||||||
- Added patch:
|
- Added patches:
|
||||||
* reproducible-jar-mtime.patch
|
* reproducible-jar-mtime.patch
|
||||||
+ make the modification times of files in a jar file
|
+ make the modification times of files in a jar file
|
||||||
reproducible
|
reproducible
|
||||||
|
* reproducible-javadoc.patch
|
||||||
|
+ make javadoc generation reproducible: don't generate
|
||||||
|
timestamps, and normalize locale and encoding
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sat May 4 00:54:38 UTC 2024 - Anton Shvetz <shvetz.anton@gmail.com>
|
Sat May 4 00:54:38 UTC 2024 - Anton Shvetz <shvetz.anton@gmail.com>
|
||||||
|
@ -47,6 +47,7 @@ Patch6: apache-ant-xml-apis.patch
|
|||||||
# PATCH-FEATURE-OPENSUSE debian patch to use SOURCE_DATE_EPOCH for timestamp in property files
|
# PATCH-FEATURE-OPENSUSE debian patch to use SOURCE_DATE_EPOCH for timestamp in property files
|
||||||
Patch7: reproducible-propertyfile-task.patch
|
Patch7: reproducible-propertyfile-task.patch
|
||||||
Patch8: reproducible-jar-mtime.patch
|
Patch8: reproducible-jar-mtime.patch
|
||||||
|
Patch9: reproducible-javadoc.patch
|
||||||
BuildRequires: antlr-bootstrap
|
BuildRequires: antlr-bootstrap
|
||||||
BuildRequires: java-devel >= 1.8
|
BuildRequires: java-devel >= 1.8
|
||||||
BuildRequires: javapackages-local >= 6
|
BuildRequires: javapackages-local >= 6
|
||||||
@ -397,6 +398,7 @@ find -name \*.jar -print -delete
|
|||||||
%patch -P 6 -p1
|
%patch -P 6 -p1
|
||||||
%patch -P 7 -p1
|
%patch -P 7 -p1
|
||||||
%patch -P 8 -p1
|
%patch -P 8 -p1
|
||||||
|
%patch -P 9 -p1
|
||||||
|
|
||||||
# clean jar files
|
# clean jar files
|
||||||
find . -name "*.jar" -print -delete
|
find . -name "*.jar" -print -delete
|
||||||
|
@ -1,10 +1,13 @@
|
|||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Jul 18 12:09:04 UTC 2024 - Fridrich Strba <fstrba@suse.com>
|
Thu Jul 18 12:09:04 UTC 2024 - Fridrich Strba <fstrba@suse.com>
|
||||||
|
|
||||||
- Added patch:
|
- Added patches:
|
||||||
* reproducible-jar-mtime.patch
|
* reproducible-jar-mtime.patch
|
||||||
+ make the modification times of files in a jar file
|
+ make the modification times of files in a jar file
|
||||||
reproducible
|
reproducible
|
||||||
|
* reproducible-javadoc.patch
|
||||||
|
+ make javadoc generation reproducible: don't generate
|
||||||
|
timestamps, and normalize locale and encoding
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sat May 4 00:54:38 UTC 2024 - Anton Shvetz <shvetz.anton@gmail.com>
|
Sat May 4 00:54:38 UTC 2024 - Anton Shvetz <shvetz.anton@gmail.com>
|
||||||
|
@ -47,6 +47,7 @@ Patch6: apache-ant-xml-apis.patch
|
|||||||
# PATCH-FEATURE-OPENSUSE debian patch to use SOURCE_DATE_EPOCH for timestamp in property files
|
# PATCH-FEATURE-OPENSUSE debian patch to use SOURCE_DATE_EPOCH for timestamp in property files
|
||||||
Patch7: reproducible-propertyfile-task.patch
|
Patch7: reproducible-propertyfile-task.patch
|
||||||
Patch8: reproducible-jar-mtime.patch
|
Patch8: reproducible-jar-mtime.patch
|
||||||
|
Patch9: reproducible-javadoc.patch
|
||||||
BuildRequires: antlr-bootstrap
|
BuildRequires: antlr-bootstrap
|
||||||
BuildRequires: java-devel >= 1.8
|
BuildRequires: java-devel >= 1.8
|
||||||
BuildRequires: javapackages-local >= 6
|
BuildRequires: javapackages-local >= 6
|
||||||
@ -397,6 +398,7 @@ find -name \*.jar -print -delete
|
|||||||
%patch -P 6 -p1
|
%patch -P 6 -p1
|
||||||
%patch -P 7 -p1
|
%patch -P 7 -p1
|
||||||
%patch -P 8 -p1
|
%patch -P 8 -p1
|
||||||
|
%patch -P 9 -p1
|
||||||
|
|
||||||
# clean jar files
|
# clean jar files
|
||||||
find . -name "*.jar" -print -delete
|
find . -name "*.jar" -print -delete
|
||||||
|
@ -1,10 +1,13 @@
|
|||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Jul 18 12:09:04 UTC 2024 - Fridrich Strba <fstrba@suse.com>
|
Thu Jul 18 12:09:04 UTC 2024 - Fridrich Strba <fstrba@suse.com>
|
||||||
|
|
||||||
- Added patch:
|
- Added patches:
|
||||||
* reproducible-jar-mtime.patch
|
* reproducible-jar-mtime.patch
|
||||||
+ make the modification times of files in a jar file
|
+ make the modification times of files in a jar file
|
||||||
reproducible
|
reproducible
|
||||||
|
* reproducible-javadoc.patch
|
||||||
|
+ make javadoc generation reproducible: don't generate
|
||||||
|
timestamps, and normalize locale and encoding
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sat May 4 00:54:38 UTC 2024 - Anton Shvetz <shvetz.anton@gmail.com>
|
Sat May 4 00:54:38 UTC 2024 - Anton Shvetz <shvetz.anton@gmail.com>
|
||||||
|
@ -47,6 +47,7 @@ Patch6: apache-ant-xml-apis.patch
|
|||||||
# PATCH-FEATURE-OPENSUSE debian patch to use SOURCE_DATE_EPOCH for timestamp in property files
|
# PATCH-FEATURE-OPENSUSE debian patch to use SOURCE_DATE_EPOCH for timestamp in property files
|
||||||
Patch7: reproducible-propertyfile-task.patch
|
Patch7: reproducible-propertyfile-task.patch
|
||||||
Patch8: reproducible-jar-mtime.patch
|
Patch8: reproducible-jar-mtime.patch
|
||||||
|
Patch9: reproducible-javadoc.patch
|
||||||
BuildRequires: antlr-bootstrap
|
BuildRequires: antlr-bootstrap
|
||||||
BuildRequires: java-devel >= 1.8
|
BuildRequires: java-devel >= 1.8
|
||||||
BuildRequires: javapackages-local >= 6
|
BuildRequires: javapackages-local >= 6
|
||||||
@ -397,6 +398,7 @@ find -name \*.jar -print -delete
|
|||||||
%patch -P 6 -p1
|
%patch -P 6 -p1
|
||||||
%patch -P 7 -p1
|
%patch -P 7 -p1
|
||||||
%patch -P 8 -p1
|
%patch -P 8 -p1
|
||||||
|
%patch -P 9 -p1
|
||||||
|
|
||||||
# clean jar files
|
# clean jar files
|
||||||
find . -name "*.jar" -print -delete
|
find . -name "*.jar" -print -delete
|
||||||
|
@ -1,10 +1,13 @@
|
|||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Jul 18 12:09:04 UTC 2024 - Fridrich Strba <fstrba@suse.com>
|
Thu Jul 18 12:09:04 UTC 2024 - Fridrich Strba <fstrba@suse.com>
|
||||||
|
|
||||||
- Added patch:
|
- Added patches:
|
||||||
* reproducible-jar-mtime.patch
|
* reproducible-jar-mtime.patch
|
||||||
+ make the modification times of files in a jar file
|
+ make the modification times of files in a jar file
|
||||||
reproducible
|
reproducible
|
||||||
|
* reproducible-javadoc.patch
|
||||||
|
+ make javadoc generation reproducible: don't generate
|
||||||
|
timestamps, and normalize locale and encoding
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sat May 4 00:54:38 UTC 2024 - Anton Shvetz <shvetz.anton@gmail.com>
|
Sat May 4 00:54:38 UTC 2024 - Anton Shvetz <shvetz.anton@gmail.com>
|
||||||
|
2
ant.spec
2
ant.spec
@ -46,6 +46,7 @@ Patch6: apache-ant-xml-apis.patch
|
|||||||
# PATCH-FEATURE-OPENSUSE debian patch to use SOURCE_DATE_EPOCH for timestamp in property files
|
# PATCH-FEATURE-OPENSUSE debian patch to use SOURCE_DATE_EPOCH for timestamp in property files
|
||||||
Patch7: reproducible-propertyfile-task.patch
|
Patch7: reproducible-propertyfile-task.patch
|
||||||
Patch8: reproducible-jar-mtime.patch
|
Patch8: reproducible-jar-mtime.patch
|
||||||
|
Patch9: reproducible-javadoc.patch
|
||||||
BuildRequires: antlr-bootstrap
|
BuildRequires: antlr-bootstrap
|
||||||
BuildRequires: java-devel >= 1.8
|
BuildRequires: java-devel >= 1.8
|
||||||
BuildRequires: javapackages-local >= 6
|
BuildRequires: javapackages-local >= 6
|
||||||
@ -396,6 +397,7 @@ find -name \*.jar -print -delete
|
|||||||
%patch -P 6 -p1
|
%patch -P 6 -p1
|
||||||
%patch -P 7 -p1
|
%patch -P 7 -p1
|
||||||
%patch -P 8 -p1
|
%patch -P 8 -p1
|
||||||
|
%patch -P 9 -p1
|
||||||
|
|
||||||
# clean jar files
|
# clean jar files
|
||||||
find . -name "*.jar" -print -delete
|
find . -name "*.jar" -print -delete
|
||||||
|
38
reproducible-javadoc.patch
Normal file
38
reproducible-javadoc.patch
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
--- apache-ant-1.10.14/src/main/org/apache/tools/ant/taskdefs/Javadoc.java 2024-07-17 15:06:13.718343866 +0200
|
||||||
|
+++ apache-ant-1.10.14/src/main/org/apache/tools/ant/taskdefs/Javadoc.java 2024-07-18 14:51:50.362329096 +0200
|
||||||
|
@@ -1297,6 +1297,15 @@
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
+ * Control generation of timestamps.
|
||||||
|
+ *
|
||||||
|
+ * @param b if true, don't generate timestamps.
|
||||||
|
+ */
|
||||||
|
+ public void setNoTimestamp(final boolean b) {
|
||||||
|
+ addArgIf(b, "-notimestamp");
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
+ /**
|
||||||
|
* Create link to Javadoc output at the given URL.
|
||||||
|
*
|
||||||
|
* @return link argument to configure
|
||||||
|
@@ -1807,6 +1816,19 @@
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public void execute() throws BuildException {
|
||||||
|
+ if (System.getenv("SOURCE_DATE_EPOCH") != null) {
|
||||||
|
+ java.util.List<String> arguments = java.util.Arrays.asList(cmd.getCommandline());
|
||||||
|
+ if (!arguments.contains("-locale")) {
|
||||||
|
+ setLocale("en");
|
||||||
|
+ }
|
||||||
|
+ if (!arguments.contains("-encoding")) {
|
||||||
|
+ setEncoding("UTF-8");
|
||||||
|
+ }
|
||||||
|
+ if (!arguments.contains("-notimestamp")) {
|
||||||
|
+ setNoTimestamp(true);
|
||||||
|
+ }
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
checkTaskName();
|
||||||
|
|
||||||
|
final List<String> packagesToDoc = new Vector<>();
|
Loading…
x
Reference in New Issue
Block a user