summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/strace/strace/0001-strace-fix-reproducibilty-issues.patch
blob: c4c176e6bcd6676eab56cfd69c8c4ab544c793f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
From 6309792c49ca900cec6a7f1dc5b51bf75b629e11 Mon Sep 17 00:00:00 2001
From: Jeremy Puhlman <jpuhlman@mvista.com>
Date: Wed, 11 Mar 2020 19:56:55 +0000
Subject: [PATCH] strace: fix reproducibilty issues

The full path to the gen_tests.sh script is encoded in the tests

Upstream-Status: Pending

Signed-off-by: Jeremy Puhlman <jpuhlman@mvista.com>
---
 tests/gen_tests.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/gen_tests.sh b/tests/gen_tests.sh
index 5e1e7c9..1e65eac 100755
--- a/tests/gen_tests.sh
+++ b/tests/gen_tests.sh
@@ -46,7 +46,7 @@ while read -r name arg0 args; do {
 
 	hdr="\
 #!/bin/sh -efu
-# Generated by $0 from $input ($name $arg0 $args); do not edit."
+# Generated by $(basename $0) from $input ($name $arg0 $args); do not edit."
 
 	case "$arg0" in
 		+*)
@@ -80,7 +80,7 @@ while read -r name arg0 args; do {
 
 if [ -n "$names" ]; then
 	{
-		printf '# Generated by %s from %s; do not edit.\n' "$0" "$input"
+		printf '# Generated by %s from %s; do not edit.\n' "$(basename $0)" "$input"
 		printf 'GEN_TESTS ='
 		printf ' %s.gen.test' $names
 		echo
-- 
2.24.1