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

Re: How about add --hoogle option to haskell-devscripts's DEB_HADDOCK_OPTS



Hi.

On Tue, Aug 21, 2012 at 4:24 AM, Joachim Breitner <nomeata@debian.org> wrote:
>> The patched haskell-devscripts will create libghc-*-doc packages.
>> The libghc-*-doc package have foo.txt file.
>> In future, my hoogle package will collect textual database files installed,
>> and convert them to binary database files.
>
> sounds good. Main question: Does this require any additional
> dependencies? And what would be the equivalent change to the ghc
> package, so that the files are also present in ghc-doc as well? (Please
> test that patch.) How large is the increase in package installed size?

Q1. Does this require any additional dependencies?
A1. No.
Any libghc-foo-doc packages need no more new Depends entries,
because the packages take only new text file (foo.txt).
And they need no more new Build-Depends entries,
because they already build-dep on ghc-haddock that create foo.txt from
package foo.

Q2. The files are also present in ghc-doc as well?
A2. The ghc-doc package already has been created with --hoogle option
for textual databases.
But some databases had been gzipped on Debian.
Can I change their file format to raw text?

$ grep "\.txt" /var/lib/dpkg/info/ghc-doc.list
/usr/share/doc/ghc-doc/html/libraries/integer-gmp-0.4.0.0/integer-gmp.txt
/usr/share/doc/ghc-doc/html/libraries/array-0.4.0.0/array.txt.gz
/usr/share/doc/ghc-doc/html/libraries/haskell2010-1.1.0.1/haskell2010.txt.gz
/usr/share/doc/ghc-doc/html/libraries/filepath-1.3.0.0/filepath.txt.gz
/usr/share/doc/ghc-doc/html/libraries/prologue.txt
/usr/share/doc/ghc-doc/html/libraries/hpc-0.5.1.1/hpc.txt
/usr/share/doc/ghc-doc/html/libraries/deepseq-1.3.0.0/deepseq.txt.gz
/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/ghc-prim.txt.gz
/usr/share/doc/ghc-doc/html/libraries/directory-1.1.0.2/directory.txt.gz
/usr/share/doc/ghc-doc/html/libraries/time-1.4/time.txt.gz
/usr/share/doc/ghc-doc/html/libraries/pretty-1.1.1.0/pretty.txt.gz
/usr/share/doc/ghc-doc/html/libraries/containers-0.4.2.1/containers.txt.gz
/usr/share/doc/ghc-doc/html/libraries/binary-0.5.1.0/binary.txt.gz
/usr/share/doc/ghc-doc/html/libraries/haskell98-2.0.0.1/haskell98.txt.gz
/usr/share/doc/ghc-doc/html/libraries/Cabal-1.14.0/Cabal.txt.gz
/usr/share/doc/ghc-doc/html/libraries/old-locale-1.0.0.4/old-locale.txt
/usr/share/doc/ghc-doc/html/libraries/ghc-7.4.1/ghc.txt.gz
/usr/share/doc/ghc-doc/html/libraries/bin-package-db-0.0.0.0/bin-package-db.txt
/usr/share/doc/ghc-doc/html/libraries/template-haskell-2.7.0.0/template-haskell.txt.gz
/usr/share/doc/ghc-doc/html/libraries/old-time-1.1.0.0/old-time.txt.gz
/usr/share/doc/ghc-doc/html/libraries/unix-2.5.1.0/unix.txt.gz
/usr/share/doc/ghc-doc/html/libraries/process-1.1.0.1/process.txt.gz
/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/base.txt.gz
/usr/share/doc/ghc-doc/html/libraries/bytestring-0.9.2.1/bytestring.txt.gz
/usr/share/doc/ghc-doc/html/libraries/hoopl-3.8.7.3/hoopl.txt.gz
/usr/share/doc/ghc-doc/html/libraries/extensible-exceptions-0.1.1.4/extensible-exceptions.txt

Q3. How large is the increase in package installed size?
A3. Only additional foo.txt size.
I built pandoc 1.9.4.2-2 with new haskell-devscripts.
The Installed-Size increases 13kB as
/usr/share/doc/libghc-pandoc-doc/html/pandoc.txt.gz.
If libghc-pandoc-doc package had raw text pandoc.txt file, it's size
is increased 49kB

Thank's
-- 
Kiwamu Okabe


Reply to: