void-packages/srcpkgs/berkeley-abc/patches/reproducibility.patch
Đoàn Trần Công Danh c6ce65d3d0 srcpkgs/b*: convert patches to -Np1
```sh

git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" |
while read template; do
	for p in ${template%/template}/patches/*; do
		sed -i '
			\,^[+-][+-][+-] /dev/null,b
			/^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b
			s,^[*][*][*] ,&a/,
			/^--- /{
				s,\(^--- \)\(./\)*,\1a/,
				s,[.-][Oo][Rr][Ii][Gg]\([	/]\),\1,
				s/[.-][Oo][Rr][Ii][Gg]$//
				s/[.]patched[.]\([^.]\)/.\1/
				h
			}
			/^+++ -/{
				g
				s/^--- a/+++ b/
				b
			}
			s,\(^+++ \)\(./\)*,\1b/,
		' "$p"
	done
	sed -i '/^patch_args=/d' $template
done
```
2021-06-20 13:17:29 +07:00

37 lines
1.3 KiB
Diff

From: Johann Klammer <klammerj@a1.net>
Date: Sat, 4 Aug 2018 13:17:43 +0000
Subject: Remove the __TIME__ etc macros
Otherwise the debian package checking complains...
===================================================================
---
src/base/cmd/cmdUtils.c | 2 +-
src/base/main/mainUtils.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git src/base/cmd/cmdUtils.c src/base/cmd/cmdUtils.c
index 3409543..9b7223f 100644
--- a/src/base/cmd/cmdUtils.c
+++ b/src/base/cmd/cmdUtils.c
@@ -589,7 +589,7 @@ void CmdCommandPrint( Abc_Frame_t * pAbc, int fPrintAll, int fDetails )
nColumns = 79 / (LenghtMax + 2);
// print the starting message
- fprintf( pAbc->Out, " Welcome to ABC compiled on %s %s!", __DATE__, __TIME__ );
+ fprintf( pAbc->Out, " Welcome to ABC!");
// print the command by group
sGroupCur = NULL;
diff --git src/base/main/mainUtils.c src/base/main/mainUtils.c
index d1fe1d2..3668f3b 100644
--- a/src/base/main/mainUtils.c
+++ b/src/base/main/mainUtils.c
@@ -52,7 +52,7 @@ static char * DateReadFromDateString( char * datestr );
char * Abc_UtilsGetVersion( Abc_Frame_t * pAbc )
{
static char Version[1000];
- sprintf(Version, "%s (compiled %s %s)", ABC_VERSION, __DATE__, __TIME__);
+ sprintf(Version, "%s", ABC_VERSION);
return Version;
}