Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] socklog: Disable the chkshsgr tests
@ 2020-01-28 19:26 Khem Raj
  2020-01-28 19:32 ` ✗ patchtest: failure for " Patchwork
  0 siblings, 1 reply; 2+ messages in thread
From: Khem Raj @ 2020-01-28 19:26 UTC (permalink / raw)
  To: openembedded-core

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(+)

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
 }
 
-- 
2.25.0



^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-01-28 19:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-01-28 19:26 [PATCH] socklog: Disable the chkshsgr tests Khem Raj
2020-01-28 19:32 ` ✗ patchtest: failure for " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox