mirror of
https://github.com/termux-pacman/termux-packages.git
synced 2026-02-23 09:52:40 +00:00
packages/gauche
This commit is contained in:
@@ -2,19 +2,24 @@ TERMUX_PKG_HOMEPAGE=https://practical-scheme.net/gauche/
|
||||
TERMUX_PKG_DESCRIPTION="An R7RS Scheme implementation developed to be a handy script interpreter"
|
||||
TERMUX_PKG_LICENSE="BSD 3-Clause"
|
||||
TERMUX_PKG_MAINTAINER="@termux"
|
||||
TERMUX_PKG_VERSION=0.9.10
|
||||
TERMUX_PKG_VERSION=0.9.11
|
||||
TERMUX_PKG_SRCURL=https://github.com/shirok/Gauche/releases/download/release${TERMUX_PKG_VERSION//./_}/Gauche-${TERMUX_PKG_VERSION}.tgz
|
||||
TERMUX_PKG_SHA256=0f39df1daec56680b542211b085179cb22e8220405dae15d9d745c56a63a2532
|
||||
TERMUX_PKG_SHA256=395e4ffcea496c42a5b929a63f7687217157c76836a25ee4becfcd5f130f38e4
|
||||
TERMUX_PKG_DEPENDS="binutils, ca-certificates, gdbm, libcrypt, libiconv, mbedtls, zlib"
|
||||
TERMUX_PKG_HOSTBUILD=true
|
||||
TERMUX_PKG_BUILD_IN_SRC=true
|
||||
|
||||
# Does not work on arm:
|
||||
# ```
|
||||
# "/home/builder/.termux-build/gauche/src/src/list.c", line 798 (ScmExtendedPairDescriptor *Scm__GetExtendedPairDescriptor(ScmObj)): Assertion failed: (z->hiddenTag&0x7) == 0x7
|
||||
# ```
|
||||
TERMUX_PKG_BLACKLISTED_ARCHES="arm"
|
||||
|
||||
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
|
||||
--with-ca-bundle=$TERMUX_PREFIX/etc/tls/cert.pem
|
||||
--with-libatomic-ops=no
|
||||
--with-slib=$TERMUX_PREFIX/share/slib
|
||||
"
|
||||
# 0.9.10 does not support MbedTLS 3.0: remove --with-tls=... when updating
|
||||
TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" --with-tls=axtls"
|
||||
# As of 0.9.10 some code hangs with threads enabled, e.g.
|
||||
# ```
|
||||
# (use rfc.uri)
|
||||
@@ -25,7 +30,9 @@ TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" --enable-threads=none"
|
||||
termux_step_host_build() {
|
||||
_PREFIX_FOR_BUILD=$TERMUX_PKG_HOSTBUILD_DIR/prefix
|
||||
mkdir -p $_PREFIX_FOR_BUILD
|
||||
"$TERMUX_PKG_SRCDIR"/configure --prefix=$_PREFIX_FOR_BUILD
|
||||
|
||||
find "$TERMUX_PKG_SRCDIR" -mindepth 1 -maxdepth 1 ! -name build_gosh -exec cp -a \{\} ./ \;
|
||||
./configure --prefix=$_PREFIX_FOR_BUILD
|
||||
make -j $TERMUX_MAKE_PROCESSES
|
||||
make install
|
||||
}
|
||||
|
||||
11
packages/gauche/src-gauche-priv-atomicP.h.patch
Normal file
11
packages/gauche/src-gauche-priv-atomicP.h.patch
Normal file
@@ -0,0 +1,11 @@
|
||||
--- a/src/gauche/priv/atomicP.h
|
||||
+++ b/src/gauche/priv/atomicP.h
|
||||
@@ -95,7 +95,7 @@
|
||||
*
|
||||
* -- gniibe 2012-11-27
|
||||
*/
|
||||
-#if defined(__ARMEL__)
|
||||
+#if defined(__ARMEL__) && !defined(__ARM_ARCH_7A__)
|
||||
#define AO_USE_PTHREAD_DEFS 1
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user