[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: ANN: cabal-debian et el

On Sun, Apr 5, 2009 at 3:14 PM, Magnus Therning <magnus@therning.org> wrote:
Jeremy Shaw wrote:
> Hello,
> Having received no negative feedback, I uploaded the latest version of
> cabal-debian to hackage. cabal-debian is part of the debian package
> which features:

As you know I do like the idea of cabal-debian.  There's one thing that
I wonder over though, why do I have to have all the dependencies of a
package installed in order to debianize it?

% ~/.cabal/bin/cabal-debian --debianize
cabal-debian: finalize failed: [Dependency (PackageName "HTTP")
(IntersectVersionRanges (UnionVersionRanges (ThisVersion (Version
{versionBranch = [4000,0,2], versionTags = []})) (LaterVersion (Version
{versionBranch = [4000,0,2], versionTags = []}))) (EarlierVersion (Version
{versionBranch = [4001], versionTags = []})))]


That message means that finalizePackageDescription in the Cabal library failed.  If that fails it doesn't have a packageDescription, which I think is the parsed version of the cabal file plus more computed information. Cabal-debian gets lots of info from the package description: the license file, the dependencies, the list of executables, and so on.  And the fact that the cabal file is valid...

Reply to: