summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-networking/recipes-connectivity/adcli/adcli/0001-configure.ac-Fix-selinux-error-for-cross_compiling.patch49
-rw-r--r--meta-networking/recipes-connectivity/adcli/adcli_0.9.3.1.bb (renamed from meta-networking/recipes-connectivity/adcli/adcli_0.9.2.bb)15
2 files changed, 60 insertions, 4 deletions
diff --git a/meta-networking/recipes-connectivity/adcli/adcli/0001-configure.ac-Fix-selinux-error-for-cross_compiling.patch b/meta-networking/recipes-connectivity/adcli/adcli/0001-configure.ac-Fix-selinux-error-for-cross_compiling.patch
new file mode 100644
index 0000000000..b3b7702644
--- /dev/null
+++ b/meta-networking/recipes-connectivity/adcli/adcli/0001-configure.ac-Fix-selinux-error-for-cross_compiling.patch
@@ -0,0 +1,49 @@
1Subject: [PATCH] configure.ac: Fix selinux error for
2 cross_compiling
3
4Before this patch:
5configure file will check SELINUX_MAKEFILE /usr/share/selinux/devel/Makefile which is defined for target.
6But in cross_compiling environment, the SELINUX_MAKEFILE should defined for host
7
8So following error occurs
9| checking for libselinux... no
10| checking for /usr/share/selinux/devel/Makefile... configure: error: cannot check for file existence when cross compiling
11| NOTE: The following config.log files may provide further information.
12
13Upstream-Status: Inappropriate [embedded specific]
14
15Signed-off-by: Liu Yiding <liuyd.fnst@fujitsu.com>
16---
17 configure.ac | 16 +++++++++++++---
18 1 file changed, 13 insertions(+), 3 deletions(-)
19
20diff --git a/configure.ac b/configure.ac
21index b0be041..b5c3baf 100644
22--- a/configure.ac
23+++ b/configure.ac
24@@ -171,9 +171,19 @@ fi
25 SELINUX_MAKEFILE=/usr/share/selinux/devel/Makefile
26 AC_SUBST([SELINUX_MAKEFILE])
27
28-AC_CHECK_FILE([$SELINUX_MAKEFILE],
29- [build_selinux=yes],
30- [build_selinux=no])
31+AS_IF([test "x$cross_compiling" = "xyes"],
32+ [
33+ AS_IF([test -f "${SYSROOT_DIR}/usr/share/selinux/devel/Makefile"],
34+ [build_selinux=yes],
35+ [build_selinux=no])
36+ SELINUX_MAKEFILE="${SYSROOT_DIR}/usr/share/selinux/devel/Makefile"
37+ ],
38+ [
39+ SELINUX_MAKEFILE=/usr/share/selinux/devel/Makefile
40+ AC_CHECK_FILE([$SELINUX_MAKEFILE],
41+ [build_selinux=yes],
42+ [build_selinux=no])
43+ ])
44
45 if test x$build_selinux_support = xyes && test x$build_selinux = xno; then
46 AC_MSG_ERROR([Couldn't build SELinux support, SELinux policy devel packages missing])
47--
482.43.0
49
diff --git a/meta-networking/recipes-connectivity/adcli/adcli_0.9.2.bb b/meta-networking/recipes-connectivity/adcli/adcli_0.9.3.1.bb
index 7bd07491fe..a15afbe2ec 100644
--- a/meta-networking/recipes-connectivity/adcli/adcli_0.9.2.bb
+++ b/meta-networking/recipes-connectivity/adcli/adcli_0.9.3.1.bb
@@ -4,20 +4,27 @@ DESCRIPTION = "A helper library and tools for Active Directory client operations
4HOMEPAGE = "http://cgit.freedesktop.org/realmd/adcli" 4HOMEPAGE = "http://cgit.freedesktop.org/realmd/adcli"
5SECTION = "net" 5SECTION = "net"
6 6
7SRCREV = "8e88e3590a19006362ea8b8dfdc18bb88b3cb3b5" 7SRCREV = "f3b69c2497c1a66359047abc3042c11cab2199e1"
8
9SRC_URI = "git://gitlab.freedesktop.org/realmd/adcli;protocol=https;branch=master"
10 8
9SRC_URI = "git://gitlab.freedesktop.org/realmd/adcli;protocol=https;branch=master;tag=${PV} \
10 file://0001-configure.ac-Fix-selinux-error-for-cross_compiling.patch \
11 "
11 12
12LICENSE = "LGPL-2.0-or-later" 13LICENSE = "LGPL-2.0-or-later"
13LIC_FILES_CHKSUM = "file://COPYING;md5=23c2a5e0106b99d75238986559bb5fc6" 14LIC_FILES_CHKSUM = "file://COPYING;md5=23c2a5e0106b99d75238986559bb5fc6"
14 15
15inherit autotools xmlcatalog 16inherit autotools xmlcatalog pkgconfig
16 17
17DEPENDS += "virtual/crypt krb5 openldap gettext libxslt xmlto libxml2-native \ 18DEPENDS += "virtual/crypt krb5 openldap gettext libxslt xmlto libxml2-native \
18 cyrus-sasl libxslt-native xmlto-native coreutils-native\ 19 cyrus-sasl libxslt-native xmlto-native coreutils-native\
19 " 20 "
20 21
22PACKAGECONFIG ?= "${@bb.utils.filter('DISTRO_FEATURES', 'selinux', d)}"
23PACKAGECONFIG[selinux] = ",--disable-selinux-support,libselinux,libselinux"
24
21EXTRA_OECONF += "--disable-silent-rules \ 25EXTRA_OECONF += "--disable-silent-rules \
22 --disable-doc \ 26 --disable-doc \
27 --disable-offline-join-support \
23 " 28 "
29
30FILES:${PN} += "${datadir}"