haste-compiler icon indicating copy to clipboard operation
haste-compiler copied to clipboard

haste-pkg check reports: package has duplicate dependencies/modules

Open thomie opened this issue 8 years ago • 0 comments

$ haste-pkg check 2>&1 | grep -v Warning
There are problems in package haste-lib-0.5.2:
  package has duplicate dependencies: array-0.5.1.0 base-4.8.0.0 bytestring-0.10.6.0 containers-0.5.6.3 ghc-prim-0.4.0.0 haste-prim-0.5.2 integer-gmp-0.5.0.0 monads-tf-0.1.0.2 time-1.5.0.1 transformers-0.4.3.0
  package has duplicate modules: Haste.App.Client Haste.App.Monad Haste.App.Protocol Haste.Audio.Events Haste.Binary.Get Haste.Binary.Put Haste.Binary.Types Haste.Compiler.Flags Haste.Concurrent.Ajax Haste.Concurrent.Monad Haste.DOM.Core Haste.Events.BasicEvents Haste.Events.Core Haste.Events.KeyEvents Haste.Events.MouseEvents Haste.Events.TouchEvents Haste.Hash Haste.Random Haste.Timer
There are problems in package array-0.5.1.0:
  package has duplicate dependencies: base-4.8.0.0
There are problems in package base-4.8.0.0:
  package has duplicate dependencies: builtin_rts ghc-prim-0.4.0.0 integer-gmp-0.5.0.0
  package has duplicate modules: Control.Monad.ST.Imp Control.Monad.ST.Lazy.Imp Data.OldList Foreign.ForeignPtr.Imp GHC.Event.Arr GHC.Event.Array GHC.Event.Clock GHC.Event.Control GHC.Event.EPoll GHC.Event.IntTable GHC.Event.Internal GHC.Event.KQueue GHC.Event.Manager GHC.Event.PSQ GHC.Event.Poll GHC.Event.Thread GHC.Event.TimerManager GHC.Event.Unique System.Environment.ExecutablePath
There are problems in package deepseq-1.4.1.2:
  package has duplicate dependencies: array-0.5.1.0 base-4.8.0.0
There are problems in package containers-0.5.6.3:
  package has duplicate dependencies: array-0.5.1.0 base-4.8.0.0 deepseq-1.4.1.2 ghc-prim-0.4.0.0
  package has duplicate modules: Data.IntMap.Base Data.IntSet.Base Data.Map.Base Data.Set.Base Data.Utils.BitUtil Data.Utils.StrictFold Data.Utils.StrictPair
There are problems in package bytestring-0.10.6.0:
  package has duplicate dependencies: base-4.8.0.0 deepseq-1.4.1.2 ghc-prim-0.4.0.0 integer-gmp-0.5.0.0
  package has duplicate modules: Data.ByteString.Builder.ASCII Data.ByteString.Builder.Prim.ASCII Data.ByteString.Builder.Prim.Binary Data.ByteString.Builder.Prim.Internal.Base16 Data.ByteString.Builder.Prim.Internal.Floating Data.ByteString.Builder.Prim.Internal.UncheckedShifts
There are problems in package haste-prim-0.5.2:
  package has duplicate dependencies: base-4.8.0.0 ghc-prim-0.4.0.0 integer-gmp-0.5.0.0
There are problems in package transformers-0.4.3.0:
  package has duplicate dependencies: base-4.8.0.0
There are problems in package monads-tf-0.1.0.2:
  package has duplicate dependencies: base-4.8.0.0 transformers-0.4.3.0
There are problems in package time-1.5.0.1:
  package has duplicate dependencies: base-4.8.0.0 deepseq-1.4.1.2 haste-prim-0.5.2
  package has duplicate modules: Data.Time.Calendar.Days Data.Time.Calendar.Gregorian Data.Time.Calendar.JulianYearDay Data.Time.Calendar.Private Data.Time.Clock.CTimeval Data.Time.Clock.Scale Data.Time.Clock.UTC Data.Time.Clock.UTCDiff Data.Time.Format.Locale Data.Time.Format.Parse Data.Time.LocalTime.LocalTime Data.Time.LocalTime.TimeOfDay Data.Time.LocalTime.TimeZone
There are problems in package integer-gmp-0.5.0.0:
  package has duplicate dependencies: ghc-prim-0.4.0.0
  package has duplicate modules: GHC.Integer.Type

The following packages are broken, either because they have a problem
listed above, or because they depend on a broken package.
haste-lib-0.5.2
array-0.5.1.0
base-4.8.0.0
deepseq-1.4.1.2
containers-0.5.6.3
bytestring-0.10.6.0
haste-prim-0.5.2
transformers-0.4.3.0
monads-tf-0.1.0.2
time-1.5.0.1
integer-gmp-0.5.0.0

Notice that hidden-modules in for example haste-lib are indeed listed twice:

$ haste-pkg describe haste-lib
...
hidden-modules: Haste.App.Client Haste.App.Monad Haste.App.Protocol
                Haste.Audio.Events Haste.Binary.Get Haste.Binary.Put
                Haste.Binary.Types Haste.Compiler.Flags Haste.Concurrent.Monad
                Haste.Concurrent.Ajax Haste.DOM.Core Haste.Events.BasicEvents
                Haste.Events.Core Haste.Events.KeyEvents Haste.Events.MouseEvents
                Haste.Events.TouchEvents Haste.Hash Haste.Random Haste.Timer

                Haste.App.Client Haste.App.Monad Haste.App.Protocol
                Haste.Audio.Events Haste.Binary.Get Haste.Binary.Put
                Haste.Binary.Types Haste.Compiler.Flags Haste.Concurrent.Monad
                Haste.Concurrent.Ajax Haste.DOM.Core Haste.Events.BasicEvents
                Haste.Events.Core Haste.Events.KeyEvents Haste.Events.MouseEvents
                Haste.Events.TouchEvents Haste.Hash Haste.Random Haste.Timer
...

This seems to be the cause of https://ghc.haskell.org/trac/ghc/ticket/11050 ("ModOrigin: hidden module redefined"). I don't know for sure if it is a bug in haste or in ghc/ghc-pkg (maybe ghc-pkg should reject such packages from being installed at all, since ghc chokes on them anyway?).

I have http://haste-lang.org/ghc-7.10/haste-compiler_0.5.2_amd64.deb installed. (installation failed with "Package ghc is not installed", but I'm ignoring that error, because I do have package ghc-7.10.2 installed and haste-pkg seems to work fine otherwise)

thomie avatar Nov 09 '15 16:11 thomie