blob: 24aa4c7ffffe10a55b974ee226e68de404d5f929 [file] [log] [blame]
Brad Bishop79641f22019-09-10 07:20:22 -04001From 43fbc3f53302a395463e8450ac81c53f623eec3f Mon Sep 17 00:00:00 2001
2From: Alexander Kanavin <alex.kanavin@gmail.com>
3Date: Tue, 27 Aug 2019 17:42:34 +0200
4Subject: [PATCH] mono-find-provides/requires: do not use monodis from the host
5
6There was a host contamination issue here: if monodis was installed
7on the host, do_package would use that to resolve dependencies
8of mono libraries (and often fail in that). Without monodis,
9no dependencies are resolved, which is seemingly how things
10are supposed to work.
11
12Upstream-Status: Inappropriate [oe-core specific]
13Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
14---
15 scripts/mono-find-provides | 8 ++++----
16 scripts/mono-find-requires | 8 ++++----
17 2 files changed, 8 insertions(+), 8 deletions(-)
18
19diff --git a/scripts/mono-find-provides b/scripts/mono-find-provides
20index 9348457d3..b28872ffb 100644
21--- a/scripts/mono-find-provides
22+++ b/scripts/mono-find-provides
23@@ -18,11 +18,11 @@ monolist=($(printf "%s\n" "${filelist[@]}" | grep -E "\\.(exe|dll)\$"))
24 build_bindir="$2/usr/bin"
25 build_libdir="$2$3"
26
27-if [ -x $build_bindir/monodis ]; then
28- monodis="$build_bindir/monodis"
29+if [ -x $build_bindir/monodis.bogus ]; then
30+ monodis="$build_bindir/monodis.bogus"
31 export LD_LIBRARY_PATH=$build_libdir${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}
32-elif [ -x /usr/bin/monodis ]; then
33- monodis="/usr/bin/monodis"
34+elif [ -x /usr/bin/monodis.bogus ]; then
35+ monodis="/usr/bin/monodis.bogus"
36 else
37 exit 0;
38 fi
39diff --git a/scripts/mono-find-requires b/scripts/mono-find-requires
40index ea58cae48..d270169e1 100644
41--- a/scripts/mono-find-requires
42+++ b/scripts/mono-find-requires
43@@ -18,11 +18,11 @@ monolist=($(printf "%s\n" "${filelist[@]}" | grep -E "\\.(exe|dll)\$"))
44 build_bindir="$2/usr/bin"
45 build_libdir="$2$3"
46
47-if [ -x $build_bindir/monodis ]; then
48- monodis="$build_bindir/monodis"
49+if [ -x $build_bindir/monodis.bogus ]; then
50+ monodis="$build_bindir/monodis.bogus"
51 export LD_LIBRARY_PATH=$build_libdir${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}
52-elif [ -x /usr/bin/monodis ]; then
53- monodis="/usr/bin/monodis"
54+elif [ -x /usr/bin/monodis.bogus ]; then
55+ monodis="/usr/bin/monodis.bogus"
56 else
57 exit 0;
58 fi