Forwarding to fedora Haskell list instead...
---------- Forwarded message ----------
From: Jens-Ulrik Petersen <petersen(a)redhat.com>
Date: Mon, Apr 4, 2016 at 6:06 PM
Subject: Re: slack setup fails
To: Jan Synacek <jsynacek(a)redhat.com>
Hi Jan,
Copying Fedora Haskell list since this might interest/affect other people too.
(I have mostly tested stack with my ghc-7.10.3 copr...)
On Mon, Apr 4, 2016 at 4:22 PM, Jan Synacek <jsynacek(a)redhat.com> wrote:
> I'm trying to use the stack tool from your copr repository [1]. When I
> run 'stack setup', it fails with:
>
> "/home/jsynacek/.stack/programs/x86_64-linux/ghc-7.10.3/lib/ghc-7.10.3/bin/ghc-pkg:
> error while loading shared libraries: libtinfo.so.5: cannot open
> shared object file: No such file or directory
> gmake[1]: *** [install_packages] Error 127
> gmake: *** [install] Error 2"
The error is actually coming from the ghc binary,
which I assume was downloaded from upstream by stack,
and hence still linked against libtinfo.so.5.
> I resolved this by installing the library (ncurses-compat-libs on
> Fedora 24). I'm not sure if I missed this in the documentation, but
> maybe it could be added as Requires to the spec file.
Good idea, thanks, I'll add it. :)
Jens
ps Somehow latest stack has been failing to link on F24, so you're
probably not using the latest version.
> [1] https://copr.fedorainfracloud.org/coprs/petersen/stack/
>
> Cheers,
> --
> Jan Synacek
> Software Engineer, Red Hat
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,
--
Jan Synacek
Software Engineer, Red Hat