pkgsrc-Changes archive

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

CVS commit: pkgsrc/textproc/gsed



Module Name:    pkgsrc
Committed By:   wiz
Date:           Wed May 13 06:02:27 UTC 2026

Modified Files:
        pkgsrc/textproc/gsed: Makefile PLIST distinfo
        pkgsrc/textproc/gsed/patches: patch-Makefile.in
Removed Files:
        pkgsrc/textproc/gsed/patches: patch-gnulib-tests_localename.c
            patch-gnulib-tests_vma-iter.c patch-sed_compile.c

Log Message:
gsed: update to 4.10.

* Noteworthy changes in release 4.10 (2026-04-21) [stable]

** Bug fixes

  sed 's/a/b/g' (and other global substitutions) now works on input
  lines longer than 2GB. Previously, matches beyond the 2^31 byte offset
  would evoke a "panic" (exit 4).
  [bug present since the beginning]

  'sed --follow-symlinks -i' no longer has a TOCTOU race that could let
  an attacker swap a symlink between resolution and open, causing sed to
  read attacker-chosen content and write it to the original target.
  [bug introduced in sed 4.1e]

  sed no longer falsely matches when back-references are combined with
  optional groups (.?) and the $ anchor.  For example, this no longer
  falsely matches the empty string at beginning of line:
    $ echo ab | sed -E 's/^(.?)(.?).?\2\1$/X/'
    Xab
  [bug present since "the beginning"]

  In --posix mode, sed no longer mishandles backslash escapes (\n,
  \t, \a, etc.) after a named character class like [[:alpha:]].
  For example, 's/^A\n[[:alpha:]]\n*/XXX/' would fail to match the
  trailing newline, treating \n as a literal backslash and an 'n'
  rather than a newline.  This happened when an earlier backslash
  escape in the same regex had already been converted, shifting the
  in-place normalization buffer.
  [bug introduced in sed 4.9]

  sed --debug no longer crashes when a label (":") command is compiled
  before the --debug option is processed, e.g., sed -f<(...) --debug.
  [bug introduced in sed 4.7 with --debug]

  sed no longer rejects the documented GNU extension 'a**' (equivalent
  to 'a*') in Basic Regular Expression (BRE) mode.  Previously, this
  worked only with -E (ERE mode), even though grep has always accepted
  it in BRE mode.
  [bug present since "the beginning"]

  sed no longer rejects "\c[" in regular expressions
  [bug present since the beginning]

  'sed --follow-symlinks -i' no longer mishandles an operand that is a
  short symbolic link to a long symbolic link to a file.
  [bug introduced in sed 4.9]

  Fix some some longstanding but unlikely integer overflows.
  Internally, 'sed' now more often prefers signed integer arithmetic,
  which can be checked automatically via 'gcc -fsanitize=undefined'.

** Changes in behavior

  In the default C locale, diagnostics now quote 'like this' (with
  apostrophes) instead of `like this' (with a grave accent and an
  apostrophe).  This tracks the GNU coding standards.

  'sed --posix' now warns about uses of backslashes in the 's' command
  that are handled by GNU sed but are not portable to other
  implementations.

** Build-related

  builds no longer fail on platforms without the <getopt.h> header or
  getopt_long function.
  [bug introduced in sed 4.9]


To generate a diff of this commit:
cvs rdiff -u -r1.67 -r1.68 pkgsrc/textproc/gsed/Makefile
cvs rdiff -u -r1.19 -r1.20 pkgsrc/textproc/gsed/PLIST
cvs rdiff -u -r1.36 -r1.37 pkgsrc/textproc/gsed/distinfo
cvs rdiff -u -r1.3 -r1.4 pkgsrc/textproc/gsed/patches/patch-Makefile.in
cvs rdiff -u -r1.1 -r0 \
    pkgsrc/textproc/gsed/patches/patch-gnulib-tests_localename.c \
    pkgsrc/textproc/gsed/patches/patch-gnulib-tests_vma-iter.c \
    pkgsrc/textproc/gsed/patches/patch-sed_compile.c

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

Modified files:

Index: pkgsrc/textproc/gsed/Makefile
diff -u pkgsrc/textproc/gsed/Makefile:1.67 pkgsrc/textproc/gsed/Makefile:1.68
--- pkgsrc/textproc/gsed/Makefile:1.67  Wed Mar 25 22:48:38 2026
+++ pkgsrc/textproc/gsed/Makefile       Wed May 13 06:02:26 2026
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.67 2026/03/25 22:48:38 wiz Exp $
+# $NetBSD: Makefile,v 1.68 2026/05/13 06:02:26 wiz Exp $
 
-DISTNAME=      sed-4.9
+DISTNAME=      sed-4.10
 PKGNAME=       g${DISTNAME}
-PKGREVISION=   1
 CATEGORIES=    textproc editors
 MASTER_SITES=  ${MASTER_SITE_GNU:=sed/}
 EXTRACT_SUFX=  .tar.xz
@@ -25,19 +24,11 @@ USE_TOOLS+=         grep makeinfo
 
 CONFIGURE_ARGS+=       --program-prefix=g
 
-.include "../../mk/bsd.prefs.mk"
 .include "options.mk"
 
-.if ${OPSYS} == "QNX"
-LIBS+=                 -lgetopt
-.endif
-
 post-install:
 .for g n in bin/gsed ${PKGGNUDIR}bin/sed ${PKGMANDIR}/man1/gsed.1 ${PKGGNUDIR}${PKGMANDIR}/man1/sed.1
        ${LN} -sf ${PREFIX}/${g} ${DESTDIR}${PREFIX}/${n}
 .endfor
 
-.if ${OPSYS} == "QNX"
-.include "../../devel/libgetopt/buildlink3.mk"
-.endif
 .include "../../mk/bsd.pkg.mk"

Index: pkgsrc/textproc/gsed/PLIST
diff -u pkgsrc/textproc/gsed/PLIST:1.19 pkgsrc/textproc/gsed/PLIST:1.20
--- pkgsrc/textproc/gsed/PLIST:1.19     Wed May  1 22:36:29 2024
+++ pkgsrc/textproc/gsed/PLIST  Wed May 13 06:02:26 2026
@@ -1,11 +1,13 @@
-@comment $NetBSD: PLIST,v 1.19 2024/05/01 22:36:29 cheusov Exp $
+@comment $NetBSD: PLIST,v 1.20 2026/05/13 06:02:26 wiz Exp $
 bin/gsed
 gnu/bin/sed
 gnu/man/man1/sed.1
 info/sed.info
 man/man1/gsed.1
 ${PLIST.nls}share/locale/af/LC_MESSAGES/sed.mo
+${PLIST.nls}share/locale/ar/LC_MESSAGES/sed.mo
 ${PLIST.nls}share/locale/ast/LC_MESSAGES/sed.mo
+${PLIST.nls}share/locale/be/LC_MESSAGES/sed.mo
 ${PLIST.nls}share/locale/bg/LC_MESSAGES/sed.mo
 ${PLIST.nls}share/locale/ca/LC_MESSAGES/sed.mo
 ${PLIST.nls}share/locale/cs/LC_MESSAGES/sed.mo

Index: pkgsrc/textproc/gsed/distinfo
diff -u pkgsrc/textproc/gsed/distinfo:1.36 pkgsrc/textproc/gsed/distinfo:1.37
--- pkgsrc/textproc/gsed/distinfo:1.36  Fri Apr 10 09:50:52 2026
+++ pkgsrc/textproc/gsed/distinfo       Wed May 13 06:02:26 2026
@@ -1,10 +1,7 @@
-$NetBSD: distinfo,v 1.36 2026/04/10 09:50:52 jperkin Exp $
+$NetBSD: distinfo,v 1.37 2026/05/13 06:02:26 wiz Exp $
 
-BLAKE2s (sed-4.9.tar.xz) = 106e94f33309ff895f952e9200ab27817004f10fae357ad3a6d952f44932b312
-SHA512 (sed-4.9.tar.xz) = 36157a4b4a2430cf421b7bd07f1675d680d9f1616be96cf6ad6ee74a9ec0fe695f8d0b1e1f0b008bbb33cc7fcde5e1c456359bbbc63f8aebdd4fedc3982cf6dc
-Size (sed-4.9.tar.xz) = 1397092 bytes
-SHA1 (patch-Makefile.in) = fb8766d941af00f0f66d903ee7fa4016e987cce2
-SHA1 (patch-gnulib-tests_localename.c) = 27172a2604f8545937d2f19293d1c412b4dd0b61
+BLAKE2s (sed-4.10.tar.xz) = 06aed69bebe445d569305e5d6a3259f9219117d6bd3c86e95c752d25ef59d065
+SHA512 (sed-4.10.tar.xz) = 20224df834b363ca1357024234bb93df3929c252c40c7ef3d23e78fc05177c7986e3145a5049d63db746a4dc2c97befb0324a87ea081507292ff6cd5383ee9db
+Size (sed-4.10.tar.xz) = 1732800 bytes
+SHA1 (patch-Makefile.in) = 43e496f0305756eef1c821ae47f25709eb8e65e9
 SHA1 (patch-gnulib-tests_pselect.c) = d25ce77076386804a01a0085d6619c9896ecf5d3
-SHA1 (patch-gnulib-tests_vma-iter.c) = fc021e079c623a352a2f2c98f94794c7c0ce2197
-SHA1 (patch-sed_compile.c) = 692265f5d3dacda9b54339f168e00546cb36a94d

Index: pkgsrc/textproc/gsed/patches/patch-Makefile.in
diff -u pkgsrc/textproc/gsed/patches/patch-Makefile.in:1.3 pkgsrc/textproc/gsed/patches/patch-Makefile.in:1.4
--- pkgsrc/textproc/gsed/patches/patch-Makefile.in:1.3  Wed May 10 20:40:47 2023
+++ pkgsrc/textproc/gsed/patches/patch-Makefile.in      Wed May 13 06:02:27 2026
@@ -1,10 +1,10 @@
-$NetBSD: patch-Makefile.in,v 1.3 2023/05/10 20:40:47 schmonz Exp $
+$NetBSD: patch-Makefile.in,v 1.4 2026/05/13 06:02:27 wiz Exp $
 
 Avoid circular dependency (perl5->gsed->perl5) for regular builds.
 
---- Makefile.in.orig   2022-11-06 19:19:08.000000000 +0000
+--- Makefile.in.orig   2026-04-22 01:00:54.000000000 +0000
 +++ Makefile.in
-@@ -7513,6 +7513,7 @@ sed/version.h: Makefile
+@@ -9707,6 +9707,7 @@ doc/sed.1: sed/sed$(EXEEXT) .version $(srcdir)/doc/sed
        $(AM_V_at)mv $@t $@
  
  doc/sed.1: sed/sed$(EXEEXT) .version $(srcdir)/doc/sed.x
@@ -12,11 +12,11 @@ Avoid circular dependency (perl5->gsed->
        $(AM_V_GEN)$(MKDIR_P) doc
        $(AM_V_at)rm -rf $@ $@-t
        $(AM_V_at)$(run_help2man)                                       \
-@@ -7522,6 +7523,7 @@ doc/sed.1: sed/sed$(EXEEXT) .version $(srcdir)/doc/sed
+@@ -9716,6 +9717,7 @@ doc/sed.1: sed/sed$(EXEEXT) .version $(srcdir)/doc/sed
            $(SEDBIN)                                                   \
          && chmod a-w $@-t                                             \
          && mv $@-t $@
 +.endif
  
- # automake makes `check' depend on $(TESTS).  Declare
+ # automake makes 'check' depend on $(TESTS).  Declare
  # dummy targets for $(TESTS) so that make does not complain.



Home | Main Index | Thread Index | Old Index