head 1.5; access; symbols pkgsrc-2013Q2:1.5.0.10 pkgsrc-2013Q2-base:1.5 pkgsrc-2012Q4:1.5.0.8 pkgsrc-2012Q4-base:1.5 pkgsrc-2011Q4:1.5.0.6 pkgsrc-2011Q4-base:1.5 pkgsrc-2011Q2:1.5.0.4 pkgsrc-2011Q2-base:1.5 pkgsrc-2009Q4:1.5.0.2 pkgsrc-2009Q4-base:1.5 pkgsrc-2009Q2:1.4.0.18 pkgsrc-2009Q2-base:1.4 pkgsrc-2009Q1:1.4.0.16 pkgsrc-2009Q1-base:1.4 pkgsrc-2008Q4:1.4.0.14 pkgsrc-2008Q4-base:1.4 pkgsrc-2008Q3:1.4.0.12 pkgsrc-2008Q3-base:1.4 cube-native-xorg:1.4.0.10 cube-native-xorg-base:1.4 pkgsrc-2008Q2:1.4.0.8 pkgsrc-2008Q2-base:1.4 cwrapper:1.4.0.6 pkgsrc-2008Q1:1.4.0.4 pkgsrc-2008Q1-base:1.4 pkgsrc-2007Q4:1.4.0.2 pkgsrc-2007Q4-base:1.4 pkgsrc-2007Q3:1.3.0.6 pkgsrc-2007Q3-base:1.3 pkgsrc-2007Q2:1.3.0.4 pkgsrc-2007Q2-base:1.3 pkgsrc-2007Q1:1.3.0.2 pkgsrc-2007Q1-base:1.3 pkgsrc-2006Q4:1.2.0.6 pkgsrc-2006Q4-base:1.2 pkgsrc-2006Q3:1.2.0.4 pkgsrc-2006Q3-base:1.2 pkgsrc-2006Q2:1.2.0.2 pkgsrc-2006Q2-base:1.2 pkgsrc-2006Q1:1.1.0.18 pkgsrc-2006Q1-base:1.1 pkgsrc-2005Q4:1.1.0.16 pkgsrc-2005Q4-base:1.1 pkgsrc-2005Q3:1.1.0.14 pkgsrc-2005Q3-base:1.1 pkgsrc-2005Q2:1.1.0.12 pkgsrc-2005Q2-base:1.1 pkgsrc-2005Q1:1.1.0.10 pkgsrc-2005Q1-base:1.1 pkgsrc-2004Q4:1.1.0.8 pkgsrc-2004Q4-base:1.1 pkgsrc-2004Q3:1.1.0.6 pkgsrc-2004Q3-base:1.1 pkgsrc-2004Q2:1.1.0.4 pkgsrc-2004Q2-base:1.1 pkgsrc-2004Q1:1.1.0.2 pkgsrc-2004Q1-base:1.1; locks; strict; comment @# @; 1.5 date 2009.08.08.21.26.49; author wiz; state dead; branches; next 1.4; 1.4 date 2007.12.19.00.11.26; author rillig; state Exp; branches; next 1.3; 1.3 date 2007.03.08.18.53.58; author wiz; state Exp; branches; next 1.2; 1.2 date 2006.04.07.16.59.00; author jlam; state dead; branches; next 1.1; 1.1 date 2004.02.10.08.54.14; author grant; state Exp; branches; next ; desc @@ 1.5 log @Update to 4.2: * now released under GPLv3 * added a new extension `z` to clear pattern space even in the presence of invalid multibyte sequences * a preexisting GNU gettext installation is needed in order to compile GNU sed with NLS support * new option --follow-symlinks, available when editing a file in-place. This option may not be available on some systems (in this case, the option will *not* be a no-op; it will be completely unavailable). In the future, the option may be added as a no-op on systems without symbolic links at all, since in this case a no-op is effectively indistinguishable from a correct implementation. * hold-space is reset between different files in -i and -s modes. * multibyte processing fixed * the following GNU extensions are turned off by --posix: options [iImMsSxX] in the `s' command, address kinds `FIRST~STEP' and `ADDR1,+N' and `ADDR1,~N', line address 0, `e' or `z' commands, text between an `a' or `c' or `i' command and the following backslash, arguments to the `l' command. --posix disables all extensions to regular expressions. * fixed bug in 'i\' giving a segmentation violation if given alone. * much improved portability * much faster in UTF-8 locales * will correctly replace ACLs when using -i * will now accept NUL bytes for `.' @ text @$NetBSD: patch-ae,v 1.4 2007/12/19 00:11:26 rillig Exp $ --- lib/regex_internal.h.orig 2005-12-06 09:50:56.000000000 +0100 +++ lib/regex_internal.h 2007-12-19 01:00:04.578459000 +0100 @@@@ -41,6 +41,10 @@@@ #endif /* HAVE_WCTYPE_H || _LIBC */ #if defined HAVE_STDBOOL_H || defined _LIBC # include +#elif defined HAVE__BOOL +# define bool _Bool +# define false 0 +# define true 1 #endif /* HAVE_STDBOOL_H || _LIBC */ #if defined _LIBC # include @@@@ -410,7 +414,10 @@@@ static unsigned int re_string_context_at #define re_string_skip_bytes(pstr,idx) ((pstr)->cur_idx += (idx)) #define re_string_set_index(pstr,idx) ((pstr)->cur_idx = (idx)) -#include +#if defined(__sun) +# include +#endif +#include #ifndef _LIBC # if HAVE_ALLOCA @ 1.4 log @Fixed the build on Solaris with the Sun C compiler. Like many other pieces of GNU software, this package makes use of GCC extensions. Another thing is that on Solaris, may only be included by the c99 compiler, not any other; therefore we need to define our boolean type ourself. @ text @d1 1 a1 1 $NetBSD: patch-ae,v 1.3 2007/03/08 18:53:58 wiz Exp $ @ 1.3 log @Update to 4.1.5: Sed 4.1.5 * fix parsing of a negative character class not including a closed bracket, like [^]] or [^]a-z]. * fix parsing of [ inside an y command, like y/[/A/. * output the result of commands a, r, R when a q command is found. ---------------------------------------------------------------------------- Sed 4.1.4 * \B correctly means "not on a word boundary" rather than "inside a word" * bugfixes for platform without internationalization * more thorough testing framework for tarballs (`make full-distcheck') ---------------------------------------------------------------------------- Sed 4.1.3 * regex addresses do not use leftmost-longest matching. In other words, /.\+/ only looks for a single character, and does not try to find as many of them as possible like it used to do. * added a note to BUGS and the manual about changed interpretation of `s|abc\|def||', and about localization issues. * fixed --disable-nls build problems on Solaris. * fixed `make check' in non-English locales. * `make check' tests the regex library by default if the included regex is used (regex tests had to be enabled separately up to now). ---------------------------------------------------------------------------- Sed 4.1.2 * fix bug in 'y' command in multi-byte character sets * fix severe bug in parsing of ranges with an embedded open bracket * fix off-by-one error when printing a "bad command" error @ text @d1 1 a1 1 $NetBSD$ d3 14 a16 3 --- lib/regex_internal.h.orig 2005-12-06 08:50:56.000000000 +0000 +++ lib/regex_internal.h @@@@ -410,7 +410,7 @@@@ static unsigned int re_string_context_at d21 3 @ 1.2 log @Remove patch made unnecessary by makeinfo replacement script. @ text @d1 1 a1 1 $NetBSD: patch-ae,v 1.1 2004/02/10 08:54:14 grant Exp $ d3 5 a7 9 --- doc/Makefile.in.orig 2004-01-10 06:07:10.000000000 +1100 +++ doc/Makefile.in @@@@ -252,7 +252,7 @@@@ $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(srcdir) && \ $$restore $$backupdir/* `echo "./$@@" | sed 's|[^/]*$$||'`; \ fi; \ - rm -rf $$backupdir; \ + rm -rf $$backupdir; exit $$rc d9 5 a13 1 .texi.dvi: @ 1.1 log @remove a rogue trailing /, fixes build problem reported by Alex Gontcharov on tech-pkg. fix from Charlie Allom. @ text @d1 1 a1 1 $NetBSD$ @