socklog: Disable the chkshsgr tests

Submitted by Khem Raj on Jan. 28, 2020, 7:26 p.m. | Patch ID: 169583

Details

Message ID 20200128192614.635447-1-raj.khem@gmail.com
State New
Headers show

Commit Message

Khem Raj Jan. 28, 2020, 7:26 p.m.
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@gmail.com>
---
 meta/recipes-core/runit/socklog_2.1.0.bb | 1 +
 1 file changed, 1 insertion(+)

Patch hide | download patch | download mbox

diff --git a/meta/recipes-core/runit/socklog_2.1.0.bb b/meta/recipes-core/runit/socklog_2.1.0.bb
index 85c20d75a7..fc3fbd9826 100644
--- a/meta/recipes-core/runit/socklog_2.1.0.bb
+++ b/meta/recipes-core/runit/socklog_2.1.0.bb
@@ -19,6 +19,7 @@  do_compile() {
 	cd ${S}/src
 	echo "$CC -D_GNU_SOURCE $CFLAGS" >conf-cc
 	echo "$CC $LDFLAGS -Wl,-z -Wl,noexecstack" >conf-ld
+	echo "int main() { return 0; }" >${S}/src/chkshsgr.c
 	oe_runmake
 }