Peter Simons 2025-01-11 12:37:45 +00:00 committed by Git OBS Bridge
commit 7b0b21ac56
6 changed files with 542 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

BIN
ed-1.20.2.tar.xz (Stored with Git LFS) Normal file

Binary file not shown.

3
ed-1.21.tar.xz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:db73f2d0e36b8d084205ca63a23f1ad8ceb661216a76f2af3ccbeea464bcd91b
size 69928

450
ed.changes Normal file
View File

@ -0,0 +1,450 @@
-------------------------------------------------------------------
Sat Jan 11 12:19:09 UTC 2025 - Andreas Stieger <andreas.stieger@gmx.de>
- GNU ed 1.21
* 'r !command' and 'w !command' ignore again the exit status of
'command'
* The messages "Newline inserted" and "Newline appended" are now
suppressed in scripted mode (-s)
* documentation updates and portqability fixes
-------------------------------------------------------------------
Wed May 1 11:52:59 UTC 2024 - Andreas Stieger <andreas.stieger@gmx.de>
- GNU ed 1.20.2:
* Fix a bug that made global commands like 'g/x/s/x/x', with the
last delimiter omitted, print every substituted line twice
-------------------------------------------------------------------
Fri Feb 16 15:50:41 UTC 2024 - Andreas Stieger <andreas.stieger@gmx.de>
- GNU ed 1.20.1:
* New command-line options '+line', '+/RE', and '+?RE' have been
implemented to set the current line to the line number
specified or to the first or last line matching the regular
expression 'RE'.
* File names containing control characters 1 to 31 are now
rejected unless they are allowed with the command-line option
'--unsafe-names'.
* File names containing control characters 1 to 31 are now
printed using octal escape sequences.
* Ed now rejects file names ending with a slash.
* Intervening commands that don't set the modified flag no longer
make a second 'e' or 'q' command fail with a 'buffer modified'
warning.
* Tilde expansion is now performed on file names supplied to
commands; if a file name starts with '~/', the tilde (~) is
expanded to the contents of the variable HOME.
* Ed now warns the first time that a command modifies a buffer
loaded from a read-only file.
* It has been documented that 'e' creates an empty buffer if
file does not exist.
* It has been documented that 'f' sets the default filename,
whether or not its argument names an existing file.
* The description of the exit status has been improved in
'--help' and in the manual.
-------------------------------------------------------------------
Sun Jan 21 07:46:14 UTC 2024 - Andreas Stieger <andreas.stieger@gmx.de>
- update to 1.20:
* New command-line options for jumping to a line number or match
* Improved handling of file names containing control characters
* Tweak workflow for fewer 'buffer modified' warnings
* Tilde expansion is now performed on file names
* Warn on modifying a buffer from a read-only file
* Create missing intermediate directories when writing to a file
* Documentation updates
- drop obsolete makeinfo marcos
-------------------------------------------------------------------
Mon Jan 16 22:16:48 UTC 2023 - Andreas Stieger <andreas.stieger@gmx.de>
- update to 1.19:
* Reading a non-existent file with commands 'e' or 'E' did set the
'modified' flag, which prevented a following 'e' command from
succeeding
* The long name of option '-s' has been changed to '--script'.
Option '-s' now only suppresses byte counts and the '!' prompt
as mandated by POSIX. It no longer suppresses diagnostic
messages written to stderr.
* The short name '-q' has been assigned to options '--quiet' and
'--silent'. Option '-q' now only suppresses diagnostic messages
written to stderr.
* The help message showing the line where a script error happened
when ed's input is from a regular file is now printed to stdout
instead of stderr because it is enabled by the 'H' command.
* Ed no longer processes file names for backslash escapes.
* It has been documented in the manual that address 0 is valid as
a starting point for searches so that '0;/RE/' can match the
regular expression RE in the first line of the buffer.
* It has been documented in the manual how to achieve the effect
of ex style '!' filtering with a sequence of commands.
-------------------------------------------------------------------
Sun Mar 20 21:35:29 UTC 2022 - Dirk Müller <dmueller@suse.com>
- update to 1.18:
* The shell escape command (!) now flushes stdout so that the modified command
is always printed before being executed even if standard output is fully
buffered (for example, a file).
* A couple of harmless memory leaks have been fixed. (They both happened just
before ed exits).
* The pointer returned by the function 'strip_escapes' is now checked. (It may
be null if memory is exhausted).
* The shell escape command (!) now removes the backslash from each escaped '%'
character within the text of the shell command line.
* Case-insensitive regular expressions have been implemented as in GNU sed.
* Syntax errors in regular expressions, for example unmatched ( or \(, no
longer overwrite a previously compiled regular expression, preventing a
"No previous pattern" error.
* The option '--strip-trailing-cr', which removes carriage returns at end of
text lines, has been added.
* Loading a file now fails if a line is longer than INT_MAX bytes or if the
file contains more than INT_MAX lines (usually 2 Gi lines). (Instead of
overflowing line addresses).
* In interactive mode ed now sets final exit status to 1 if a fatal error
happens while reading the file passed in the command line.
* red now reports "Directory access restricted" instead of "Invalid filename"
when trying to edit a file outside of the current directory.
* The new chapter "The 's' Command" has been added to the manual.
- switch to zstd
- remove usrmerged handling
-------------------------------------------------------------------
Mon Jan 25 10:34:49 UTC 2021 - Paolo Stivanin <info@paolostivanin.com>
- Update to 1.17
* The commands 'q' and 'Q' now work in a global command.
* The new option '-E, --extended-regexp' has been added. It tells
ed to use extended regular expressions instead of the basic
regular expressions mandated by POSIX
* Print the file name in case of read or write error
-------------------------------------------------------------------
Fri Oct 16 09:46:50 UTC 2020 - Ludwig Nussel <lnussel@suse.de>
- prepare usrmerge (boo#1029961)
-------------------------------------------------------------------
Tue Mar 3 10:22:48 UTC 2020 - Paolo Stivanin <info@paolostivanin.com>
- Update to 1.16
* regex.c (line_replace): Accept 's/^/#/g' as valid.
(Reported by Bjoern Wibben).
* main_loop.c: Removed length limit of prompt string.
(Reported by Tim Chase).
* main.c: Set a valid invocation_name even if argc == 0.
* ed.texi: Extended operators depend on regex implementation.
(Reported by Brian Zwahr).
* ed.texi: Several fixes and improvements.
-------------------------------------------------------------------
Thu Jan 10 08:54:17 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- Switch back to hand provided tarball in order to avoid pulling
lzip to the Ring0
-------------------------------------------------------------------
Mon Jan 7 08:49:12 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- Use upstream released tarball
-------------------------------------------------------------------
Fri Jan 4 13:30:10 UTC 2019 - Jan Engelhardt <jengelh@inai.de>
- Avoid repetition of package name in summary.
-------------------------------------------------------------------
Thu Jan 03 16:39:11 UTC 2019 - sean@suspend.net
- Update to version 1.15:
* io.c (print_line): Make '1' command print '\\' before every
'$' within the text.
* main_loop.c (extract_addresses): Fixed address ',,' to mean
'$,$' instead of '1,$'.
* regex.c (extract_replacement): Allow newlines even if global.
* main_loop.c (exec_command): Make 'c' command reject address 0.
* ed.texi: Minor fixes.
* configure: Accept appending to CFLAGS, 'CFLAGS+=OPTIONS'.
* Switch archive format to tar.
-------------------------------------------------------------------
Sat Feb 25 07:42:57 UTC 2017 - mpluskal@suse.com
- Update to version 1.14.2:
* main.c (show_strerror) Revert to using '!scripted' instead of
'verbose' to suppress diagnostics.
* Print counts, messages, '?' and '!' to stdout instead of stderr.
* buffer.c (append_lines): Fixed current address after empty 'i'.
* regex.c (set_subst_regex): Treat missing delimiters consistently.
(extract_replacement): Don't replace 'a' with '%' in 's/a/%'.
Fixed infinite loop with EOF in the middle of a replacement.
Don't accept newlines in replacement in a global command.
Last delimiter can't be omitted if not last in command list.
(search_and_replace): Set current address to last line modified.
* main_loop.c (extract_addresses): Fixed address offsets;
'3 ---- 2' was calculated as -2 instead of 1.
Accept ranges with the first address omitted.
(exec_command): Fixed current address after empty replacement
text in 'c' command.
Don't clear the modified status after writing the buffer to a
shell command. (Reported by Jérôme Frgacic).
(get_command_suffix): Don't allow repeated print suffixes.
(command_s): Accept suffixes in any order.
Don't allow multiple count suffixes.
'sp' now toggles all print suffixes.
(main_loop): Make EOF on stdin behave as a 'q' command.
* ed.texi: Fixed the description of commands 'acegijkmqrsuw'.
Documented that ed allows any combination of print suffixes.
* testsuite: Improved most tests. Simplified bug reporting.
* configure: Avoid warning on some shells when testing for gcc.
* Makefile.in: Detect the existence of install-info.
-------------------------------------------------------------------
Sat Jan 7 13:35:45 UTC 2017 - mpluskal@suse.com
- Update to version 1.14:
* Print counts, messages, '?' and '!' to stdout instead of stderr.
* buffer.c (append_lines): Fixed current address after empty 'i'.
* regex.c (set_subst_regex): Treat missing delimiters consistently.
* (extract_replacement): Don't replace 'a' with '%' in 's/a/%'.
* Fixed infinite loop with EOF in the middle of a replacement.
* Don't accept newlines in replacement in a global command.
* Last delimiter can't be omitted if not last in command list.
* (search_and_replace): Set current address to last line modified.
* main_loop.c (extract_addresses): Fixed address offsets;
* '3 ---- 2' was calculated as -2 instead of 1.
* Accept ranges with the first address omitted.
* (exec_command): Fixed current address after empty replacement
text in 'c' command.
* Don't clear the modified status after writing the buffer to a
shell command. (Reported by Jérôme Frgacic).
* (get_command_suffix): Don't allow repeated print suffixes.
* (command_s): Accept suffixes in any order.
* Don't allow multiple count suffixes.
* 'sp' now toggles all print suffixes.
* (main_loop): Make EOF on stdin behave as a 'q' command.
* ed.texi: Fixed the description of commands 'acegijkmqrsuw'.
* Documented that ed allows any combination of print suffixes.
* testsuite: Improved most tests. Simplified bug reporting.
* configure: Avoid warning on some shells when testing for gcc.
* Makefile.in: Detect the existence of install-info.
-------------------------------------------------------------------
Fri Feb 12 17:51:01 UTC 2016 - mpluskal@suse.com
- Update to 1.13
* buffer.c (put_sbuf_line): Fixed a memory leak.
* io.c (read_file, write_file): Close file on error.
-------------------------------------------------------------------
Sat Jul 11 09:49:02 UTC 2015 - mpluskal@suse.com
- Update to 1.12
* ed.texi: Removed extra spaces from some commands.
-------------------------------------------------------------------
Fri Apr 3 06:33:35 UTC 2015 - mpluskal@suse.com
- Cleanup spec file with spec-cleaner
- Update to 1.11
* main_loop.c (exec_command): Fixed 'z' command.
(zN printed N + 1 lines).
* ed.texi: Documented the window size used by the 'z' command.
* Makefile.in: Added new targets 'install*-compress'.
* Restored original copyright notices in the code. I assigned to
the FSF the copyright on changes made to the part of ed already
copyrighted by the FSF, which seems to be just the manual.
-------------------------------------------------------------------
Fri Feb 21 08:47:45 UTC 2014 - mvyskocil@suse.com
- update to 1.10
+ "ed.texinfo" has been renamed to "ed.texi" following the advice
of recent Automake about obsolete categories
- repackage tarball to xz as lzip is unlike ed not a part of bootstrap
- drop xz and keyring, they are pointless with changed tarball
-------------------------------------------------------------------
Tue Jul 16 11:18:54 UTC 2013 - mvyskocil@suse.com
- update to 1.9
+ Testsuite no more feeds shell scripts to ed.
+ "configure" now accepts options with a separate argument.
-------------------------------------------------------------------
Mon Jun 17 12:44:22 UTC 2013 - coolo@suse.com
- revert the use gpg-offline for bootstrap packages
-------------------------------------------------------------------
Fri Apr 26 08:28:40 UTC 2013 - mvyskocil@suse.com
- update to 1.8
+ Ed now stops reading stdin when reaching real End Of File the first
time. (Before it needed to reach EOF twice).
+ Show the "Try 'ed --help' for more information." message if a bad
option is given in the command line.
+ Quote characters in messages have been changed as advised by GNU
Coding Standards.
+ The description of address offsets in the manual and a link to the
Bash manual have been fixed.
+ Displaying of null characters by the "l" command has been fixed.
+ The condition deciding when to show the message "Newline appended" has
been corrected.
+ The "modified" flag is now set when reading a non-empty file into
an empty buffer.
+ An error that prevented using NUL characters in regular expressions
has been fixed.
+ Ed now signals an error if it can't create a shell process when
executing a shell command.
+ Ed now flushes stdout/stderr before reading a new command.
+ Man page is now generated with "help2man". All command-line options
are now documented in the man page.
- use gpg-offline to verify the package tarball
- adapt the Summary and Description according current README
-------------------------------------------------------------------
Tue Mar 26 08:23:07 UTC 2013 - mmeister@suse.com
- Added url as source.
Please see http://en.opensuse.org/SourceUrls
-------------------------------------------------------------------
Tue Oct 23 14:00:30 UTC 2012 - cfarrell@suse.com
- license update: GPL-3.0+ and LGPL-2.1+
Semicolon is ambiguous
-------------------------------------------------------------------
Fri Feb 3 15:02:12 UTC 2012 - rschweikert@suse.com
- switch license to spdx format
- keep executable in /usr (UsrMerge project)
-------------------------------------------------------------------
Mon Jan 2 15:16:42 UTC 2012 - dlovasko@suse.com
- Update to 1.6 (bugfix release)
-------------------------------------------------------------------
Sun Sep 18 17:17:12 UTC 2011 - jengelh@medozas.de
- Remove redundant/obsolete tags/sections from specfile
(cf. packaging guidelines)
- Use %_smp_mflags for parallel build
-------------------------------------------------------------------
Sun Sep 19 10:31:09 CEST 2010 - vuntz@opensuse.org
- Update to version 1.5:
+ The "a", "c" and "i" commands have been fixed. (When used in a
global command list, the commands following them in the list
were ignored).
+ The "e" command has been fixed. (It quitted when invoked a
second time with a modified buffer).
+ The new option "--restricted" has been added.
+ "red" has been converted to a script invoking "ed
--restricted".
+ Description of ed in the manual has been changed.
+ Obsolete posix tests have been removed from testsuite.
- Remove AutoReqProv: it's default now.
-------------------------------------------------------------------
Mon Nov 30 12:56:22 UTC 2009 - mvyskocil@suse.cz
- updated to latest upstream version 1.4 - major rewrite and bugfixes (see
Changelog for details)
- obsoleted all patches
-------------------------------------------------------------------
Fri Oct 20 13:06:16 CEST 2006 - lrupp@suse.de
- revert to 0.2: new version is broken (#212749)
-------------------------------------------------------------------
Mon Oct 9 22:30:42 CEST 2006 - agruen@suse.de
- dash-option.diff: Fix `ed - filename' invocation.
-------------------------------------------------------------------
Mon Oct 9 17:25:42 CEST 2006 - schwab@suse.de
- Update to ed 0.3-pre2.
* The symlink vulnerability has been fixed using the "tmpfile" function.
* The manual has been updated.
* An extensive code cleanup has been done.
- Fix signal handing again.
-------------------------------------------------------------------
Wed Jan 25 21:30:09 CET 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
-------------------------------------------------------------------
Fri Oct 1 11:30:33 CEST 2004 - schwab@suse.de
- Fix signal handling
(<http://lists.gnu.org/archive/html/bug-gnu-utils/2004-09/msg00123.html>).
-------------------------------------------------------------------
Sat Sep 11 00:14:27 CEST 2004 - schwab@suse.de
- Don't use __P from glibc headers.
-------------------------------------------------------------------
Sat Jan 10 20:37:14 CET 2004 - adrian@suse.de
- add %defattr
-------------------------------------------------------------------
Thu Apr 24 12:20:23 CEST 2003 - ro@suse.de
- fix install_info --delete call and move from preun to postun
-------------------------------------------------------------------
Tue Apr 15 17:01:02 CEST 2003 - coolo@suse.de
- use BuildRoot
-------------------------------------------------------------------
Mon Mar 3 15:32:09 CET 2003 - ro@suse.de
- fixed typo in dir entry
-------------------------------------------------------------------
Mon Mar 3 12:37:44 CET 2003 - ro@suse.de
- added info dir entry
-------------------------------------------------------------------
Fri Feb 7 02:22:57 CET 2003 - ro@suse.de
- use install_info macros
-------------------------------------------------------------------
Tue Sep 17 17:34:28 CEST 2002 - ro@suse.de
- removed bogus self-provides
-------------------------------------------------------------------
Tue Dec 19 12:34:24 CET 2000 - werner@suse.de
- Close temporary file security hole
-------------------------------------------------------------------
Fri Feb 25 15:10:51 CET 2000 - kukuk@suse.de
- Use RPM_OPT_FLAGS
- Move /usr/{info,man} -> /usr/share/{info,man}
-------------------------------------------------------------------
Sat Nov 6 13:40:42 CET 1999 - bs@suse.de
- moved binary to /bin/ed and provide symlink /usr/bin/ed
-------------------------------------------------------------------
Mon Sep 13 17:23:57 CEST 1999 - bs@suse.de
- ran old prepare_spec on spec file to switch to new prepare_spec.

62
ed.spec Normal file
View File

@ -0,0 +1,62 @@
#
# spec file for package ed
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2025 Andreas Stieger <Andreas.Stieger@gmx.de>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: ed
Version: 1.21
Release: 0
Summary: A line-oriented text editor
License: GPL-3.0-or-later AND LGPL-2.1-or-later
Group: Productivity/Text/Editors
URL: https://www.gnu.org/software/ed/
# This is just recompressed from https://ftp.gnu.org/gnu/ed/ed-%%{version}.tar.lz
# in order to avoid pulling lzip to ring0
Source0: ed-%{version}.tar.xz
%description
GNU ed is a line-oriented text editor. It is used to create, display,
modify and otherwise manipulate text files, both interactively and via
shell scripts. A restricted version of ed, red, can only edit files in
the current directory and cannot execute shell commands. Ed is the
"standard" text editor in the sense that it is the original editor for
Unix, and thus widely available. For most purposes, however, it is
superseded by full-screen editors such as GNU Emacs or GNU Moe.
%prep
%autosetup -p1
%build
%configure
%make_build CFLAGS="%{optflags}"
%install
%make_install
%check
%make_build check
%files
%license COPYING
%doc AUTHORS ChangeLog NEWS README
%{_bindir}/%{name}
%{_bindir}/r%{name}
%{_infodir}/%{name}.info%{?ext_info}
%{_mandir}/man1/%{name}.1%{?ext_man}
%{_mandir}/man1/r%{name}.1%{?ext_man}
%changelog