mawk/reproducible.patch
Thomas Renninger 16b2a0762b Accepting request 921254 from home:manfred999:branches:Base:System
This is Part 2/2 to remove update-alternatives support from awk.
On linux systems, GNU software is usually considered the default implementation. There are a lot of scripts assuming gawk to be the
interpreter engine, as for very long time now, gawk is the default
interpreter for SUSE/openSUSE. 
Gawk is POSIX compliant if the env variable POSIXLY_CORRECT is set,
and therefore should be able to run run all awk scripts seeking for compatibility.
This patch unconditionally removes the ability to set mawk as the default awk implementation.

OBS-URL: https://build.opensuse.org/request/show/921254
OBS-URL: https://build.opensuse.org/package/show/Base:System/mawk?expand=0&rev=28
2021-09-28 08:55:41 +00:00

19 lines
713 B
Diff

--- 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");