input-output-hk / cardano-rt-view

RTView: real-time watching for Cardano nodes (ARCHIVED)
Apache License 2.0
59 stars 11 forks source link

[BUG] cardano-prelude missing in build-depends section #70

Closed mark-stopka closed 4 years ago

mark-stopka commented 4 years ago

cardano-rt-view is missing cardano-prelude in it's build-depends section of cardano-rt-view.cabal, see below:

[    4s] + cd cardano-rt-view-0.1.0
[    4s] + '[' -f Setup.hs -o -f Setup.lhs ']'
[    4s] + '[' -x Setup ']'
[    4s] + ghc --make -no-user-package-db Setup
[    4s] [1 of 1] Compiling Main             ( Setup.hs, Setup.o )
[    4s] Linking Setup ...
[    7s] + LANG=en_US.utf8
[    7s] + ./Setup --version
[    7s] Cabal library version 3.2.0.0
[    7s] + '[' -x Setup ']'
[    7s] + LANG=en_US.utf8
[    7s] + ./Setup configure --prefix=/usr --libdir=/usr/lib64 --docdir=/usr/share/licenses/cardano-rt-view '--libsubdir=$compiler/$pkgid' '--datasubdir=$pkgid' --ghc '--dynlibdir=/usr/lib64/$compiler/$pkgid' --global '--ghc-options= ' -v -p --enable-shared --htmldir=/usr/share/doc/ghc-8.10.2/html/libraries/cardano-rt-view-0.1.0 --global
[    8s] Using Parsec parser
[    8s] Configuring cardano-rt-view-0.1.0...
[    8s] CallStack (from HasCallStack):
[    8s]   $, called at libraries/Cabal/Cabal/Distribution/Simple/Configure.hs:1024:20 in Cabal-3.2.0.0:Distribution.Simple.Configure
[    8s]   configureFinalizedPackage, called at libraries/Cabal/Cabal/Distribution/Simple/Configure.hs:477:12 in Cabal-3.2.0.0:Distribution.Simple.Configure
[    8s]   configure, called at libraries/Cabal/Cabal/Distribution/Simple.hs:625:20 in Cabal-3.2.0.0:Distribution.Simple
[    8s]   confHook, called at libraries/Cabal/Cabal/Distribution/Simple/UserHooks.hs:65:5 in Cabal-3.2.0.0:Distribution.Simple.UserHooks
[    8s]   configureAction, called at libraries/Cabal/Cabal/Distribution/Simple.hs:180:19 in Cabal-3.2.0.0:Distribution.Simple
[    8s]   defaultMainHelper, called at libraries/Cabal/Cabal/Distribution/Simple.hs:116:27 in Cabal-3.2.0.0:Distribution.Simple
[    8s]   defaultMain, called at Setup.hs:2:8 in main:Main
[    8s] Setup: Encountered missing or private dependencies:
[    8s] cardano-prelude -any
[    8s]
[    8s] error: Bad exit status from /var/tmp/rpm-tmp.1Of1RU (%build)
denisshevchenko commented 4 years ago

cardano-rt-view is missing cardano-prelude in it's build-depends section of cardano-rt-view.cabal

Of course, it is! :-) RTView doesn't depend on cardano-prelude anymore (please see this commit: https://github.com/input-output-hk/cardano-rt-view/commit/e00363f960721f908070f8b3fa68e72cfea02850). IMHO, the custom Prelude is not so good idea, and I prefer using the standard one.

mark-stopka commented 4 years ago

cardano-rt-view is missing cardano-prelude in it's build-depends section of cardano-rt-view.cabal

Of course, it is! :-) RTView doesn't depend on cardano-prelude anymore (please see this commit: e00363f). IMHO, the custom Prelude is not so good idea, and I prefer using the standard one.

I see, I must've been using earlier master tagged as 0.1.0, welcome to nuances of making RPM packages when you structured your application the way you did! :)