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

Re: ANN: cabal-debian et el



"Jeremy Shaw" <jeremy@n-heptane.com> writes:

>> Yes, I understand that.  However, that message is what I get when I
>> run `cabal-debian --debianize` on _cabal-install_ without having HTTP
>> installed.  Why do I need to have all of cabal-install's dependencies
>> installed in order to run `cabal-debian --debianize` on it?
>
> One possible answer is, how do know what the name of the debian binary
> is that provides the library if you don't have the package installed?
>
> With the debian binary installed you can do:
>
>  1. find cabal package name
>  2. find files associated with the package
>  3. map those files back to the deb(s) that provide(s) them

    $ dpkg -S /usr/lib/haskell-packages/ghc6/lib/utf8-string
    dpkg: /usr/lib/haskell-packages/ghc6/lib/utf8-string not found.
    $ apt-file search -l /usr/lib/haskell-packages/ghc6/lib/utf8-string
    libghc6-utf8-string-dev
    $ apt-file show libghc6-utf8-string-dev
    libghc6-utf8-string-dev: /usr/lib/haskell-packages/ghc6/lib/utf8-string-0.3.1.1/ghc-6.8.2/Codec/Binary/UTF8/Generic.hi
    libghc6-utf8-string-dev: /usr/lib/haskell-packages/ghc6/lib/utf8-string-0.3.1.1/ghc-6.8.2/Codec/Binary/UTF8/String.hi
    libghc6-utf8-string-dev: /usr/lib/haskell-packages/ghc6/lib/utf8-string-0.3.1.1/ghc-6.8.2/Data/ByteString/Lazy/UTF8.hi
    libghc6-utf8-string-dev: /usr/lib/haskell-packages/ghc6/lib/utf8-string-0.3.1.1/ghc-6.8.2/Data/ByteString/UTF8.hi
    libghc6-utf8-string-dev: /usr/lib/haskell-packages/ghc6/lib/utf8-string-0.3.1.1/ghc-6.8.2/Data/String/UTF8.hi
    libghc6-utf8-string-dev: /usr/lib/haskell-packages/ghc6/lib/utf8-string-0.3.1.1/ghc-6.8.2/HSutf8-string-0.3.1.1.o
    libghc6-utf8-string-dev: /usr/lib/haskell-packages/ghc6/lib/utf8-string-0.3.1.1/ghc-6.8.2/System/IO/UTF8.hi
    libghc6-utf8-string-dev: /usr/lib/haskell-packages/ghc6/lib/utf8-string-0.3.1.1/ghc-6.8.2/libHSutf8-string-0.3.1.1.a
    libghc6-utf8-string-dev: /usr/lib/haskell-packages/ghc6/lib/utf8-string-0.3.1.1/installed-pkg-config
    libghc6-utf8-string-dev: /usr/share/doc/libghc6-utf8-string-dev/changelog.Debian.gz
    libghc6-utf8-string-dev: /usr/share/doc/libghc6-utf8-string-dev/copyright

It seems reasonable to me for cabal-debian to require that apt-file be
installed and up-to-date, than to require all the build-dependencies to
already be installed.


Reply to: