mercury: avoid build failure if spawn.h is present

It finds spawn.h during configure, but then fails to find it during
make step, causing build failure.
This commit is contained in:
Henrik Grimler 2022-02-18 22:01:07 +01:00
parent 2b78f70336
commit afe9de7010
No known key found for this signature in database
GPG Key ID: B0076E490B71616B
2 changed files with 12 additions and 0 deletions

View File

@ -3,6 +3,7 @@ TERMUX_PKG_DESCRIPTION="A logic/functional programming language"
TERMUX_PKG_LICENSE="GPL-2.0, LGPL-2.0"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=20.06.1
TERMUX_PKG_REVISION=1
TERMUX_PKG_SRCURL=https://dl.mercurylang.org/release-${TERMUX_PKG_VERSION:0:5}/mercury-srcdist-${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=ef093ae81424c4f3fe696eff9aefb5fb66899e11bb17ae0326adfb70d09c1c1f
TERMUX_PKG_BUILD_IN_SRC=true

View File

@ -0,0 +1,11 @@
--- ../configure.orig 2022-02-18 20:35:05.112179802 +0000
+++ ./configure 2022-02-18 20:35:16.316087977 +0000
@@ -7598,7 +7598,7 @@
sys/param.h sys/time.h sys/times.h \
sys/types.h sys/stat.h fcntl.h termios.h sys/ioctl.h \
sys/resource.h sys/stropts.h windows.h dirent.h getopt.h malloc.h \
- semaphore.h pthread.h time.h spawn.h fenv.h sys/mman.h sys/sem.h \
+ semaphore.h pthread.h time.h fenv.h sys/mman.h sys/sem.h \
sched.h utmpx.h dispatch/dispatch.h stdint.h sys/select.h ; do
mercury_cv_header_define="MR_HAVE_`echo $mercury_cv_header | \
tr abcdefghijklmnopqrstuvwxyz./ ABCDEFGHIJKLMNOPQRSTUVWXYZ__`"