Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package mawk for openSUSE:Factory checked in 
at 2021-09-28 19:16:42
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/mawk (Old)
 and      /work/SRC/openSUSE:Factory/.mawk.new.1899 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "mawk"

Tue Sep 28 19:16:42 2021 rev:22 rq:921960 version:1.3.4.20200120

Changes:
--------
--- /work/SRC/openSUSE:Factory/mawk/mawk.changes        2021-02-04 
20:25:11.966929056 +0100
+++ /work/SRC/openSUSE:Factory/.mawk.new.1899/mawk.changes      2021-09-28 
19:17:37.208261029 +0200
@@ -1,0 +2,9 @@
+Thu Sep 23 14:03:54 UTC 2021 - Manfred Schwarb <[email protected]>
+
+- 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)
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ mawk.spec ++++++
--- /var/tmp/diff_new_pack.jHEn7G/_old  2021-09-28 19:17:37.636261521 +0200
+++ /var/tmp/diff_new_pack.jHEn7G/_new  2021-09-28 19:17:37.640261526 +0200
@@ -25,15 +25,12 @@
 Summary:        Implementation of New/POSIX AWK
 License:        GPL-2.0-only
 Group:          Productivity/Text/Utilities
-URL:            http://invisible-island.net/mawk/mawk.html
+URL:            https://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
 
 %description
 mawk is an interpreter for the AWK Programming Language. It implements the AWK
@@ -52,41 +49,19 @@
 # noreturn attribute and produce warnings when $RPM_OPT_FLAGS contains -Wall
 %configure \
   --enable-warnings
-make %{?_smp_mflags}
+%make_build
 
 %install
 %make_install
 
-# create symlinks for update-alternatives
-install -d -m 755 %{buildroot}%{_sysconfdir}/alternatives
-%if 0%{?usrmerged}
-ln -s %{_sysconfdir}/alternatives/awk %{buildroot}%{_bindir}/awk
-%else
+%if !0%{?usrmerged}
 # compatibility symlink
 install -d -m 755 %{buildroot}/bin
 ln -s %{_bindir}/mawk %{buildroot}/bin/mawk
-ln -s %{_sysconfdir}/alternatives/awk %{buildroot}/bin/awk
-ln -s %{_sysconfdir}/alternatives/usr-bin-awk %{buildroot}%{_bindir}/awk
 %endif
-ln -s %{_sysconfdir}/alternatives/awk.1%{?ext_man} 
%{buildroot}%{_mandir}/man1/awk.1%{?ext_man}
 
 %check
-make %{?_smp_mflags} check
-
-%post
-%{_sbindir}/update-alternatives \
-%if 0%{?usrmerged}
-  --install %{_bindir}/awk awk %{_bindir}/mawk 15 \
-%else
-  --install /bin/awk awk %{_bindir}/mawk 15 \
-  --slave %{_bindir}/awk usr-bin-awk %{_bindir}/mawk \
-%endif
-  --slave %{_mandir}/man1/awk.1.gz awk.1%{?ext_man} 
%{_mandir}/man1/mawk.1%{?ext_man}
-
-%postun
-if [ ! -f %{_bindir}/mawk ]; then
-    %{_sbindir}/update-alternatives --remove awk %{_bindir}/mawk
-fi
+%make_build check
 
 %files
 %license COPYING
@@ -94,13 +69,7 @@
 %{_bindir}/mawk
 %{_mandir}/man1/mawk.1%{?ext_man}
 %if !0%{?usrmerged}
-/bin/awk
 /bin/mawk
 %endif
-%{_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



++++++ reproducible.patch ++++++
--- /var/tmp/diff_new_pack.jHEn7G/_old  2021-09-28 19:17:37.672261563 +0200
+++ /var/tmp/diff_new_pack.jHEn7G/_new  2021-09-28 19:17:37.676261567 +0200
@@ -1,13 +1,18 @@
-Index: mawk-1.3.4-20171017/makescan.c
-===================================================================
---- mawk-1.3.4-20171017.orig/makescan.c
-+++ mawk-1.3.4-20171017/makescan.c
-@@ -83,7 +83,7 @@ scan_print(void)
+--- 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",
+-    printf("/*\n * %cMawkId%c\n * generated by makescan.c\n * date: %s */\n",
 -         '$', '$', ctime(&now));
-+         '$', '$', "Sun Jan  1 00:00:01 2017");
++    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");

Reply via email to