@@ -65,10 +65,8 @@ AC_SUBST(BISONFLAGS)
65
65
# PGAC_PATH_FLEX
66
66
# --------------
67
67
# Look for Flex, set the output variable FLEX to its path if found.
68
- # Reject versions before 2.5.31, as we need a reasonably non-buggy reentrant
69
- # scanner. (Note: the well-publicized security problem in 2.5.31 does not
70
- # affect Postgres, and there are still distros shipping patched 2.5.31,
71
- # so allow it.) Also find Flex if its installed under `lex', but do not
68
+ # Reject versions before 2.5.35 (the earliest version in the buildfarm
69
+ # as of 2022). Also find Flex if its installed under `lex', but do not
72
70
# accept other Lex programs.
73
71
74
72
AC_DEFUN ( [ PGAC_PATH_FLEX] ,
92
90
echo '%%' > conftest.l
93
91
if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
94
92
pgac_flex_version=`$pgac_candidate --version 2>/dev/null`
95
- if echo "$pgac_flex_version" | sed [ 's/[ .a-z] / /g'] | $AWK '{ if ([ $] 1 == 2 && ([ $] 2 > 5 || ([ $] 2 == 5 && [ $] 3 >= 31 ))) exit 0; else exit 1;}'
93
+ if echo "$pgac_flex_version" | sed [ 's/[ .a-z] / /g'] | $AWK '{ if ([ $] 1 == 2 && ([ $] 2 > 5 || ([ $] 2 == 5 && [ $] 3 >= 35 ))) exit 0; else exit 1;}'
96
94
then
97
95
pgac_cv_path_flex=$pgac_candidate
98
96
break 2
99
97
else
100
98
AC_MSG_WARN ( [
101
99
*** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
102
- *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version.] )
100
+ *** Flex version 2.5.35 or later is required, but this is $pgac_flex_version.] )
103
101
fi
104
102
fi
105
103
fi
0 commit comments