slang-devel mailing list

[2019 Date Index] [2019 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

[slang-devel] Minor build system determinism patch


From 6a5417d3f3e251a46123246102fc2f2bbf67a6fc Mon Sep 17 00:00:00 2001
From: Ian Rogers <irogers@xxxxxxxxxx>
Date: Wed, 2 Oct 2019 10:39:04 -0700
Subject: [PATCH] Make parsecaps.sl output more deterministic

Continuous build systems like bazel (https://bazel.build) may try to
cache intermediate build artifacts. By placing the command line of
parsecaps.sl into the generated file (as a comment) the file's contents
can become non-deterministic. This patch removes that part of the
comment to make builds more deterministic in these environments.

Signed-off-by: Ian Rogers <irogers@xxxxxxxxxx>
---
 src/terminfo/parsecaps.sl | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/terminfo/parsecaps.sl b/src/terminfo/parsecaps.sl
index 0668e82..cfbe64f 100644
--- a/src/terminfo/parsecaps.sl
+++ b/src/terminfo/parsecaps.sl
@@ -71,8 +71,7 @@ define slsh_main ()
    variable s = read_caps_file (__argv[1]);
    variable fp = stdout;
 
-   () = fprintf (stdout, "/* This file was autogenerated using %s */\n\n",
-		 strjoin (__argv, " "));
+   () = fprintf (stdout, "/* This file was autogenerated. */\n\n");
 
    write_table (fp, s, "str", "Tgetstr_Map");
    write_table (fp, s, "num", "Tgetnum_Map");
-- 
2.23.0.444.g18eeb5a265-goog


[2019 date index] [2019 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]