File: reproducible-generated-files.patch

package info (click to toggle)
nqp 2024.09%2Bdfsg-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 9,972 kB
  • sloc: java: 28,087; perl: 3,479; ansic: 451; makefile: 202; javascript: 68; sh: 1
file content (35 lines) | stat: -rw-r--r-- 1,127 bytes parent folder | download | duplicates (2)
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
Description: make generated files reproducible
 Adding a comment to mention that a file is generated is fine.
 .
 But this comment must not contain the absolute path of the generating file, which is given by $0.
 .
 Hardcoding the file name is not elegant, but it's simple...
Bug: https://github.com/Raku/nqp/issues/675
Bug-Debian: https://bugs.debian.org/971617
Author: dod
Index: nqp/tools/build/gen-cat.pl
===================================================================
--- nqp.orig/tools/build/gen-cat.pl
+++ nqp/tools/build/gen-cat.pl
@@ -15,7 +15,7 @@ if ($stage ne "stage1" && $stage ne "sta
 }
 
 print <<"END_HEAD";
-# This file automatically generated by $0
+# This file automatically generated by gen-cat.pl
 
 END_HEAD
 
Index: nqp/tools/build/generate-constants.pl
===================================================================
--- nqp.orig/tools/build/generate-constants.pl
+++ nqp/tools/build/generate-constants.pl
@@ -9,7 +9,7 @@ print <<"END_HEADER";
 # DO NOT EDIT THIS FILE.
 #
 # This file is generated automatically from
-# $0
+# generate-constants.pl
 #
 # Any changes made here will be lost.
 #