diff options
Diffstat (limited to 'meta-networking/recipes-daemons/openhpi/files/0001-Do-not-poke-at-build-host-s-etc-os-release.patch')
-rw-r--r-- | meta-networking/recipes-daemons/openhpi/files/0001-Do-not-poke-at-build-host-s-etc-os-release.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/meta-networking/recipes-daemons/openhpi/files/0001-Do-not-poke-at-build-host-s-etc-os-release.patch b/meta-networking/recipes-daemons/openhpi/files/0001-Do-not-poke-at-build-host-s-etc-os-release.patch new file mode 100644 index 000000000..ab9b25fed --- /dev/null +++ b/meta-networking/recipes-daemons/openhpi/files/0001-Do-not-poke-at-build-host-s-etc-os-release.patch | |||
@@ -0,0 +1,27 @@ | |||
1 | From 2bc5c6367a7f70ca5bff177ec95bcad3b1c2b66b Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Thu, 6 Sep 2018 18:15:10 -0700 | ||
4 | Subject: [PATCH] Do not poke at build host's /etc/os-release | ||
5 | |||
6 | During cross compile we are interested in target distro and not host | ||
7 | distro therefore do not check for it. | ||
8 | |||
9 | Upstream-Status: Inappropriate [Cross compile specific] | ||
10 | |||
11 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
12 | --- | ||
13 | configure.ac | 2 +- | ||
14 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
15 | |||
16 | Index: openhpi-3.8.0/configure.ac | ||
17 | =================================================================== | ||
18 | --- openhpi-3.8.0.orig/configure.ac | ||
19 | +++ openhpi-3.8.0/configure.ac | ||
20 | @@ -194,7 +194,6 @@ AC_SUBST(JSON_C_LIB) | ||
21 | AC_SUBST(JSON_C_INCLUDE) | ||
22 | AC_CHECK_LIB([rabbitmq],[amqp_new_connection],[RABBITMQ_LIB=-lrabbitmq],[RABBITMQ_LIB=]) | ||
23 | AC_SUBST(RABBITMQ_LIB) | ||
24 | -AC_CHECK_FILE([/etc/os-release],[DISTRO=`grep "^ID=" /etc/os-release | awk -F"\"" '{ print $2 }'`]) | ||
25 | |||
26 | AC_CHECK_HEADERS([amqp.h],[have_rabbitmq=yes],[have_rabbitmq=no]) | ||
27 | |||