X-Original-To: alpine-aports@lists.alpinelinux.org Received: from mail-pf0-f182.google.com (mail-pf0-f182.google.com [209.85.192.182]) by lists.alpinelinux.org (Postfix) with ESMTP id 421075C4E03 for ; Wed, 31 Jan 2018 03:05:43 +0000 (GMT) Received: by mail-pf0-f182.google.com with SMTP id t12so11176992pfg.2 for ; Tue, 30 Jan 2018 19:05:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=atlassian-com.20150623.gappssmtp.com; s=20150623; h=message-id:subject:from:to:date:mime-version :content-transfer-encoding; bh=CJb5iYaaRrw0UwfgNEKV2kqiNxSc8WUkmRLvFLYMQqw=; b=G/isbSnO9dDfz5WtTUNSqiTcbmgf4ljslh9F9nFBX5ZVSmqKIosmZvAc7CrnWZrQDM mzBrxzJ4In1yI9TjDPYNx/W5IAhVukKDRlzScaqeBzeStObNF0tNjMvwwJGfnQPnuJm1 I43sJl5fs6V3ppwgq065//PE2Vdg8+DfF2HQRX8FrNwr95mZ/PmZWkLALM7t3K0P1/Zj H2SbPsaV2Jo2MNafMFhe5+FffCHic/z/HbiJRwe/403HPpr3JFimqatFitG5u64SjivP c5tYnVeLo1OmmQcQSE7wk6vklm8EqwBEdwE2Y/wa/Ld69E9ayJsiYksHirAvbgpaUbcT OzwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:date:mime-version :content-transfer-encoding; bh=CJb5iYaaRrw0UwfgNEKV2kqiNxSc8WUkmRLvFLYMQqw=; b=NmwPLXhWyL+si34tauZyetZzcpt/khSh1N+Q0/GoTsbjU6uBUwyoFEpQKj2SYy+T6i ZQfr6pDsQHr65VEiiR9u4Zozl/8FE1UWtUFIKMtoWmyL4o9gJUC3q2dawr7hvUwX1Fie 8zp9iWpEwq+qVE8G8ApodQKMYQud8kyyXPRlhOZmupI6fJjPq7ORDOZFDXompZJxHG6z mbkkqCSiljSU+N9lQHD9cidqIQtC6trl58U6ubEUgBfULCbtY98O2l1XCHPfsyE3AYDM 0MhFizA+0dpmBeAKigJ981Oo6xamILMSJ3OY0xNm4a7L/px7FQrLSoDlMfuH5xYb1DX/ y8Eg== X-Gm-Message-State: AKwxyte29I90Pj2MfTuKLAaRq1xyTC/PXHzj2hrQZhoN9Tuc7sv75y9x tU8JxkmWIuiFGgt9fzboGu4w819liac= X-Google-Smtp-Source: AH8x227aEW4XQqSKCOYKXZ1Tt0RXNbgdd/QWiA/PRvNJkYjvXXZ7qPCq4F5xAG08y+b8sxLRw+Vb2w== X-Received: by 2002:a17:902:20cb:: with SMTP id v11-v6mr27256105plg.63.1517367941435; Tue, 30 Jan 2018 19:05:41 -0800 (PST) Received: from aposney.office.atlassian.com ([103.233.242.9]) by smtp.gmail.com with ESMTPSA id q27sm49615597pfd.14.2018.01.30.19.05.39 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 30 Jan 2018 19:05:40 -0800 (PST) Message-ID: <1517367936.20945.3.camel@atlassian.com> Subject: [alpine-aports] [PATCH] community/tcsh: fix sysmalloc bug From: Alec Posney To: alpine-aports@lists.alpinelinux.org Date: Wed, 31 Jan 2018 14:05:36 +1100 Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.26.4 (3.26.4-1.fc27) X-Mailinglist: alpine-aports Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: Mime-Version: 1.0 Content-Transfer-Encoding: 7bit The current binary fails for tcsh since it is using tcsh's build in allocator, which does not work with musl. This adds a patch, similar to the one used in openwrt [1], what enforced use by the alpine system allocator. [1](https://github.com/openwrt/packages/blob/master/utils/tcsh/patches/ 001-sysmalloc.patch) --- testing/tcsh/10-sysmalloc.patch | 18 ++++++++++++++++++ testing/tcsh/APKBUILD | 13 +++++++++---- 2 files changed, 27 insertions(+), 4 deletions(-) create mode 100644 testing/tcsh/10-sysmalloc.patch mode change 100644 => 100755 testing/tcsh/APKBUILD diff --git a/testing/tcsh/10-sysmalloc.patch b/testing/tcsh/10- sysmalloc.patch new file mode 100644 index 0000000000..e93015297b --- /dev/null +++ b/testing/tcsh/10-sysmalloc.patch @@ -0,0 +1,18 @@ +diff --git a/config_f.h b/config_f.h +index 1ceef7a..f8de049 100644 +--- a/config_f.h ++++ b/config_f.h +@@ -138,11 +138,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 old mode 100644 new mode 100755 index 95d031a220..7dbdfe373d --- a/testing/tcsh/APKBUILD +++ b/testing/tcsh/APKBUILD @@ -11,9 +11,15 @@ 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 + 10-sysmalloc.patch + " builddir="$srcdir/tcsh-$pkgver" +prepare() { + default_prepare +} + build() { cd "$builddir" ./configure \ @@ -33,6 +39,5 @@ package() { rm -rf "$pkgdir"/usr/share/locale } -md5sums="59d40ef40a68e790d95e182069431834 tcsh-6.20.00.tar.gz" -sha256sums="b89de7064ab54dac454a266cfe5d8bf66940cb5ed048d0c30674ea62e7 ecef9d tcsh-6.20.00.tar.gz" -sha512sums="c5635393c22341e62fb9a0b953ddf8871a876ab09deb08c98237f93afa 9257b4a3381d1db65eefe769e22ef845db29ab7bc78773f1f609d73c8205689a6683e9 tcsh-6.20.00.tar.gz" +sha512sums="c5635393c22341e62fb9a0b953ddf8871a876ab09deb08c98237f93afa 9257b4a3381d1db65eefe769e22ef845db29ab7bc78773f1f609d73c8205689a6683e9 tcsh-6.20.00.tar.gz +5539436be6d340a2888e4d47101bee4799b30f04c42a8b4840f2a4588be272ba8ef591 9f309a9e43cb74db7d3028f6962b434d16a813c4ca3ebe4c3660c58c2e 10- sysmalloc.patch" --- Unsubscribe: alpine-aports+unsubscribe@lists.alpinelinux.org Help: alpine-aports+help@lists.alpinelinux.org ---