c128c5f3c7
When the host uses glibc 2.26 or newer, Flex will try to use the newly-introduced reallocarray() function, but as it would not define _GNU_SOURCE a segmentation fault would occur later on due to the compiler assumming that the function is implicitly defined. This issue manifests itself due to a crash of "stage1flex" during the Flex bootstrap: ./stage1flex -o stage1scan.c ./scan.l make[2]: *** [Makefile:1725: stage1scan.c] Segmentation fault (core dumped) This imports the patch from the upstream Git repository, and adds flags in the .mk file to rebuild the Autotools scripts and support files. Due to the latter, the patch to disable the documentation is changed so it modifies the .am file instead. Signed-off-by: Adrian Perez de Castro <aperez@igalia.com> [Arnout: - Add Adrian's Sob and upstream ref to new patch; - Keep patch 1 as patch 1; - Keep Vicente as author of path 1; - Add reason for autoreconf in a comment.] Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
36 lines
943 B
Diff
36 lines
943 B
Diff
From a98443c6a72d5821d4e0152311e5c3eb4cdff25c Mon Sep 17 00:00:00 2001
|
|
From: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
|
|
Date: Wed, 13 Sep 2017 17:26:48 +0300
|
|
Subject: [PATCH] flex: disable documentation
|
|
|
|
Since we prevent the flex binary to be built, we also need to prevent
|
|
the documentation to be built, otherwise it will fail like this:
|
|
|
|
Making all in doc
|
|
make[2]: Entering directory '/br/output/build/flex-2.6.4/doc'
|
|
make[2]: *** No rule to make target '../src/flex', needed by 'flex.1'.
|
|
Stop.
|
|
|
|
Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
|
|
[Adrian: patch Makefile.am instead of Makefile.in]
|
|
Signed-off-by: Adrian Perez de Castro <aperez@igalia.com>
|
|
---
|
|
Makefile.am | 1 -
|
|
1 file changed, 1 deletion(-)
|
|
|
|
diff --git a/Makefile.am b/Makefile.am
|
|
index 638c549..9db3420 100644
|
|
--- a/Makefile.am
|
|
+++ b/Makefile.am
|
|
@@ -43,7 +43,6 @@ EXTRA_DIST = \
|
|
|
|
SUBDIRS = \
|
|
src \
|
|
- doc \
|
|
examples \
|
|
po \
|
|
tests \
|
|
--
|
|
2.14.1
|
|
|