runit/runit-2.1.2-el8.patch

32 lines
1.1 KiB
Diff
Raw Normal View History

diff -Nur --no-dereference admin.old/runit-2.1.2/src/chkshsgr.c admin/runit-2.1.2/src/chkshsgr.c
--- admin.old/runit-2.1.2/src/chkshsgr.c 2014-08-10 14:22:35.000000000 -0400
+++ admin/runit-2.1.2/src/chkshsgr.c 2024-03-19 09:47:06.132000000 -0400
@@ -1,10 +1,13 @@
/* Public domain. */
+#include <sys/types.h>
+#include <stdlib.h>
+#include <grp.h>
#include <unistd.h>
-int main()
+int main(int argc, char *argv[])
{
- short x[4];
+ gid_t x[4];
x[0] = x[1] = 0;
if (getgroups(1,x) == 0) if (setgroups(1,x) == -1) _exit(1);
diff -Nur --no-dereference admin.old/runit-2.1.2/src/Makefile admin/runit-2.1.2/src/Makefile
--- admin.old/runit-2.1.2/src/Makefile 2014-08-10 14:22:35.000000000 -0400
+++ admin/runit-2.1.2/src/Makefile 2024-03-19 09:55:47.638000000 -0400
@@ -234,7 +234,7 @@
hasshsgr.h: chkshsgr choose compile hasshsgr.h1 hasshsgr.h2 load \
tryshsgr.c warn-shsgr
- ./chkshsgr || ( cat warn-shsgr; exit 1 )
+ echo "Warning: We can not run test on cross target. - ignoring ./chkshsgr || ( cat warn-shsgr; exit 1 )"
./choose clr tryshsgr hasshsgr.h1 hasshsgr.h2 > hasshsgr.h
haswaitp.h: choose compile haswaitp.h1 haswaitp.h2 load trywaitp.c