summaryrefslogtreecommitdiff
path: root/lang/gawk
AgeCommit message (Collapse)AuthorFilesLines
2005-09-06Fix build under darwin anf gcc4tonio3-1/+37
Patches taken from darwinports (thanks toby)
2005-09-05Update to 3.1.5:wiz6-131/+19
Changes from 3.1.4 to 3.1.5 --------------------------- 1. The random() suite has been updated to a current FreeBSD version, which works on systems with > 32-bit ints. 2. A new option, `--exec' has been added. It's like -f but ends option processing. It also disables `x=y' variable assignments, but not -v. It's needed mainly for CGI scripts, so that source code can't be passed in as part of the URL. 3. dfa.[ch] have been synced with GNU grep development. This also fixes multiple regex matching problems in multibyte locales. 4. Updated to Automake 1.9.5. 5. Updated to Bison 2.0. 6. The getopt* and regex* files were synchronized with current GLIBC CVS. See the ChangeLog for the versions and minor edits made. 7. `configure --disable-nls' now disables just gawk's own translations. Gawk continues to work with the locale's numeric formatting. This includes a bug fix in handling the printf ' flag (e.g., %'d). 8. Gawk is now multibyte aware. This means that index(), length(), substr() and match() all work in terms of characters, not bytes. 9. Gawk is now smarter about parsing numeric constants in corner cases. 11. Not closing open redirections no longer causes gawk to exit non-zero. 10. The VMS port has been updated. 11. Changes from Andrew Schorr at the xmlgawk project to provide for open hooks from extensions are now included. This will let the xmlgawk extension work in the standard gawk. 12. Updated to gettext 0.14.4. Gawk no longer includes its own copy of the gettext `intl' library, following current GNU practice to rely on there being an external version thereof. 13. A regexp of the form `//' will now generate a warning that it is not a C++ comment from --lint (awk.y). 14. The ^ and ^= operators with an integer exponent now use Exponentiation by Squaring. This simultaneously fixes a problem with ^= and a negative integer exponent. 15. length(array) now returns the number of elements in the array. This is is a non-standard extension that will fail in POSIX mode. 16. Carriage return characters are now ignored in program source code. 17. Four new translations added. 18. Various minor bugs fixed. See the ChangeLog for the details.
2005-07-13Add -lgen to IRIX's LDFLAGSjschauma1-1/+3
2005-05-31Packages have no business modifying PKG_DEFAULT_OPTIONS -- it's adillo1-5/+2
user settable variable. Set PKG_SUGGESTED_OPTIONS instead. Also, make use of PKG_OPTIONS_LEGACY_VARS. Reviewed by wiz.
2005-05-15Remove some local declarations which breaks compilation on DragonFly.bouyer2-3/+19
Patch provided by Joerg Sonnenberger in private mail.
2005-04-11Remove USE_BUILDLINK3 and NO_BUILDLINK; these are no longer used.tv1-2/+1
2005-02-24Add RMD160 digestsagc1-1/+2
2005-01-30Fix two bugs in gawk bracket handling under UTF-8 locale. Patchesminskim3-3/+53
borrowed from Debian. Reported by Hiramatsu Yoshifumi and Kibum Han on tech-pkg@. Bump PKGREVISION.
2004-10-14Enable pkgviews installation. This closes PR pkg/26104.minskim1-1/+3
2004-10-14This package requires ngettext(), which is provided byminskim1-1/+3
gettext-lib>=0.10.36. Set BUILDLINK_DEPENDS.gettext accordingly.
2004-10-03Libtool fix for PR pkg/26633, and other issues. Update libtool to 1.5.10tv1-1/+2
in the process. (More information on tech-pkg.) Bump PKGREVISION and BUILDLINK_DEPENDS of all packages using libtool and installing .la files. Bump PKGREVISION (only) of all packages depending directly on the above via a buildlink3 include.
2004-08-26Update to 3.1.4, convert to bsd.options.mk:wiz6-47/+29
Changes from 3.1.3 to 3.1.4 --------------------------- 1. Gawk now supports the POSIX %F format, falling back to %f if the local system printf doesn't handle it. 2. Gawk now supports the ' flag in printf. E.g., %'d in a locale with thousands separators includes the thousands separator in the value, e.g. 12,345. This has one problem; the ' flag is next to impossible to use on the command line, without major quoting games. Oh well, TANSTAAFL. 3. The dfa code has been reinstated; the performance degradation was just too awful. Sigh. (For fun, use `export GAWK_NO_DFA=1' to see the difference.) 4. The special case `x = x y' is now recognized in the grammar, and gawk now uses `realloc' to append the new value to the end of the existing one. This can speed up the common case of appending onto a string. 5. The dfa code was upgraded with most of the fixes from grep 2.5.1, and the regex code was upgraded with GLIBC as mid-January 2004. The regex code is faster than it was, but still not as fast as the dfa code, so the dfa code stays in. The getopt code was also synced to current GLIBC. 6. Support code upgraded to Automake 1.8.5, Autoconf 2.59, and gettext 0.14.1. 7. When --posix is in effect, sub/gsub now follow the 2001 POSIX behavior. Yippee. This is even documented in the manual. 8. Gawk will now recover children that have died (input pipelines, two-way pipes), upon detecting EOF from them, thus avoiding filling up the process table. Open file descriptors are not recovered (unfortunately), since that could break awk semantics. See the ChangeLog and the source code for the details. 9. Handling of numbers like `0,1' in non-American locales ought to work correctly now. 10. IGNORECASE is now locale-aware for characters with values above 128. The dfa matcher is now used for IGNORECASE matches too. 11. Dynamic function loading is better. The documentation has been improved and some new APIs for use by dynamic functions have been added. 12. Gawk now has a fighting chance of working on older systems, a la SunOS 4.1.x. 13. Issues with multibyte support on HP-UX are now resolved. `configure' now disables such support there, since it's not up to what gawk needs. 14. There are now even more tests in the test suite. 15. Various bugs fixed; see ChangeLog for the details.
2004-04-25Convert to buildlink3.snj1-3/+3
2004-02-22Remove info files entries from PLIST.seb1-3/+1
2003-12-17Remove the dependancy on GNU make, which should be unnecessary. Thissketch1-2/+1
package would previously fail to build if devel/gmake wasn't already installed due to the circular dependancy prevention logic in tools.mk
2003-10-06Use .tar.bz2 distfile.wiz2-4/+5
2003-10-05Unneeded after 3.1.3 update.wiz4-52/+0
2003-10-05Update to 3.1.3.wiz6-52/+43
Changes from 3.1.2 to 3.1.3 --------------------------- 1. Gawk now follows POSIX in handling of local numeric formats for input, output and number/string conversions. 2. Multibyte detection improved. See README_d/README.multibyte for more info about multibyte locales. 3. Handling of `close' made more POSIX-compliant for POSIXLY_CORRECT, see the documentation. 4. The record reading code was redone, again. This time it's much better. Really! 5. For RS = "\n" and RS = "", gawk now only sets RT when it has changed. This provides considerable performance improvement. 6. `match' now sets all the subscripts in the third argument array correctly, even if not all subexpressions matched. 7. Updated to Automake 1.7.5. configure.in renamed configure.ac. 8. C-style switch statements are available, but must be enabled at compile time via `configure --enable-switch'. For 3.2 they'll be enabled by default. Thanks to Michael Benzinger for the initial code. 9. %c now always prints no more than one character, whatever precision is provided. 10. strtonum(<number>) now works again. 11. Gawk is now much better about scalar/array typing of global uninitiailzed variables passed as parameters. Once the parameter is then used one way or the other, the global var's type is adjusted accordingly. Thanks to Stepan Kasal for the original (considerable) changes. 12. Dynamic function loading under Windows32 should now be possible. See README_d/README.pcdynamic. Thanks to Patrick T.J. McPhee for the changes. 13. Updated to gettext 0.12.1. 14. Gawk now follows historical practice and POSIX for the return value of `rand': It's now 0 <= N < 1. Changes from 3.1.1 to 3.1.2 --------------------------- 1. Loops of the form: for (iggy in foo) next no longer leak memory. 2. gawk -v FIELDWIDTHS="..." now sets PROCINFO["FS"] correctly. 3. All builtin operations and functions should now fully evaluate their arguments so that side effects take place correctly. 4. Fixed a logic bug in gsub/gensub for matches to null strings that occurred later in the string after a nonnull match. 5. getgroups code now works on Ultrix again. 6. Completely new version of the full GNU regex engine now in place. 7. Argument parsing and variable assignment has been cleaned up. 8. An I/O bug on HP-UX has been documented and worked around. See README_d/README.hpux. 9. awklib/grcat should now compile correctly. 10. Updated to automake 1.7.3, autoconf 2.57 and gettext 0.11.5 ; thanks to Paul Eggert for the initial automake and autoconf work. 11. As a result of #6, removed the use of the dfa code from GNU grep. 12. It is now possible to use ptys for |& two-way pipes instead of pipes. The basic plumbing for this was provided by Paolo Bonzini. To make this happen: command = "unix command etc" PROCINFO[command, "pty"] = 1 print ... |& command command |& getline stuff In other words, set the element in PROCINFO *before* opening the two-way pipe, and then gawk will use ptys instead of pipes. On systems without ptys or where all the ptys are in use, gawk will fall back to using plain pipes. 13. Fixed a regex matching across buffer boundaries bug, with a heuristic. See io.c:rsre_get_a_record. 14. Profiling no longer dumps core if there are extension functions in place. 15. Grammar and scanner cleaned up, courtesy of Stepen Kasal, to hopefully once and for all fix the `/=' operator vs. `/=.../' regex ambiguity. Lots of other grammar simplifications applied, as well. 16. BINMODE should work now on more Windows ports. 17. Updated to bison 1.875. Includes fix to bisonfix.sed script. 18. The NODE structure is now 20% (8 bytes) smaller (on x86, anyway), which should help conserve memory. 19. Builds not in the source directory should work again. 20. Arrays now use 2 NODE's per element instead of three. Combined with #18, (on the x86) this reduces the overhead from 120 bytes per element to just 64 bytes: almost a 50% improvement. 21. Programs that make heavy use of changing IGNORECASE should now be much faster, particularly if using a regular expression for FS or RS. IGNORECASE now correctly affects RS regex record splitting, as well. 22. IGNORECASE no longer affects single-character field splitting (FS = "c"), or single-character record splitting (RS = "c"). This cleans up some weird behavior, and makes gawk better match the documentation, which says it only affects regex-based field splitting and record splitting. The documentation on this was improved, too. 23. The framework in test/ has been simplified, making it much easier to add new tests while keeping the size of Makefile.am reasonable. Thanks for this to Stepan Kasal. 24. --lint=invalid causes lint warnings only about stuff that's actually invalid. This needs additional work. 25. More translations. 26. The `get_a_record' routine has been revamped (currently by splitting it into three variants). This should improve long-term maintainability. 27. `match' now adds more entries to 3rd array arg: match("the big dog", /([a-z]+) ([a-z]+) ([a-z]+)/, data) fills in variables: data[1, "start"], data[1, "length"], and so on. 28. New `asorti' function with same interface as `asort', but sorts indices instead of values. 29. Documentation updated to FDL 1.2. 30. New `configure' option --disable-lint at compile time disables lint checking. With GCC dead-code-elimination, cuts almost 200K off the executable size on GNU/Linux x86. Presumably speeds up runtime. Using this will cause some of the tests in the test suite to fail. This option may be removed at a later date. 31. Various minor cleanups, see the ChangeLog for details.
2003-08-09Remove some leftovers from older texinfo handling framework.seb1-2/+1
2003-08-09USE_NEW_TEXINFO is unnecessary now.seb1-2/+1
2003-08-02no longer needed.grant1-56/+0
2003-07-17s/netbsd.org/NetBSD.org/grant1-2/+2
2003-07-13PKGREVISION bump for libiconv update.wiz2-3/+4
2003-07-09add a buildlink for gawk. this is derived from and shares the samegrant1-0/+56
purpose as gsed/buildlink2.mk. XXX IRIX is currently listed in _INCOMPAT_AWK - this should be removed if awk on IRIX is known to be good.
2003-07-05Mark these two packages as conflicting: they install info file, libexecseb1-1/+3
commands and share files with the same pathnames.
2003-07-04Convert to USE_NEW_TEXINFO.seb5-8/+34
While here fix a info directory entry in gawk.{texi,info}.
2003-06-07Fix path to locale directory in patch files (i.e., do not hardcode /usr/pkgjmmv3-5/+7
and use PKGLOCALEDIR's value).
2003-05-30For the records add GAWK_ENABLE_PORTALS to the build definitions.seb1-1/+2
2002-12-12update to gawk-3.1.1. While here, make this work again under NetBSD sincedmcmahill9-23/+136
this gawk version is newer than the version shipped with 1.6 and has some potentially useful features such as 2 way pipes which allow easy access to the sort(1) command. Changes from 3.1.0 to 3.1.1 --------------------------- 1. Six new translations. 2. Having more than 4 different value for OFMT and/or CONVFMT now works. 3. The handling of dynamic regexes is now more more sane, esp. w.r.t. the profiling code. The profiling code has been fixed in several places. 4. The return value of index("", "") is now 1. 5. Gawk should no longer close fd 0 in child processes. 6. Fixed test for strtod semantics and regenerated configure. 7. Gawk can now be built with byacc; an accidental bison dependency was removed. 8. yyerror() will no longer dump core on long source lines. 9. Gawk now correctly queries getgroups(2) to figure out how many groups the process has. 10. New configure option to force use of included strftime, e.g. on Solaris systems. See `./configure --help' for the details. Replaced the included strftime.c with the one from textutils. 11. OS/2 port has been updated. 12. Multi-byte character support has been added, courtesy of IBM Japan. 13. The `for (iggy in foo) delete foo[iggy]' -> `delete foo' optimisation now works. 14. Upgraded to gettext 0.11.2 and automake 1.5. 15. Full gettext compatibility (new dcngettext function). 16. The O'Reilly copyedits and indexing changes for the documentation have been folded into the texinfo version of the manuals. 17. A humongously long value for the AWKPATH environment variable will no longer dump core. 18. Configuration / Installation issues have been straightened out in Makefile.am.
2002-11-30USE_PKGLOCALEDIR.grant5-44/+9
2002-11-22Fix pasto, localedir->prefix. Thanks to Manuel Bouyer for pointing this out.salo2-4/+4
2002-11-19Add some more patches for PKGLOCALEDIR. Closes PR 18793 by Grant Beattie.salo3-1/+33
2002-10-22buildlink1 -> buildlink2jlam1-9/+9
2002-07-17Mark this package as only being for SunOS platforms again. Theagc1-1/+3
changes to get it to build on NetBSD are extensive - for reference, and the one who comes after me, they are: + awk.h defines "proc" in a cpp macro. This doesn't sit too well with "struct proc" references, as found in <sys/uio.h>. The good news is that only awk.h and awkgram.y need to be modified to workaround this. + the present Makefile copying wrt gettext Makefile.in.in is unnecessary + automake is a pre-req of this package + and there is a problem in Makefile.in/configure with ${AUTOMAKE} not being defined properly and many, many more...
2002-04-04Update to version 3.1.0 (lots of new features and bug fixes).seb6-66/+61
Enable this package for all platforms. Added GAWK_ENABLE_PORTALS to mk/bsd.pkg.defaults.mk to enable/disable gawk handling file names that start with `/p/' as a 4.4 BSD type portal file. Changes from 3.0.4 to 3.0.5: - bug fix release only. Changes from 3.0.5 to 3.0.6: - bug fix release only. Changes from 3.0.6 to 3.1.0: - A new PROCINFO array provides info about the process. The non-I/O /dev/xxx files are now obsolete, and their use always generates a warning. - A new `mktime' builtin function was added for creating time stamps. The `mktime' function written in awk was removed from the user's guide. - New `--gen-po' option creates GNU gettext .po files for strings marked with a leading underscore. - Gawk now completely interprets special file names internally, ignoring the existence of real /dev/stdin, /dev/stdout files, etc. - The mmap code was removed. It was a worthwhile experiment that just didn't work out. - The BINMODE variable is new; on non-UNIX systems it affects how gawk opens files for text vs. binary. - Gawk no longer supports `next file' as two words. - On systems that support it, gawk now sets the `close on exec' flag on all files and pipes it opens. This makes sure that child processes run via system() or pipes have plenty of file descriptors available. - If `--posix' is in effect, newlines are not allowed after ?:. - Weird OFMT/CONVFMT formats no longer cause fatal errors. - Diagnostics about array parameters now include the parameter's name, not just its number. - It is now possible to open a two-way pipe via the `|&' operator. See the discussion in the manual about putting `sort' into such a pipeline, though. (NOTE! This is borrowed from ksh: it is not the same as the same operator in csh!) - The close() function now takes an optional second string argument that allows closing one or the other end of the two-way pipe to a co-process. This is needed to use `sort' in a co-process, see the doc. - If TCP/IP is available, special file names beginning with `/inet' can be used with `|&' for IPC. - With `--enable-portals' on the configure command line, gawk will also treat file names that start with `/p/' as a 4.4 BSD type portal file, i.e., a two-way pipe for `|&'. - Unrecognized escapes, such as "\q" now always generate a warning. - The LINT variable is new; it provides dynamic control over the --lint option. - Lint warnings can be made fatal by using --lint=fatal or `LINT = "fatal"'. Use this if you're really serious about portable code. - A number of lint warnings have been added. Most notably, gawk will detect if a variable is used before assigned to. Warnings for when a string that isn't a number gets converted to a number are in the code but disabled; they seem to be too picky in practice. Also, gawk will now warn about function parameter names that shadow global variable names. - It is now possible to dynamically add builtin functions on systems that support dlopen. This facility is not (yet) as portable or well integrated as it might be. *** WARNING *** THIS FEATURE WILL EVOLVE! - Profiling has been added! A separate version of gawk, named pgawk, is built and generates a run-time execution profile. The --profile option can be used to change the default output file. In regular gawk, this option pretty-prints the parse tree. - Gawk has been internationalized, using GNU gettext. Translations for future distributions are most welcome. - New asort() function for sorting arrays. See the doc for details. - The match function takes an optional array third argument to hold the text matched by parenthesized sub-expressions. - The bit op functions and octal and hex source code constants are on by default, no longer a configure-time option. Recognition of non-decimal data is now enabled at runtime with --non-decimal-data command line option. - Internationalization features available at the awk level: new TEXTDOMAIN variable and bindtextdomain() and dcgettext() functions. printf formats may contain the "%2$3.5d" kind of notation for use in translations. See the texinfo manual for details. - The return value from close() has been rationalized. Most notably, closing something that wasn't open returns -1 but remains non-fatal. - The array effeciency change from 3.0.5 was reverted; the semantics were not right. Additionally, index values of previously stored elements can no longer change dynamically. - The new option --dump-variables dumps a list of all global variables and their final types and values to a file you give, or to `awkvars.out'. - Gawk now uses a recent version of random.c courtesy of the FreeBSD project. - The gawk source code now uses ANSI C function definitions (new style), with ansi2knr to translate code for old compilers. - `for (iggy in foo)' loops should be more robust now in the face of adding/deleting elements in the middle; they loop over just the elements that are present in the array when the loop starts.
2002-02-18Introduce new framework for handling info files generation and installation.seb2-4/+5
Summary of changes: - removal of USE_GTEXINFO - addition of mk/texinfo.mk - inclusion of this file in package Makefiles requiring it - `install-info' substituted by `${INSTALL_INFO}' in PLISTs - tuning of mk/bsd.pkg.mk: removal of USE_GTEXINFO INSTALL_INFO added to PLIST_SUBST `${INSTALL_INFO}' replace `install-info' in target rules print-PLIST target now generate `${INSTALL_INFO}' instead of `install-info' - a couple of new patch files added for a handful of packages - setting of the TEXINFO_OVERRIDE "switch" in packages Makefiles requiring it - devel/cssc marked requiring texinfo 4.0 - a couple of packages Makefiles were tuned with respect of INFO_FILES and makeinfo command usage See -newly added by this commit- section 10.24 of Packages.txt for further information.
2001-11-01Move pkg/ files into package's toplevel directoryzuntum2-1/+1
2001-04-19Move to sha1 digests, and add distfile sizes.agc1-3/+3
2001-04-17+ move the distfile digest/checksum value from files/md5 to distinfoagc3-9/+7
+ move the patch digest/checksum values from files/patch-sum to distinfo
2001-02-17Move the COMMENT from being in its own file to a definition in theagc2-2/+2
package Makefile.
2000-02-05add info-dir entries for info files, even for binary packageswiz1-1/+3
1999-12-13Fix a typo, and mark this package as being only for Solaris, since gawkagc1-2/+4
is part of the standard NetBSD distribution.
1999-12-12Category lang, not textprocbouyer1-2/+2
1999-12-10Ops, shoudlt't have been here !bouyer1-84/+0
1999-12-10A package for the GNU awk utility.bouyer10-0/+188