Skip to content

Instantly share code, notes, and snippets.

@zeldin
Last active December 6, 2022 17:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zeldin/186d64464d6af2ff40c38ee99a43c8fa to your computer and use it in GitHub Desktop.
Save zeldin/186d64464d6af2ff40c38ee99a43c8fa to your computer and use it in GitHub Desktop.
The most(?) efficient way of bootstrapping haskell packages with tests enabled
FEATURES=test USE=test emerge -1a dev-haskell/mtl dev-haskell/text dev-haskell/fail dev-haskell/transformers dev-haskell/parsec dev-haskell/transformers-compat dev-haskell/cabal dev-haskell/tagged dev-haskell/splitmix dev-haskell/primitive dev-haskell/colour dev-haskell/nanospec dev-haskell/cabal-doctest dev-haskell/th-abstraction dev-haskell/clock dev-haskell/setenv dev-haskell/stm dev-haskell/random dev-haskell/call-stack dev-haskell/ansi-terminal dev-haskell/quickcheck dev-haskell/hunit dev-haskell/tf-random dev-haskell/quickcheck-io dev-haskell/hspec-expectations
FEATURES=-test USE=-test emerge -1a dev-haskell/hspec-discover dev-haskell/hspec-core # check only these 2 are merged
FEATURES=test USE=test emerge -1a dev-haskell/hspec-discover dev-haskell/hspec-core
FEATURES=test USE=test emerge -a @preserved-rebuild # Should rebuild dev-haskell/hspec
Only three rebuilds are needed; dev-haskell/hspec-discover dev-haskell/hspec-core and dev-haskell/hspec
Build list for first command (25 builds)
[ebuild N ] dev-haskell/mtl-2.2.2 USE="-doc -hscolour -profile"
[ebuild N ] dev-haskell/text-1.2.5.0 USE="-doc -hscolour -profile"
[ebuild N ] dev-haskell/fail-4.9.0.0 USE="-profile"
[ebuild N ] dev-haskell/transformers-0.5.6.2 USE="-doc -hscolour -profile"
[ebuild N ] dev-haskell/parsec-3.1.14.0-r1 USE="-doc -hscolour -profile"
[ebuild N ] dev-haskell/transformers-compat-0.6.6 USE="-doc -hscolour -profile"
[ebuild N ] dev-haskell/cabal-3.4.1.0 USE="-doc -hscolour -profile"
[ebuild N ] dev-haskell/tagged-0.8.6.1 USE="-doc -hscolour -profile"
[ebuild N ] dev-haskell/splitmix-0.1.0.3 USE="-doc -hscolour -optimised-mixer -profile"
[ebuild N ] dev-haskell/nanospec-0.2.2 USE="-doc -hscolour -profile"
[ebuild N ] dev-haskell/primitive-0.7.3.0 USE="-doc -hscolour -profile"
[ebuild N ] dev-haskell/colour-2.3.5 USE="-doc -hscolour -profile"
[ebuild N ] dev-haskell/cabal-doctest-1.0.9 USE="-doc -hscolour -profile"
[ebuild N ] dev-haskell/th-abstraction-0.4.3.0 USE="test -doc -hscolour -profile"
[ebuild N ] dev-haskell/clock-0.7.2 USE="-doc -hscolour -profile"
[ebuild N ] dev-haskell/setenv-0.1.1.3 USE="-doc -hscolour -profile"
[ebuild N ] dev-haskell/stm-2.5.0.1 USE="-doc -hscolour -profile"
[ebuild N ] dev-haskell/random-1.2.1 USE="-doc -hscolour -profile"
[ebuild N ] dev-haskell/call-stack-0.3.0 USE="test -doc -hscolour -profile"
[ebuild N ] dev-haskell/ansi-terminal-0.10.3 USE="-doc -example -hscolour -profile"
[ebuild N ] dev-haskell/hunit-1.6.2.0 USE="test -doc -hscolour -profile"
[ebuild N ] dev-haskell/quickcheck-2.14.2 USE="template-haskell test -doc -hscolour -profile"
[ebuild N ] dev-haskell/tf-random-0.5 USE="-profile"
[ebuild N ] dev-haskell/quickcheck-io-0.2.0 USE="-doc -hscolour -profile"
[ebuild N ] dev-haskell/hspec-expectations-0.8.2 USE="test -doc -hscolour -profile"
Build list for second command (2 builds)
[ebuild N ] dev-haskell/hspec-discover-2.9.4 USE="-doc -hscolour -profile -test"
[ebuild N ] dev-haskell/hspec-core-2.9.4 USE="-doc -hscolour -profile -test"
Build list for third command (31 builds, 2 rebuilds)
[ebuild N ] dev-haskell/base-compat-0.12.1 USE="-doc -hscolour -profile"
[ebuild N ] dev-haskell/extensible-exceptions-0.1.1.4 USE="-doc -hscolour -profile"
[ebuild N ] dev-haskell/unbounded-delays-0.1.1.0 USE="-doc -hscolour -profile"
[ebuild N ] dev-haskell/setlocale-1.0.0.9 USE="-doc -hscolour -profile"
[ebuild N ] dev-haskell/utf8-string-1.0.1.1 USE="-doc -hscolour -profile"
[ebuild N ] dev-haskell/integer-logarithms-1.0.3.1-r1 USE="-doc -hscolour -profile"
[ebuild N ] dev-haskell/hostname-1.0-r1 USE="-doc -hscolour -profile"
[ebuild N ] dev-haskell/old-locale-1.0.0.7 USE="-doc -hscolour -profile"
[ebuild N ] dev-haskell/semigroups-0.20 USE="-doc -hscolour -profile"
[ebuild N ] dev-haskell/xml-1.3.14 USE="-doc -hscolour -profile"
[ebuild N ] dev-haskell/regex-base-0.94.0.1 USE="-doc -hscolour -profile"
[ebuild N ] dev-haskell/regex-posix-0.96.0.0 USE="-doc -hscolour -profile"
[ebuild N ] dev-haskell/ansi-wl-pprint-0.6.9 USE="-doc -examples -hscolour -profile"
[ebuild N ] dev-haskell/optparse-applicative-0.16.1.0 USE="test -doc -hscolour -profile"
[ebuild N ] dev-haskell/hspec-meta-2.9.3 USE="-doc -hscolour -profile"
[ebuild N ] dev-haskell/hspec-2.9.4 USE="-doc -hscolour -profile"
[ebuild N ] dev-haskell/base-orphans-0.8.6 USE="test -doc -hscolour -profile"
[ebuild N ] dev-haskell/logging-facade-0.3.0 USE="test -doc -hscolour -profile"
[ebuild N ] dev-haskell/test-framework-0.8.2.0-r3 USE="-doc -hscolour -profile"
[ebuild N ] dev-haskell/hashable-1.4.0.2 USE="-doc -hscolour -profile"
[ebuild N ] dev-haskell/scientific-0.3.7.0-r1 USE="-doc -hscolour -profile"
[ebuild N ] dev-haskell/test-framework-hunit-0.3.0.2-r1 USE="-doc -hscolour -profile"
[ebuild N ] dev-haskell/test-framework-quickcheck2-0.3.0.5-r2 USE="-doc -hscolour -profile"
[ebuild N ] dev-haskell/exceptions-0.10.4-r1 USE="test -doc -hscolour -profile"
[ebuild N ] dev-haskell/attoparsec-0.14.4 USE="-doc -hscolour -profile"
[ebuild N ] dev-haskell/wcwidth-0.0.2 USE="cli -doc -hscolour -profile"
[ebuild N ] dev-haskell/tasty-1.4.2.3 USE="-doc -hscolour -profile"
[ebuild N ] dev-haskell/tasty-hunit-0.10.0.3 USE="-doc -hscolour -profile"
[ebuild N ] dev-haskell/temporary-1.3 USE="test -doc -hscolour -profile"
[ebuild N ] dev-haskell/silently-1.2.5.1 USE="test -doc -hscolour -profile"
[ebuild N ] dev-haskell/mockery-0.3.5 USE="test -doc -hscolour -profile"
[ebuild R ] dev-haskell/hspec-discover-2.9.4 USE="test*"
[ebuild R ] dev-haskell/hspec-core-2.9.4 USE="test*"
Build list for fourth command (1 rebuild)
[ebuild R ] dev-haskell/hspec-2.9.4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment