Skip to content

cabal2arch creates bad PKGBUILD for cabal2arch #20

Open
magthe opened this Issue Jan 7, 2011 · 3 comments

2 participants

@magthe
Arch Haskell member
magthe commented Jan 7, 2011

cabal2arch (the binary) tries to load two files, ghc-provides.txt and library-providers.txt. These two files are installed by archlinux (the package). This means that the PKGBUILD for cabal2arch can't makedepend on archlinux but instead has to depend on it. In other words, since archlinux contain data files the basic assumption that executables only need to makedepend on all libraries is wrong for executables that use archlinux.

I think there are two solutions to this:

  1. Move the two data files to cabal2arch, that's where the function for loading them is so that's where they belong.
  2. Remove the data files from archlinux completely and make cabal2arch always load them from a URL. (Or at least make it load them from a URL by default, this might make more sense from a developer and testing perspective.)

I would prefer the second solution.

@magthe
Arch Haskell member
magthe commented Jan 7, 2011

I should probably add that the two solutions are specific to cabal2arch. In the long run we need to address the more general problem of libraries having datafiles.

@peti
peti commented Jan 7, 2011

As a quick-fix, I've uploaded a new version of cabal2arch to AUR and kiwilight.com that declares a run-time dependency on haskell-archlinux. The PKGBUILD was hand-edited, though, so this is really a hack.

@magthe
Arch Haskell member
magthe commented Feb 17, 2011

Remy, I think this can be closed, right?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.