haskell-hvr / missingh

Utility library [Haskell]
https://hackage.haskell.org/package/MissingH
Other
87 stars 40 forks source link

GHC 8.0.1-rc4 build failure #32

Closed deepfire closed 8 years ago

deepfire commented 8 years ago
hese derivations will be built:
  /nix/store/ip1zcx71sjy8w8sxf3sg68mxkrqaa4al-MissingH-1.3.0.1.drv
building path(s) ‘/nix/store/2qx6zf37hnpka6z5495nz5wwyvwcw3dx-MissingH-1.3.0.1’
setupCompilerEnvironmentPhase
Build with /nix/store/02hq0p02lf5aj342yb57sw1h2fg9sii0-ghc-8.0.0.20160421.
unpacking sources
unpacking source archive /nix/store/9fi5kfg76zzmxfm9j4qxn74sicig5sp7-MissingH-1.3.0.1.tar.gz
source root is MissingH-1.3.0.1
setting SOURCE_DATE_EPOCH to timestamp 1414500384 of file MissingH-1.3.0.1/wintest.bat
patching sources
Replace Cabal file with edited version from http://hackage.haskell.org/package/MissingH-1.3.0.1/revision/1.cabal.
Run jailbreak-cabal to lift version restrictions on build inputs.
compileBuildDriverPhase
setupCompileFlags: -package-db=/tmp/nix-build-MissingH-1.3.0.1.drv-0/package.conf.d -j8 -threaded
[1 of 1] Compiling Main             ( Setup.hs, /tmp/nix-build-MissingH-1.3.0.1.drv-0/Main.o )
Linking Setup ...
configuring
configureFlags: --verbose --prefix=/nix/store/2qx6zf37hnpka6z5495nz5wwyvwcw3dx-MissingH-1.3.0.1 --libdir=$prefix/lib/$compiler --libsubdir=$pkgid --with-gcc=gcc --package-db=/tmp/nix-build-MissingH-1.3.0.1.drv-0/package.conf.d --ghc-option=-optl=-Wl,-rpath=/nix/store/2qx6zf37hnpka6z5495nz5wwyvwcw3dx-MissingH-1.3.0.1/lib/ghc-8.0.0.20160421/MissingH-1.3.0.1 --enable-split-objs --disable-library-profiling --disable-profiling --enable-shared --enable-library-vanilla --enable-executable-dynamic --disable-tests
Configuring MissingH-1.3.0.1...
Setup: Encountered missing dependencies:
base <3 || >=4 && <4.9
note: keeping build directory ‘/tmp/nix-build-MissingH-1.3.0.1.drv-2’
builder for ‘/nix/store/ip1zcx71sjy8w8sxf3sg68mxkrqaa4al-MissingH-1.3.0.1.drv’ failed with exit code 1
error: build of ‘/nix/store/ip1zcx71sjy8w8sxf3sg68mxkrqaa4al-MissingH-1.3.0.1.drv’ failed
davean commented 8 years ago

Additionally, the package requires the following patch to compile once the new base package is allowed:

diff --git a/src/Data/BinPacking.hs b/src/Data/BinPacking.hs
index 0c058ec..2c43a12 100644
--- a/src/Data/BinPacking.hs
+++ b/src/Data/BinPacking.hs
@@ -69,7 +69,7 @@ same size.  Any surplus bins will simply be ignored.
 > [(size, obj)] is the sizes and objects
 > result is Either error or results
 -}
-type BinPacker = (Num size, Ord size, Show size, Show obj) => 
+type BinPacker = forall size obj. (Num size, Ord size, Show size, Show obj) => 
                   [size]        -- The sizes of bins
                -> [(size, obj)] -- The sizes and objects
                -> Either (BinPackerError size obj) [[(size, obj)]] -- Either error or results
diff --git a/src/System/IO/HVFS.hs b/src/System/IO/HVFS.hs
index 932f3ef..6431b8c 100644
--- a/src/System/IO/HVFS.hs
+++ b/src/System/IO/HVFS.hs
@@ -60,7 +60,7 @@ import System.IO.Error
 import System.IO.PlafCompat
 import System.Posix.Types
 import System.Time
-import System.Directory
+import System.Directory hiding (isSymbolicLink)

 #if MIN_VERSION_directory(1,2,0)
 import Data.Time.Clock.POSIX ( utcTimeToPOSIXSeconds )
cartazio commented 8 years ago

@jgoerzen @bjornbm

please let us know if you need help cutting a release, and or if you'd like me or another hackage trustee to do a quick fix update using the patch @davean shared.

a large number of things seem to depend on missingH in a number of ways, and its always nicer to make sure tools and libs upgrade smoothly with a new ghc release :)

jgoerzen commented 8 years ago

Please feel free to make a release. My time for Haskell is pretty limited right now.

jgoerzen commented 8 years ago

I would also be fine if somebody would like to adopt MissingH

cartazio commented 8 years ago

Could you add Davean https://hackage.haskell.org/user/davean To the uploaders group for missingH so we can do the NMU?

Many thanks.

On Sunday, May 15, 2016, John Goerzen notifications@github.com wrote:

I would also be fine if somebody would like to adopt MissingH

— You are receiving this because you commented. Reply to this email directly or view it on GitHub https://github.com/jgoerzen/missingh/issues/32#issuecomment-219313642

jgoerzen commented 8 years ago

Done

John

cartazio commented 8 years ago

Excellent! Thank you

On Monday, May 16, 2016, John Goerzen notifications@github.com wrote:

Done

John

— You are receiving this because you commented. Reply to this email directly or view it on GitHub https://github.com/jgoerzen/missingh/issues/32#issuecomment-219495182

jgoerzen commented 8 years ago

Thanks! pulled your fix into the repo in ca6f1157e0e6cdeef7d3087b736e8fbb999668b5