diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2020-08-21 12:04:19 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2020-08-21 22:06:43 +0200 |
commit | c9890c91c5cc10559ea13972f01664f6ea1a26ae (patch) | |
tree | 00169a22a0be6d70e5c75026e23893f180c2e94d /patches | |
parent | a45be6acdd7beab6fbd2ed1235a4775853ad18f8 (diff) | |
download | ptxdist-c9890c91c5cc10559ea13972f01664f6ea1a26ae.tar.gz ptxdist-c9890c91c5cc10559ea13972f01664f6ea1a26ae.tar.xz |
flex: build fixes
The patch is needed to fix a segfault int the bootstrap stage1flex.
The SUBDIR= is needed to avoid manpage creation. It may fail if the tools
are missing.
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'patches')
-rw-r--r-- | patches/flex-2.6.4/0001-build-AC_USE_SYSTEM_EXTENSIONS-in-configure.ac.patch | 28 | ||||
l--------- | patches/flex-2.6.4/autogen.sh | 1 | ||||
-rw-r--r-- | patches/flex-2.6.4/series | 4 |
3 files changed, 33 insertions, 0 deletions
diff --git a/patches/flex-2.6.4/0001-build-AC_USE_SYSTEM_EXTENSIONS-in-configure.ac.patch b/patches/flex-2.6.4/0001-build-AC_USE_SYSTEM_EXTENSIONS-in-configure.ac.patch new file mode 100644 index 000000000..fe3db5536 --- /dev/null +++ b/patches/flex-2.6.4/0001-build-AC_USE_SYSTEM_EXTENSIONS-in-configure.ac.patch @@ -0,0 +1,28 @@ +From: Explorer09 <explorer09@gmail.com> +Date: Mon, 4 Sep 2017 10:47:33 +0800 +Subject: [PATCH] build: AC_USE_SYSTEM_EXTENSIONS in configure.ac. + +This would, e.g. define _GNU_SOURCE in config.h, enabling the +reallocarray() prototype in glibc 2.26+ on Linux systems with that +version of glibc. + +Fixes #241. +--- + configure.ac | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/configure.ac b/configure.ac +index 55e774b014be..c879fe1225b1 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -25,8 +25,10 @@ + # autoconf requirements and initialization + + AC_INIT([the fast lexical analyser generator],[2.6.4],[flex-help@lists.sourceforge.net],[flex]) ++AC_PREREQ([2.60]) + AC_CONFIG_SRCDIR([src/scan.l]) + AC_CONFIG_AUX_DIR([build-aux]) ++AC_USE_SYSTEM_EXTENSIONS + LT_INIT + AM_INIT_AUTOMAKE([1.11.3 -Wno-portability foreign check-news std-options dist-lzip parallel-tests subdir-objects]) + AC_CONFIG_HEADER([src/config.h]) diff --git a/patches/flex-2.6.4/autogen.sh b/patches/flex-2.6.4/autogen.sh new file mode 120000 index 000000000..9f8a4cb7d --- /dev/null +++ b/patches/flex-2.6.4/autogen.sh @@ -0,0 +1 @@ +../autogen.sh
\ No newline at end of file diff --git a/patches/flex-2.6.4/series b/patches/flex-2.6.4/series new file mode 100644 index 000000000..72e619f12 --- /dev/null +++ b/patches/flex-2.6.4/series @@ -0,0 +1,4 @@ +# generated by git-ptx-patches +#tag:base --start-number 1 +0001-build-AC_USE_SYSTEM_EXTENSIONS-in-configure.ac.patch +# 140965e37966610be24b28e4f9dec52e - git-ptx-patches magic |