File: reproducible_build.patch

package info (click to toggle)
keepass2 2.57%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 14,520 kB
  • sloc: cs: 120,930; xml: 6,271; cpp: 322; sh: 53; makefile: 42
file content (57 lines) | stat: -rw-r--r-- 2,406 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
From: Fab Stz <fabstz-it@yahoo.fr>
Date: Thu, 25 Jul 2024 10:34:00 +0200
Subject: Remove wildcard in AssemblyVersion

Origin: self
Forwarded: not-needed
Last-Update: 2024-03-26

To achieve reproducible build, remove the wildcard for the
Revision of the AssemblyVersion

The wildcard for the revision corresponds to "The default revision number is
the number of seconds since midnight local time (without taking into account
time zone adjustments for daylight saving time), divided by 2."

See: https://learn.microsoft.com/en-us/dotnet/api/system.reflection.assemblyversionattribute?redirectedfrom=MSDN&view=netframework-4.8#remarks

See also: https://github.com/dotnet/roslyn/issues/39354
---
 KeePass/Properties/AssemblyInfo.cs             | 2 +-
 KeePassLib/Properties/AssemblyInfo.cs          | 2 +-
 Translation/TrlUtil/Properties/AssemblyInfo.cs | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/KeePass/Properties/AssemblyInfo.cs b/KeePass/Properties/AssemblyInfo.cs
index a765806..b2e782d 100644
--- a/KeePass/Properties/AssemblyInfo.cs
+++ b/KeePass/Properties/AssemblyInfo.cs
@@ -38,5 +38,5 @@ using System.Runtime.InteropServices;
 [assembly: Guid("02020c52-c0da-47c0-9f3f-a6fe76cee400")]
 
 // Assembly version information
-[assembly: AssemblyVersion("2.57.0.*")]
+[assembly: AssemblyVersion("2.57.0.0")]
 [assembly: AssemblyFileVersion("2.57.0.0")]
diff --git a/KeePassLib/Properties/AssemblyInfo.cs b/KeePassLib/Properties/AssemblyInfo.cs
index a03fe95..6afa901 100644
--- a/KeePassLib/Properties/AssemblyInfo.cs
+++ b/KeePassLib/Properties/AssemblyInfo.cs
@@ -38,5 +38,5 @@ using System.Runtime.InteropServices;
 [assembly: Guid("395f6eec-a1e0-4438-aa82-b75099348134")]
 
 // Assembly version information
-[assembly: AssemblyVersion("2.57.0.*")]
+[assembly: AssemblyVersion("2.57.0.0")]
 [assembly: AssemblyFileVersion("2.57.0.0")]
diff --git a/Translation/TrlUtil/Properties/AssemblyInfo.cs b/Translation/TrlUtil/Properties/AssemblyInfo.cs
index 371c5a3..e7e9330 100644
--- a/Translation/TrlUtil/Properties/AssemblyInfo.cs
+++ b/Translation/TrlUtil/Properties/AssemblyInfo.cs
@@ -38,5 +38,5 @@ using System.Runtime.InteropServices;
 [assembly: Guid("39aa6f93-a1c9-497f-bad2-cc42a61d5710")]
 
 // Assembly version information
-[assembly: AssemblyVersion("2.57.0.*")]
+[assembly: AssemblyVersion("2.57.0.0")]
 [assembly: AssemblyFileVersion("2.57.0.0")]