Re: ANN: cabal-debian et el
On Tue, Apr 7, 2009 at 5:09 AM, Trent W. Buck <trentbuck@gmail.com> wrote:
> "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.
How does apt-file get it's information, I know you update it's info
using `apt-file update`, but where does the info come from? Would a
maintainer of a repo need to do anything special in order to make sure
apt-file knows about the contents of its packages? Is it possible to
use apt-file on a source-only repo, or is the required info only
available once binary packages have been built?
/M
--
Magnus Therning (OpenPGP: 0xAB4DFBA4)
magnus@therning.org Jabber: magnus@therning.org
http://therning.org/magnus identi.ca|twitter: magthe
Reply to: