Date: Monday, August 14, 2017 @ 17:43:19
Author: felixonmars
Revision: 250403
upgpkg: ghc 8.2.1-1
Modified:
ghc/trunk/PKGBUILD
ghc/trunk/ghc-rebuild-doc-index.hook
ghc/trunk/ghc-register.hook
ghc/trunk/ghc-unregister.hook
Deleted:
ghc/trunk/MADV_FREE.patch
+
MADV_FREE.patch| 63
PKGBUILD | 133 +--
ghc-rebuild-doc-index.hook |2
ghc-register.hook |2
ghc-unregister.hook|2
5 files changed, 83 insertions(+), 119 deletions(-)
Deleted: MADV_FREE.patch
===
--- MADV_FREE.patch 2017-08-14 16:04:49 UTC (rev 250402)
+++ MADV_FREE.patch 2017-08-14 17:43:19 UTC (rev 250403)
@@ -1,63 +0,0 @@
-From 6576bf83cdf4eac05eb88a24aa934a736c91e3da Mon Sep 17 00:00:00 2001
-From: Ben Gamari
-Date: Thu, 1 Dec 2016 12:55:23 -0500
-Subject: [PATCH] rts: Ensure we always give MADV_DONTNEED a chance in
- osDecommitMemory
-
-As described in #12865, newer Linux kernels support both MADV_FREE and
-MADV_DONTNEED. Previously a runtime would fail to try MADV_DONTNEED if
-MADV_FREE failed (e.g. since the kernel which the image is running on
-doesn't support the latter). Now we try MADV_DONTNEED if MADV_FREE
-failed to ensure that binaries compiled on a kernel supporting MADV_FREE
-don't fail on decommit.
-
-Test Plan: Validate
-
-Reviewers: austin, erikd, simonmar
-
-Reviewed By: simonmar
-
-Subscribers: thomie
-
-Differential Revision: https://phabricator.haskell.org/D2780
-
-GHC Trac Issues: #12865
- rts/posix/OSMem.c | 19 ---
- 1 file changed, 16 insertions(+), 3 deletions(-)
-
-diff --git a/rts/posix/OSMem.c b/rts/posix/OSMem.c
-index 5291745..beffeda 100644
a/rts/posix/OSMem.c
-+++ b/rts/posix/OSMem.c
-@@ -541,11 +541,24 @@ void osDecommitMemory(void *at, W_ size)
-
- #ifdef MADV_FREE
- // Try MADV_FREE first, FreeBSD has both and MADV_DONTNEED
--// just swaps memory out
-+// just swaps memory out. Linux >= 4.5 has both DONTNEED and FREE; either
-+// will work as they both allow the system to free anonymous pages.
-+// It is important that we try both methods as the kernel which we were
-+// built on may differ from the kernel we are now running on.
- r = madvise(at, size, MADV_FREE);
--#else
--r = madvise(at, size, MADV_DONTNEED);
-+if(r < 0) {
-+if (errno == EINVAL) {
-+// Perhaps the system doesn't support MADV_FREE; fall-through and
-+// try MADV_DONTNEED.
-+} else {
-+sysErrorBelch("unable to decommit memory");
-+}
-+} else {
-+return;
-+}
- #endif
-+
-+r = madvise(at, size, MADV_DONTNEED);
- if(r < 0)
- sysErrorBelch("unable to decommit memory");
- }
---
-1.9.1
-
Modified: PKGBUILD
===
--- PKGBUILD2017-08-14 16:04:49 UTC (rev 250402)
+++ PKGBUILD2017-08-14 17:43:19 UTC (rev 250403)
@@ -8,13 +8,12 @@
# Libraries depend on versions specified by those hashes.
# This implies that all libraries need to be rebuilt when ghc is rebuilt.
-# use the following command to print out packages that need to get rebuilt
-# grep -r ghc /var/abs/ | awk -F '/' '{ print $5; }' | sort -u
+shopt -s extglob
pkgbase=ghc
-pkgname=(ghc ghc-static)
-pkgver=8.0.2
-pkgrel=3
+pkgname=(ghc-libs ghc ghc-static)
+pkgver=8.2.1
+pkgrel=1
pkgdesc='The Glasgow Haskell Compiler'
arch=('i686' 'x86_64')
url='http://www.haskell.org/ghc/'
@@ -21,24 +20,21 @@
license=('custom')
makedepends=('ghc-static' 'perl' 'libxslt' 'docbook-xsl' 'python-sphinx'
'haskell-hscolour'
'texlive-bin' 'texlive-latexextra' 'ttf-dejavu')
-source=("https://downloads.haskell.org/~ghc/$pkgver/$pkgname-${pkgver}-src.tar.xz;
-ghc-rebuild-doc-index.hook ghc-register.hook ghc-unregister.hook
MADV_FREE.patch)
-noextract=("$pkgname-${pkgver}-src.tar.xz")
-md5sums=('d0afb5ec441b14527a53d2445cc26ec3'
- 'cc9aa11fddde15d8e5e15e99748874a1'
- '3b1949e77038b0276ebd5590ab89e1af'
- '587efb0cb73a6b336cd9333fc5697de4'
- '3bf341c04e2e501a5ace07127de23e8f')
+source=("https://downloads.haskell.org/~ghc/$pkgver/$pkgbase-${pkgver}-src.tar.xz;
+ghc-rebuild-doc-index.hook ghc-register.hook ghc-unregister.hook)
+noextract=("$pkgbase-${pkgver}-src.tar.xz")
+md5sums=('8942b6fb393984aeb8304d09bc326851'
+ '4966d798a2868b289022aea8b655bf17'
+ '700bcd96afd059d668e50b51c19650d5'
+ '2355771881c91cb46e6249a81352aea2')
prepare() {
# Need to extract this tarball with a UTF-8 locale instead of a chroot's "C"
# locale; otherwise we get:
# bsdtar: Pathname can't be converted from UTF-8 to current locale.
- LANG=en_US.UTF-8 bsdtar xf $pkgname-${pkgver}-src.tar.xz
+ LANG=en_US.UTF-8 bsdtar xf $pkgbase-${pkgver}-src.tar.xz