diff --git a/tycho-getTimestamp.patch b/tycho-getTimestamp.patch new file mode 100644 index 0000000..42283dd --- /dev/null +++ b/tycho-getTimestamp.patch @@ -0,0 +1,13 @@ +diff -urEbwB org.eclipse.tycho-tycho-1.6.0.orig/tycho-packaging-plugin/src/main/java/org/eclipse/tycho/buildversion/DefaultBuildTimestampProvider.java org.eclipse.tycho-tycho-1.6.0/tycho-packaging-plugin/src/main/java/org/eclipse/tycho/buildversion/DefaultBuildTimestampProvider.java +--- org.eclipse.tycho-tycho-1.6.0.orig/tycho-packaging-plugin/src/main/java/org/eclipse/tycho/buildversion/DefaultBuildTimestampProvider.java 2023-09-05 17:53:07.666513409 +0200 ++++ org.eclipse.tycho-tycho-1.6.0/tycho-packaging-plugin/src/main/java/org/eclipse/tycho/buildversion/DefaultBuildTimestampProvider.java 2023-09-14 06:14:27.034252611 +0200 +@@ -28,6 +28,9 @@ + + @Override + public Date getTimestamp(MavenSession session, MavenProject project, MojoExecution execution) { ++ if (System.getenv("SOURCE_DATE_EPOCH") != null) { ++ return new Date(1000 * Long.parseLong(System.getenv("SOURCE_DATE_EPOCH")))); ++ } + return session.getStartTime(); + } + } diff --git a/tycho.spec b/tycho.spec index d8c8d12..b2f26cd 100644 --- a/tycho.spec +++ b/tycho.spec @@ -67,6 +67,7 @@ Patch7: 0008-Use-custom-resolver-for-tycho-eclipserun-plugin.patch Patch8: plexus-lookup-fix.patch Patch9: tycho-plexus-compiler-2.13.patch Patch10: tycho-sourcetarget.patch +Patch11: tycho-getTimestamp.patch Patch100: fedoraproject-p2-bootstrap-fix.patch BuildRequires: bash BuildRequires: fdupes @@ -214,6 +215,7 @@ mv fedoraproject-p2-%{fp_p2_git_tag} fedoraproject-p2 %patch8 -p1 %patch9 -p1 %patch10 -p1 +%patch11 -p1 %patch100 # Unneeded for RPM builds