Skip to contentSkip to conversation

daemontools: Disable the chkshsgr tests

PATCH New Khem Raj 1 participant 1 message Jan 28, 2020

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 daemontools: Disable the chkshsgr tests

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

---
 meta-oe/recipes-support/daemontools/daemontools_0.76.bb | 1 +
 1 file changed, 1 insertion(+)
meta-oe/recipes-support/daemontools/daemontools_0.76.bb +1 -0
index 35251cb8dc..d674e03781 100644
@@ -33,6 +33,7 @@ DEPENDS += "daemontools-native"
 DEPENDS_class-native = ""
 
 do_compile() {
+    echo "int main() { return 0; }" >${S}/src/chkshsgr.c
     ./package/compile
 }
 
Signature · 1 line
2.25.0