[oe] [meta-oe][PATCH] daemontools: Disable the chkshsgr tests

Khem Raj raj.khem at gmail.com
Tue Jan 28 19:31:36 UTC 2020


Running the chkhsgr test during cross compile fails

./chkshsgr || ( cat warn-shsgr; exit 1 )
Oops. Your getgroups() returned 0, and setgroups() failed; this means
that I can't reliably do my shsgr test. Please either ``make'' as root
or ``make'' while you're in one or more supplementary groups.

All OE based targets have working getgroups()/setgroups()
implementation, so its a safe assumption and therefore make the test
to be a dummy

Signed-off-by: Khem Raj <raj.khem at gmail.com>
---
 meta-oe/recipes-support/daemontools/daemontools_0.76.bb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta-oe/recipes-support/daemontools/daemontools_0.76.bb b/meta-oe/recipes-support/daemontools/daemontools_0.76.bb
index 35251cb8dc..d674e03781 100644
--- a/meta-oe/recipes-support/daemontools/daemontools_0.76.bb
+++ b/meta-oe/recipes-support/daemontools/daemontools_0.76.bb
@@ -33,6 +33,7 @@ DEPENDS += "daemontools-native"
 DEPENDS_class-native = ""
 
 do_compile() {
+    echo "int main() { return 0; }" >${S}/src/chkshsgr.c
     ./package/compile
 }
 
-- 
2.25.0



More information about the Openembedded-devel mailing list