pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/devel/flex



Module Name:    pkgsrc
Committed By:   adam
Date:           Thu Nov 12 08:35:54 UTC 2026

Modified Files:
        pkgsrc/devel/flex: Makefile PLIST distinfo options.mk

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.66 -r1.67 pkgsrc/devel/flex/Makefile
cvs rdiff -u -r1.14 -r1.15 pkgsrc/devel/flex/PLIST
cvs rdiff -u -r1.35 -r1.36 pkgsrc/devel/flex/distinfo
cvs rdiff -u -r1.2 -r1.3 pkgsrc/devel/flex/options.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/devel/flex/Makefile
diff -u pkgsrc/devel/flex/Makefile:1.66 pkgsrc/devel/flex/Makefile:1.67
--- pkgsrc/devel/flex/Makefile:1.66     Tue Apr 30 12:06:15 2024
+++ pkgsrc/devel/flex/Makefile  Thu Nov 12 08:35:54 2026
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.66 2024/04/30 12:06:15 cheusov Exp $
+# $NetBSD: Makefile,v 1.67 2026/11/12 08:35:54 adam Exp $
 
-DISTNAME=      flex-2.6.4
+DISTNAME=      flex-2.6.9
 CATEGORIES=    devel lang
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=westes/}
 GITHUB_RELEASE=        v${PKGVERSION_NOREV}
@@ -10,11 +10,11 @@ HOMEPAGE=   https://github.com/westes/flex
 COMMENT=       Fast clone of lex(1), the lexical scanner generator
 LICENSE=       2-clause-bsd
 
-TOOL_DEPENDS+=         help2man-[0-9]*:../../converters/help2man
+TOOL_DEPENDS+= help2man>=0:../../converters/help2man
 
 # wants stdbool
-USE_LANGUAGES=         c99 c++
-
+USE_CC_FEATURES=       c99
+USE_LANGUAGES=         c c++
 USE_LIBTOOL=           yes
 USE_PKGLOCALEDIR=      yes
 USE_TOOLS+=            gm4:run gmake makeinfo

Index: pkgsrc/devel/flex/PLIST
diff -u pkgsrc/devel/flex/PLIST:1.14 pkgsrc/devel/flex/PLIST:1.15
--- pkgsrc/devel/flex/PLIST:1.14        Tue Apr 30 11:35:04 2024
+++ pkgsrc/devel/flex/PLIST     Thu Nov 12 08:35:54 2026
@@ -1,15 +1,17 @@
-@comment $NetBSD: PLIST,v 1.14 2024/04/30 11:35:04 cheusov Exp $
+@comment $NetBSD: PLIST,v 1.15 2026/11/12 08:35:54 adam Exp $
 bin/flex
 bin/flex++
 include/FlexLexer.h
 info/flex.info
 lib/libfl.la
+lib/pkgconfig/libfl.pc
 man/man1/flex.1
 share/doc/flex/AUTHORS
 share/doc/flex/COPYING
 share/doc/flex/NEWS
 share/doc/flex/ONEWS
 share/doc/flex/README.md
+${PLIST.nls}share/locale/bg/LC_MESSAGES/flex.mo
 ${PLIST.nls}share/locale/ca/LC_MESSAGES/flex.mo
 ${PLIST.nls}share/locale/da/LC_MESSAGES/flex.mo
 ${PLIST.nls}share/locale/de/LC_MESSAGES/flex.mo
@@ -21,15 +23,19 @@ ${PLIST.nls}share/locale/fi/LC_MESSAGES/
 ${PLIST.nls}share/locale/fr/LC_MESSAGES/flex.mo
 ${PLIST.nls}share/locale/ga/LC_MESSAGES/flex.mo
 ${PLIST.nls}share/locale/hr/LC_MESSAGES/flex.mo
+${PLIST.nls}share/locale/ka/LC_MESSAGES/flex.mo
 ${PLIST.nls}share/locale/ko/LC_MESSAGES/flex.mo
+${PLIST.nls}share/locale/lv/LC_MESSAGES/flex.mo
 ${PLIST.nls}share/locale/nl/LC_MESSAGES/flex.mo
 ${PLIST.nls}share/locale/pl/LC_MESSAGES/flex.mo
+${PLIST.nls}share/locale/pt/LC_MESSAGES/flex.mo
 ${PLIST.nls}share/locale/pt_BR/LC_MESSAGES/flex.mo
 ${PLIST.nls}share/locale/ro/LC_MESSAGES/flex.mo
 ${PLIST.nls}share/locale/ru/LC_MESSAGES/flex.mo
 ${PLIST.nls}share/locale/sr/LC_MESSAGES/flex.mo
 ${PLIST.nls}share/locale/sv/LC_MESSAGES/flex.mo
 ${PLIST.nls}share/locale/tr/LC_MESSAGES/flex.mo
+${PLIST.nls}share/locale/uk/LC_MESSAGES/flex.mo
 ${PLIST.nls}share/locale/vi/LC_MESSAGES/flex.mo
 ${PLIST.nls}share/locale/zh_CN/LC_MESSAGES/flex.mo
 ${PLIST.nls}share/locale/zh_TW/LC_MESSAGES/flex.mo

Index: pkgsrc/devel/flex/distinfo
diff -u pkgsrc/devel/flex/distinfo:1.35 pkgsrc/devel/flex/distinfo:1.36
--- pkgsrc/devel/flex/distinfo:1.35     Tue Oct 26 10:14:38 2021
+++ pkgsrc/devel/flex/distinfo  Thu Nov 12 08:35:54 2026
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.35 2021/10/26 10:14:38 nia Exp $
+$NetBSD: distinfo,v 1.36 2026/11/12 08:35:54 adam Exp $
 
-BLAKE2s (flex-2.6.4.tar.gz) = aee613459454ddfc528df0fd667fb3b5701b9d51f9aff6ce2f6a2f0adb303043
-SHA512 (flex-2.6.4.tar.gz) = e9785f3d620a204b7d20222888917dc065c2036cae28667065bf7862dfa1b25235095a12fd04efdbd09bfd17d3452e6b9ef953a8c1137862ff671c97132a082e
-Size (flex-2.6.4.tar.gz) = 1419096 bytes
+BLAKE2s (flex-2.6.9.tar.gz) = 5a13af1ed0541a09861838101a645bf743b0ed0b9e5877e5b04b04869c1ba4de
+SHA512 (flex-2.6.9.tar.gz) = 96846ae9266f916ac073bd9214166be2eda098e557609aa2f01fec88d4b3a3a3e54bee50548eb5c22e4a4f2e7bea67b07781170d44fccf4e968a429238b19d19
+Size (flex-2.6.9.tar.gz) = 1820166 bytes

Index: pkgsrc/devel/flex/options.mk
diff -u pkgsrc/devel/flex/options.mk:1.2 pkgsrc/devel/flex/options.mk:1.3
--- pkgsrc/devel/flex/options.mk:1.2    Tue Apr 30 12:06:15 2024
+++ pkgsrc/devel/flex/options.mk        Thu Nov 12 08:35:54 2026
@@ -1,4 +1,4 @@
-# $NetBSD
+# $NetBSD: options.mk,v 1.3 2026/11/12 08:35:54 adam Exp $
 
 PKG_OPTIONS_VAR=       PKG_OPTIONS.flex
 PKG_SUPPORTED_OPTIONS= nls



Home | Main Index | Thread Index | Old Index