You are not logged in.

#1 2013-10-27 22:18:36

caminoix
Member
From: cracow, poland
Registered: 2005-07-12
Posts: 162
Website

Haskell Dyre

I'm trying to create a package for Dyre, a configuration library for Haskell. It has these three dependencies: executable-paths, io-storage, and xdg-basedir, which do not seem to be available from AUR. I created packages for them, and they installed just fine. When I try to makepkg Dyre, however, it complains about unresolved dependencies (not the makepkg itself, but the building routine).

When I go to the source directory, and run

runhaskell Setup.hs configure

(as I understand is the standard procedure for AUR packages), I get this error:

Configuring dyre-0.8.11...
Setup.hs: At least the following dependencies are missing:
executable-path -any, io-storage -any, xdg-basedir -any

However, when I run

cabal configure && cabal build

everything compiles nicely.

Any help, please?

Offline

#2 2013-10-27 22:52:32

Xyne
Forum Fellow
Registered: 2008-08-03
Posts: 6,965
Website

Re: Haskell Dyre

It is not clear from your post if you are comparing commands run in the build function to commands run directly in a terminal. If you have installed the dependencies via cabal as a regular user then they will be available when running commands as that user, but not from within the build function. You must create pacman-packages to satisfy the dependencies. You cannot use cabal to do so within the PKGBUILD.

Instead of doing this yourself you may also ask to have these packages included in the Haskell repos maintained by the Arch-Haskell group.


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#3 2013-10-27 23:27:36

caminoix
Member
From: cracow, poland
Registered: 2005-07-12
Posts: 162
Website

Re: Haskell Dyre

Sorry I wasn't clear and thanks for a quick reply.

I did not install the dependencies via cabal. I didn't find them in AUR, so I made pacman-packages myself and installed those. It seemed to have worked, and they are now listed in "ghc-pkg list".

As for Dyre, my problem is that what I understand to be the preferred method, i.e. "Setup.hs" over a simple "cabal build", complains about the dependencies, regardless of whether it is run from inside the PKGBUILD, or directly from the terminal. I do not understand how the two methods differ, and do not know if I can simply use pure cabal in the PKGBUILD, instead of "Setup.hs".

Offline

#4 2013-10-27 23:51:28

Xyne
Forum Fellow
Registered: 2008-08-03
Posts: 6,965
Website

Re: Haskell Dyre

I recommend first looking at PKGBUILDs generated by cblrepo (which you can find by following the link above (GitHub group -> habs). If you have further questions about creating Haskell packages on Arch then arch-haskell is the place to go.

If you are really only asking about the differences between the "cabal" and "Setup.hs" approaches then you should ask on the Haskell IRC channel on Freenode (#haskell) or the Haskell mailing list (should show up in a quick search).


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#5 2013-10-29 14:08:33

caminoix
Member
From: cracow, poland
Registered: 2005-07-12
Posts: 162
Website

Re: Haskell Dyre

Ok, will do. Thanks for your help!

Offline

Board footer

Powered by FluxBB