Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37753910
en ru br
ALT Linux repositórios
S:1.7.5-alt1

Group :: Desktop gráfico/Outros
RPM: rofi

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Patch: 0002-Workaround-for-ALT-flex-changes-ALT-35141.patch
Download


From c6243844d63b2ff544a53b37dc611567522f1d64 Mon Sep 17 00:00:00 2001
From: Sergey Vlasov <vsu@altlinux.ru>
Date: Mon, 9 Jul 2018 15:26:51 +0300
Subject: [PATCH] Workaround for ALT flex changes (ALT#35141)
Since flex-2.5.37-alt2 the ALT flex package contains a change which
makes the generated parser code different from the upstream version of
flex: the `%{` ... `%}` enclosed code from the rules section is inserted
before the `yylloc` local variable is initialized.  As a workaround,
initialize `yylloc` explicitly using the undocumented function parameter
name `yylloc_param`.
---
 lexer/theme-lexer.l | 1 +
 1 file changed, 1 insertion(+)
diff --git a/lexer/theme-lexer.l b/lexer/theme-lexer.l
index de53f54..1f85e00 100644
--- a/lexer/theme-lexer.l
+++ b/lexer/theme-lexer.l
@@ -241,6 +241,7 @@ CONFIGURATION (?i:configuration)
 %%
 
 %{
+yylloc = yylloc_param; /* workaround for flex ALT#35141 */
 YY_LLOC_START
 %}
 %{
-- 
2.10.5
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009