diff --git a/packages/mlocate/build.sh b/packages/mlocate/build.sh index cca455391..a62fcba5c 100644 --- a/packages/mlocate/build.sh +++ b/packages/mlocate/build.sh @@ -6,7 +6,7 @@ TERMUX_PKG_LICENSE="GPL-2.0" # like in '*.deb'. TERMUX_PKG_DEPENDS="libandroid-support" TERMUX_PKG_VERSION=0.26 -TERMUX_PKG_REVISION=3 +TERMUX_PKG_REVISION=4 TERMUX_PKG_SRCURL=https://releases.pagure.org/mlocate/mlocate-${TERMUX_PKG_VERSION}.tar.xz TERMUX_PKG_SHA256=3063df79fe198fb9618e180c54baf3105b33d88fe602ff2d8570aaf944f1263e diff --git a/packages/mlocate/no_getid.patch b/packages/mlocate/no_getid.patch new file mode 100644 index 000000000..64899f5e8 --- /dev/null +++ b/packages/mlocate/no_getid.patch @@ -0,0 +1,13 @@ +--- ../locate.c.orig ++++ ./src/locate.c +@@ -945,8 +945,10 @@ + static void + drop_setgid (void) + { ++#if !defined(__ANDROID__) + if (setgid (getgid ()) != 0) + error (EXIT_FAILURE, errno, _("can not drop privileges")); ++#endif + } + + /* Handle a conf_dbpath ENTRY, drop privileges when they are no longer