~mdw
/
termux-packages
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Attach arm issues with C++ exception unwinding
[termux-packages]
/
packages
/
picolisp
/
build.sh
diff --git
a/packages/picolisp/build.sh
b/packages/picolisp/build.sh
index
71acceb
..
f4d18d9
100644
(file)
--- a/
packages/picolisp/build.sh
+++ b/
packages/picolisp/build.sh
@@
-1,13
+1,13
@@
-TERMUX_PKG_HOMEPAGE=http://picolisp.com
+TERMUX_PKG_HOMEPAGE=http
s
://picolisp.com
TERMUX_PKG_DESCRIPTION="Lisp interpreter and application server framework"
TERMUX_PKG_DEPENDS="libcrypt, openssl"
_PICOLISP_YEAR=17
TERMUX_PKG_DESCRIPTION="Lisp interpreter and application server framework"
TERMUX_PKG_DEPENDS="libcrypt, openssl"
_PICOLISP_YEAR=17
-_PICOLISP_MONTH=
1
-_PICOLISP_DAY=
30
+_PICOLISP_MONTH=
7
+_PICOLISP_DAY=
9
TERMUX_PKG_VERSION=${_PICOLISP_YEAR}.${_PICOLISP_MONTH}.${_PICOLISP_DAY}
# We use our bintray mirror since old version snapshots are not kept on main site.
TERMUX_PKG_SRCURL=https://dl.bintray.com/termux/upstream/picolisp_${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_VERSION=${_PICOLISP_YEAR}.${_PICOLISP_MONTH}.${_PICOLISP_DAY}
# We use our bintray mirror since old version snapshots are not kept on main site.
TERMUX_PKG_SRCURL=https://dl.bintray.com/termux/upstream/picolisp_${TERMUX_PKG_VERSION}.tar.gz
-TERMUX_PKG_SHA256=
5f4a03881cfab786d71f853536aca8e728949f8c6ed674a8f4440c35b6f88e57
+TERMUX_PKG_SHA256=
22eff19214f3250099935dc871045a5be6728724ad91a0534b9c29bcd8fde858
TERMUX_PKG_FOLDERNAME=picoLisp
TERMUX_PKG_BUILD_IN_SRC=true
# The assembly is not position-independent (would be a major rewrite):
TERMUX_PKG_FOLDERNAME=picoLisp
TERMUX_PKG_BUILD_IN_SRC=true
# The assembly is not position-independent (would be a major rewrite):
@@
-15,20
+15,12
@@
TERMUX_PKG_BLACKLISTED_ARCHES="x86_64"
if [ $TERMUX_ARCH_BITS = 32 ]; then
# "Variable length array in structure won't be supported"
TERMUX_PKG_CLANG=no
if [ $TERMUX_ARCH_BITS = 32 ]; then
# "Variable length array in structure won't be supported"
TERMUX_PKG_CLANG=no
-else
- # FIXME: Use gcc for linking, as a clang build causes (tzo),
- # the time zone offset, to return 0:
- # Also, this call hangs:
- # (call "termux-notification" "--title" "Title" "--content" "Message")
- TERMUX_PKG_CLANG=no
fi
termux_step_pre_configure() {
# Validate that we have the right version:
grep -q "Version $_PICOLISP_YEAR $_PICOLISP_MONTH $_PICOLISP_DAY" src64/version.l || {
fi
termux_step_pre_configure() {
# Validate that we have the right version:
grep -q "Version $_PICOLISP_YEAR $_PICOLISP_MONTH $_PICOLISP_DAY" src64/version.l || {
- echo "ERROR: Picolisp version needs to be bumped" 1>&2
- grep Version src64/version.l 1>&2
- exit 1
+ termux_error_exit "Picolisp version needs to be bumped"
}
if [ $TERMUX_ARCH_BITS = 64 ]; then
}
if [ $TERMUX_ARCH_BITS = 64 ]; then
@@
-57,11
+49,14
@@
termux_step_make_install () {
$TERMUX_HOST_PLATFORM-as -o ${TERMUX_PKG_EXTRA_MAKE_ARGS}.ext.o ${TERMUX_PKG_EXTRA_MAKE_ARGS}.ext.s
$TERMUX_HOST_PLATFORM-as -o ${TERMUX_PKG_EXTRA_MAKE_ARGS}.ht.o ${TERMUX_PKG_EXTRA_MAKE_ARGS}.ht.s
$TERMUX_HOST_PLATFORM-as -o ${TERMUX_PKG_EXTRA_MAKE_ARGS}.ext.o ${TERMUX_PKG_EXTRA_MAKE_ARGS}.ext.s
$TERMUX_HOST_PLATFORM-as -o ${TERMUX_PKG_EXTRA_MAKE_ARGS}.ht.o ${TERMUX_PKG_EXTRA_MAKE_ARGS}.ht.s
+ # Use -fuse-ld=bfd to avoid using the gold linker (which Termux
+ # patches NDK to use by default) as it causes (tzo), the time
+ # zone offset, to always be 0 (and probably other problems):
$CC -o ../bin/picolisp ${TERMUX_PKG_EXTRA_MAKE_ARGS}.base.o \
$CC -o ../bin/picolisp ${TERMUX_PKG_EXTRA_MAKE_ARGS}.base.o \
- -Wl,--no-as-needed -rdynamic -lc -lm -ldl -pie
+ -Wl,--no-as-needed -rdynamic -lc -lm -ldl -pie
-fuse-ld=bfd
chmod +x ../bin/picolisp
chmod +x ../bin/picolisp
- $CC -o ../lib/ext -shared -rdynamic ${TERMUX_PKG_EXTRA_MAKE_ARGS}.ext.o
- $CC -o ../lib/ht -shared -rdynamic ${TERMUX_PKG_EXTRA_MAKE_ARGS}.ht.o
+ $CC -o ../lib/ext -shared -rdynamic
-fuse-ld=bfd
${TERMUX_PKG_EXTRA_MAKE_ARGS}.ext.o
+ $CC -o ../lib/ht -shared -rdynamic
-fuse-ld=bfd
${TERMUX_PKG_EXTRA_MAKE_ARGS}.ht.o
fi
mkdir -p $TERMUX_PREFIX/share/man/man1
fi
mkdir -p $TERMUX_PREFIX/share/man/man1