Skip to content

Commit 4674ee8

Browse files
committed
Merge remote-tracking branch 'origin/stable'
2 parents 5e89c2c + cc50773 commit 4674ee8

File tree

2 files changed

+20
-18
lines changed

2 files changed

+20
-18
lines changed

doc/maintainers/ghc.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
* FreeBSD bindists are mirrored from http://distcache.FreeBSD.org/local-distfiles/arrowd/stack-bindists
1818
* musl bindists are mirrored from https://github.com/redneb/ghc-alt-libc/releases
1919

20-
2120
* Download all the relevant GHC bindists from their sources, and upload them to the just-created Github release (see
2221
[stack-setup-2.yaml](https://github.com/fpco/stackage-content/blob/master/stack/stack-setup-2.yaml)
2322
for the ones we used in the last GHC release).
@@ -40,11 +39,13 @@
4039

4140
cd stack && ./update-global-hints.hs ghc-X.Y.Z
4241

43-
and commit and push the changes.
42+
and commit the changes.
4443

4544

4645
## Building GHC
4746

47+
**NOTE: We are no longer building custom GHC bindists. This section remains for future reference, but GHC's build system has changed substantially since it was written.**
48+
4849
TODO: look into using https://github.com/bgamari/ghc-utils/blob/master/rel-eng/bin-release.sh, which is the script used to official bindists.
4950

5051
On systems with a small `/tmp`, you should set TMP and TEMP to an alternate

etc/scripts/mirror-ghc-bindists-to-github.sh

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
# https://downloads.haskell.org/~ghc/X.Y.Z/.
2121
#
2222

23-
GHCVER=8.10.1
23+
GHCVER=8.10.2
2424

2525
if [[ -z "$GITHUB_AUTH_TOKEN" ]]; then
2626
echo "$0: GITHUB_AUTH_TOKEN environment variable is required" >&2
@@ -50,18 +50,6 @@ mirror_ () {
5050
date >"$srcfn.downloaded"
5151
fi
5252
local destfn=ghc-$GHCVER-${suffix}${destsuffix:+_}${destsuffix}.tar.${destext}
53-
while [[ $# -gt 0 ]]; do
54-
alias="$1"
55-
echo " $alias:" >>stack-setup-$GHCVER.yaml
56-
echo " $GHCVER:" >>stack-setup-$GHCVER.yaml
57-
echo " # Mirrored from $srcurl" >>stack-setup-$GHCVER.yaml
58-
echo " url: \"https://github.com/commercialhaskell/ghc/releases/download/ghc-$GHCVER-release/$destfn\"" >>stack-setup-$GHCVER.yaml
59-
echo " content-length: $(stat --printf="%s" "$destfn" 2>/dev/null || stat -f%z "$destfn")" >>stack-setup-$GHCVER.yaml
60-
echo " sha1: $(shasum -a 1 $destfn |cut -d' ' -f1)" >>stack-setup-$GHCVER.yaml
61-
echo " sha256: $(shasum -a 256 $destfn |cut -d' ' -f1)" >>stack-setup-$GHCVER.yaml
62-
echo "" >>stack-setup-$GHCVER.yaml
63-
shift
64-
done
6553
if [[ ! -s "$destfn.uploaded" ]]; then
6654
if [[ "${srcext}" == "xz" && "${destext}" == "bz2" ]]; then
6755
xzcat "$srcfn" | bzip2 -c > "$destfn"
@@ -74,6 +62,18 @@ mirror_ () {
7462
curl --fail -X POST --data-binary "@$destfn" -H "Content-type: application/octet-stream" -H "Authorization: token $GITHUB_AUTH_TOKEN" "$UPLOAD_URL?name=$destfn"
7563
date >"$destfn.uploaded"
7664
fi
65+
while [[ $# -gt 0 ]]; do
66+
alias="$1"
67+
echo " $alias:" >>stack-setup-$GHCVER.yaml
68+
echo " $GHCVER:" >>stack-setup-$GHCVER.yaml
69+
echo " # Mirrored from $srcurl" >>stack-setup-$GHCVER.yaml
70+
echo " url: \"https://github.com/commercialhaskell/ghc/releases/download/ghc-$GHCVER-release/$destfn\"" >>stack-setup-$GHCVER.yaml
71+
echo " content-length: $(stat --printf="%s" "$destfn" 2>/dev/null || stat -f%z "$destfn")" >>stack-setup-$GHCVER.yaml
72+
echo " sha1: $(shasum -a 1 $destfn |cut -d' ' -f1)" >>stack-setup-$GHCVER.yaml
73+
echo " sha256: $(shasum -a 256 $destfn |cut -d' ' -f1)" >>stack-setup-$GHCVER.yaml
74+
echo "" >>stack-setup-$GHCVER.yaml
75+
shift
76+
done
7777
}
7878

7979
mirror () {
@@ -90,9 +90,10 @@ mirror x86_64-fedora27-linux "" xz xz linux64-tinfo6
9090
mirror x86_64-apple-darwin "" xz bz2 macosx
9191
#mirror i386-unknown-mingw32 "" xz xz windows32
9292
mirror x86_64-unknown-mingw32 "" xz xz windows64
93-
#mirror x86_64-portbld-freebsd11 "" xz xz freebsd64-11
94-
mirror aarch64-deb9-linux "" xz xz linux-aarch64
95-
mirror armv7-deb9-linux "" xz xz linux-armv7
93+
mirror x86_64-unknown-freebsd "" xz xz freebsd64-11
94+
mirror aarch64-deb10-linux "" xz xz linux-aarch64
95+
mirror armv7-deb10-linux "" xz xz linux-armv7
96+
#mirror x86_64-alpine3.10-linux-integer-simple "" xz xz @@@
9697

9798
mirror_ https://github.com/redneb/ghc-alt-libc/releases/download/ghc-$GHCVER-musl i386-unknown-linux-musl "" xz xz linux32-musl
9899
mirror_ https://github.com/redneb/ghc-alt-libc/releases/download/ghc-$GHCVER-musl x86_64-unknown-linux-musl "" xz xz linux64-musl

0 commit comments

Comments
 (0)