summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/shadow/files
diff options
context:
space:
mode:
authorYi Zhao <yi.zhao@windriver.com>2019-06-18 08:26:19 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-06-19 12:46:43 +0100
commit52fd2467c88d67b535f60c02fc192c1838d2fbca (patch)
tree8fdc0b0643d361c3773bc4e79d00331ac6d5d492 /meta/recipes-extended/shadow/files
parent2806373ef21c8bce5b13271834779a99c58d910f (diff)
downloadpoky-52fd2467c88d67b535f60c02fc192c1838d2fbca.tar.gz
shadow: fix configure error with dash
A configure error occurs when /bin/sh -> dash: checking for is_selinux_enabled in -lselinux... yes checking for semanage_connect in -lsemanage... yes configure: 16322: test: yesyes: unexpected operator Use "=" instead of "==" since dash doesn't support the latter. (From OE-Core rev: a86da25d620aa9a2fd832ffe12816e7670b43633) Signed-off-by: Yi Zhao <yi.zhao@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/shadow/files')
-rw-r--r--meta/recipes-extended/shadow/files/0001-configure.ac-fix-configure-error-with-dash.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/meta/recipes-extended/shadow/files/0001-configure.ac-fix-configure-error-with-dash.patch b/meta/recipes-extended/shadow/files/0001-configure.ac-fix-configure-error-with-dash.patch
new file mode 100644
index 0000000000..a74cbb0c0e
--- /dev/null
+++ b/meta/recipes-extended/shadow/files/0001-configure.ac-fix-configure-error-with-dash.patch
@@ -0,0 +1,36 @@
1From 3c52a84ff8775590e7e9da9c0d4408c23494305e Mon Sep 17 00:00:00 2001
2From: Yi Zhao <yi.zhao@windriver.com>
3Date: Mon, 17 Jun 2019 15:36:34 +0800
4Subject: [PATCH] configure.ac: fix configure error with dash
5
6A configure error occurs when /bin/sh -> dash:
7 checking for is_selinux_enabled in -lselinux... yes
8 checking for semanage_connect in -lsemanage... yes
9 configure: 16322: test: yesyes: unexpected operator
10
11Use "=" instead of "==" since dash doesn't support this operator.
12
13Upstream-Status: Backport
14[https://github.com/shadow-maint/shadow/commit/3c52a84ff8775590e7e9da9c0d4408c23494305e]
15
16Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
17---
18 configure.ac | 2 +-
19 1 file changed, 1 insertion(+), 1 deletion(-)
20
21diff --git a/configure.ac b/configure.ac
22index 6762556..1907afb 100644
23--- a/configure.ac
24+++ b/configure.ac
25@@ -500,7 +500,7 @@ if test "$with_selinux" != "no"; then
26 AC_MSG_ERROR([libsemanage not found])
27 fi
28
29- if test "$selinux_lib$semanage_lib" == "yesyes" ; then
30+ if test "$selinux_lib$semanage_lib" = "yesyes" ; then
31 AC_DEFINE(WITH_SELINUX, 1,
32 [Build shadow with SELinux support])
33 LIBSELINUX="-lselinux"
34--
352.7.4
36