diff --git a/packages/ngircd/build.sh b/packages/ngircd/build.sh index 79318b89af..7377fe8e4b 100644 --- a/packages/ngircd/build.sh +++ b/packages/ngircd/build.sh @@ -3,7 +3,7 @@ TERMUX_PKG_DESCRIPTION="Free, portable and lightweight Internet Relay Chat serve TERMUX_PKG_LICENSE="GPL-2.0" TERMUX_PKG_MAINTAINER="@yonle " TERMUX_PKG_VERSION=26.1 -TERMUX_PKG_REVISION=2 +TERMUX_PKG_REVISION=3 TERMUX_PKG_SRCURL="https://github.com/ngircd/ngircd/releases/download/rel-${TERMUX_PKG_VERSION}/ngircd-26.tar.xz" TERMUX_PKG_SHA256=56dcc6483058699fcdd8e54f5010eecee09824b93bad7ed5f18818e550d855c6 TERMUX_PKG_AUTO_UPDATE=true diff --git a/packages/ngircd/src-ngircd-ngircd.c.patch b/packages/ngircd/src-ngircd-ngircd.c.patch new file mode 100644 index 0000000000..0a6a539664 --- /dev/null +++ b/packages/ngircd/src-ngircd-ngircd.c.patch @@ -0,0 +1,20 @@ +Fix seccomp crash with setuid(0) + +--- a/src/ngircd/ngircd.c ++++ b/src/ngircd/ngircd.c +@@ -737,7 +737,6 @@ NGIRCd_Init(bool NGIRCd_NoDaemon) + "Can't drop supplementary group IDs: setgroups(3) missing!"); + #endif + } +-#endif + + /* Change user ID */ + if (getuid() != Conf_UID) { +@@ -751,6 +750,7 @@ NGIRCd_Init(bool NGIRCd_NoDaemon) + goto out; + } + } ++#endif + + initialized = true; + diff --git a/packages/ngircd/src-portab-portab.h.patch b/packages/ngircd/src-portab-portab.h.patch new file mode 100644 index 0000000000..191a0e72a9 --- /dev/null +++ b/packages/ngircd/src-portab-portab.h.patch @@ -0,0 +1,13 @@ +Fix seccomp crash with setgid(9999) + +--- a/src/portab/portab.h ++++ b/src/portab/portab.h +@@ -128,7 +128,7 @@ typedef unsigned char bool; + # define HOST_VENDOR "unknown" + #endif + +-#ifdef __HAIKU__ ++#if defined(__HAIKU__) || defined(__ANDROID__) + # define SINGLE_USER_OS + #endif +