commit mawk for openSUSE:Factory

2020-06-12 Thread root
Hello community,

here is the log from the commit of package mawk for openSUSE:Factory checked in 
at 2020-06-12 21:39:50

Comparing /work/SRC/openSUSE:Factory/mawk (Old)
 and  /work/SRC/openSUSE:Factory/.mawk.new.3606 (New)


Package is "mawk"

Fri Jun 12 21:39:50 2020 rev:19 rq:807783 version:1.3.4.20200120

Changes:

--- /work/SRC/openSUSE:Factory/mawk/mawk.changes2018-07-13 
10:22:31.150539392 +0200
+++ /work/SRC/openSUSE:Factory/.mawk.new.3606/mawk.changes  2020-06-12 
21:41:13.499986532 +0200
@@ -1,0 +2,21 @@
+Wed May 20 08:16:30 UTC 2020 - Ismail Dönmez 
+
+- 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).
+
+---

Old:

  mawk-1.3.4-20171017.tgz
  mawk-1.3.4-20171017.tgz.asc

New:

  mawk-1.3.4-20200120.tgz
  mawk-1.3.4-20200120.tgz.asc



Other differences:
--
++ mawk.spec ++
--- /var/tmp/diff_new_pack.iBKbSU/_old  2020-06-12 21:41:15.52534 +0200
+++ /var/tmp/diff_new_pack.iBKbSU/_new  2020-06-12 21:41:15.603992545 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package mawk
 #
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
 # Copyright (c) 2010 Guido Berhoerster.
 #
 # All modifications and additions to the file contributed by third parties
@@ -13,12 +13,12 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
 %define _upver 1.3.4
-%define _datever 20171017
+%define _datever 20200120
 Name:   mawk
 Version:%{_upver}.%{_datever}
 Release:0

++ mawk-1.3.4-20171017.tgz -> mawk-1.3.4-20200120.tgz ++
 15428 lines of diff (skipped)





commit mawk for openSUSE:Factory

2018-07-13 Thread root
Hello community,

here is the log from the commit of package mawk for openSUSE:Factory checked in 
at 2018-07-13 10:21:57

Comparing /work/SRC/openSUSE:Factory/mawk (Old)
 and  /work/SRC/openSUSE:Factory/.mawk.new (New)


Package is "mawk"

Fri Jul 13 10:21:57 2018 rev:18 rq:622298 version:1.3.4.20171017

Changes:

--- /work/SRC/openSUSE:Factory/mawk/mawk.changes2017-02-03 
17:50:00.756242741 +0100
+++ /work/SRC/openSUSE:Factory/.mawk.new/mawk.changes   2018-07-13 
10:22:31.150539392 +0200
@@ -1,0 +2,49 @@
+Wed Jul 11 07:58:17 UTC 2018 - mplus...@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
+
+---

Old:

  mawk-1.3.4-20150503.tgz
  mawk-1.3.4-20150503.tgz.asc

New:

  mawk-1.3.4-20171017.tgz
  mawk-1.3.4-20171017.tgz.asc



Other differences:
--
++ mawk.spec ++
--- /var/tmp/diff_new_pack.L9DiKV/_old  2018-07-13 10:22:31.806540179 +0200
+++ /var/tmp/diff_new_pack.L9DiKV/_new  2018-07-13 10:22:31.806540179 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package mawk
 #
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
 # Copyright (c) 2010 Guido Berhoerster.
 #
 # All modifications and additions to the file contributed by third parties
@@ -18,23 +18,22 @@
 
 
 %define _upver 1.3.4
-%define _datever 20150503
+%define _datever 20171017
 Name:   mawk
 Version:%{_upver}.%{_datever}
 Release:0
 Summary:Implementation of New/POSIX AWK
-License:GPL-2.0
+License:GPL-2.0-only
 Group:  Productivity/Text/Utilities
-Url:http://invisible-island.net/mawk/mawk.html
-Source0:ftp://invisible-island.net/mawk/mawk-%{_upver}-%{_datever}.tgz
-Source1:
ftp://invisible-island.net/mawk/mawk-%{_upver}-%{_datever}.tgz.asc
+URL:http://invisible-island.net/mawk/mawk.html
+Source0:
ftp://ftp.invisible-island.net/mawk/mawk-%{_upver}-%{_datever}.tgz
+Source1:
ftp://ftp.invisible-island.net/mawk/mawk-%{_upver}-%{_datever}.tgz.asc
 Source2:%{name}.keyring
 # PATCH-FIX-OPENSUSE -- bmwiedemann -- drop timestamp / for build-compare
 Patch0: reproducible.patch
 BuildRequires:  update-alternatives
 Requires(post): update-alternatives
 Requires(preun): update-alternatives
-BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 
 %description
 mawk is an interpreter for the AWK Programming Language. It implements the AWK
@@ -82,8 +81,8 @@
 fi
 
 %files
-%defattr(-,root,root,-)
-%doc ACKNOWLEDGMENT CHANGES COPYING README 

commit mawk for openSUSE:Factory

2017-02-03 Thread root
Hello community,

here is the log from the commit of package mawk for openSUSE:Factory checked in 
at 2017-01-31 12:47:04

Comparing /work/SRC/openSUSE:Factory/mawk (Old)
 and  /work/SRC/openSUSE:Factory/.mawk.new (New)


Package is "mawk"

Changes:

--- /work/SRC/openSUSE:Factory/mawk/mawk.changes2015-11-24 
22:33:45.0 +0100
+++ /work/SRC/openSUSE:Factory/.mawk.new/mawk.changes   2017-02-03 
17:50:00.756242741 +0100
@@ -1,0 +2,5 @@
+Mon Jan 23 04:57:42 UTC 2017 - bwiedem...@suse.com
+
+- Add reproducible.patch to allow for reproducible builds
+
+---

New:

  reproducible.patch



Other differences:
--
++ mawk.spec ++
--- /var/tmp/diff_new_pack.5kNrzw/_old  2017-02-03 17:50:01.600123766 +0100
+++ /var/tmp/diff_new_pack.5kNrzw/_new  2017-02-03 17:50:01.604123202 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package mawk
 #
-# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
 # Copyright (c) 2010 Guido Berhoerster.
 #
 # All modifications and additions to the file contributed by third parties
@@ -29,6 +29,8 @@
 Source0:ftp://invisible-island.net/mawk/mawk-%{_upver}-%{_datever}.tgz
 Source1:
ftp://invisible-island.net/mawk/mawk-%{_upver}-%{_datever}.tgz.asc
 Source2:%{name}.keyring
+# PATCH-FIX-OPENSUSE -- bmwiedemann -- drop timestamp / for build-compare
+Patch0: reproducible.patch
 BuildRequires:  update-alternatives
 Requires(post): update-alternatives
 Requires(preun): update-alternatives
@@ -43,6 +45,7 @@
 
 %prep
 %setup -q -n mawk-%{_upver}-%{_datever}
+%patch0 -p1
 chmod 755 examples/*
 
 %build



++ reproducible.patch ++
Index: mawk-1.3.4-20150503/makescan.c
===
--- mawk-1.3.4-20150503.orig/makescan.c
+++ mawk-1.3.4-20150503/makescan.c
@@ -96,7 +96,7 @@ scan_print(void)
 register int r;/* row */
 
 printf("/*\n * %cMawkId%c\n * generated by makescan.c\n * date: %s */\n",
-  '$', '$', ctime());
+  '$', '$', "Sun Jan  1 00:00:01 2017");
 printf("#include \"scancode.h\"\n");
 printf("/* *INDENT-OFF* */\n");
 printf("char scan_code[256] = {\n");



commit mawk for openSUSE:Factory

2015-11-24 Thread h_root
Hello community,

here is the log from the commit of package mawk for openSUSE:Factory checked in 
at 2015-11-24 22:33:35

Comparing /work/SRC/openSUSE:Factory/mawk (Old)
 and  /work/SRC/openSUSE:Factory/.mawk.new (New)


Package is "mawk"

Changes:

--- /work/SRC/openSUSE:Factory/mawk/mawk.changes2015-04-05 
02:04:35.0 +0200
+++ /work/SRC/openSUSE:Factory/.mawk.new/mawk.changes   2015-11-24 
22:33:45.0 +0100
@@ -1,0 +2,16 @@
+Mon Nov  9 23:13:17 UTC 2015 - p.drou...@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
+
+---

Old:

  mawk-1.3.4-fix-make-check-path-handling.patch
  mawk-1.3.4-fix-regex-matching.patch
  mawk-1.3.4.tgz
  mawk-1.3.4.tgz.asc

New:

  mawk-1.3.4-20150503.tgz
  mawk-1.3.4-20150503.tgz.asc



Other differences:
--
++ mawk.spec ++
--- /var/tmp/diff_new_pack.G4aEP8/_old  2015-11-24 22:33:46.0 +0100
+++ /var/tmp/diff_new_pack.G4aEP8/_new  2015-11-24 22:33:46.0 +0100
@@ -17,20 +17,18 @@
 #
 
 
+%define _upver 1.3.4
+%define _datever 20150503
 Name:   mawk
-Version:1.3.4
+Version:%{_upver}.%{_datever}
 Release:0
 Summary:Implementation of New/POSIX AWK
 License:GPL-2.0
 Group:  Productivity/Text/Utilities
 Url:http://invisible-island.net/mawk/mawk.html
-Source0:ftp://invisible-island.net/mawk/mawk-%{version}.tgz
-Source1:ftp://invisible-island.net/mawk/mawk-%{version}.tgz.asc
+Source0:ftp://invisible-island.net/mawk/mawk-%{_upver}-%{_datever}.tgz
+Source1:
ftp://invisible-island.net/mawk/mawk-%{_upver}-%{_datever}.tgz.asc
 Source2:%{name}.keyring
-# PATCH-FIX-UPSTREAM mawk-1.3.4-fix-make-check-path-handling.patch 
g...@opensuse.org -- Modifies makefile and mawktest to use relative paths
-Patch0: mawk-1.3.4-fix-make-check-path-handling.patch
-# PATCH-FIX-UPSTREAM mawk-1.3.4-fix-regex-matching.patch bnc#740484 
g...@opensuse.org -- 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
-Patch1: mawk-1.3.4-fix-regex-matching.patch
 BuildRequires:  update-alternatives
 Requires(post): update-alternatives
 Requires(preun): update-alternatives
@@ -44,9 +42,7 @@
 provides a small number of extensions.
 
 %prep
-%setup -q
-%patch0 -p1
-%patch1 -p1
+%setup -q -n mawk-%{_upver}-%{_datever}
 chmod 755 examples/*
 
 %build





commit mawk for openSUSE:Factory

2015-04-04 Thread h_root
Hello community,

here is the log from the commit of package mawk for openSUSE:Factory checked in 
at 2015-04-05 02:04:27

Comparing /work/SRC/openSUSE:Factory/mawk (Old)
 and  /work/SRC/openSUSE:Factory/.mawk.new (New)


Package is mawk

Changes:

--- /work/SRC/openSUSE:Factory/mawk/mawk.changes2014-02-19 
14:10:10.0 +0100
+++ /work/SRC/openSUSE:Factory/.mawk.new/mawk.changes   2015-04-05 
02:04:35.0 +0200
@@ -1,0 +2,6 @@
+Sat Apr  4 16:06:58 UTC 2015 - mplus...@suse.com
+
+- Add gpg signature
+- Cleanup spec file with spec-cleaner
+
+---

New:

  mawk-1.3.4.tgz.asc
  mawk.keyring



Other differences:
--
++ mawk.spec ++
--- /var/tmp/diff_new_pack.J7cJ7P/_old  2015-04-05 02:04:36.0 +0200
+++ /var/tmp/diff_new_pack.J7cJ7P/_new  2015-04-05 02:04:36.0 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package mawk
 #
-# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
 # Copyright (c) 2010 Guido Berhoerster.
 #
 # All modifications and additions to the file contributed by third parties
@@ -18,20 +18,22 @@
 
 
 Name:   mawk
+Version:1.3.4
+Release:0
 Summary:Implementation of New/POSIX AWK
 License:GPL-2.0
 Group:  Productivity/Text/Utilities
-Version:1.3.4
-Release:0
-BuildRequires:  update-alternatives
-Requires(post): update-alternatives
-Requires(preun):update-alternatives
-Source: ftp://invisible-island.net/mawk/mawk-%{version}.tgz
+Url:http://invisible-island.net/mawk/mawk.html
+Source0:ftp://invisible-island.net/mawk/mawk-%{version}.tgz
+Source1:ftp://invisible-island.net/mawk/mawk-%{version}.tgz.asc
+Source2:%{name}.keyring
 # PATCH-FIX-UPSTREAM mawk-1.3.4-fix-make-check-path-handling.patch 
g...@opensuse.org -- Modifies makefile and mawktest to use relative paths
 Patch0: mawk-1.3.4-fix-make-check-path-handling.patch
 # PATCH-FIX-UPSTREAM mawk-1.3.4-fix-regex-matching.patch bnc#740484 
g...@opensuse.org -- 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
 Patch1: mawk-1.3.4-fix-regex-matching.patch
-Url:http://invisible-island.net/mawk/mawk.html
+BuildRequires:  update-alternatives
+Requires(post): update-alternatives
+Requires(preun): update-alternatives
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 
 %description
@@ -67,7 +69,7 @@
 ln -s %{_sysconfdir}/alternatives/awk.1%{?ext_man} 
%{buildroot}%{_mandir}/man1/awk.1%{?ext_man}
 
 %check
-make check
+make %{?_smp_mflags} check
 
 %post
 %{_sbindir}/update-alternatives \




commit mawk for openSUSE:Factory

2014-02-19 Thread h_root
Hello community,

here is the log from the commit of package mawk for openSUSE:Factory checked in 
at 2014-02-19 14:10:09

Comparing /work/SRC/openSUSE:Factory/mawk (Old)
 and  /work/SRC/openSUSE:Factory/.mawk.new (New)


Package is mawk

Changes:

--- /work/SRC/openSUSE:Factory/mawk/mawk.changes2012-05-15 
17:42:13.0 +0200
+++ /work/SRC/openSUSE:Factory/.mawk.new/mawk.changes   2014-02-19 
14:10:10.0 +0100
@@ -1,0 +2,7 @@
+Sat Feb  8 12:04:51 UTC 2014 - g...@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
+
+---



Other differences:
--
++ mawk.spec ++
--- /var/tmp/diff_new_pack.mD2vJh/_old  2014-02-19 14:10:10.0 +0100
+++ /var/tmp/diff_new_pack.mD2vJh/_new  2014-02-19 14:10:10.0 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package mawk
 #
-# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
 # Copyright (c) 2010 Guido Berhoerster.
 #
 # All modifications and additions to the file contributed by third parties
@@ -51,41 +51,46 @@
 # 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 \
---bindir=/bin
+--enable-warnings
 make %{?_smp_mflags}
 
 %install
 %make_install
 
-# move to /bin and symlink to /usr/bin
-install -d -m 755 %{buildroot}/%{_bindir}
-ln -s ../../bin/mawk %{buildroot}/%{_bindir}/mawk
-# create ghost files
-touch %{buildroot}/bin/awk %{buildroot}%{_bindir}/awk \
-%{buildroot}%{_mandir}/man1/awk.1.gz
+# compatibility symlink
+install -d -m 755 %{buildroot}/bin
+ln -s %{_bindir}/mawk %{buildroot}/bin/mawk
+# create symlinks for update-alternatives
+install -d -m 755 %{buildroot}%{_sysconfdir}/alternatives
+ln -s %{_sysconfdir}/alternatives/awk %{buildroot}/bin/awk
+ln -s %{_sysconfdir}/alternatives/usr-bin-awk %{buildroot}%{_bindir}/awk
+ln -s %{_sysconfdir}/alternatives/awk.1%{?ext_man} 
%{buildroot}%{_mandir}/man1/awk.1%{?ext_man}
 
 %check
 make check
 
 %post
-/usr/sbin/update-alternatives --install /bin/awk awk /bin/mawk 15 \
-  --slave /usr/bin/awk usr-bin-awk /bin/mawk \
-  --slave %{_mandir}/man1/awk.1.gz awk.1.gz %{_mandir}/man1/mawk.1.gz
+%{_sbindir}/update-alternatives \
+  --install /bin/awk awk %{_bindir}/mawk 15 \
+  --slave %{_bindir}/awk usr-bin-awk %{_bindir}/mawk \
+  --slave %{_mandir}/man1/awk.1.gz awk.1%{?ext_man} 
%{_mandir}/man1/mawk.1%{?ext_man}
 
 %preun
 if [ $1 -eq 0 ]; then
-/usr/sbin/update-alternatives --remove awk /bin/mawk
+%{_sbindir}/update-alternatives --remove awk %{_bindir}/mawk
 fi
 
 %files
 %defattr(-,root,root,-)
 %doc ACKNOWLEDGMENT CHANGES COPYING README examples/
-%doc %{_mandir}/man1/mawk.1*
-%ghost /bin/awk
-%ghost %{_bindir}/awk
-%ghost %{_mandir}/man1/awk.1.gz
-%{_bindir}/mawk
 /bin/mawk
+%{_bindir}/mawk
+%{_mandir}/man1/mawk.1%{?ext_man}
+/bin/awk
+%{_bindir}/awk
+%{_mandir}/man1/awk.1%{?ext_man}
+%ghost %{_sysconfdir}/alternatives/awk
+%ghost %{_sysconfdir}/alternatives/usr-bin-awk
+%ghost %{_sysconfdir}/alternatives/awk.1%{?ext_man}
 
 %changelog

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit mawk for openSUSE:Factory

2012-05-15 Thread h_root
Hello community,

here is the log from the commit of package mawk for openSUSE:Factory checked in 
at 2012-05-15 17:42:11

Comparing /work/SRC/openSUSE:Factory/mawk (Old)
 and  /work/SRC/openSUSE:Factory/.mawk.new (New)


Package is mawk, Maintainer is f...@suse.com

Changes:

--- /work/SRC/openSUSE:Factory/mawk/mawk.changes2012-01-10 
14:51:10.0 +0100
+++ /work/SRC/openSUSE:Factory/.mawk.new/mawk.changes   2012-05-15 
17:42:13.0 +0200
@@ -1,0 +2,7 @@
+Tue May 15 08:43:19 UTC 2012 - g...@opensuse.org
+
+- package COPYING
+- simplify installation
+- make example scripts executable
+
+---



Other differences:
--
++ mawk.spec ++
--- /var/tmp/diff_new_pack.54b96u/_old  2012-05-15 17:42:14.0 +0200
+++ /var/tmp/diff_new_pack.54b96u/_new  2012-05-15 17:42:14.0 +0200
@@ -16,6 +16,7 @@
 # Please submit bugfixes or comments via http://bugs.opensuse.org/
 #
 
+
 Name:   mawk
 Summary:Implementation of New/POSIX AWK
 License:GPL-2.0
@@ -44,22 +45,25 @@
 %setup -q
 %patch0 -p1
 %patch1 -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
+%configure \
+--enable-warnings \
+--bindir=/bin
 make %{?_smp_mflags}
 
 %install
 %make_install
+
 # move to /bin and symlink to /usr/bin
-%__mkdir_p $RPM_BUILD_ROOT/bin
-%__mv $RPM_BUILD_ROOT/usr/bin/mawk $RPM_BUILD_ROOT/bin
-%__ln_s ../../bin/mawk $RPM_BUILD_ROOT/usr/bin/mawk
+install -d -m 755 %{buildroot}/%{_bindir}
+ln -s ../../bin/mawk %{buildroot}/%{_bindir}/mawk
 # create ghost files
-touch $RPM_BUILD_ROOT/bin/awk $RPM_BUILD_ROOT/usr/bin/awk \
-$RPM_BUILD_ROOT/%{_mandir}/man1/awk.1.gz
+touch %{buildroot}/bin/awk %{buildroot}%{_bindir}/awk \
+%{buildroot}%{_mandir}/man1/awk.1.gz
 
 %check
 make check
@@ -76,12 +80,12 @@
 
 %files
 %defattr(-,root,root,-)
-%doc CHANGES README ACKNOWLEDGMENT examples/
+%doc ACKNOWLEDGMENT CHANGES COPYING README examples/
 %doc %{_mandir}/man1/mawk.1*
 %ghost /bin/awk
 %ghost %{_bindir}/awk
 %ghost %{_mandir}/man1/awk.1.gz
-/usr/bin/mawk
+%{_bindir}/mawk
 /bin/mawk
 
 %changelog

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit mawk for openSUSE:Factory

2012-01-10 Thread h_root
Hello community,

here is the log from the commit of package mawk for openSUSE:Factory checked in 
at 2012-01-10 14:51:07

Comparing /work/SRC/openSUSE:Factory/mawk (Old)
 and  /work/SRC/openSUSE:Factory/.mawk.new (New)


Package is mawk, Maintainer is f...@suse.com

Changes:

--- /work/SRC/openSUSE:Factory/mawk/mawk.changes2011-09-23 
02:12:49.0 +0200
+++ /work/SRC/openSUSE:Factory/.mawk.new/mawk.changes   2012-01-10 
14:51:10.0 +0100
@@ -1,0 +2,10 @@
+Tue Jan 10 10:00:25 UTC 2012 - g...@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
+
+---

New:

  mawk-1.3.4-fix-regex-matching.patch



Other differences:
--
++ mawk.spec ++
--- /var/tmp/diff_new_pack.0mxkV6/_old  2012-01-10 14:51:13.0 +0100
+++ /var/tmp/diff_new_pack.0mxkV6/_new  2012-01-10 14:51:13.0 +0100
@@ -1,7 +1,7 @@
 #
-# spec file for package mawk (Version 1.3.4)
+# spec file for package mawk
 #
-# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
 # Copyright (c) 2010 Guido Berhoerster.
 #
 # All modifications and additions to the file contributed by third parties
@@ -16,20 +16,20 @@
 # Please submit bugfixes or comments via http://bugs.opensuse.org/
 #
 
-
-
 Name:   mawk
 Summary:Implementation of New/POSIX AWK
-Version:1.3.4
-Release:1
 License:GPL-2.0
 Group:  Productivity/Text/Utilities
+Version:1.3.4
+Release:0
 BuildRequires:  update-alternatives
-AutoReqProv:on
 Requires(post): update-alternatives
 Requires(preun):update-alternatives
 Source: ftp://invisible-island.net/mawk/mawk-%{version}.tgz
+# PATCH-FIX-UPSTREAM mawk-1.3.4-fix-make-check-path-handling.patch 
g...@opensuse.org -- Modifies makefile and mawktest to use relative paths
 Patch0: mawk-1.3.4-fix-make-check-path-handling.patch
+# PATCH-FIX-UPSTREAM mawk-1.3.4-fix-regex-matching.patch bnc#740484 
g...@opensuse.org -- 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
+Patch1: mawk-1.3.4-fix-regex-matching.patch
 Url:http://invisible-island.net/mawk/mawk.html
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 
@@ -40,16 +40,10 @@
 POSIX 1003.2 (draft 11.3) definition of the AWK language and additionally
 provides a small number of extensions.
 
-
-Authors:
-
-Thomas E. Dickey dic...@invisible-island.net
-Mike Brennan
-
-
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
 
 %build
 # without --enable-warnings several functions will not be marked with gcc's
@@ -67,9 +61,6 @@
 touch $RPM_BUILD_ROOT/bin/awk $RPM_BUILD_ROOT/usr/bin/awk \
 $RPM_BUILD_ROOT/%{_mandir}/man1/awk.1.gz
 
-%clean
-rm -rf $RPM_BUILD_ROOT
-
 %check
 make check
 
@@ -87,11 +78,9 @@
 %defattr(-,root,root,-)
 %doc CHANGES README ACKNOWLEDGMENT examples/
 %doc %{_mandir}/man1/mawk.1*
-%if %{suse_version} = 1120
 %ghost /bin/awk
 %ghost %{_bindir}/awk
 %ghost %{_mandir}/man1/awk.1.gz
-%endif
 /usr/bin/mawk
 /bin/mawk
 

++ mawk-1.3.4-fix-regex-matching.patch ++
diff -urNp mawk-1.3.4.orig/files.c mawk-1.3.4/files.c
--- mawk-1.3.4.orig/files.c 2009-12-17 01:06:51.0 +0100
+++ mawk-1.3.4/files.c  2012-01-09 22:07:45.667127645 +0100
@@ -506,7 +506,7 @@ remove_from_child_list(int pid)
 int
 wait_for(int pid)
 {
-int exit_status;
+int exit_status = 0;
 struct child *p;
 int id;
 
diff -urNp mawk-1.3.4.orig/fin.c mawk-1.3.4/fin.c
--- mawk-1.3.4.orig/fin.c   2009-12-17 01:06:57.0 +0100
+++ mawk-1.3.4/fin.c2012-01-09 22:07:45.667127645 +0100
@@ -317,7 +317,7 @@ FINgets(FIN * fin, unsigned *len_p)
unsigned rr;
unsigned amount = (unsigned) (fin-limit - p);
 
-   p = (char *) memcpy(fin-buff, p, r = (unsigned) (fin-limit - p));
+   p = (char *) memmove(fin-buff, p, r = (unsigned) (fin-limit - p));
q = p + r;
rr = fin-nbuffs * BUFFSZ - r;
 
diff -urNp mawk-1.3.4.orig/rexp3.c mawk-1.3.4/rexp3.c
--- mawk-1.3.4.orig/rexp3.c 2009-12-15 02:50:07.0 +0100
+++ mawk-1.3.4/rexp3.c  2012-01-09 22:07:45.668127668 +0100
@@ -149,7 +149,10 @@ REmatch(char *str, /* string to test */
goto reswitch;
 
 case M_STR + U_ON + END_OFF:
-   if (!(s = str_str(s, str_len, m-s_data.str, m-s_len))) {
+   if (s =