2024-07-16 05:13:36 +00:00
committed by Git OBS Bridge
parent bf413ffc44
commit c1f4d4c9c3
2 changed files with 31 additions and 2 deletions

View File

@@ -0,0 +1,27 @@
From 29b0286576c0a1fe506c43e7e7b4a44804ae2a1b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Fridrich=20=C5=A0trba?= <fridrich.strba@bluewin.ch>
Date: Tue, 16 Jul 2024 06:56:39 +0200
Subject: [PATCH 8/8] Reproducible builds: constant timestamp for
pom.properties
---
java-utils/maven_depmap.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/java-utils/maven_depmap.py b/java-utils/maven_depmap.py
index 4bfb877d..1a46d337 100644
--- a/java-utils/maven_depmap.py
+++ b/java-utils/maven_depmap.py
@@ -172,7 +172,8 @@ def append_if_missing(archive_name, file_name, file_contents):
archive = zipfile.ZipFile(archive_name, 'a')
try:
if file_name not in archive.namelist():
- archive.writestr(file_name, file_contents)
+ file_zipinfo = zipfile.ZipInfo(file_name, date_time=(1980, 1, 1, 0, 0, 0))
+ archive.writestr(file_zipinfo, file_contents)
finally:
archive.close()
--
2.45.2

View File

@@ -1,7 +1,7 @@
#
# spec file
# spec file for package javapackages-tools
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -59,6 +59,8 @@ Patch7: 0005-Interpolate-properties-also-in-the-current-artifact.patch
Patch8: 0006-Test-variable-expansion-in-artifactId.patch
#PATCH-FIX-UPSTREAM: test gracious handling of <relativePath/> construct
Patch9: 0007-Test-that-we-don-t-bomb-on-relativePath.patch
#PATCH-FIX-UPSTREAM: make the pom.properties have reproducible timestamp
Patch10: 0008-Reproducible-builds-constant-timestamp-for-pom.prope.patch
BuildRequires: asciidoc
BuildRequires: fdupes
BuildRequires: perl