Commit graph

79 commits

Author SHA1 Message Date
triaxx
7199819208 Add workaround for fixing build on Linux
See https://github.com/westes/flex/issues/241
The problem is fixed in master branch and the workaround could be removed
in the next version update.
2017-10-20 06:22:24 +00:00
maya
ef3551cd29 flex: add workaround for netbsd-8 which segfaults during the build 2017-07-24 14:34:49 +00:00
jakllsch
d81689e610 Update flex to 2.6.4.
Upstream news:

* Noteworthy changes in release 2.6.4 (2017-05-06) [stable]

** build

*** The indent target now knows about flex's new (as of 2.6.0)
    layout. The indent rules it would apply are not correct and do
    need to be fixed.

*** The files included in the flex distribution are now built by the
    version of flex that is included in the distribution.

*** The configure script has a better idea of which headers are
    required to build flex. It will also error when missing functions
    are detected.

*** We have lowered the versions of automake and gettext that
    configure.ac lists as required for building flex. In autogen.sh,
    we now check for how to call libtoolize and use what we find in
    the rest of the script.

*** Since files in lib/ are picked up as needed by src/, we no longer
    generate a Makefile for that directory.

*** Flex can be cross compiled.

** documentation

*** Some typos were removed from the manual.

** scanner

*** Some minor performance enhancements.

*** We honor user defined yy_* macros again. We are also more careful
    to not leak macro definitions into header files.

*** A number of portability fixes were introduced so building flex is
    more reliable on more platforms. Additionally, outdated function
    calls were removed.

*** When building the flex executable itself, %# comments from
    flex.skl are removed when generating the C source code array. This
    reduces the size of flex.

** test suite

*** All scripts in the test suite are now run by $(SHELL) and the
    needed portability fixes have been included.

*** Test suite dependencies are handled much better. This only matters
    if you are actively developing flex or its test suite.

*** Tests that depend on platform dependent features now properly skip
    when those platforms are not present.

*** When running "make check", you can now pas V=0 to silence more of
    the build. This is useful when you're less connncerned about the
    details of building and linking the test programs themselves.
2017-07-24 14:19:06 +00:00
maya
85b5560f7c flex: apply upstream commit to avoid redefining yywrap.
we are still redefining some.

bump pkgrevision
2017-07-24 10:07:44 +00:00
wiz
5f916bf255 Remove now unneeded patch, lilypond seems to build fine without it.
Bump PKGREVISION.
2017-01-12 16:53:22 +00:00
wiz
d67f850115 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.
2017-01-01 13:53:16 +00:00
wiedi
b53190bd8e Revert "Pull in three commits from upstream"
Modifying '.l' files creates a dependency on flex itself.
2016-12-13 20:51:42 +00:00
wiedi
74fa2c0564 Pull in three commits from upstream
mainly related to https://github.com/westes/flex/issues/113
"v2.6.2 introduces behavior change that is incompatible with previous versions"

This fixes at least doxygen
2016-12-13 17:07:22 +00:00
wiz
e8ed0658cd Add workaround for fixing the build of lilypond-2.18.2.
See https://github.com/westes/flex/issues/124

Bump PKGREVISION.
2016-11-11 08:14:54 +00:00
wiz
ed62b17ee3 Add upstream bug report URL. 2016-11-06 21:33:44 +00:00
wiz
0b7c7788f2 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.
2016-11-06 21:31:38 +00:00
mef
f9097a0e1b Reverted devel/flex to 2.6.0
----------------------------
Recent commit update to 2.6.1 has problem, reverting now, thanks joerg and wiz
 - Bison is required to build without pre-generated files, but
   Bison needs flex, thus cyclic-dependency problem
 - Missing to include gettext-tool/buildlink3.mk
2016-08-12 10:12:23 +00:00
mef
958a11d033 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
2016-08-11 03:23:44 +00:00
mef
d351fe280a Correct for wrong command operation, sorry, 2.6.0 is the current version. 2016-08-11 00:41:54 +00:00
mef
11475b7a88 *** empty log message *** 2016-08-11 00:38:10 +00:00
wiz
3944ad5936 Use github as HOMEPAGE, it has a newer version than the sourceforge page. 2016-07-18 16:18:49 +00:00
jperkin
a7efdccd6c Use OPSYSVARS. 2016-02-25 12:12:47 +00:00
wiz
364851d181 Disable bison tests to avoid bison dependency, since bison
depends on flex.
2016-01-08 11:59:36 +00:00
wiz
0c781833a6 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
2016-01-07 12:05:30 +00:00
agc
d9e4cfe05d Add SHA512 digests for distfiles for devel category
Issues found with existing distfiles:
	distfiles/eclipse-sourceBuild-srcIncluded-3.0.1.zip
	distfiles/fortran-utils-1.1.tar.gz
	distfiles/ivykis-0.39.tar.gz
	distfiles/enum-1.11.tar.gz
	distfiles/pvs-3.2-libraries.tgz
	distfiles/pvs-3.2-linux.tgz
	distfiles/pvs-3.2-solaris.tgz
	distfiles/pvs-3.2-system.tgz
No changes made to these distinfo files.

Otherwise, existing SHA1 digests verified and found to be the same on
the machine holding the existing distfiles (morden).  All existing
SHA1 digests retained for now as an audit trail.
2015-11-03 03:27:11 +00:00
tnn
13e2544f91 - Remove compat files. Upstream ships them now in lib.
- Fix build of compat library. Needs to use libtool objects (.lo) since
  linking is done with libtool.
2015-04-19 00:05:44 +00:00
obache
0271c8d47b Prevent libfi to be linked with libintl.
Gettext is just used in flex tool, not in library.

Bump PKGREVISION.
2014-08-23 07:46:38 +00:00
obache
214a1c1193 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.
2014-08-23 03:14:36 +00:00
ryoon
cbbf1f00f3 Fix SCO OpenServer 5.0.7/3.2 build.
libsocket is needed.
2014-07-17 12:53:49 +00:00
adam
942ba451fc Clean-up; fixed linking on Darwin; added LICENSE; switched to .tar.xz. 2014-04-17 16:44:30 +00:00
wiz
574f0816ab 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
2014-04-17 12:41:03 +00:00
asau
e1ab7079b6 Drop superfluous PKG_DESTDIR_SUPPORT, "user-destdir" is default these days. 2012-10-31 11:16:30 +00:00
wiz
854b7cfd61 Do not build and install flex.pdf, too many dependencies for such
a low-level package. Bump PKGREVISION.
2012-08-01 13:12:36 +00:00
wiz
448ba23be8 It seems pdftex is also needed, no idea why this wasn't detected earlier. 2012-07-31 18:16:50 +00:00
wiz
5c2158f14f 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
2012-07-29 19:42:21 +00:00
obache
9c52f78ff5 bison is not required to build flex.
resolve PR 46554.
2012-06-06 13:27:05 +00:00
obache
1d9df3258a recursive bump from gettext-lib shlib bump. 2011-04-22 13:41:54 +00:00
spz
b13ac6fe85 bumping pkgrevision ought to have gone in with addition of patches/patch-ad 2010-01-31 17:21:14 +00:00
spz
64a04ab90f The comment above the code patch in the new patch file says:
"This is a Hail Mary situation. It seems to work."
It doesn't reliably on NetBSD-5 or -current; namely, it makes flex
spit out a "Broken pipe" when presented with an input file on stdin.

Finding the problem area and suggesting a workaround kudos mlelstv.
There are better ways to fix it properly, which will be employed
in Due Time.
2010-01-31 17:10:08 +00:00
joerg
2d1ba244e9 Simply and speed up buildlink3.mk files and processing.
This changes the buildlink3.mk files to use an include guard for the
recursive include. The use of BUILDLINK_DEPTH, BUILDLINK_DEPENDS,
BUILDLINK_PACKAGES and BUILDLINK_ORDER is handled by a single new
variable BUILDLINK_TREE. Each buildlink3.mk file adds a pair of
enter/exit marker, which can be used to reconstruct the tree and
to determine first level includes. Avoiding := for large variables
(BUILDLINK_ORDER) speeds up parse time as += has linear complexity.
The include guard reduces system time by avoiding reading files over and
over again. For complex packages this reduces both %user and %sys time to
half of the former time.
2009-03-20 19:23:50 +00:00
sno
16408c9e5e turn on linux source compatibility for AIX - flex dumps core otherwise
when try to allocate 0 bytes
2009-02-25 21:03:01 +00:00
tnn
1c33796849 Also add malloc.c as required by configure.
Reported in SF.net bug # 1899047
2008-05-21 12:54:32 +00:00
tnn
69b56eaa2f Update homepage. 2008-05-18 00:43:51 +00:00
tnn
59efc5ea9a version 2.5.35 released 2008-02-26
* fixed bug that prevented flex from accepting certain comments in the
  scanner file (resolves bugs #1849809 and #1849805)
* fix bug that prevented headers for all functions from being generated
  (resolves bug #1628314)
* change yy_size_t to be size_t (resolves bug #1849812)
* new de, nl, pl, pt_br, vi translations from the translation project
2008-03-08 00:08:42 +00:00
tnn
9c1de0133f - add a patch from debian that fixes a parser bug
- do a "two stage" bootstrap: build flex, then regenerate the scanner and
  rebuild flex.
- This should fix PR pkg/38084
- bump PKGREVISION.
2008-02-22 22:13:33 +00:00
tnn
a8aa30d6bb Add GNU realloc.c, needed because of AC_FUNC_REALLOC.
Will file a bug upstream.
2008-02-21 18:57:46 +00:00
tnn
3e2a94e791 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
2008-02-21 18:26:05 +00:00
hira
8951aa3012 Back out previous. Pointed out by uebayasi@ and martti@. 2007-09-25 10:03:52 +00:00
hira
ebf8ba4a7d ln -> ${LN}. 2007-09-25 08:31:52 +00:00
heinz
17a26fe24a Added support for installation to DESTDIR. 2007-06-03 22:57:25 +00:00
rillig
ee8c47fef6 IRIX has <alloca.h>. 2007-03-07 16:50:13 +00:00
markd
4b3b570f13 Needs makeinfo to build (at least on Solaris 10).
Fixes PR pkg/35520.
2007-02-05 19:54:36 +00:00
dmcmahill
58e37dbe1d Add missing gettext-lib/buildlink3.mk and fix PLIST. 2007-01-31 15:38:33 +00:00
joerg
695cd5ddcd Needs a GNUish m4. Bump revision. No cookie for rillig. 2007-01-23 17:42:09 +00:00
rillig
4d80d2775d Solaris needs -lm. 2007-01-15 06:23:47 +00:00