m4: use '_exit' after printing a usage message (#7701)
This commit is contained in:
parent
248712a0d5
commit
e876bf6e81
@ -3,12 +3,16 @@ TERMUX_PKG_DESCRIPTION="Traditional Unix macro processor"
|
||||
TERMUX_PKG_LICENSE="GPL-3.0"
|
||||
TERMUX_PKG_MAINTAINER="@termux"
|
||||
TERMUX_PKG_VERSION=1.4.19
|
||||
TERMUX_PKG_REVISION=1
|
||||
TERMUX_PKG_SRCURL=https://mirrors.kernel.org/gnu/m4/m4-${TERMUX_PKG_VERSION}.tar.xz
|
||||
TERMUX_PKG_SHA256=63aede5c6d33b6d9b13511cd0be2cac046f2e70fd0a07aa9573a04a82783af96
|
||||
TERMUX_PKG_GROUPS="base-devel"
|
||||
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
|
||||
ac_cv_header_spawn_h=no
|
||||
"
|
||||
TERMUX_PKG_EXTRA_MAKE_ARGS="
|
||||
HELP2MAN=:
|
||||
"
|
||||
|
||||
termux_step_pre_configure() {
|
||||
CPPFLAGS+=" -D__USE_FORTIFY_LEVEL=0"
|
||||
|
12
packages/m4/src-m4.c.patch
Normal file
12
packages/m4/src-m4.c.patch
Normal file
@ -0,0 +1,12 @@
|
||||
--- a/src/m4.c
|
||||
+++ b/src/m4.c
|
||||
@@ -303,7 +303,8 @@
|
||||
"), stdout);
|
||||
emit_bug_reporting_address ();
|
||||
}
|
||||
- exit (status);
|
||||
+ fflush (NULL);
|
||||
+ _exit (status);
|
||||
}
|
||||
|
||||
/*--------------------------------------.
|
Loading…
Reference in New Issue
Block a user