Hello,
I'm trying to package vty [1] with all of its dependencies that are currently not present in Fedora 24. I got stuck at adjunctions [2]:
+ ./Setup configure --prefix=/usr --libdir=/usr/lib64 --docdir=/usr/share/doc/ghc-adjunctions '--libsubdir=$compiler/$pkgid' '--datasubdir=$pkgid' --ghc --enable-executable-dynamic '--ghc-options= -optc-O2 -optc-g -optc-pipe -optc-Wall -optc-Werror=format-security -optc-Wp,-D_FORTIFY_SOURCE=2 -optc-fexceptions -optc-fstack-protector-strong -optc--param=ssp-buffer-size=4 -optc-grecord-gcc-switches -optc-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -optc-m64 -optc-mtune=generic -optl-Wl,-z,relro' -p --enable-shared --htmldir=/usr/share/doc/ghc/html/libraries/adjunctions-4.3 --global Configuring adjunctions-4.3... + '[' -x Setup ']' + LANG=en_US.utf8 + ./Setup build Building adjunctions-4.3... Preprocessing library adjunctions-4.3... [ 1 of 11] Compiling Data.Functor.Contravariant.Rep ( src/Data/Functor/Contravariant/Rep.hs, dist/build/Data/Functor/Contravariant/Rep.o ) [ 2 of 11] Compiling Control.Monad.Trans.Conts ( src/Control/Monad/Trans/Conts.hs, dist/build/Control/Monad/Trans/Conts.o ) [ 3 of 11] Compiling Data.Functor.Contravariant.Adjunction ( src/Data/Functor/Contravariant/Adjunction.hs, dist/build/Data/Functor/Contravariant/Adjunction.o ) [ 4 of 11] Compiling Control.Monad.Trans.Contravariant.Adjoint ( src/Control/Monad/Trans/Contravariant/Adjoint.hs, dist/build/Control/Monad/Trans/Contravariant/Adjoint.o ) [ 5 of 11] Compiling Data.Functor.Rep ( src/Data/Functor/Rep.hs, dist/build/Data/Functor/Rep.o )
src/Data/Functor/Rep.hs:234:10: No instance for (Distributive Dual) arising from the superclasses of an instance declaration In the instance declaration for `Representable Dual'
src/Data/Functor/Rep.hs:239:10: No instance for (Distributive Monoid.Product) arising from the superclasses of an instance declaration In the instance declaration for `Representable Monoid.Product'
src/Data/Functor/Rep.hs:244:10: No instance for (Distributive Sum) arising from the superclasses of an instance declaration In the instance declaration for `Representable Sum'
src/Data/Functor/Rep.hs:250:10: No instance for (Distributive Complex) arising from the superclasses of an instance declaration In the instance declaration for `Representable Complex' error: Bad exit status from /var/tmp/rpm-tmp.d1XqGe (%build) Bad exit status from /var/tmp/rpm-tmp.d1XqGe (%build)
Any idea if that could be fixed without actually patching the code?
[1] https://hackage.haskell.org/package/vty-5.4.0 [2] https://hackage.haskell.org/package/adjunctions-4.3
Cheers,
Hi Jan,
On Fri, Apr 1, 2016 at 3:23 PM, Jan Synacek jsynacek@redhat.com wrote:
I'm trying to package vty [1] with all of its dependencies that are currently not present in Fedora 24. I got stuck at adjunctions [2]:
Cool, what do you want to use vty for?
Building adjunctions-4.3...
Stackage is still using 4.2.2 for LTS3: https://www.stackage.org/lts-3.22/package/adjunctions-4.2.2 (UI bug)
[ 5 of 11] Compiling Data.Functor.Rep ( src/Data/Functor/Rep.hs, dist/build/Data/Functor/Rep.o )
src/Data/Functor/Rep.hs:234:10: No instance for (Distributive Dual) arising from the superclasses of an instance declaration In the instance declaration for `Representable Dual'
src/Data/Functor/Rep.hs:239:10: No instance for (Distributive Monoid.Product) arising from the superclasses of an instance declaration In the instance declaration for `Representable Monoid.Product'
src/Data/Functor/Rep.hs:244:10: No instance for (Distributive Sum) arising from the superclasses of an instance declaration In the instance declaration for `Representable Sum'
src/Data/Functor/Rep.hs:250:10: No instance for (Distributive Complex) arising from the superclasses of an instance declaration In the instance declaration for `Representable Complex' error: Bad exit status from /var/tmp/rpm-tmp.d1XqGe (%build) Bad exit status from /var/tmp/rpm-tmp.d1XqGe (%build)
You could try using adjunctions-4.2.2 instead perhaps.
I think your best bet may be to use the stack [1] tool to build but it depends on what you're trying to achieve. :)
Jens
[1] http://haskellstack.org/ (https://copr.fedoraproject.org/coprs/petersen/stack/)
On Fri, Apr 1, 2016 at 12:07 PM, Jens-Ulrik Petersen petersen@redhat.com wrote:
Hi Jan,
On Fri, Apr 1, 2016 at 3:23 PM, Jan Synacek jsynacek@redhat.com wrote:
I'm trying to package vty [1] with all of its dependencies that are currently not present in Fedora 24. I got stuck at adjunctions [2]:
Cool, what do you want to use vty for?
I'm using it in a small text editor I'm trying to build. And the interface is, IMHO, better than hscurses.
Building adjunctions-4.3...
Stackage is still using 4.2.2 for LTS3: https://www.stackage.org/lts-3.22/package/adjunctions-4.2.2 (UI bug)
[ 5 of 11] Compiling Data.Functor.Rep ( src/Data/Functor/Rep.hs, dist/build/Data/Functor/Rep.o )
src/Data/Functor/Rep.hs:234:10: No instance for (Distributive Dual) arising from the superclasses of an instance declaration In the instance declaration for `Representable Dual'
src/Data/Functor/Rep.hs:239:10: No instance for (Distributive Monoid.Product) arising from the superclasses of an instance declaration In the instance declaration for `Representable Monoid.Product'
src/Data/Functor/Rep.hs:244:10: No instance for (Distributive Sum) arising from the superclasses of an instance declaration In the instance declaration for `Representable Sum'
src/Data/Functor/Rep.hs:250:10: No instance for (Distributive Complex) arising from the superclasses of an instance declaration In the instance declaration for `Representable Complex' error: Bad exit status from /var/tmp/rpm-tmp.d1XqGe (%build) Bad exit status from /var/tmp/rpm-tmp.d1XqGe (%build)
You could try using adjunctions-4.2.2 instead perhaps.
I'll try. The reason I didn't before is that this version requires comonad < 5, but I have already built comonad-5... Versions, I don't like them:)
I think your best bet may be to use the stack [1] tool to build but it depends on what you're trying to achieve. :)
Jens
Thank you,
haskell@lists.fedoraproject.org