This commit is contained in:
parent
172f6b2956
commit
fd90d39f1c
13
tycho-getTimestamp.patch
Normal file
13
tycho-getTimestamp.patch
Normal file
@ -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();
|
||||
}
|
||||
}
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user