Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/bsd/ntp/scripts When doing reproducible builds, don...



details:   https://anonhg.NetBSD.org/src/rev/8867d22fbd73
branches:  trunk
changeset: 372622:8867d22fbd73
user:      martin <martin%NetBSD.org@localhost>
date:      Tue Dec 13 18:15:29 2022 +0000

description:
When doing reproducible builds, don't import a "run" number in the
ntp tools config version files.

diffstat:

 external/bsd/ntp/scripts/mkver |  13 +++++++++----
 1 files changed, 9 insertions(+), 4 deletions(-)

diffs (24 lines):

diff -r 9fbe3391c759 -r 8867d22fbd73 external/bsd/ntp/scripts/mkver
--- a/external/bsd/ntp/scripts/mkver    Tue Dec 13 13:25:36 2022 +0000
+++ b/external/bsd/ntp/scripts/mkver    Tue Dec 13 18:15:29 2022 +0000
@@ -35,11 +35,16 @@
 if [ ! -f .version ]; then
   echo 0 > .version
 fi
-RUN="`cat .version`"
-RUN="`expr $RUN + 1`"
-echo $RUN > .version
 
-ConfStr="$ConfStr (${RUN})"
+if [ -f "$ifile" ]; then
+  # NetBSD MKREPRO: Don't embed current date/time/run number
+else
+  RUN="`cat .version`"
+  RUN="`expr $RUN + 1`"
+  echo $RUN > .version
+
+  ConfStr="$ConfStr (${RUN})"
+fi
 
 echo "Version <${ConfStr}>";
 



Home | Main Index | Thread Index | Old Index