pkgsrc-WIP-changes archive

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

ed: Update to 1.22.5



Module Name:	pkgsrc-wip
Committed By:	Marcin Gondek <drixter%e-utp.net@localhost>
Pushed By:	drixter
Date:		Sun Jul 12 22:42:40 2026 +0200
Changeset:	4bb8045ca81e015ee26faa37598d88805ebf1aa1

Modified Files:
	Makefile
Added Files:
	ed/COMMIT_MSG
	ed/DESCR
	ed/Makefile
	ed/PLIST
	ed/distinfo

Log Message:
ed: Update to 1.22.5

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=4bb8045ca81e015ee26faa37598d88805ebf1aa1

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

diffstat:
 Makefile      |   1 +
 ed/COMMIT_MSG | 135 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 ed/DESCR      |   7 +++
 ed/Makefile   |  22 ++++++++++
 ed/PLIST      |   6 +++
 ed/distinfo   |   5 +++
 6 files changed, 176 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index 68e8f5a8d0..48278c26f2 100644
--- a/Makefile
+++ b/Makefile
@@ -840,6 +840,7 @@ SUBDIR+=	ecb
 SUBDIR+=	eciadsl-usermode
 SUBDIR+=	eclipse
 SUBDIR+=	ecrire
+SUBDIR+=	ed
 SUBDIR+=	edb-debugger
 SUBDIR+=	edb-debugger-git
 SUBDIR+=	ede21
diff --git a/ed/COMMIT_MSG b/ed/COMMIT_MSG
new file mode 100644
index 0000000000..6fcfa55991
--- /dev/null
+++ b/ed/COMMIT_MSG
@@ -0,0 +1,135 @@
+2026-02-06  Antonio Diaz Diaz  <antonio%gnu.org@localhost>
+
+	* Version 1.22.5 released.
+	* global.c (set_active_node): Use 'sizeof active_list[0]' instead of
+	  'sizeof (line_node **)'. (Reported by Mikel Olasagasti Uranga).
+	* main.c: (may_access_filename): s/Is a directory/Invalid filename/.
+	  (Reported by Douglas McIlroy).
+
+2026-01-03  Antonio Diaz Diaz  <antonio%gnu.org@localhost>
+
+	* Version 1.22.4 released.
+	* check.sh: Skip check of ISO-8859-1 names on UTF-8-only systems.
+	  (Reported by Michael Daniels and Alexander Jones).
+
+2025-11-27  Antonio Diaz Diaz  <antonio%gnu.org@localhost>
+
+	* Version 1.22.3 released.
+	* main.c: (show_help): Print "*Exit status*" for section in man page.
+	  (may_access_filename): Reject only control chars 7-13, 27, 127.
+	* main_loop.c (get_shell_command): Revert to using 'printf'.
+	  (Reported by S� Tempel).
+	* check.sh: Check non-ASCII file names coded in ISO-8859-1 and UTF-8.
+
+2025-08-18  Antonio Diaz Diaz  <antonio%gnu.org@localhost>
+
+	* Version 1.22.2 released.
+	* main.c: (may_access_filename): Reject file names with newlines.
+	  (print_filename): Rename to 'print_escaped'.
+	  (print_escaped): Always check file name for control chars.
+	* main_loop.c (get_shell_command): Use 'print_escaped'.
+
+2025-08-05  Antonio Diaz Diaz  <antonio%gnu.org@localhost>
+
+	* Version 1.22.1 released.
+	* signal.c (set_signals): Ignore SIGPIPE. ('w !:' terminated ed).
+	  (Reported by Sergei Trofimovich).
+
+2025-07-20  Antonio Diaz Diaz  <antonio%gnu.org@localhost>
+
+	* Version 1.22 released.
+	* main_loop.c (command_shell): Implement ex(1) style filter.
+	  (Suggested by Shawn Wagner, Andrew L. Moore, and John Cowan).
+	* global.c, regex.c, signal.c: Remove unused headers.
+	  (Reported by Alexander Jones).
+
+2025-03-24  Antonio Diaz Diaz  <antonio%gnu.org@localhost>
+
+	* Version 1.21.1 released.
+	* buffer.c: Remove unused <sys/file.h> and <sys/stat.h>.
+	  (Reported by Michael Mikonos and Alexander Jones).
+	* signal.c (window_lines): Read initial size from LINES.
+	  (Suggested by Artyom Bologov).
+	* Rename 'line_t' to 'line_node' and 'undo_t' to 'undo_atom'.
+
+2025-01-05  Antonio Diaz Diaz  <antonio%gnu.org@localhost>
+
+	* Version 1.21 released.
+	* io.c (read_file, write_file): Ignore exit status of shell command.
+	  Bug introduced in version 1.6. (Reported by Andrew L. Moore).
+	* ed.h: Replace enum Bool with stdbool.h to fix compilation in C23.
+	  (Reported by Alexander Jones).
+	* io.c (read_stream): Suppress 'Newline inserted/appended' with '-s'.
+	  (Reported by Artyom Bologov).
+	* ed.texi: New chapter 'Syntax of command-line arguments'.
+
+2024-04-22  Antonio Diaz Diaz  <antonio%gnu.org@localhost>
+
+	* Version 1.20.2 released.
+	* main_loop.c (command_s): Fix g/x/s/x/x, which failed to skip the
+	  final newline, printing lines twice. (Reported by Douglas McIlroy).
+
+2024-02-14  Antonio Diaz Diaz  <antonio%gnu.org@localhost>
+
+	* Version 1.20.1 released.
+	* io.c (write_file): Don't create missing intermediate directories.
+
+2024-01-19  Antonio Diaz Diaz  <antonio%gnu.org@localhost>
+
+	* Version 1.20 released.
+	* Implement options '+line', '+/RE', and '+?RE'.
+	  (Suggested by Matthew Polk and John Cowan).
+	* New option '--unsafe-names'.
+	* main.c: (may_access_filename): Reject file names ending with a slash.
+	  (print_filename): New function for file names with control chars.
+	* buffer.c (warned, set_warned): New functions.
+	* main_loop.c: Intervening cmds don't make a second 'e' or 'q' fail.
+	  (get_filename): Add tilde expansion. (Suggested by John Cowan).
+	  Warn on first modification of buffer loaded from read-only file.
+	  (Suggested by Dan Jacobson).
+	* io.c (write_file): Create missing intermediate directories.
+	* ed.texi: Improve descriptions of commands 'e', 'f', 'q'.
+	* main.c, ed.texi: Improve description of exit status.
+	* configure, Makefile.in: New variable 'MAKEINFO'.
+	* INSTALL: Document use of CFLAGS+='--std=c99 -D_POSIX_C_SOURCE=2'.
+
+2023-01-11  Antonio Diaz Diaz  <antonio%gnu.org@localhost>
+
+	* Version 1.19 released.
+	* main_loop.c (exec_command): Fix commands 'e', 'E'; they did set
+	  the 'modified' flag if file not found. (Reported by Harry Graf).
+	  (main_loop): Print script error line to stdout instead of stderr.
+	* Change long name of option '-s' to '--script'.
+	  (Suggested by Andrew L. Moore).
+	* Assign short name '-q' to options '--quiet' and '--silent'.
+	* main.c (show_strerror) Use '!quiet' to enable diagnostics.
+	* Do not process file names for backslash escapes.
+	  (Suggested by Andrew L. Moore).
+	* ed.texi: Document 0 as starting point for searches '0;/RE/'.
+	  Document how to achieve the effect of ex style '!' filtering.
+
+2022-02-04  Antonio Diaz Diaz  <antonio%gnu.org@localhost>
+
+	* Version 1.18 released.
+	* New option '--strip-trailing-cr'.
+	* main_loop.c (get_shell_command): Flush stdout after printing cmd.
+	  (Reported by S� Tempel).
+	  Remove backslash from escaped '%'. (Reported by Martin Thomsen).
+	* signal.c (sighup_handler): Fix a memory leak just before exiting.
+	* carg_parser.c (ap_init): Likewise.
+	  (Both reported by Xos��uez P�z).
+	* io.c (read_file, write_file): Check ptr returned by strip_escapes.
+	* main_loop.c (get_shell_command, exec_command): Likewise.
+	* main_loop.c, regex.c: Implement case-insensitive REs.
+	* regex.c (compile_regex): Don't overwrite previous regex if error.
+	* buffer.c (push_undo_atom): Fail if stack grows larger than INT_MAX.
+	  (too_many_lines): Fail if buffer grows larger than INT_MAX lines.
+	* global.c (set_active_node): Fail if list grows larger than INT_MAX.
+	* signal.c (resize_buffer): Fail if a line grows longer than INT_MAX.
+	* io.c (read_file): Return -2 for fatal errors.
+	* main_loop.c (main_loop): Set error status if fatal error from main.
+	* main.c [restricted_]: New message "Directory access restricted".
+	* ed.texi: New chapter "The 's' Command".
+	* COPYING: Restored. (I forgot to do it in 1.11).
+	* TODO: Removed.
+
diff --git a/ed/DESCR b/ed/DESCR
new file mode 100644
index 0000000000..5b9467f7fa
--- /dev/null
+++ b/ed/DESCR
@@ -0,0 +1,7 @@
+This is the GNU version of ed(1).
+
+ed is a line-oriented text editor.  It is used to create, display,
+modify and otherwise manipulate text files.
+
+This also includes a restricted ed, which can only edit files in the
+current directory and cannot execute shell commands.
diff --git a/ed/Makefile b/ed/Makefile
new file mode 100644
index 0000000000..9204af088d
--- /dev/null
+++ b/ed/Makefile
@@ -0,0 +1,22 @@
+# $NetBSD: Makefile,v 1.21 2022/01/21 02:27:04 wen Exp $
+
+DISTNAME=		ed-1.22.5
+CATEGORIES=		editors
+MASTER_SITES=		${MASTER_SITE_GNU:=ed/}
+EXTRACT_SUFX=		.tar.lz
+
+MAINTAINER=		drixter%e-utp.net@localhost
+HOMEPAGE=		https://www.gnu.org/software/ed/ed.html
+COMMENT=		GNU version of line-oriented text editor
+LICENSE=		gnu-gpl-v3
+
+HAS_CONFIGURE=		yes
+CONFIGURE_ARGS+=	--prefix=${PREFIX}
+CONFIGURE_ARGS+=	--mandir=${PREFIX}/${PKGMANDIR}
+CONFIGURE_ARGS+=	--infodir=${PREFIX}/${PKGINFODIR}
+USE_LANGUAGES=		c
+USE_TOOLS+=		gmake
+
+INFO_FILES=		yes
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/ed/PLIST b/ed/PLIST
new file mode 100644
index 0000000000..32022741e5
--- /dev/null
+++ b/ed/PLIST
@@ -0,0 +1,6 @@
+@comment $NetBSD$
+bin/ed
+bin/red
+info/ed.info
+man/man1/ed.1
+man/man1/red.1
diff --git a/ed/distinfo b/ed/distinfo
new file mode 100644
index 0000000000..cd47733efe
--- /dev/null
+++ b/ed/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.14 2022/01/21 02:27:04 wen Exp $
+
+BLAKE2s (ed-1.22.5.tar.lz) = 232cbcc3cf84880fb22db5ca1b40b0db33db10121e7d4686d5c2e23d935aca07
+SHA512 (ed-1.22.5.tar.lz) = 5f879be3819b6e989cdf9e415b6ad65f24275cc7a6c63f81fb849c92cd97beac088b1dfef37e9eb3f2c1a3e84ffaa553f611a1e7bdd9c1cb5646283f814637b1
+Size (ed-1.22.5.tar.lz) = 71517 bytes


Home | Main Index | Thread Index | Old Index