m4: link against libandroid-spawn

It doesn't build without it, it then tries to use a generated spawn
header and fails with something like:

```
  CC       gl_linkedhash_list.o
In file included from /home/builder/.termux-build/m4/src/lib/execute.c:72:
./spawn.h:690:17: error: use of undeclared identifier 'POSIX_SPAWN_RESETIDS'
            [(((POSIX_SPAWN_RESETIDS | POSIX_SPAWN_SETPGROUP
                ^
./spawn.h:690:40  CC       gl_list.o
: error: use of undeclared identifier 'POSIX_SPAWN_SETPGROUP'
            [(((POSIX_SPAWN_RESETIDS | POSIX_SPAWN_SETPGROUP
                                       ^
./spawn.h:691:19: error: use of undeclared identifier 'POSIX_SPAWN_SETSIGDEF'
                | POSIX_SPAWN_SETSIGDEF | POSIX_SPAWN_SETSIGMASK
                  ^
```

Solve this error by depending on libandroid-spawn instead.
This commit is contained in:
Henrik Grimler 2022-02-14 21:37:51 +01:00
parent 1d36a59974
commit dbaca929fa
No known key found for this signature in database
GPG Key ID: B0076E490B71616B

View File

@ -3,13 +3,11 @@ 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_REVISION=2
TERMUX_PKG_SRCURL=https://mirrors.kernel.org/gnu/m4/m4-${TERMUX_PKG_VERSION}.tar.xz
TERMUX_PKG_SHA256=63aede5c6d33b6d9b13511cd0be2cac046f2e70fd0a07aa9573a04a82783af96
TERMUX_PKG_DEPENDS="libandroid-spawn"
TERMUX_PKG_GROUPS="base-devel"
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
ac_cv_header_spawn_h=no
"
TERMUX_PKG_EXTRA_MAKE_ARGS="
HELP2MAN=:
"