Up to [cvs.NetBSD.org] / pkgsrc / devel / flex
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
flex: downgrade to 2.6.4; 2.6.9 is not ready for production
flex: updated to 2.6.9
* Noteworthy changes in release 2.6.9 (2026-11-11) [stable]
** scanner
*** Four names that programs used with flex 2.6.4, and that flex 2.6.5
changed, work again. The global debug flag is again called
yy_flex_debug (with a prefix, the prefix followed by _flex_debug),
so a program that declares it with its own extern declaration links
again; in a C++ scanner it is again the yy_flex_debug member of
yyFlexLexer. The buffer structure's member that records whether the
scanner is at the beginning of a line is again called yy_at_bol. A
definition of YY_READ_BUF_SIZE in the scanner file is used again.
Defining FLEXINT_H again keeps the scanner from declaring its own
integer types, for a program that supplies them. The new names
yyflexdebug and yyatbol() continue to work.
*** A generated scanner compiles again in a program that declares
YY_BUFFER_STATE itself, guarded by YY_TYPEDEF_YY_BUFFER_STATE, as it
did with flex 2.6.4. Flex 2.6.5 declared its new yybuffer type under
that same guard, so such a program got no yybuffer and the scanner
failed to compile. The two types now have separate guards.
Thanks to Patrik Obrist.
* Noteworthy changes in release 2.6.8 (2026-11-11) [stable]
** build
*** Flex now builds when configured with --disable-nls. It failed to
compile with a compiler that treats a call to an undeclared function
as an error, because the report of backing-up states used a function
that is only declared when translations are enabled.
Thanks to Hendrik Donner.
* Noteworthy changes in release 2.6.7 (2026-11-11) [stable]
** scanner
*** A generated scanner now compiles when the program is built in a
strict ISO C mode, such as -std=c99, with a compiler that treats a
call to an undeclared function as an error (GCC 14 and later, Clang
16 and later). Those modes hide a function the scanner needs to tell
whether its input is a terminal, and the scanner now declares it
itself. This also fixes "make check" failing in flex 2.6.6 with
those compilers.
Thanks to Philip Müller and K1ngfish3r for reporting it.
* Noteworthy changes in release 2.6.6 (2026-11-11) [stable]
** build
*** tools/bootstrap-flex now builds flex 2.6.5 and checks its signature
against the flex release key, as well as its hash. It needs gpg.
** scanner
*** A generated scanner no longer fails to compile in a program that
defines a macro named fallthrough, as the Linux kernel's headers do.
Flex 2.6.5 wrote the fall-through marker with that plain name, so
the macro was expanded inside the scanner. The scanner now uses the
reserved spelling __fallthrough__ for the attribute.
Thanks to Luca Bacci; reported by Philip Müller.
* Noteworthy changes in release 2.6.5 (2026-11-10) [stable]
** build
*** The ChangeLog that tools/git2cl writes is now valid UTF-8. Author
names with accented characters used to come out in a different
encoding from the rest of the file, and the script printed "Wide
character in print" warnings.
*** The ChangeLog in the nightly distribution tarballs is no longer
empty, and the nightly build now fails if it would be.
*** The script that updates the translations from the Translation
Project now converts any .po file that is not in UTF-8 to UTF-8, so
every translation in the source tree uses the same encoding.
*** The version and date in the header of each release's section of this
NEWS file, and the version in configure.ac, are now set together by
a script when the release is made. A release candidate gets its own
header in the same way.
*** Regenerating the build files now needs gettext 0.23 or later. The
po/ directory can then be built in parallel with make -j. Building
from a release tarball is not affected.
*** A new script, tools/bootstrap-flex, builds and installs the previous
release of flex. Building flex from a git checkout needs a flex that
is already installed, and the script lets a system without one get
started.
*** Building flex no longer rewrites the .po translation files.
*** A race condition that could build flex twice at the same time during
a parallel make has been fixed.
*** Releases are now made and signed by a GitHub workflow. Each release
has a detached signature for the tarballs and for a SHA256SUMS file,
and a copy of the public key. The key is new and is not connected to
the key that signed 2.6.4. The new key's fingerprint is 56D6 64C7
0CC2 364C F516 4914 B7DF E8BB 6C24 1FED. It is published on
keys.openpgp.org, at flexlexer.org, and in the README.
Add build option "nls" enabled by default
Updated flex to 2.6.3.
* version 2.6.3 released 2016-12-30
** scanner
*** several bug fixes resolved problems introduced in recent flex
versions regarding processing of comments, literals and various
quoting scenarios.
*** If the path to m4 was sufficiently long, a buffer overflow could
occur. This has been resolved. The fix also removes dependence on
the constant PATH_MAX.
** build
*** A new configure option --disable-bootstrap changes the behavior of
the build system when building flex. The default
"--enable-bootstrap" behavior is to build flex, then to use that
flex to build flex again. With --disable-bootstrap, the scanner is
simply built by sedding the scanner source. This is friendlier to
cross compilation.
*** The compatibility functions in lib/ are no longer built as a
library. Instead, they are built as $(LIBOBJ) objects. This is
simpler and friendlier to cross compilation.
*** It is now possible to build flex without building the accompanying
libfl. This is friendlier to cross compilation. See the
--disable-libfl option to configure. Resolves #99.
*** the PIC version of libfl was not correctly built. It is no longer
included in the build/installation targets of flex since it was
unused.
*** the distributed man page is only rebuilt when the relevant source
files change or when the binary doesn't exist. In particular, this
is friendlier to cross compilation. Resolves #108
** test
*** the shell scripts in the test suite are more portable across different shell implementations.
Updated flex to 2.6.2.
Slightly based on wip/flex by Makoto Fujiwara and Juraj Lutter.
* version 2.6.2 released 2016-10-24
** flex internals
*** a segfalt involving yyrestart(NULL) has been fixed
*** flex should now handle quoting when mixed with m4 processing correctly
*** flex handles `[[' and `]]' correctly
*** flex no longer generates non-ANSI code
*** more compilation warnings were squashed in generated scanners
*** prevented a buffer overflow that could occur when input buffers were the exact wrong size
** test suite
*** input filenames on MSWindows are now calculated correctly
*** general code cleanups in a number of tests now make the test suite compile much more cleanly
** build system
*** the xz archive has been replaced with an lzip archive
*** a new option to configure --enable-warnings to encapsulate passing
of warning-related flags which is useful in testing flex
*** make indent now works for out of source builds
*** Portability warnings when generating Makefile.in files are now suppressed; they were just noise and the use of GNU extensions in Makefile.{am,in,} was intentional and well known.
** bugs
*** resolved gh#67
** new sv translation from the translation project
* version 2.6.1 released 2016-03-01
** flex resources
*** The flex project is now hosted at github. Consider this a "period of transition". In particular, you should start at https://github.com/westes/flex for the flex codebase, issue tracking and pull requests.
*** New releases of flex are to be found at https://github.com/westes/flex/releases.
** flex internals
*** Flex now uses more modern and more standard names for variable types. There's more work to be done on that front yet, though.
*** A number of compiler warnings have been remedied.
*** Line directives should now work as expected and be absent when that is expected.
** test suite
*** When running the test suite, c++ files are compiled with the c++ header inside the flex distribution, rather than relying on the build system's flex header , which might not be installed yet or which might be out of date with respect to what flex tests expect.
*** Some portability fixes in the test suite such as opening files for reading in binary mode
** Building flex
*** The file src/scan.c asdistributed with flex source is now built with the current version of flex. Occasionally this had to be done manually to pick up new flex features. It's now just a part of flex's build system.
*** The pdf version of the manual is no longer distributed with flex, although if you have the texinfo package installed, you can still build it.
*** lots of general build system cleanup
*** the build system tries a bit harder to find libtoolize and texi2dvi.
*** When help2man and texi2dvi are missing, the error messages are now much more helpful.
** bug fixes
*** resolved github issues #53, #54, #55, #61.
*** Resolved sf bugs #128, #129, #155, #160, #184, #187, #195.
Reverted devel/flex to 2.6.0
devel/flex updated to 2.6.1
---------------------------
* version 2.6.1 released 2016-03-01
** flex resources
*** The flex project is now hosted at github. Consider this a "period of
transition". In particular, you should start at
https://github.com/westes/flex for the flex codebase, issue tracking
and pull requests.
*** New releases of flex are to be found at
https://github.com/westes/flex/releases.
** flex internals
*** Flex now uses more modern and more standard names for variable
types. There's more work to be done on that front yet, though.
*** A number of compiler warnings have been remedied.
*** Line directives should now work as expected and be absent when that is
expected.
** test suite
*** When running the test suite, c++ files are compiled with the c++ header
inside the flex distribution, rather than relying on the build system's
flex header , which might not be installed yet or which might be out of
date with respect to what flex tests expect.
*** Some portability fixes in the test suite such as opening files for
reading in binary mode
** Building flex
*** The file src/scan.c asdistributed with flex source is now built with
the current version of flex. Occasionally this had to be done manually
to pick up new flex features. It's now just a part of flex's build
system.
*** The pdf version of the manual is no longer distributed with flex,
although if you have the texinfo package installed, you can still build
it.
*** lots of general build system cleanup
*** the build system tries a bit harder to find libtoolize and texi2dvi.
*** When help2man and texi2dvi are missing, the error messages are now much
more helpful.
** bug fixes
*** resolved github issues #53, #54, #55, #61.
*** Resolved sf bugs #128, #129, #155, #160, #184, #187, #195.
(pkgsrc changes)
- Githubify
- pre-configure: stage set for ./autogen.sh
- Add patch-src_Makefile.am to generate parse.h before main.c is
compiled (MAKE_JOBS_SAFE = no without this patch)
- Drop (or convert) patches
patch-src_filter.c -- upstream taken
patch-src_Makefile.in -- file is gone
patch-src_Makefile.am converted to the same name, different purpose
patch-tests_Makefile.in converted to patch-tests_Makefile.am
- Add BUILD_DEPENDS+= help2man-[0-9]*:../../converters/help2man
Update flex to 2.6.0. While here, send patches upstream. Changes: * version 2.6.0 released 2015-11-17 ** User Visible Changes *** C++ scanners now use references instead of pointers. See the manual for details. *** A number of compiler warnings were addressed, so flex generated scanners should be quieter under compiler warning scenarios. *** Allow error reporting routines to accept varying number of arguments *** Removed deprecated 'register' storage class specifier *** Changeed output formats from octal to hexadecimal *** check limits before using array index cclp; resolves sf-166 *** Suppress clang warning about empty @param paragraph; resolves sf#158 *** Fixed malloc/realloc replacement, resolves sf bug#151. *** Adjusted buffer sizes on ia64. *** various documentation and code clean up fixes: resolves sf bugs #167, #168, among other patches. ** Flex Internals *** flex is now organized into subdirectories. This keeps the tree neater at the top level and puts like things near each other and unlike things away from each other. *** The test suite has been reorganized and is now run with the parallel test suite harness from automake. *** Cleaned up the automake parts of the build system to better reflect what automake does on its own. Also added a call to libtoolize in autogen.sh because autoreconf gets confused without a prior run of libtoolize. *** po/Makefile now includes a rule to fetch the latest translations from the translation project. "make -f po/Makefile getpo" from the top level of the flex tree will fetch the files. *** New da translation from the translation project
Documentation handling fixes. Now, unwanted configure script timestamp update issue is resolved, and unwanted documentation regeneration will not be happened anymore. TeX related tools are not required in any case. Additionally, PDF document is already in distibution, so no reason to prevent installation. Bump PKGREVISION.
Update to 2.5.39: * flex version 2.5.39 ** no user visible changes in this release * version 2.5.38 released 2014-02-14 ** internationalization *** add sr translation from the translation project *** update da, es, ko, nl, pt_BR, ro, ru, sv, tr, vi, zh_CN translations from the translation project *** rename zh_tw to its proper zh_TW name * version 2.5.37 released 2012-08-03 ** Import flex into git. See git://flex.git.sourceforge.net/gitroot/flex/flex. ** Fix make install target to not fail when the flex++ program is already installed ** New translations from the translation project: de, fi, pl, vi
Do not build and install flex.pdf, too many dependencies for such a low-level package. Bump PKGREVISION.
Update to 2.5.36. Add build dependencies on gtexinfo and two tex packages needed to build pdf documentation, since there is no configure option to disable it that I can see. If this leads to problems, we'll have to disable it with a patch. * version 2.5.36 ** various portability fixes that quiet compiler warnings on 64-bit hosts ** various manual fixes, including correcting the name of a %option and updating some simple examples to use ANSI C syntax ** various bug fixes that prevent certain error conditions from persisting when they should not persist ** improvements to the test suite so it behaves better when linking compiled files ** new translations from the translation project: ca, da, es, fi, fr, ga, ko, pt_br, ro, ru, sv, tr, zh_cn ** the flex distribution is now built with automake 1.10.1 and automake 2.61
Update to flex-2.5.34. Highlights from NEWS: * flex now provides for a libfl_pic.a compiled with position indep. code. * introduce yylex_init_extra (c.f. manual) * pattern language expanded (c.f. manual) * introduce %option extra-type="your_type *" * parse multiple short concatenated options * better checking after yyalloc/yyrealloc * Expose YY_BUF_SIZE in the header file. * better escape of filenames with special characters * memory leaks were plugged * support case-insensitive patterns * POSIX character classes may be negated in patterns * patterns may now use set difference, union operators * c++ scanner updates * updated translations
Add missing gettext-lib/buildlink3.mk and fix PLIST.
Updated flex to 2.5.33. Changes since 2.5.4a (10 years ago) are too many to be listed here.
Move pkg/ files into package's toplevel directory