- Update to version 1.3.4-20240622:

* Various bugfixes and code improvements
  * See provided CHANGES for a detailed list of changes

OBS-URL: https://build.opensuse.org/package/show/Base:System/mawk?expand=0&rev=33
This commit is contained in:
Marcus Meissner 2024-07-20 18:05:15 +00:00 committed by Git OBS Bridge
commit 3bc2de1bc9
10 changed files with 376 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

3
mawk-1.3.4-20230525.tgz Normal file
View File

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

View File

@ -0,0 +1,15 @@
-----BEGIN PGP SIGNATURE-----
Comment: See https://invisible-island.net/public/public.html for info
iQGzBAABCgAdFiEEGYgtkt2kxADCLA1WzCr0RyFnvgMFAmRwa5wACgkQzCr0RyFn
vgNgWAwAqOArtOHmp5dnGGsXPJK1XqGYjFUbbx50DQmx1F33s64S9HsKLGhbLeYm
ORiXxGl22uYOZUqXgys/CR/TJ+hGwtWHlTeaTJUWzGXrkb8C2XVbcjnegp+L9cz+
a10DT8sxczSPGvAAwWU2aljXjf/skQes8jUbSB7lP4J+fU+ypPGk/mz2CB7r+7i9
yhwEBxBOGFOQAPFG6hWH9G0lJxG9LgAe2z8uoxwcEgd36OWLQa19eT2ZpiMH15lp
MHCjVvPIVDvIGEgaWAyq9qILVi7AvXkcQvOfDkDBlcnPUNwHu2vr57d6EJ8G3Bz5
OB5oRlEoI91+VOHD1j0gPWQ6wWhg06OWzEWjbfyGFJ0AF8Cn+qt3v3oPaN6kil4G
5BmprM/DTh8wYYcY7kxgT8ld5IgyadiQOIbXaN3/W+eWY6QXZwI6yQj92ypuy+6k
PAMWDEcdrQoXwsBUDcgiuT2CkqRdJJzhgxi8W1ozjWmBloZ6yfmsc+xKR2L0yHXw
5PMWC827
=0xj3
-----END PGP SIGNATURE-----

3
mawk-1.3.4-20240622.tgz Normal file
View File

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

View File

@ -0,0 +1,15 @@
-----BEGIN PGP SIGNATURE-----
Comment: See https://invisible-island.net/public/public.html for info
iQGzBAABCgAdFiEEGYgtkt2kxADCLA1WzCr0RyFnvgMFAmZ3OiMACgkQzCr0RyFn
vgNS8Av+Ib0lWuDI9u5VhzLk9FmIIckGOGlg6Ls8yNlvA0l/QMBr2/b5Nft/gnSj
xoAqJxgAJ0OHVLnJRcODGX7qqisYIba7VEeM4jy0qEMn17qqn0+iRa6z3M3KpRd9
7OExKPjsbS2/OBPlv2H9Rot0UvjFQEN54w5TVPMiMuT9pTT/NCAuHCJs4bPP4J8d
SKhMZc2nyBtBxChe3swJ7rN9skqeK1eDeLmEt9FyGAF+JKhMEWaJsw6JmXC6kigE
0MWAm0KiZzKLhv8e2o6LMfPTCr5stn2gO2JonPfzudrCo+suty+BB8sWOhQmv4xe
HSdC20SwU2XYguMR+/0+ogCgFUzM2gCek2QkJeUfFJDIiYI0/0K23E1xyME+A+bZ
/DiWIuMYZHzyVi/rzKO79kDXTCWn7tFW8E0bSs0+eezeuwIGPnybZvndT0Bfub0F
tCdprgUvybRGVan7js1YXt5hTMnrVmzPiQTMI0Oqg/xxIwgCeQa2qCmsXsXZg6zQ
zL0h6x9T
=7ZF9
-----END PGP SIGNATURE-----

191
mawk.changes Normal file
View File

@ -0,0 +1,191 @@
-------------------------------------------------------------------
Thu Jul 18 12:43:58 UTC 2024 - Fabian Vogt <fvogt@suse.com>
- Update to version 1.3.4-20240622:
* Various bugfixes and code improvements
* See provided CHANGES for a detailed list of changes
-------------------------------------------------------------------
Thu Jun 22 11:37:35 UTC 2023 - Martin Pluskal <mpluskal@suse.com>
- Update to version 1.3.4-20230525:
* see provided CHANGES for detailed list of changes
- Refresh source urls and gpg keyring
-------------------------------------------------------------------
Tue Dec 27 13:10:01 UTC 2022 - Ludwig Nussel <lnussel@suse.com>
- Replace transitional %usrmerged macro with regular version check (boo#1206798)
-------------------------------------------------------------------
Thu Sep 23 14:03:54 UTC 2021 - Manfred Schwarb <manfred99@gmx.ch>
- remove update-alternatives support, as on linux systems GNU software
(i.e. gawk in this case) is usually considered the default implementation.
- use %make macros
- modify patch reproducible.patch to use __DATE__ and __TIME__, as
these macros are reproducible now (SOURCE_DATE_EPOCH support since GCC 7)
-------------------------------------------------------------------
Thu Feb 4 10:41:36 UTC 2021 - Ludwig Nussel <lnussel@suse.de>
- fix update-alternatives usage. Needs to be in %postun according to
https://en.opensuse.org/openSUSE:Packaging_Multiple_Version_guidelines#update-alternatives_mechanism
-------------------------------------------------------------------
Wed Dec 16 08:19:25 UTC 2020 - Ludwig Nussel <lnussel@suse.de>
- prepare usrmerge (boo#1029961)
-------------------------------------------------------------------
Wed May 20 08:16:30 UTC 2020 - Ismail Dönmez <idonmez@suse.com>
- Update to version 1.3.4-20200120
* fix typos found with codespell.
* when reading input in interactive mode, provide for extending the
buffer size for very long lines (Original-Mawk #59).
* correct line-number shown in too-many-arguments error message for
the case where the function is a forward reference (report by "mukti").
* fix install for manpage when configure --srcdir option is used
(report by Rajeev V Pillai).
* use both CFLAGS/LDFLAGS when linking in makefile (report by Rajeev V Pillai).
* fix clang-9 warning in bi_funct.c (report by Rajeev V Pillai).
* minor improvement to gcc warning options, from vile
* improve manpage formatting, e.g., for man2html
* improve debug-traces
* eliminate non-portable tdestroy() from zmalloc no-leaks code.
* revert a change for memory-leaks which made the forced-exit via a
user function inconsistent with earlier versions (report by Sihera Andre).
* amend a change for memory-leaks to avoid a double-free (Original-Mawk #56).
-------------------------------------------------------------------
Wed Jul 11 07:58:17 UTC 2018 - mpluskal@suse.com
- Update to version 1.3.4-20171017:
* add Debian compile/link flags to test-package.
* cleanup spurious warnings from latest gcc.
* changes for Original-Mawk #48:
+ add checks for stack overflow and underflow
+ increase stack limit to 1024
* updated configure macros
* update config.guess and config.sub
* add runtime check for assignments to OFMT and CONVFMT to ensure
they use a single parameter (Original-Mawk #47).
* repair build for --with-valgrind, broken in 20160930 const-fixes.
* correct sign-extension from 20160615 change to rand() (report by
Christian Neukirchen).
* allow single-quote as a flag in printf, to complete the change
for LC_NUMERIC in 20121129 (report by Graham Monteith).
* revert one of the fixes made for a Coverity warning about loss of
precision in 20121209, which unnecessarily exposed a different
problem (Original-Mawk #45).
* simplify "system()" function by calling C "system()" function, and
use POSIX macros for wait-status to provide a less-ambiguous return
value (suggested by Aharon Robbins).
* add a null-pointer check in bi_mktime (patch by Ismael Luceno).
* escape '/' in range for test/reg4.awk to allow test-comparison with
gawk and BWK.
* updated configure macros, e.g., for compiler warnings and static
analysis:
+ CF_CC_ENV_FLAGS
+ CF_GNU_SOURCE
+ CF_PROG_LINT
+ CF_RAND
+ CF_XOPEN_SOURCE
* minor build-fix for HPUX 11.11 "make", which is confused by the
recursive use of "make" in clean/distclean rules.
* amend fix for Gentoo #424137 to eliminate a memory leak when opening
files (Original-Mawk #44).
* update config.guess and config.sub
* correct range when using system rand() function, which was 0..2
rather than 0..1 on BSD systems (report/patch by Masaki Waga).
* correct order of checks for machine state in REtest which caused an
out-of-bounds reference (Original-Mawk #36).
* update COPYING from
https://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
(Original-Mawk #38).
* minor updates to configure script macros
* update config.guess and config.sub
-------------------------------------------------------------------
Mon Jan 23 04:57:42 UTC 2017 - bwiedemann@suse.com
- Add reproducible.patch to allow for reproducible builds
-------------------------------------------------------------------
Mon Nov 9 23:13:17 UTC 2015 - p.drouand@gmail.com
- Update to version 1.3.4-20150503
* add --with-man2html configure option
* improve description of -W options and how they can be combined into
a comma-separated list (adapted from Leif LeBaron).
* modify parsing for -Wexec to permit its value to be separated by '='
in addition to a space, for consistency with the other -W options.
* cosmetic changes to configure script macros, from work on xterm.
* update config.guess and config.sub
For previous changes, please read the CHANGES file
- Remove patches; fixed on upstream release
* mawk-1.3.4-fix-make-check-path-handling.patch
* mawk-1.3.4-fix-regex-matching.patch
-------------------------------------------------------------------
Sat Apr 4 16:06:58 UTC 2015 - mpluskal@suse.com
- Add gpg signature
- Cleanup spec file with spec-cleaner
-------------------------------------------------------------------
Sat Feb 8 12:04:51 UTC 2014 - gber@opensuse.org
- adjust update-alternative usage to packaging policy
(see http://lists.opensuse.org/opensuse-packaging/2014-02/msg00024.html)
- move mawk to /usr/bin and add symlink in /bin
-------------------------------------------------------------------
Tue May 15 08:43:19 UTC 2012 - gber@opensuse.org
- package COPYING
- simplify installation
- make example scripts executable
-------------------------------------------------------------------
Tue Jan 10 10:00:25 UTC 2012 - gber@opensuse.org
- added mawk-1.3.4-fix-regex-matching.patch which adds limit-check
after processing match(test, "[^0-9A-Za-z]") to ensure the
internal trailing null of the test-string is not mistaken for
part of the string (backported from development snapshot,
bnc#740484)
- specfile cleanup
-------------------------------------------------------------------
Mon Feb 22 19:13:57 UTC 2010 - guido+opensuse.org@berhoerster.name
- use update-alternatives
-------------------------------------------------------------------
Fri Feb 19 18:44:33 UTC 2010 - guido+opensuse.org@berhoerster.name
- add copyright note for integration into Factory
-------------------------------------------------------------------
Fri Feb 19 11:34:39 UTC 2010 - guido+opensuse.org@berhoerster.name
- cleaned up specfile, added explanatory comment
-------------------------------------------------------------------
Tue Feb 17 09:35:10 UTC 2010 - guido+opensuse.org@berhoerster.name
- added check section
- use external changelog
- dropped mawk-1.3.4-fix-gcc-bogus-warning.patch, passing --enable-warnings to
configure correctly marks the affected functions with GCC's noreturn
attribute (thanks to T. Dickey for clarifying)
- added patch fixing path handling issues with the make check target and
associated scripts
-------------------------------------------------------------------
Tue Dec 23 00:00:00 UTC 2009 - guido+opensuse.org@berhoerster.name
- initial packaging of mawk

42
mawk.keyring Normal file
View File

@ -0,0 +1,42 @@
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQGNBGEEhmgBDAD3TTylJvq42rjYW1ISL2bXcNDvvqOyzhacLayhgHwe90yHPRtH
6v4kyOnltv3txWmbHpqSPFKOj+hi6SYO5o0iIc81p0BCtqu6za8WoGqfvyZ/N5V/
dNkKcU3dRVBgub62ZlRMagWWBvHY8Hu6FqDHwlaQqJtckUIfbVbUDteMYOhIZ6Fb
rdT4d4n1TMIN6pqgNcs6yHSrqfZUkgWkRMVtxf+nu6X0H1ntbn/9X0UqOG/vcoMD
j5QQK8s1xItCovjy69UNRDV+bvtb9YOXTkv1tDgqPCBGidOr9oznN91S5hbUjoUu
rZNwlZsQZ7GGz5MXt2I4aL6sPyvKSj7IdVa3R2g+z8QLxvQWCN6V2FOcrziZ/EK+
Rpnaw3C7+siz+lWGxVo1CJBks+V0lviA9Sd9MLJBJoxgJSao1YLkBSE9UXTBx1Va
RU1buTg/0+2BrxEdX+9qIb4Qp/kaa33+Jw1IDauO6TQALilw2D1idkLZwlzMcfH0
Mvlvd6DVWkVZ29EAEQE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+hNwIlcR05a7f0o9loKUwq7E
67Fs4P6ZSXmoYU5wGBzsMoM8hM7UsvIDX28KRcz9n753NsIX2HtO26sJu3Z9kBj1
SFdUTV20sxbKmbF6I0etVpc7x4tc1bBPXEFKeBZph+Zu3mzxcvtlZYraOuqSZFr0
4Mx+4njIKeHklwr/GW5oaZG1JIPH0HddzPROUpwYXElCJRiEq1ObNesAEQEAAYkB
vAQYAQoAJhYhBBmILZLdpMQAwiwNVswq9EchZ74DBQJhBIZoAhsMBQkDwmcAAAoJ
EMwq9EchZ74DamgL/3ipBSBQgvLk/4A7y1mC1fntoaZwwcGJxgXsqCId8jo4jBFC
yg72nLrDEHYH9AWy1tS4xXdFw0gEAnb2pm87t+GkKoGdeyH2sgFNfMT106OgQRpk
Vmg7NoVc+qPJcmJCOU1jqSx1PvmJPM/mhTftf+KLljP8a6XhMy1IuhqonOA1HTtf
ebo+J/dZmMjCGQKoP2ib8WenI+JAdtuEIw5BUCEhosRnGuMuBbrZwq4+usdZQy70
9l0TeUQLDvKJJrycpy93HrB38Z299QmwlxAgUv3gPjiqf48JC8SqlOnbRVcZXNlb
0EnypnBxSjo+myC1sysl4sa23XN64+a/yMmDvB2VQykB2bKS1B1aVbGxMYtSctV+
+7kC3BYuFXkTkXWybbzvqPp9Nci2cugeak1qwJRZq7f0s5oJZobaSqkMIwXmY9Gj
snvWC9WYkWAfYL92TPghI8LOawz6UW2TKePrZlTRlApeOwc5M3K2ep1ScW8aJO3X
P46cd3aSov0rfNS/zg==
=cr15
-----END PGP PUBLIC KEY BLOCK-----

65
mawk.spec Normal file
View File

@ -0,0 +1,65 @@
#
# spec file for package mawk
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2010 Guido Berhoerster.
#
# 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/
#
%define _upver 1.3.4
%define _datever 20240622
Name: mawk
Version: %{_upver}.%{_datever}
Release: 0
Summary: Implementation of New/POSIX AWK
License: GPL-2.0-only
URL: https://invisible-island.net/mawk/mawk.html
Source0: https://invisible-island.net/archives/mawk/mawk-%{_upver}-%{_datever}.tgz
Source1: https://invisible-island.net/archives/mawk/mawk-%{_upver}-%{_datever}.tgz.asc
Source2: %{name}.keyring
# PATCH-FIX-OPENSUSE -- bmwiedemann -- drop timestamp / for build-compare
Patch0: reproducible.patch
%description
mawk is an interpreter for the AWK Programming Language. It implements the AWK
language as defined in Aho, Kernighan and Weinberger, The AWK Programming
Language, Addison-Wesley Publishing, 1988. Furthermore, it conforms to the
POSIX 1003.2 (draft 11.3) definition of the AWK language and additionally
provides a small number of extensions.
%prep
%autosetup -n mawk-%{_upver}-%{_datever} -p1
chmod 755 examples/*
%build
# without --enable-warnings several functions will not be marked with gcc's
# noreturn attribute and produce warnings when $RPM_OPT_FLAGS contains -Wall
%configure \
--enable-warnings
%make_build
%install
%make_install
%check
%make_build check
%files
%license COPYING
%doc ACKNOWLEDGMENT CHANGES README examples/
%{_bindir}/mawk
%{_mandir}/man1/mawk.1%{?ext_man}
%{_mandir}/man7/mawk-{arrays,code}.7%{?ext_man}
%changelog

18
reproducible.patch Normal file
View File

@ -0,0 +1,18 @@
--- mawk-1.3.4-20200120.orig/makescan.c 2016-10-01 01:58:49.000000000 +0200
+++ mawk-1.3.4-20200120/makescan.c 2021-09-23 17:14:01.205982671 +0200
@@ -77,13 +77,12 @@ scan_init(void)
static void
scan_print(void)
{
- time_t now = time((time_t *) 0);
register char *p = scan_code;
register int c; /* column */
register int r; /* row */
- printf("/*\n * %cMawkId%c\n * generated by makescan.c\n * date: %s */\n",
- '$', '$', ctime(&now));
+ printf("/*\n * %cMawkId%c\n * generated by makescan.c\n * date: %s %s */\n",
+ '$', '$', __DATE__, __TIME__);
printf("#include \"scancode.h\"\n");
printf("/* *INDENT-OFF* */\n");
printf("char scan_code[256] = {\n");