aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorElijah Grubb <grubb@cs.utah.edu>2018-02-13 20:28:01 +0000
committerWilliam Pitcock <nenolod@dereferenced.org>2018-02-27 20:27:49 +0000
commit2f9b70c157b70546ae3c0e2511c4f0cb87d3ca58 (patch)
treec532d5300fa571b3ba166159d1e536c03580fe32
parentc0ce9db148b6d2c6c68c153a3293a5f5ddb9c0d8 (diff)
downloadaports-2f9b70c157b70546ae3c0e2511c4f0cb87d3ca58.tar.bz2
aports-2f9b70c157b70546ae3c0e2511c4f0cb87d3ca58.tar.xz
testing/tcsh: fix out of memory crash
-rw-r--r--testing/tcsh/001-sysmalloc.patch15
-rw-r--r--testing/tcsh/APKBUILD10
2 files changed, 20 insertions, 5 deletions
diff --git a/testing/tcsh/001-sysmalloc.patch b/testing/tcsh/001-sysmalloc.patch
new file mode 100644
index 0000000000..b22c018983
--- /dev/null
+++ b/testing/tcsh/001-sysmalloc.patch
@@ -0,0 +1,15 @@
+--- a/config_f.h
++++ b/config_f.h
+@@ -139,11 +139,8 @@
+ * This can be much slower and no memory statistics will be
+ * provided.
+ */
+-#if defined(__MACHTEN__) || defined(PURIFY) || defined(MALLOC_TRACE) || defined(_OSD_POSIX) || defined(__MVS__) || defined (__CYGWIN__) || defined(__GLIBC__) || defined(__OpenBSD__) || defined(__APPLE__) || defined (__ANDROID__)
++
+ # define SYSMALLOC
+-#else
+-# undef SYSMALLOC
+-#endif
+
+ /*
+ * USE_ACCESS Use access(2) rather than stat(2) when POSIX is defined.
diff --git a/testing/tcsh/APKBUILD b/testing/tcsh/APKBUILD
index 95d031a220..54139c093b 100644
--- a/testing/tcsh/APKBUILD
+++ b/testing/tcsh/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer:
pkgname=tcsh
pkgver=6.20.00
-pkgrel=0
+pkgrel=1
pkgdesc="extended C-shell"
url="http://www.tcsh.org"
arch="all"
@@ -11,7 +11,8 @@ depends=""
makedepends="ncurses-dev"
install=""
subpackages="$pkgname-doc"
-source="ftp://ftp.astron.com/pub/tcsh/${pkgname}-${pkgver}.tar.gz"
+source="ftp://ftp.astron.com/pub/tcsh/${pkgname}-${pkgver}.tar.gz
+ 001-sysmalloc.patch"
builddir="$srcdir/tcsh-$pkgver"
build() {
@@ -33,6 +34,5 @@ package() {
rm -rf "$pkgdir"/usr/share/locale
}
-md5sums="59d40ef40a68e790d95e182069431834 tcsh-6.20.00.tar.gz"
-sha256sums="b89de7064ab54dac454a266cfe5d8bf66940cb5ed048d0c30674ea62e7ecef9d tcsh-6.20.00.tar.gz"
-sha512sums="c5635393c22341e62fb9a0b953ddf8871a876ab09deb08c98237f93afa9257b4a3381d1db65eefe769e22ef845db29ab7bc78773f1f609d73c8205689a6683e9 tcsh-6.20.00.tar.gz"
+sha512sums="c5635393c22341e62fb9a0b953ddf8871a876ab09deb08c98237f93afa9257b4a3381d1db65eefe769e22ef845db29ab7bc78773f1f609d73c8205689a6683e9 tcsh-6.20.00.tar.gz
+40149d8eb2fc0fe5184f3c24c7a1b728e881cc0048ccd37a986c3b2d2094499ec1c37ae2bae4c209fb8a847aa943e83e81f79e3d2f55c59990bc00d9d07f5a94 001-sysmalloc.patch"