Skip to content

Commit

Permalink
Merge pull request #4616 from haskell/ghc-8.2.1-blockers
Browse files Browse the repository at this point in the history
Fix remaining GHC 8.2.1 blockers
  • Loading branch information
23Skidoo authored Jul 21, 2017
2 parents 42d92c9 + 132cf21 commit 082cf20
Show file tree
Hide file tree
Showing 12 changed files with 34 additions and 31 deletions.
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -273,4 +273,5 @@ Wojciech Danilo <[email protected]>
Yitzchak Gale <[email protected]>
Yuras Shumovich <[email protected]>
capsjac <[email protected]>
ilovezfs <[email protected]>
Łukasz Dąbek <[email protected]>
2 changes: 1 addition & 1 deletion Cabal/Cabal.cabal
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Cabal
version: 2.0.0.0
version: 2.0.0.2
copyright: 2003-2017, Cabal Development Team (see AUTHORS file)
license: BSD3
license-file: LICENSE
Expand Down
21 changes: 11 additions & 10 deletions Cabal/Distribution/Simple/Test/LibV09.hs
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,10 @@ import Distribution.Verbosity

import qualified Control.Exception as CE
import System.Directory
( createDirectoryIfMissing, doesDirectoryExist, doesFileExist
( createDirectoryIfMissing, canonicalizePath
, doesDirectoryExist, doesFileExist
, getCurrentDirectory, removeDirectoryRecursive, removeFile
, setCurrentDirectory, makeAbsolute )
, setCurrentDirectory )
import System.Exit ( ExitCode(..), exitWith )
import System.FilePath ( (</>), (<.>) )
import System.IO ( hClose, hGetContents, hPutStr )
Expand Down Expand Up @@ -90,14 +91,14 @@ runTest pkg_descr lbi clbi flags suite = do
shellEnv = [("HPCTIXFILE", tixFile) | isCoverageEnabled]
++ pkgPathEnv
-- Add (DY)LD_LIBRARY_PATH if needed
shellEnv' <- if LBI.withDynExe lbi
then do
let (Platform _ os) = LBI.hostPlatform lbi
paths <- LBI.depLibraryPaths
True False lbi clbi
cpath <- makeAbsolute $ LBI.componentBuildDir lbi clbi
return (addLibraryPath os (cpath : paths) shellEnv)
else return shellEnv
shellEnv' <-
if LBI.withDynExe lbi
then do
let (Platform _ os) = LBI.hostPlatform lbi
paths <- LBI.depLibraryPaths True False lbi clbi
cpath <- canonicalizePath $ LBI.componentBuildDir lbi clbi
return (addLibraryPath os (cpath : paths) shellEnv)
else return shellEnv
createProcessWithEnv verbosity cmd opts Nothing (Just shellEnv')
-- these handles are closed automatically
CreatePipe (UseHandle wOut) (UseHandle wOut)
Expand Down
2 changes: 1 addition & 1 deletion Cabal/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

VERSION=2.0.0.0
VERSION=2.0.0.2

#KIND=devel
KIND=rc
Expand Down
2 changes: 1 addition & 1 deletion Cabal/changelog
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
-*-change-log-*-

2.0.0.0 Ryan Thomas <[email protected]> May 2017
2.0.0.2 Ryan Thomas <[email protected]> July 2017
* The 2.0 migration guide gives advice on adapting Custom setup
scripts to backwards-incompatible changes in this release:
https://github.com/haskell/cabal/wiki/2.0-migration-guide
Expand Down
2 changes: 1 addition & 1 deletion Cabal/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
}:
mkDerivation {
pname = "Cabal";
version = "2.0.0.0";
version = "2.0.0.2";
src = ./.;
libraryHaskellDepends = [
array base binary bytestring containers deepseq directory filepath
Expand Down
4 changes: 2 additions & 2 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ build_script:
- Setup install
# hackage-repo-tool doesn't build on Windows:
# https://github.com/well-typed/hackage-security/issues/175
# - echo "" | ..\cabal install hackage-repo-tool --allow-newer=Cabal,time --constraint="Cabal == 2.0.0.0"
# - echo "" | ..\cabal install hackage-repo-tool --allow-newer=Cabal,time --constraint="Cabal == 2.0.0.2"
- cd ..\cabal-testsuite
- ghc --make -threaded -i Setup.hs -package Cabal-2.0.0.0
- ghc --make -threaded -i Setup.hs -package Cabal-2.0.0.2
- echo "" | ..\appveyor-retry ..\cabal install --only-dependencies --enable-tests --constraint="unbounded-delays < 0.1.0.10"
- Setup configure --user --ghc-option=-Werror --enable-tests
- Setup build
Expand Down
20 changes: 10 additions & 10 deletions cabal-install/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -208,9 +208,9 @@ PREFIX=${PREFIX:-${DEFAULT_PREFIX}}

# Versions of the packages to install.
# The version regex says what existing installed versions are ok.
PARSEC_VER="3.1.9"; PARSEC_VER_REGEXP="[3]\.[01]\."
PARSEC_VER="3.1.11"; PARSEC_VER_REGEXP="[3]\.[01]\."
# >= 3.0 && < 3.2
DEEPSEQ_VER="1.4.2.0"; DEEPSEQ_VER_REGEXP="1\.[1-9]\."
DEEPSEQ_VER="1.4.3.0"; DEEPSEQ_VER_REGEXP="1\.[1-9]\."
# >= 1.1 && < 2

case "$GHC_VER" in
Expand All @@ -221,30 +221,30 @@ case "$GHC_VER" in
;;
*)
# GHC >= 7.8
BINARY_VER="0.8.3.0"
BINARY_VER="0.8.5.1"
BINARY_VER_REGEXP="[0]\.[78]\." # >= 0.7 && < 0.9
;;
esac


TEXT_VER="1.2.2.1"; TEXT_VER_REGEXP="((1\.[012]\.)|(0\.([2-9]|(1[0-1]))\.))"
TEXT_VER="1.2.2.2"; TEXT_VER_REGEXP="((1\.[012]\.)|(0\.([2-9]|(1[0-1]))\.))"
# >= 0.2 && < 1.3
NETWORK_VER="2.6.3.1"; NETWORK_VER_REGEXP="2\.[0-6]\."
NETWORK_VER="2.6.3.2"; NETWORK_VER_REGEXP="2\.[0-6]\."
# >= 2.0 && < 2.7
NETWORK_URI_VER="2.6.1.0"; NETWORK_URI_VER_REGEXP="2\.6\."
# >= 2.6 && < 2.7
CABAL_VER="2.0.0.0"; CABAL_VER_REGEXP="2\.0\.[0-9]"
CABAL_VER="2.0.0.2"; CABAL_VER_REGEXP="2\.0\.[0-9]"
# >= 2.0 && < 2.1
TRANS_VER="0.5.2.0"; TRANS_VER_REGEXP="0\.[45]\."
TRANS_VER="0.5.4.0"; TRANS_VER_REGEXP="0\.[45]\."
# >= 0.2.* && < 0.6
MTL_VER="2.2.1"; MTL_VER_REGEXP="[2]\."
# >= 2.0 && < 3
HTTP_VER="4000.3.7"; HTTP_VER_REGEXP="4000\.(2\.([5-9]|1[0-9]|2[0-9])|3\.?)"
# >= 4000.2.5 < 4000.4
ZLIB_VER="0.6.1.2"; ZLIB_VER_REGEXP="(0\.5\.([3-9]|1[0-9])|0\.6)"
# >= 0.5.3 && <= 0.7
TIME_VER="1.7" TIME_VER_REGEXP="1\.[1-7]\.?"
# >= 1.1 && < 1.8
TIME_VER="1.8.0.2" TIME_VER_REGEXP="1\.[1-8]\.?"
# >= 1.1 && < 1.9
RANDOM_VER="1.1" RANDOM_VER_REGEXP="1\.[01]\.?"
# >= 1 && < 1.2
STM_VER="2.4.4.1"; STM_VER_REGEXP="2\."
Expand Down Expand Up @@ -274,7 +274,7 @@ HACKAGE_SECURITY_VER="0.5.2.2"; HACKAGE_SECURITY_VER_REGEXP="0\.5\.(2\.[2-9]|[3-
BYTESTRING_BUILDER_VER="0.10.8.1.0"; BYTESTRING_BUILDER_VER_REGEXP="0\.10\.?"
TAR_VER="0.5.0.3"; TAR_VER_REGEXP="0\.5\.([1-9]|1[0-9]|0\.[3-9]|0\.1[0-9])\.?"
# >= 0.5.0.3 && < 0.6
HASHABLE_VER="1.2.6.0"; HASHABLE_VER_REGEXP="1\."
HASHABLE_VER="1.2.6.1"; HASHABLE_VER_REGEXP="1\."
# 1.*

HACKAGE_URL="https://hackage.haskell.org/package"
Expand Down
2 changes: 1 addition & 1 deletion cabal-install/changelog
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
-*-change-log-*-

2.0.0.0 Ryan Thomas <[email protected]> May 2017
2.0.0.0 Ryan Thomas <[email protected]> July 2017
* Removed the '--root-cmd' parameter of the 'install' command
(#3356).
* Deprecated 'cabal install --global' (#3356).
Expand Down
2 changes: 1 addition & 1 deletion cabal-testsuite/cabal-testsuite.cabal
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: cabal-testsuite
version: 2.0.0.0
version: 2.0.0.2
copyright: 2003-2017, Cabal Development Team (see AUTHORS file)
license: BSD3
license-file: LICENSE
Expand Down
5 changes: 3 additions & 2 deletions travis-common.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
set -e

HACKAGE_REPO_TOOL_VERSION="0.1.1"
CABAL_VERSION="2.0.0.0"
CABAL_VERSION="2.0.0.2"
CABAL_INSTALL_VERSION="2.0.0.0"

CABAL_STORE_DB="${HOME}/.cabal/store/ghc-${GHCVER}/package.db"
CABAL_LOCAL_DB="${TRAVIS_BUILD_DIR}/dist-newstyle/packagedb/ghc-${GHCVER}"
CABAL_BDIR="${TRAVIS_BUILD_DIR}/dist-newstyle/build/Cabal-${CABAL_VERSION}"
CABAL_TESTSUITE_BDIR="${TRAVIS_BUILD_DIR}/dist-newstyle/build/cabal-testsuite-${CABAL_VERSION}"
CABAL_INSTALL_BDIR="${TRAVIS_BUILD_DIR}/dist-newstyle/build/cabal-install-${CABAL_VERSION}"
CABAL_INSTALL_BDIR="${TRAVIS_BUILD_DIR}/dist-newstyle/build/cabal-install-${CABAL_INSTALL_VERSION}"
CABAL_INSTALL_SETUP="${CABAL_INSTALL_BDIR}/setup/setup"
HACKAGE_REPO_TOOL_BDIR="${TRAVIS_BUILD_DIR}/dist-newstyle/build/hackage-repo-tool-${HACKAGE_REPO_TOOL_VERSION}"

Expand Down
2 changes: 1 addition & 1 deletion travis-deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ deploy() {
(cd cabal-website && git checkout --track -b gh-pages origin/gh-pages)
rm -rf cabal-website/doc
mkdir -p cabal-website/doc/html
mv dist-newstyle/build/Cabal-2.0.0.0/doc/html/Cabal \
mv dist-newstyle/build/Cabal-2.0.0.2/doc/html/Cabal \
cabal-website/doc/html/Cabal
(cd cabal-website && git add --all .)
(cd cabal-website && \
Expand Down

0 comments on commit 082cf20

Please sign in to comment.