Received: by mail.netbsd.org (Postfix, from userid 605) id 8251A84F7D; Sat, 14 Jul 2018 13:47:35 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id A379284F73 for ; Sat, 14 Jul 2018 13:47:34 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([IPv6:::1]) by localhost (mail.netbsd.org [IPv6:::1]) (amavisd-new, port 10025) with ESMTP id BNXYS6w-peJj for ; Sat, 14 Jul 2018 13:47:32 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.NetBSD.org [IPv6:2001:470:a085:999:28c:faff:fe03:5984]) by mail.netbsd.org (Postfix) with ESMTP id 72E1184F7E for ; Sat, 14 Jul 2018 13:47:32 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 69515FBEC; Sat, 14 Jul 2018 13:47:32 +0000 (UTC) Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_1531576052119580" MIME-Version: 1.0 Date: Sat, 14 Jul 2018 13:47:32 +0000 From: "Adam Ciarcinski" Subject: CVS commit: pkgsrc/lang/gawk To: pkgsrc-changes@NetBSD.org Reply-To: adam@netbsd.org X-Mailer: log_accum Message-Id: <20180714134732.69515FBEC@cvs.NetBSD.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: pkgsrc-changes.NetBSD.org Precedence: bulk List-Unsubscribe: This is a multi-part message in MIME format. --_----------=_1531576052119580 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Module Name: pkgsrc Committed By: adam Date: Sat Jul 14 13:47:32 UTC 2018 Modified Files: pkgsrc/lang/gawk: Makefile PLIST distinfo pkgsrc/lang/gawk/patches: patch-Makefile.in patch-extension_Makefile.in patch-extension_inplace.c patch-test_Makefile.in Removed Files: pkgsrc/lang/gawk/patches: patch-debug.c patch-extension_filefuncs.c Log Message: gawk: updated to 4.2.1 Changes from 4.2.0 to 4.2.1 --------------------------- 1. Support for OS/2 has been brought up to date. This support was accidentally omitted from the initial 4.2 release, for which we apologize. 2. The manual received a number of updates to make it format better for PDF. 3. A new configure option, --enable-versioned-dir, causes the directory holding extensions to include the API version in its name. 4. extension/configure.ac has been improved considerably. 5. In MPFR mode, When ROUNDMODE changes, string values for numerically type values will be redone. 6. The various 'inplace' tests now pass on modern BSD systems. 7. A number of bugs, some of them quite significant, have been fixed. See the ChangeLog for details. Changes from 4.1.4 to 4.2.0 --------------------------- 1. If not in POSIX mode, changes to ENVIRON are reflected into gawk's environment, affecting any programs run by system() or for piped redirections. This can also affect built-in routines, such as mktime(), which is typically influenced by the TZ environment variable. 2. The series of numbers returned by rand() should now be "more random" than previously. Gawk's rand() remains repeatable; you will get the same series of numbers each time you call rand() repeatedly, but this will be a different series than previously. 3. Multiple changes related to the pretty printer: * The --pretty-print option no longer runs the program too. * Pretty printing now preserves comments and places them into the pretty-printed file. * Pretty-printing now uses the original text of constant numeric values for pretty-printing and profiling. * Pretty-printing now preserves parenthesized expressions as they were in the source file. This solves several niggling corner cases with such things. 4. The igawk script and igawk.1 man page are no longer installed by `make install'. They have been obsolete since gawk 4.0.0. 5. Gawk can now be built with CMake. This is an alternative build system for those who may want it; gawk is not going to switch off use of the autotools anytime soon, if ever. 6. Gawk now processes a maximum of two hexadecimal digits in \x escape sequences inside strings. 7. Setting PROCINFO["redirection", "NONFATAL"] to true makes I/O errors for "redirection" not fatal, setting ERRNO. Setting PROCINFO["NONFATAL"] makes all I/O nonfatal. See the manual. 8. MirBSD is no longer supported. 9. `make install' now installs shell startup files $sysconfdir/profile.d/gawk.{csh,sh} containing shell functions to manipulate the AWKPATH and AWKLIBPATH environment variables. On a Fedora system, these files belong in /etc/profile.d, but the appropriate location may be different on other platforms. 10. Gawk now supports retryable I/O via PROCINFO[input-file, "RETRY"]; see the manual. 11. The C API has undergone changes that break binary compatibility with the previous version. Thus the API version is now at 2.0. YOU WILL NEED TO RECOMPILE YOUR EXTENSIONS to work with this version of gawk. Source code compatibility remains intact, although you will get compiler warnings if you do not revise your extensions. We strongly recommend that you do so. Fortunately, the changes are fairly minor and straightforward. See the manual for the new features. 12. Revisions in the POSIX standard remove the special case for POSIX mode when FS = " " where newline was not a field separator. The code and doc have been updated. 13. Gawk now supports strongly typed regexp constants. Such constants look like @/.../. You can assign them to variables, pass them to functions, use them in ~, !~ and the case part of a switch statement. More details are provided in the manual. 14. The new typeof() function can be used to indicate if a variable or array element is an array, regexp, string or number. 15. As promised when 4.1 was released, the old extension mechanism, using the `extension' function, is now gone. 16. Support for GNU/Linux on Alpha systems has been removed. 17. Optimizations are now enabled by default. Use the new -s/--no-optimize option(s) to disable them. Pretty-printing and profiling automatically disable optimizations so that the output program is the same as the original input program. 18. Gawk now uses fwrite_unlocked if it's available. This yields a 7% - 18% improvement in raw output speed (gawk '{ print }' on a large file). 19. Passing negative operands to any of the bitwise functions now produces a fatal error. 20. Programs that toggle IGNORECASE a lot should now be noticeably faster. 21. The mktime function now accepts an optional second argument. If this argument is present and is non-zero or non-null, the time will be converted from UTC instead of from the local timezone. 22. The FIELDWIDTHS parsing syntax has been enhanced to allow specifying how many characters to skip before a field starts. It also allows specifying '*' as the last character to mean "the rest of the record". Field splitting with FIELDWIDTHS now sets NF correctly. The documentation for FIELDWIDTHS in the manual has been considerably reorganized and improved as well. 23. The PROCINFO["argv"] array records all of gawk's command line arguments as gawk received them (the values of the C level argv array). 24. The DJGPP port has been revived and now has an official maintainer. 25. The manual has been translated into Italian! The translation is included in the distribution. To generate a diff of this commit: cvs rdiff -u -r1.65 -r1.66 pkgsrc/lang/gawk/Makefile cvs rdiff -u -r1.24 -r1.25 pkgsrc/lang/gawk/PLIST cvs rdiff -u -r1.38 -r1.39 pkgsrc/lang/gawk/distinfo cvs rdiff -u -r1.4 -r1.5 pkgsrc/lang/gawk/patches/patch-Makefile.in cvs rdiff -u -r1.1 -r0 pkgsrc/lang/gawk/patches/patch-debug.c cvs rdiff -u -r1.3 -r1.4 pkgsrc/lang/gawk/patches/patch-extension_Makefile.in cvs rdiff -u -r1.2 -r0 pkgsrc/lang/gawk/patches/patch-extension_filefuncs.c cvs rdiff -u -r1.1 -r1.2 pkgsrc/lang/gawk/patches/patch-extension_inplace.c cvs rdiff -u -r1.2 -r1.3 pkgsrc/lang/gawk/patches/patch-test_Makefile.in Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. --_----------=_1531576052119580 Content-Disposition: inline Content-Length: 10484 Content-Transfer-Encoding: binary Content-Type: text/x-diff; charset=us-ascii Modified files: Index: pkgsrc/lang/gawk/Makefile diff -u pkgsrc/lang/gawk/Makefile:1.65 pkgsrc/lang/gawk/Makefile:1.66 --- pkgsrc/lang/gawk/Makefile:1.65 Sun Jan 28 16:24:13 2018 +++ pkgsrc/lang/gawk/Makefile Sat Jul 14 13:47:32 2018 @@ -1,7 +1,6 @@ -# $NetBSD: Makefile,v 1.65 2018/01/28 16:24:13 wiz Exp $ +# $NetBSD: Makefile,v 1.66 2018/07/14 13:47:32 adam Exp $ -DISTNAME= gawk-4.1.4 -PKGREVISION= 1 +DISTNAME= gawk-4.2.1 CATEGORIES= lang MASTER_SITES= ${MASTER_SITE_GNU:=gawk/} EXTRACT_SUFX= .tar.xz Index: pkgsrc/lang/gawk/PLIST diff -u pkgsrc/lang/gawk/PLIST:1.24 pkgsrc/lang/gawk/PLIST:1.25 --- pkgsrc/lang/gawk/PLIST:1.24 Sat Jan 14 01:03:39 2017 +++ pkgsrc/lang/gawk/PLIST Sat Jul 14 13:47:32 2018 @@ -1,28 +1,27 @@ -@comment $NetBSD: PLIST,v 1.24 2017/01/14 01:03:39 ryoon Exp $ -bin/gawk +@comment $NetBSD: PLIST,v 1.25 2018/07/14 13:47:32 adam Exp $ bin/${PKGNAME} -bin/igawk +bin/gawk gnu/bin/awk gnu/man/man1/awk.1 include/gawkapi.h info/gawk.info info/gawkinet.info +info/gawkworkflow.info ${PLIST.extension}lib/gawk/filefuncs.la ${PLIST.extension}lib/gawk/fnmatch.la ${PLIST.extension}lib/gawk/fork.la ${PLIST.extension}lib/gawk/inplace.la +${PLIST.extension}lib/gawk/intdiv.la ${PLIST.extension}lib/gawk/ordchr.la ${PLIST.extension}lib/gawk/readdir.la ${PLIST.extension}lib/gawk/readfile.la ${PLIST.extension}lib/gawk/revoutput.la ${PLIST.extension}lib/gawk/revtwoway.la ${PLIST.extension}lib/gawk/rwarray.la -${PLIST.extension}lib/gawk/testext.la ${PLIST.extension}lib/gawk/time.la libexec/awk/grcat libexec/awk/pwcat man/man1/gawk.1 -man/man1/igawk.1 ${PLIST.extension}man/man3am/filefuncs.3am ${PLIST.extension}man/man3am/fnmatch.3am ${PLIST.extension}man/man3am/fork.3am @@ -42,7 +41,9 @@ share/awk/ftrans.awk share/awk/getopt.awk share/awk/gettime.awk share/awk/group.awk +share/awk/have_mpfr.awk share/awk/inplace.awk +share/awk/intdiv0.awk share/awk/join.awk share/awk/libintl.awk share/awk/noassign.awk @@ -70,6 +71,7 @@ share/locale/ja/LC_MESSAGES/gawk.mo share/locale/ms/LC_MESSAGES/gawk.mo share/locale/nl/LC_MESSAGES/gawk.mo share/locale/pl/LC_MESSAGES/gawk.mo +share/locale/pt_BR/LC_MESSAGES/gawk.mo share/locale/sv/LC_MESSAGES/gawk.mo share/locale/vi/LC_MESSAGES/gawk.mo share/locale/zh_CN/LC_MESSAGES/gawk.mo Index: pkgsrc/lang/gawk/distinfo diff -u pkgsrc/lang/gawk/distinfo:1.38 pkgsrc/lang/gawk/distinfo:1.39 --- pkgsrc/lang/gawk/distinfo:1.38 Sat Jan 14 01:03:39 2017 +++ pkgsrc/lang/gawk/distinfo Sat Jul 14 13:47:32 2018 @@ -1,14 +1,12 @@ -$NetBSD: distinfo,v 1.38 2017/01/14 01:03:39 ryoon Exp $ +$NetBSD: distinfo,v 1.39 2018/07/14 13:47:32 adam Exp $ -SHA1 (gawk-4.1.4.tar.xz) = d67e00e2f6178e9cbd2c0ba923ae157bc0b3b570 -RMD160 (gawk-4.1.4.tar.xz) = 7f0b1ec45c207cf365bc9b93c7e0b247e6c57186 -SHA512 (gawk-4.1.4.tar.xz) = 6a0e9cf086544212f54b54261dcd517b611aaf495ef99c4b7740d07e363bb00c5632f3d7fd5e12a954d5aa9793764162a57453e0e18884b29c6c54b5f444c097 -Size (gawk-4.1.4.tar.xz) = 2367832 bytes -SHA1 (patch-Makefile.in) = 8330ac068dcb712539465a467a42f713ee4a8a73 +SHA1 (gawk-4.2.1.tar.xz) = 71fc3595865ea6ea859587cbbb35cbf9aeb39d2d +RMD160 (gawk-4.2.1.tar.xz) = 4a7a4ddccb871626d8c3ec3019de65c47b71fb29 +SHA512 (gawk-4.2.1.tar.xz) = 0e3006a795dc3ac91359a7d2590c0cccbfd39b18a1d491617d68505c55a2800355b1439050681b4fcacf65fb0d533151a046babe0fd774503037bab363ef2ae4 +Size (gawk-4.2.1.tar.xz) = 2985412 bytes +SHA1 (patch-Makefile.in) = 2f9e8c3ca477ece817d251e22345bf2476fccd00 SHA1 (patch-awk.h) = 2292be5ec392e7fea5688fbb18012a735e43803f -SHA1 (patch-debug.c) = 40c423e2ddbb7de1eb35bb4b7b4452f8f2ebec01 -SHA1 (patch-extension_Makefile.in) = 7a03efc54d0fe54ef94fbe6f35d5145b61cb0f07 -SHA1 (patch-extension_filefuncs.c) = 212774354ab55f69ff67728470ab23b43e038093 +SHA1 (patch-extension_Makefile.in) = 3d0d904327e891169568e4e5ec927daada6e3c17 SHA1 (patch-extension_gawkfts.c) = a88ac0ed14be5133cf081bf25ab8663f0f3372a7 -SHA1 (patch-extension_inplace.c) = 3a8f5c091cfa4d6f8a8d048bd74166defbd85908 -SHA1 (patch-test_Makefile.in) = 7610407e0735f4b78b568e24717f3f103f8566d3 +SHA1 (patch-extension_inplace.c) = 84b1d8f18ed78a872cd7befa65def30b4bcb3252 +SHA1 (patch-test_Makefile.in) = 1be6ffd773bc0616adc66f357fe07c42d2727e87 Index: pkgsrc/lang/gawk/patches/patch-Makefile.in diff -u pkgsrc/lang/gawk/patches/patch-Makefile.in:1.4 pkgsrc/lang/gawk/patches/patch-Makefile.in:1.5 --- pkgsrc/lang/gawk/patches/patch-Makefile.in:1.4 Thu May 28 06:35:25 2015 +++ pkgsrc/lang/gawk/patches/patch-Makefile.in Sat Jul 14 13:47:32 2018 @@ -1,18 +1,29 @@ -$NetBSD: patch-Makefile.in,v 1.4 2015/05/28 06:35:25 wiz Exp $ +$NetBSD: patch-Makefile.in,v 1.5 2018/07/14 13:47:32 adam Exp $ -Correct locale location, use names gawk and pgawk unconditionally ---- Makefile.in.orig 2015-05-19 13:38:35.000000000 +0000 +Correct locale location, use names gawk and pgawk unconditionally. +Do not install extras. + +--- Makefile.in.orig 2018-02-25 17:06:29.000000000 +0000 +++ Makefile.in -@@ -324,7 +324,7 @@ CFLAGS = @CFLAGS@ +@@ -328,7 +328,7 @@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ --DEFS = -DDEFPATH=$(DEFPATH) -DDEFLIBPATH=$(DEFLIBPATH) -DSHLIBEXT=$(SHLIBEXT) -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR='"$(datadir)/locale"' -+DEFS = -DDEFPATH=$(DEFPATH) -DDEFLIBPATH=$(DEFLIBPATH) -DSHLIBEXT=$(SHLIBEXT) -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR='"$(prefix)/$(PKGLOCALEDIR)/locale"' +-DEFS = -DDEFPATH=$(DEFPATH) -DDEFLIBPATH=$(DEFLIBPATH) -DSHLIBEXT=$(SHLIBEXT) -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR='"$(datadir)/locale"' -I"$(srcdir)/support" ++DEFS = -DDEFPATH=$(DEFPATH) -DDEFLIBPATH=$(DEFLIBPATH) -DSHLIBEXT=$(SHLIBEXT) -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR='"$(prefix)/$(PKGLOCALEDIR)/locale"' -I"$(srcdir)/support" DEPDIR = @DEPDIR@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ -@@ -1178,9 +1178,7 @@ install-exec-hook: +@@ -484,7 +484,7 @@ EXTRA_DIST = \ + + # Build in awklib after in doc, since we want to extract + # sample files if doc/gawk.texi changed. +-SUBDIRS = support . $(am__append_1) extras doc awklib po test ++SUBDIRS = support . $(am__append_1) doc awklib po test + include_HEADERS = gawkapi.h + + # sources for both gawk and dgawk +@@ -1161,9 +1161,7 @@ install-exec-hook: (cd $(DESTDIR)$(bindir); \ name=`echo gawk | sed '$(transform)'` ; \ $(LN) $${name}$(EXEEXT) gawk-$(VERSION)$(EXEEXT) 2>/dev/null ; \ Index: pkgsrc/lang/gawk/patches/patch-extension_Makefile.in diff -u pkgsrc/lang/gawk/patches/patch-extension_Makefile.in:1.3 pkgsrc/lang/gawk/patches/patch-extension_Makefile.in:1.4 --- pkgsrc/lang/gawk/patches/patch-extension_Makefile.in:1.3 Fri May 1 02:02:40 2015 +++ pkgsrc/lang/gawk/patches/patch-extension_Makefile.in Sat Jul 14 13:47:32 2018 @@ -1,11 +1,11 @@ -$NetBSD: patch-extension_Makefile.in,v 1.3 2015/05/01 02:02:40 wen Exp $ +$NetBSD: patch-extension_Makefile.in,v 1.4 2018/07/14 13:47:32 adam Exp $ Install into a separate directory, otherwise these shadow e.g. time(3). Install *.la file for extensions, reduce PLIST divergence. ---- extension/Makefile.in.orig 2015-05-01 09:36:09.000000000 +0000 +--- extension/Makefile.in.orig 2018-02-25 17:06:54.000000000 +0000 +++ extension/Makefile.in -@@ -291,7 +291,7 @@ am__can_run_installinfo = \ +@@ -314,7 +314,7 @@ am__can_run_installinfo = \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac @@ -14,7 +14,7 @@ Install *.la file for extensions, reduce NROFF = nroff MANS = $(dist_man_MANS) RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ -@@ -1152,7 +1152,6 @@ info-am: +@@ -1236,7 +1236,6 @@ info-am: install-data-am: install-man install-pkgextensionLTLIBRARIES @$(NORMAL_INSTALL) @@ -22,10 +22,10 @@ Install *.la file for extensions, reduce install-dvi: install-dvi-recursive install-dvi-am: -@@ -1215,7 +1214,7 @@ uninstall-man: uninstall-man3 - distclean-hdr distclean-libtool distclean-tags distcleancheck \ - distdir distuninstallcheck dvi dvi-am html html-am info \ - info-am install install-am install-data install-data-am \ +@@ -1300,7 +1299,7 @@ uninstall-man: uninstall-man3 + distclean-libtool distclean-tags distcleancheck distdir \ + distuninstallcheck dvi dvi-am html html-am info info-am \ + install install-am install-data install-data-am \ - install-data-hook install-dvi install-dvi-am install-exec \ + install-dvi install-dvi-am install-exec \ install-exec-am install-html install-html-am install-info \ Index: pkgsrc/lang/gawk/patches/patch-extension_inplace.c diff -u pkgsrc/lang/gawk/patches/patch-extension_inplace.c:1.1 pkgsrc/lang/gawk/patches/patch-extension_inplace.c:1.2 --- pkgsrc/lang/gawk/patches/patch-extension_inplace.c:1.1 Thu Sep 8 16:16:15 2016 +++ pkgsrc/lang/gawk/patches/patch-extension_inplace.c Sat Jul 14 13:47:32 2018 @@ -1,8 +1,8 @@ -$NetBSD: patch-extension_inplace.c,v 1.1 2016/09/08 16:16:15 jperkin Exp $ +$NetBSD: patch-extension_inplace.c,v 1.2 2018/07/14 13:47:32 adam Exp $ Support SunOS in C99 mode. ---- extension/inplace.c.orig 2015-04-27 15:09:07.000000000 +0000 +--- extension/inplace.c.orig 2018-02-23 08:44:11.000000000 +0000 +++ extension/inplace.c @@ -27,12 +27,14 @@ #include @@ -10,7 +10,7 @@ Support SunOS in C99 mode. +#if !(defined(__sun) && (__STDC_VERSION__ - 0 >= 199901L)) #ifndef _XOPEN_SOURCE - # define _XOPEN_SOURCE + # define _XOPEN_SOURCE 1 #endif #ifndef _XOPEN_SOURCE_EXTENDED # define _XOPEN_SOURCE_EXTENDED 1 Index: pkgsrc/lang/gawk/patches/patch-test_Makefile.in diff -u pkgsrc/lang/gawk/patches/patch-test_Makefile.in:1.2 pkgsrc/lang/gawk/patches/patch-test_Makefile.in:1.3 --- pkgsrc/lang/gawk/patches/patch-test_Makefile.in:1.2 Fri Jun 6 23:24:10 2014 +++ pkgsrc/lang/gawk/patches/patch-test_Makefile.in Sat Jul 14 13:47:32 2018 @@ -1,4 +1,4 @@ -$NetBSD: patch-test_Makefile.in,v 1.2 2014/06/06 23:24:10 ryoon Exp $ +$NetBSD: patch-test_Makefile.in,v 1.3 2018/07/14 13:47:32 adam Exp $ Non portable '-f' flag for ls should be -U for unsorted pkgsrc replacement links mean -L should be used too. @@ -6,9 +6,9 @@ pkgsrc replacement links mean -L should NB on SunOS, locale/en should be installed in order to have all tests successfully execute (namely mbfw1 and mbprintf1) ---- test/Makefile.in.orig 2014-04-08 16:13:13.000000000 +0000 +--- test/Makefile.in.orig 2018-02-25 17:06:29.000000000 +0000 +++ test/Makefile.in -@@ -2249,7 +2249,7 @@ readdir: +@@ -2697,7 +2697,7 @@ readdir: fi @echo $@ @$(AWK) -f "$(srcdir)"/readdir.awk "$(top_srcdir)" > _$@ --_----------=_1531576052119580--