mirror of
https://github.com/commercialhaskell/stackage.git
synced 2026-03-11 11:16:34 +01:00
Merge branch 'master' into shake
This commit is contained in:
commit
d5e6606f3b
@ -38,6 +38,7 @@ import System.IO (BufferMode (LineBuffering), hSetBuffering)
|
|||||||
-- | Flags passed in from the command line.
|
-- | Flags passed in from the command line.
|
||||||
data BuildFlags = BuildFlags
|
data BuildFlags = BuildFlags
|
||||||
{ bfEnableTests :: !Bool
|
{ bfEnableTests :: !Bool
|
||||||
|
, bfEnableHaddock :: !Bool
|
||||||
, bfDoUpload :: !Bool
|
, bfDoUpload :: !Bool
|
||||||
, bfEnableLibProfile :: !Bool
|
, bfEnableLibProfile :: !Bool
|
||||||
, bfVerbose :: !Bool
|
, bfVerbose :: !Bool
|
||||||
@ -209,6 +210,7 @@ getPerformBuild buildFlags Settings {..} = PerformBuild
|
|||||||
, pbJobs = 8
|
, pbJobs = 8
|
||||||
, pbGlobalInstall = False
|
, pbGlobalInstall = False
|
||||||
, pbEnableTests = bfEnableTests buildFlags
|
, pbEnableTests = bfEnableTests buildFlags
|
||||||
|
, pbEnableHaddock = bfEnableHaddock buildFlags
|
||||||
, pbEnableLibProfiling = bfEnableLibProfile buildFlags
|
, pbEnableLibProfiling = bfEnableLibProfile buildFlags
|
||||||
, pbVerbose = bfVerbose buildFlags
|
, pbVerbose = bfVerbose buildFlags
|
||||||
, pbAllowNewer = bfSkipCheck buildFlags
|
, pbAllowNewer = bfSkipCheck buildFlags
|
||||||
|
|||||||
@ -28,6 +28,7 @@ data InstallFlags = InstallFlags
|
|||||||
, ifJobs :: !Int
|
, ifJobs :: !Int
|
||||||
, ifGlobalInstall :: !Bool
|
, ifGlobalInstall :: !Bool
|
||||||
, ifEnableTests :: !Bool
|
, ifEnableTests :: !Bool
|
||||||
|
, ifEnableHaddock :: !Bool
|
||||||
, ifEnableLibProfiling :: !Bool
|
, ifEnableLibProfiling :: !Bool
|
||||||
, ifVerbose :: !Bool
|
, ifVerbose :: !Bool
|
||||||
, ifSkipCheck :: !Bool
|
, ifSkipCheck :: !Bool
|
||||||
@ -48,6 +49,7 @@ getPerformBuild plan InstallFlags{..} =
|
|||||||
, pbJobs = ifJobs
|
, pbJobs = ifJobs
|
||||||
, pbGlobalInstall = ifGlobalInstall
|
, pbGlobalInstall = ifGlobalInstall
|
||||||
, pbEnableTests = ifEnableTests
|
, pbEnableTests = ifEnableTests
|
||||||
|
, pbEnableHaddock = ifEnableHaddock
|
||||||
, pbEnableLibProfiling = ifEnableLibProfiling
|
, pbEnableLibProfiling = ifEnableLibProfiling
|
||||||
, pbVerbose = ifVerbose
|
, pbVerbose = ifVerbose
|
||||||
, pbAllowNewer = ifSkipCheck
|
, pbAllowNewer = ifSkipCheck
|
||||||
|
|||||||
@ -65,6 +65,7 @@ data PerformBuild = PerformBuild
|
|||||||
, pbGlobalInstall :: Bool
|
, pbGlobalInstall :: Bool
|
||||||
-- ^ Register packages in the global database
|
-- ^ Register packages in the global database
|
||||||
, pbEnableTests :: Bool
|
, pbEnableTests :: Bool
|
||||||
|
, pbEnableHaddock :: Bool
|
||||||
, pbEnableLibProfiling :: Bool
|
, pbEnableLibProfiling :: Bool
|
||||||
, pbVerbose :: Bool
|
, pbVerbose :: Bool
|
||||||
, pbAllowNewer :: Bool
|
, pbAllowNewer :: Bool
|
||||||
@ -358,7 +359,7 @@ singleBuild pb@PerformBuild {..} SingleBuild {..} =
|
|||||||
-- dependency's haddocks before this finishes
|
-- dependency's haddocks before this finishes
|
||||||
atomically $ putTMVar (piResult sbPackageInfo) True
|
atomically $ putTMVar (piResult sbPackageInfo) True
|
||||||
|
|
||||||
when (pcHaddocks /= Don'tBuild && not (null $ sdModules $ ppDesc $ piPlan sbPackageInfo)) $ do
|
when (pbEnableHaddock && pcHaddocks /= Don'tBuild && not (null $ sdModules $ ppDesc $ piPlan sbPackageInfo)) $ do
|
||||||
log' $ "Haddocks " ++ namever
|
log' $ "Haddocks " ++ namever
|
||||||
hfs <- readTVarIO sbHaddockFiles
|
hfs <- readTVarIO sbHaddockFiles
|
||||||
let hfsOpts = flip map (mapToList hfs) $ \(pkgVer, hf) -> concat
|
let hfsOpts = flip map (mapToList hfs) $ \(pkgVer, hf) -> concat
|
||||||
|
|||||||
@ -78,6 +78,11 @@ main =
|
|||||||
(switch
|
(switch
|
||||||
(long "skip-tests" <>
|
(long "skip-tests" <>
|
||||||
help "Skip build and running the test suites")) <*>
|
help "Skip build and running the test suites")) <*>
|
||||||
|
fmap
|
||||||
|
not
|
||||||
|
(switch
|
||||||
|
(long "skip-haddock" <>
|
||||||
|
help "Skip generating haddock documentation")) <*>
|
||||||
fmap
|
fmap
|
||||||
not
|
not
|
||||||
(switch
|
(switch
|
||||||
@ -142,6 +147,11 @@ main =
|
|||||||
(switch
|
(switch
|
||||||
(long "skip-tests" <>
|
(long "skip-tests" <>
|
||||||
help "Skip build and running the test suites")) <*>
|
help "Skip build and running the test suites")) <*>
|
||||||
|
fmap
|
||||||
|
not
|
||||||
|
(switch
|
||||||
|
(long "skip-haddock" <>
|
||||||
|
help "Skip generating haddock documentation")) <*>
|
||||||
switch
|
switch
|
||||||
(long "enable-library-profiling" <>
|
(long "enable-library-profiling" <>
|
||||||
help "Enable profiling when building") <*>
|
help "Enable profiling when building") <*>
|
||||||
|
|||||||
@ -315,8 +315,9 @@ packages:
|
|||||||
|
|
||||||
"Brent Yorgey <byorgey@gmail.com>":
|
"Brent Yorgey <byorgey@gmail.com>":
|
||||||
- active
|
- active
|
||||||
- BlogLiterately
|
# Temporarily disabled due to restrictive lens upper bound
|
||||||
- BlogLiterately-diagrams
|
#- BlogLiterately
|
||||||
|
#- BlogLiterately-diagrams
|
||||||
- diagrams
|
- diagrams
|
||||||
- diagrams-builder
|
- diagrams-builder
|
||||||
- diagrams-contrib
|
- diagrams-contrib
|
||||||
@ -389,9 +390,12 @@ packages:
|
|||||||
- fay-jquery
|
- fay-jquery
|
||||||
- fay-text
|
- fay-text
|
||||||
- fay-uri
|
- fay-uri
|
||||||
- fclabels
|
|
||||||
- snaplet-fay
|
- snaplet-fay
|
||||||
|
|
||||||
|
"Sebastiaan Visser <haskell@fvisser.nl>":
|
||||||
|
- clay
|
||||||
|
- fclabels
|
||||||
|
|
||||||
"Rodrigo Setti <rodrigosetti@gmail.com>":
|
"Rodrigo Setti <rodrigosetti@gmail.com>":
|
||||||
- messagepack
|
- messagepack
|
||||||
- messagepack-rpc
|
- messagepack-rpc
|
||||||
@ -702,27 +706,26 @@ packages:
|
|||||||
"Gabríel Arthúr Pétursson gabriel@system.is":
|
"Gabríel Arthúr Pétursson gabriel@system.is":
|
||||||
- sdl2
|
- sdl2
|
||||||
|
|
||||||
|
"Leon Mergen leon@solatis.com":
|
||||||
|
- network-attoparsec
|
||||||
|
|
||||||
|
"Timothy Jones git@zmthy.io @zmthy":
|
||||||
|
- cabal-test-quickcheck
|
||||||
|
- http-media
|
||||||
|
|
||||||
"Stackage upper bounds":
|
"Stackage upper bounds":
|
||||||
|
|
||||||
# Force a specific version that's compatible with transformers 0.3
|
# Force a specific version that's compatible with transformers 0.3
|
||||||
- transformers-compat == 0.3.3.3
|
- transformers-compat == 0.4.0.3
|
||||||
- mtl-compat < 0.2 # https://github.com/fpco/stackage/issues/446
|
|
||||||
|
|
||||||
# https://github.com/fpco/stackage/issues/291
|
# https://github.com/fpco/stackage/issues/291
|
||||||
- random < 1.0.1.3
|
- random < 1.0.1.3
|
||||||
|
|
||||||
# https://github.com/fpco/stackage/issues/389
|
|
||||||
- lens < 4.7
|
|
||||||
- hsdev < 0.1.3.3
|
|
||||||
|
|
||||||
# https://github.com/fpco/stackage/issues/390
|
# https://github.com/fpco/stackage/issues/390
|
||||||
# NOTE: When this issue is resolved, remove the expected test failure
|
# NOTE: When this issue is resolved, remove the expected test failure
|
||||||
# for language-ecmascript as well.
|
# for language-ecmascript as well.
|
||||||
- language-ecmascript < 0.17
|
- language-ecmascript < 0.17
|
||||||
|
|
||||||
# https://github.com/fpco/stackage/issues/402
|
|
||||||
- vector-space < 0.9
|
|
||||||
|
|
||||||
# https://github.com/fpco/stackage/issues/407
|
# https://github.com/fpco/stackage/issues/407
|
||||||
- HStringTemplate < 0.8
|
- HStringTemplate < 0.8
|
||||||
|
|
||||||
@ -747,12 +750,14 @@ packages:
|
|||||||
|
|
||||||
# https://github.com/fpco/stackage/issues/442
|
# https://github.com/fpco/stackage/issues/442
|
||||||
- blaze-builder < 0.4
|
- blaze-builder < 0.4
|
||||||
|
- blaze-markup < 0.7
|
||||||
|
- blaze-html < 0.8
|
||||||
|
|
||||||
# https://github.com/fpco/stackage/issues/443
|
# https://github.com/fpco/stackage/issues/443
|
||||||
- exceptions < 0.7
|
- exceptions < 0.7
|
||||||
|
- rest-client < 0.5
|
||||||
# https://github.com/fpco/stackage/issues/445
|
- rest-types < 1.13
|
||||||
- semigroupoids < 4.3
|
- rest-core < 0.35
|
||||||
|
|
||||||
# Package flags are applied to individual packages, and override the values of
|
# Package flags are applied to individual packages, and override the values of
|
||||||
# global-flags
|
# global-flags
|
||||||
@ -1011,6 +1016,19 @@ expected-test-failures:
|
|||||||
# https://github.com/haskell-distributed/distributed-process-execution/issues/2
|
# https://github.com/haskell-distributed/distributed-process-execution/issues/2
|
||||||
- distributed-process-execution
|
- distributed-process-execution
|
||||||
|
|
||||||
|
# Seems to depend on mtl being installed in user package database, which
|
||||||
|
# isn't always the case (e.g., build server)
|
||||||
|
- happy
|
||||||
|
|
||||||
|
# https://github.com/jberryman/directory-tree/issues/4
|
||||||
|
- directory-tree
|
||||||
|
|
||||||
|
# https://github.com/zmthy/http-media/issues/11
|
||||||
|
- http-media
|
||||||
|
|
||||||
|
# https://github.com/ekmett/semigroupoids/issues/18
|
||||||
|
- semigroupoids
|
||||||
|
|
||||||
# Haddocks which are expected to fail. Same concept as expected test failures.
|
# Haddocks which are expected to fail. Same concept as expected test failures.
|
||||||
expected-haddock-failures:
|
expected-haddock-failures:
|
||||||
# https://github.com/acw/bytestring-progress/issues/4
|
# https://github.com/acw/bytestring-progress/issues/4
|
||||||
|
|||||||
@ -18,6 +18,9 @@ apt-get install -y \
|
|||||||
build-essential \
|
build-essential \
|
||||||
libncurses-dev \
|
libncurses-dev \
|
||||||
git \
|
git \
|
||||||
|
wget \
|
||||||
|
m4 \
|
||||||
|
texlive-binaries \
|
||||||
libgmp3c2 \
|
libgmp3c2 \
|
||||||
libgmp3-dev \
|
libgmp3-dev \
|
||||||
zlib1g-dev \
|
zlib1g-dev \
|
||||||
@ -34,11 +37,11 @@ apt-get install -y \
|
|||||||
llvm \
|
llvm \
|
||||||
libbz2-dev \
|
libbz2-dev \
|
||||||
libjudy-dev \
|
libjudy-dev \
|
||||||
|
libsqlite3-dev \
|
||||||
libmysqlclient-dev \
|
libmysqlclient-dev \
|
||||||
libpq-dev \
|
libpq-dev \
|
||||||
libicu-dev \
|
libicu-dev \
|
||||||
libssl-dev \
|
libssl-dev \
|
||||||
nettle-dev \
|
|
||||||
libgsl0-dev \
|
libgsl0-dev \
|
||||||
libblas-dev \
|
libblas-dev \
|
||||||
liblapack-dev \
|
liblapack-dev \
|
||||||
@ -49,4 +52,17 @@ apt-get install -y \
|
|||||||
libyaml-dev \
|
libyaml-dev \
|
||||||
liblzma-dev \
|
liblzma-dev \
|
||||||
libsdl2-dev \
|
libsdl2-dev \
|
||||||
|
libxss-dev \
|
||||||
libzmq3-dev
|
libzmq3-dev
|
||||||
|
|
||||||
|
mkdir /tmp/nettle-build
|
||||||
|
(
|
||||||
|
cd /tmp/nettle-build
|
||||||
|
wget https://ftp.gnu.org/gnu/nettle/nettle-2.7.1.tar.gz
|
||||||
|
tar zxf nettle-2.7.1.tar.gz
|
||||||
|
cd nettle-2.7.1
|
||||||
|
./configure --prefix=/usr
|
||||||
|
make
|
||||||
|
make install
|
||||||
|
)
|
||||||
|
rm -rf /tmp/nettle-build
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user