blob: 998db39b47c742df2130019b593b0ba104cdc788 [file] [log] [blame]
Patrick Williams0ca19cc2021-08-16 14:03:13 -05001From 99ab34278a6ebec134267412b4f619f43e278dea Mon Sep 17 00:00:00 2001
Andrew Geissler82c905d2020-04-13 13:39:40 -05002From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 3 Aug 2018 09:44:00 -0700
Andrew Geisslerd1e89492021-02-12 15:35:20 -06004Subject: [PATCH] intl: Emit no lines in bison generated files
Andrew Geissler82c905d2020-04-13 13:39:40 -05005
6Improve reproducibility:
7Do not put any #line preprocessor commands in bison generated files.
8These lines contain absolute paths containing file locations on
9the host build machine.
10
11Upstream-Status: Pending
12
13Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
14Signed-off-by: Khem Raj <raj.khem@gmail.com>
15---
16 intl/Makefile | 2 +-
17 1 file changed, 1 insertion(+), 1 deletion(-)
18
19diff --git a/intl/Makefile b/intl/Makefile
Andrew Geisslerd1e89492021-02-12 15:35:20 -060020index 93478d87e8..b27a7935eb 100644
Andrew Geissler82c905d2020-04-13 13:39:40 -050021--- a/intl/Makefile
22+++ b/intl/Makefile
23@@ -155,7 +155,7 @@ $(objpfx)tst-gettext6.out: $(objpfx)tst-gettext.out
24
25 CPPFLAGS += -D'LOCALEDIR="$(localedir)"' \
26 -D'LOCALE_ALIAS_PATH="$(localedir)"'
27-BISONFLAGS = --yacc --name-prefix=__gettext --output
28+BISONFLAGS = --yacc --no-lines --name-prefix=__gettext --output
29
30 $(inst_localedir)/locale.alias: locale.alias $(+force)
31 $(do-install)