]> jfr.im git - solanum.git/commitdiff
Normalize generation for reproducible builds
authorBernhard M. Wiedemann <redacted>
Fri, 27 May 2022 03:27:44 +0000 (05:27 +0200)
committerEd Kellett <redacted>
Sun, 29 May 2022 09:16:00 +0000 (10:16 +0100)
While working on reproducible builds for openSUSE, I found that
our package varied even when building in clean VMs
with as little non-determinism as possible.
This was because of

+++ solanum-0~ch560/ircd/version.c.last
@@ -25,7 +25,7 @@
 #include "serno.h"
 #include "stdinc.h"

-const char *generation = "6";
+const char *generation = "5";
 const char *creation = "1653004800";
 const char *ircd_version = PATCHLEVEL;
 const char *serno = SERNO;

ircd/version.c.SH

index 80cda0ffc209d1df97f38d9ac558ce50a8eb53e7..256691bdef0b8b82e1281e4e67723ee75f8b0381 100644 (file)
@@ -26,6 +26,7 @@ else \
          { print $1 " "  $2 " " $3 " " $7 " at " $4 " " $5 " " $6 }}'`
 else
     creation="$EXTERNAL_BUILD_TIMESTAMP"
+    generation=1
 fi
 
 $spitshell >version.c <<!SUB!THIS!