File: Fix-golang-bindtest-and-check-mli.sh-for-out-of-tree-buil.patch

package info (click to toggle)
libguestfs 1%3A1.54.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 98,892 kB
  • sloc: ansic: 379,443; ml: 38,771; sh: 10,329; java: 9,631; cs: 6,377; haskell: 5,729; makefile: 5,178; python: 3,821; perl: 2,467; erlang: 2,461; ruby: 349; xml: 275; pascal: 257; javascript: 157; cpp: 10
file content (36 lines) | stat: -rw-r--r-- 999 bytes parent folder | download | duplicates (2)
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
From: Hilko Bengen <bengen@debian.org>
Date: Mon, 27 Dec 2021 01:17:16 +0100
Subject: Fix golang bindtest and check-mli.sh for out-of-tree builds

---
 check-mli.sh         | 2 +-
 golang/run-bindtests | 5 ++---
 2 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/check-mli.sh b/check-mli.sh
index 8a93187..1b3da07 100755
--- a/check-mli.sh
+++ b/check-mli.sh
@@ -22,7 +22,7 @@
 exitcode=0
 
 for f in $(
-    find -name '*.ml' |
+    find "$abs_srcdir" "$abs_builddir" -name '*.ml' |
     grep -v builder/templates |
     grep -v contrib/ |
     grep -v ocaml/examples/ |
diff --git a/golang/run-bindtests b/golang/run-bindtests
index e79bb07..b62132b 100755
--- a/golang/run-bindtests
+++ b/golang/run-bindtests
@@ -18,7 +18,6 @@
 
 set -e
 
-cd $srcdir/bindtests
-$GOLANG run bindtests.go > bindtests.tmp
-diff -u $srcdir/../../bindtests bindtests.tmp
+( cd $srcdir/bindtests && $GOLANG run bindtests.go ) > bindtests.tmp
+diff -u $srcdir/../bindtests bindtests.tmp
 rm bindtests.tmp