Skip to content

Commit 446258f

Browse files
committed
Merge remote-tracking branch 'origin/rc/v1.1.2' into rc/v1.1.2
2 parents c6dac65 + f3eef47 commit 446258f

File tree

7 files changed

+52
-9
lines changed

7 files changed

+52
-9
lines changed

ChangeLog.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
## 1.1.2
44

5+
Release notes:
6+
7+
* Official FreeBSD binaries are
8+
[now available](http://docs.haskellstack.org/en/stable/install_and_upgrade/#freebsd)
9+
[#1253](https://github.com/commercialhaskell/stack/issues/1253).
10+
511
Major changes:
612

713
* Extensible custom snapshots implemented. These allow you to define snapshots

doc/MAINTAINER_GUIDE.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
# Maintainer guide
22

3-
## Next release:
4-
5-
* Integrate FreeBSD binaries and packages
6-
[#1253](https://github.com/commercialhaskell/stack/issues/1253#issuecomment-185993240)
7-
83
## Pre-release steps
94

105
* Ensure `release` and `stable` branches merged to `master`
@@ -43,11 +38,12 @@
4338
* Look for any links to "latest" documentation, replace with version tag
4439
* Ensure all documentation pages listed in `mkdocs.yaml`
4540
* Check that any new Linux distribution versions added to
46-
`etc/scripts/release.hs` and `etc/scripts/vagrant-releases.sh`.
41+
`etc/scripts/release.hs` and `etc/scripts/vagrant-releases.sh`
4742
* [Ubuntu](https://wiki.ubuntu.com/Releases)
4843
* [Debian](https://www.debian.org/releases/) (keep at least latest two)
4944
* [CentOS](https://wiki.centos.org/Download)
5045
* [Fedora](https://fedoraproject.org/wiki/Releases)
46+
* Check for new FreeBSD release
5147
* Check that no new entries need to be added to
5248
[releases.yaml](https://github.com/fpco/stackage-content/blob/master/stack/releases.yaml),
5349
[install_and_upgrade.md](https://github.com/commercialhaskell/stack/blob/master/doc/install_and_upgrade.md),

doc/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Downloads are available by operating system:
2727
* [Arch Linux](install_and_upgrade.md#arch-linux)
2828
* [NixOS](install_and_upgrade.md#nixos)
2929
* [Linux (general)](install_and_upgrade.md#linux)
30-
* [FreeBSD (unofficial)](install_and_upgrade.md#freebsd)
30+
* [FreeBSD](install_and_upgrade.md#freebsd)
3131

3232
[Upgrade instructions](install_and_upgrade.md#upgrade)
3333

doc/install_and_upgrade.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,20 @@ For Gentoo users, make sure to have the `ncurses` package with `USE=tinfo` (with
271271

272272
## FreeBSD
273273

274+
(only 64-bit currently available, tested on FreeBSD 10.3-RELEASE)
275+
276+
* Install required dependencies:
277+
278+
pkg install devel/gmake perl5 lang/gcc misc/compat8x misc/compat9x converters/libiconv ca_root_nss
279+
280+
* Download the latest release:
281+
282+
* [FreeBSD 64-bit](https://www.stackage.org/stack/freebsd-x86_64)
283+
284+
* Extract the archive and place `stack` somewhere on your `$PATH` (see [Path section below](#path))
285+
286+
* Now you can run `stack` from the terminal.
287+
274288
An unofficial package repository for FreeBSD 10 (amd64 only) and install
275289
instructions are available at [http://stack-pkg.applicative.tech](http://stack-pkg.applicative.tech/). The
276290
repository is not official and as such might lag behind new releases. See [issue #1253](https://github.com/commercialhaskell/stack/issues/1253)

etc/scripts/vagrant-releases.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ set -xe
44
"$(dirname "$0")/with-vagrant.sh" debian-7-i386 "--upload-label='Linux 32-bit, standard' $* release"
55
"$(dirname "$0")/with-vagrant.sh" centos-6-x86_64 "--binary-variant=gmp4 --upload-label='Linux 64-bit, libgmp4 for CentOS 6.x' $* release"
66
"$(dirname "$0")/with-vagrant.sh" centos-6-i386 "--binary-variant=gmp4 --upload-label='Linux 32-bit, libgmp4 for CentOS 6.x' $* release"
7+
"$(dirname "$0")/with-vagrant.sh" freebsd-10.3-amd64 "--upload-label='FreeBSD 64-bit' $* release" "export LANG=en_US.UTF-8;"

etc/scripts/with-vagrant.sh

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
11
#!/usr/bin/env bash
22
#TODO: move this logic into release.hs.
33
set -xe
4+
cd "$(dirname "$0")/../.."
45
#TODO: set up gpg-agent forwarding for package signing (see http://superuser.com/questions/161973/how-can-i-forward-a-gpg-key-via-ssh-agent).
5-
gpg --export-secret-keys --armor [email protected] >.stack-work/gpg-secret-key.asc
6+
mkdir -p dist
7+
gpg --export-secret-keys --armor [email protected] >dist/gpg-secret-key.asc
68
cd "etc/vagrant/$1"
9+
10+
# Double 'vagrant up' is a workaround for FreeBSD
11+
vagrant up || true
712
vagrant up
13+
814
vagrant provision
915
vagrant rsync
10-
vagrant ssh -c "export GITHUB_AUTH_TOKEN=$GITHUB_AUTH_TOKEN; export AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID; export AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY; export AWS_DEFAULT_REGION=$AWS_DEFAULT_REGION; export AWS_SESSION_TOKEN=$AWS_SESSION_TOKEN; gpg --import /vagrant/.stack-work/gpg-secret-key.asc; cd /vagrant && (cd etc/scripts && stack --install-ghc build) && \$(cd etc/scripts && stack exec which stack-release-script) --no-test-haddocks $2"
16+
vagrant ssh -c "$3 export GITHUB_AUTH_TOKEN=$GITHUB_AUTH_TOKEN; export AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID; export AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY; export AWS_DEFAULT_REGION=$AWS_DEFAULT_REGION; export AWS_SESSION_TOKEN=$AWS_SESSION_TOKEN; gpg --import /vagrant/dist/gpg-secret-key.asc; cd /vagrant && (cd etc/scripts && stack --install-ghc build) && \$(cd etc/scripts && stack exec which stack-release-script) --no-test-haddocks $2"
1117
vagrant halt
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
Vagrant.configure(2) do |config|
2+
config.vm.box = "freebsd/FreeBSD-10.3-RELEASE"
3+
config.vm.synced_folder "../../..", "/vagrant", type: "rsync", rsync__exclude: [".stack-work/", "_release/"], rsync__args: ["--verbose", "--archive", "--delete", "-z"]
4+
config.vm.provider "virtualbox" do |vb|
5+
vb.memory = "2048"
6+
end
7+
config.ssh.forward_agent = true
8+
config.ssh.shell = "/bin/sh"
9+
config.vm.provision "shell", inline: <<-SHELL
10+
set -xe
11+
if ! which stack; then
12+
mkdir -p /usr/local/etc/pkg/repos
13+
cd /usr/local/etc/pkg/repos
14+
fetch --no-verify-peer --no-verify-hostname https://stack-pkg.applicative.tech/stack-pkg-applicative-tech.conf
15+
fetch --no-verify-peer --no-verify-hostname https://stack-pkg.applicative.tech/stack-pkg-applicative-tech.pub
16+
pkg update
17+
fi
18+
pkg install -y stack ca_root_nss gmake awscli git gnupg
19+
SHELL
20+
end

0 commit comments

Comments
 (0)