File: enable_reproducible_builds.patch

package info (click to toggle)
pgmodeler 1.2.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 14,160 kB
  • sloc: cpp: 99,220; xml: 27; makefile: 15; sh: 15
file content (23 lines) | stat: -rw-r--r-- 750 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
Description: enable reproducible builds
 This patch replaces using a date for identifying the build with the word
 "Debian". This makes it possible to do reproducible builds.
Author: Lisandro Damián Nicanor Pérez Meyer <lisandro@debian.org>
Forwarded: no

---
 pgmodeler.pri |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/pgmodeler.pri
+++ b/pgmodeler.pri
@@ -53,8 +53,8 @@ defined(NO_UPDATE_CHECK, var): DEFINES+=
 
 # Properly defining build number/date constant
 unix {
- BUILDNUM=$$system("$$PWD/getbuildnum.sh")
- BUILDDATE=$$system("date '+%Y%m%d'")
+ BUILDNUM="Debian"
+ BUILDDATE=$$system("dpkg-parsechangelog -SVersion")
 } else {
  BUILDNUM=$$system("$$PWD/getbuildnum.bat")
  BUILDDATE=$$system("$$PWD/getbuildnum.bat")