FLEX is a tool for generating scanners: programs that recognize lexical
patterns in text.
This package contains files required to build programs with flex libraries.
Provides
Requires
License
BSD-3-Clause
Changelog
* Mon Nov 23 2026 Christoph G <foss@grueninger.de>
- Update to 2.7.4
* Build requirement: Regenerating the build files now needs libtool
2.4.7 or newer, and release tarballs are made with libtool 2.6.2.
* yyguts_t regression fix: Programs that declare struct yyguts_t
themselves and define YY_TYPEDEF_YY_SCANNER_T compile again, which
also fixes the doxygen build.
* yy_flex_debug_r restored: Reentrant scanners can use the
yy_flex_debug_r member again (it was renamed in 2.6.5), which
fixes the csound build.
- Update to 2.7.3
* Prefixed yyguts_t: Reentrant scanners built with a prefix now
put the prefix in yyguts_t too, which stops C++ One Definition
Rule warnings.
* Security: Flex rejects [[ and ]] in #line and input file names,
so a scanner file can no longer run commands through m4.
* Use-after-free: Calling yyless() after input() has moved the
buffer no longer writes into freed memory.
* Stack underflow: If yy_pop_state() runs on an empty stack and the
error handler doesn’t exit, the next push no longer writes in
front of the start-condition stack.
* Batch NUL matching: Batch (-B) scanners with compressed tables
match a lone NUL byte correctly again, instead of adding it to
the previous token.
- Update to 2.7.2
* These scanners are now 8-bit by default, so they handle input
bytes above 127 instead of reading past their tables or crashing.
- Update to 2.7.1
* With the default pointer yytext, calling yymore() and then
unput() no longer gives a wrong yyleng or reads memory in front
of the buffer.
- Update to 2.7.0
* A C++ scanner now stops the build with one clear message when
the FlexLexer.h it finds comes from a different flex version.
- Update to 2.6.17
* Calling unput() with more characters than the rule matched, then
calling input() past the end of the buffer, no longer writes to
memory in front of the input buffer.
* Fri Nov 20 2026 Martin Pluskal <mpluskal@suse.com>
- Use /usr/bin/gettext BuildRequires for distro bootstrap: the file
dep resolves to gettext-runtime-mini, avoiding full gettext which
pulls in a systemd build chain
* Tue Nov 17 2026 Christoph G <foss@grueninger.de>
- Update to 2.6.16
* after input() or yyinput(), yytext ends at the end of the
token again, as in 2.6.4.
* yyFlexLexer has a new member, so C++ programs and any of their
libraries that include FlexLexer.h need to be rebuilt.
* yyless() now returns the right text and no longer writes a
stale character past the end of the token
- Update to 2.6.15
* a program can define YY_BREAK again, as with 2.6.4
* a program can declare yyinput() itself again
- Update to 2.6.14
* after yyless() gives text back, the scanner now decides whether
it is at the start of a line from the text it kept.
* yyinput() used to replace the characters it read with NUL
bytes, which broke buffers supplied with yy_scan_buffer().
* Sun Nov 15 2026 Christoph G <foss@grueninger.de>
- Update to 2.6.13
* scanners built with %array no longer read or write before the
start of the input buffer.
* scanners with very many rules, such as Doxygen’s code scanner,
build correctly again.
* fix test failure on i686
- Drop flex-i686-test.patch, it is part of upstream
* Sat Nov 14 2026 Christoph G <foss@grueninger.de>
- Update to 2.6.12
* yyunput() is a real function again with its 2.6.4 signature, so
programs can declare it themselves
* Macros yybegin, yyecho, yystart, yyatbol and yysetbol removed,
so programs can use those names (e.g. GCC).
* C++ scanners with %option nodefault compile again
* yy_fatal_error() works again, and YY_BUF_SIZE/YY_READ_BUF_SIZE
are defined early again
* Unused backing-up variables are no longer declared, fixing
- Werror builds (e.g. Xen)
* make check no longer needs git
- Update to 2.6.11
* C++ scanners now free every buffer left on the buffer stack
when destroyed, fixing a leak.
* Fixed scan_length test failures on aarch64
- Update to 2.6.10
* Scanners compile again without BUFSIZ, e.g. freestanding builds
like GRUB; falls back to 8192
- Update to 2.6.9
* 2.6.4 names work again: yy_flex_debug, yy_at_bol,
a user-defined YY_READ_BUF_SIZE and the FLEXINT_H guard.
* YY_BUFFER_STATE and yybuffer have separate guards again
- Update to 2.6.8
* Flex builds again with --disable-nls
- Update to 2.6.7
* Scanners compile again in strict ISO C modes (-std=c99)
- Update to flex 2.6.6
* tools/bootstrap-flex now checks the GPG signature of the 2.6.5
tarball, not just its hash.
* Fall-through marker renamed to __fallthrough__, so
scanners compile again where a fallthrough macro
exists, e.g. Linux kernel
* Tue Nov 10 2026 Christoph G <foss@grueninger.de>
- Update to flex 2.