[Pkg-haskell-maintainers] Bug#647584: Bug#647584: ghc-doc_7.0.4-8 3x larger than -7

Joachim Breitner nomeata at debian.org
Fri Nov 4 08:53:53 UTC 2011


Hello anonymous bug reporter,

Am Freitag, den 04.11.2011, 04:20 -0400 schrieb
sacrificial-spam-address at horizon.com:
> Package: ghc-doc
> Version: 7.0.4-8
> 
> ghc-doc_7.0.4-7 has an uncompressed size of 30.0 M.  -8 is 96.6 M.

Thanks for the report.

> Supposedly the only difference is removing something:
> > ghc (7.0.4-8) unstable; urgency=low
> >
> >   * Remove ghci support on powerpc (Closes: #631073)
> >
> >  -- Joachim Breitner <nomeata at debian.org>  Sun, 30 Oct 2011 17:56:23 +0100
> 
> Not to put too fine a point on it, but I find that very hard to believe.

Well, it is easy to make you a believer:

$ debsnap ghc 7.0.4-7
$ debsnap ghc 7.0.4-8 -f
$ debdiff source-ghc/*dsc
diff -Nru ghc-7.0.4/debian/changelog ghc-7.0.4/debian/changelog
--- ghc-7.0.4/debian/changelog	2011-10-18 18:09:39.000000000 +0200
+++ ghc-7.0.4/debian/changelog	2011-10-30 17:56:23.000000000 +0100
@@ -1,3 +1,9 @@
+ghc (7.0.4-8) unstable; urgency=low
+
+  * Remove ghci support on powerpc (Closes: #631073)
+
+ -- Joachim Breitner <nomeata at debian.org>  Sun, 30 Oct 2011 17:56:23 +0100
+
 ghc (7.0.4-7) unstable; urgency=low
 
   [ Joachim Breitner ]
diff -Nru ghc-7.0.4/debian/patches/no_ghci_on_powerpc ghc-7.0.4/debian/patches/no_ghci_on_powerpc
--- ghc-7.0.4/debian/patches/no_ghci_on_powerpc	1970-01-01 01:00:00.000000000 +0100
+++ ghc-7.0.4/debian/patches/no_ghci_on_powerpc	2011-10-30 17:53:31.000000000 +0100
@@ -0,0 +1,20 @@
+Description: Disable ghci on powerpc
+ Despite upstreams make files indicating that it works, we have had too many
+ problems with ghci on power, e.g.:
+ http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=631073. Erik had tried to fix
+ it, but eventually gave up:
+ http://lists.debian.org/debian-haskell/2011/10/msg00059.html
+Author: Joachim Breitner <nomeata at debian.org>
+Bug-Debian: http://bugs.debian.org/631073
+
+--- ghc-7.0.4.orig/mk/config.mk.in
++++ ghc-7.0.4/mk/config.mk.in
+@@ -169,7 +169,7 @@ GhcWithSMP=$(strip $(if $(filter YESNO,
+ # has support for this OS/ARCH combination.
+ 
+ OsSupportsGHCi=$(strip $(patsubst $(HostOS_CPP), YES, $(findstring $(HostOS_CPP), mingw32 cygwin32 linux solaris2 freebsd dragonfly netbsd openbsd darwin)))
+-ArchSupportsGHCi=$(strip $(patsubst $(HostArch_CPP), YES, $(findstring $(HostArch_CPP), i386 x86_64 powerpc sparc sparc64)))
++ArchSupportsGHCi=$(strip $(patsubst $(HostArch_CPP), YES, $(findstring $(HostArch_CPP), i386 x86_64 sparc sparc64)))
+ 
+ ifeq "$(OsSupportsGHCi)$(ArchSupportsGHCi)" "YESYES"
+ GhcWithInterpreter=YES
diff -Nru ghc-7.0.4/debian/patches/series ghc-7.0.4/debian/patches/series
--- ghc-7.0.4/debian/patches/series	2011-10-18 18:06:35.000000000 +0200
+++ ghc-7.0.4/debian/patches/series	2011-10-30 17:51:33.000000000 +0100
@@ -11,3 +11,4 @@
 haddock-expose-interface-version
 hash-version-number
 improve_linker_script_handling
+no_ghci_on_powerpc


But the observation still holds. So let’s see:

$ ls -sh1
 13M ghc-doc_7.0.4-6_all.deb
4,7M ghc-doc_7.0.4-7_all.deb
 13M ghc-doc_7.0.4-8_all.deb
$ for file in *; do dpkg -I $file |grep Installed; done
 Installed-Size: 102664
 Installed-Size: 29299
 Installed-Size: 94334
$ for file in *; do dpkg-deb -x $file $file-extr; done
$ du -sh */
101M	ghc-doc_7.0.4-6_all.deb-extr/
34M	ghc-doc_7.0.4-7_all.deb-extr/
101M	ghc-doc_7.0.4-8_all.deb-extr/
$ LANG=C diff -r ghc-doc_7.0.4-6_all.deb-extr/ ghc-doc_7.0.4-8_all.deb-extr/
Binary files ghc-doc_7.0.4-6_all.deb-extr/usr/share/doc/ghc-doc/Cabal.pdf.gz and ghc-doc_7.0.4-8_all.deb-extr/usr/share/doc/ghc-doc/Cabal.pdf.gz differ
Binary files ghc-doc_7.0.4-6_all.deb-extr/usr/share/doc/ghc-doc/Cabal.ps.gz and ghc-doc_7.0.4-8_all.deb-extr/usr/share/doc/ghc-doc/Cabal.ps.gz differ
Binary files ghc-doc_7.0.4-6_all.deb-extr/usr/share/doc/ghc-doc/changelog.Debian.gz and ghc-doc_7.0.4-8_all.deb-extr/usr/share/doc/ghc-doc/changelog.Debian.gz differ
Binary files ghc-doc_7.0.4-6_all.deb-extr/usr/share/doc/ghc-doc/haddock.pdf.gz and ghc-doc_7.0.4-8_all.deb-extr/usr/share/doc/ghc-doc/haddock.pdf.gz differ
Binary files ghc-doc_7.0.4-6_all.deb-extr/usr/share/doc/ghc-doc/haddock.ps.gz and ghc-doc_7.0.4-8_all.deb-extr/usr/share/doc/ghc-doc/haddock.ps.gz differ
Binary files ghc-doc_7.0.4-6_all.deb-extr/usr/share/doc/ghc-doc/users_guide.pdf.gz and ghc-doc_7.0.4-8_all.deb-extr/usr/share/doc/ghc-doc/users_guide.pdf.gz differ
Binary files ghc-doc_7.0.4-6_all.deb-extr/usr/share/doc/ghc-doc/users_guide.ps.gz and ghc-doc_7.0.4-8_all.deb-extr/usr/share/doc/ghc-doc/users_guide.ps.gz differ
$ diff -u <(cd ghc-doc_7.0.4-7_all.deb-extr/; find .) <(cd ghc-doc_7.0.4-8_all.deb-extr/; find .)
... long list, showing that 7.0.4-8 contains
 * the highlighted sources and
./usr/share/doc/ghc-doc/Cabal.pdf.gz
./usr/share/doc/ghc-doc/haddock.ps.gz
./usr/share/doc/ghc-doc/users_guide.ps.gz
./usr/share/doc/ghc-doc/users_guide.pdf.gz
./usr/share/doc/ghc-doc/haddock.pdf.gz
./usr/share/doc/ghc-doc/Cabal.ps.gz


So what happens is that ghc does not build-depend on hscolour and the
tools to build the PDF and PS file, but uses them when installed. They
were when I built the files, but not when Iain built it.

Having the highlighted sources is desirable, and hscolour is available
on all architectures, so adding it as a build-dependendency should be
fine. Porters might need to build it once without the dependency to
bootstrap Haskell on a new architecture, this should be noted in the
control file (until we have Build-Recommends or Build-Stage0 or whatever
people discussed recently).

I am not sure if we need the PDF and PS versions of the manuals, given
that they are also available as HTML in /usr/share/doc/ghc-doc/html/.
They are small:
$ ls -s1h /usr/share/doc/ghc-doc/*gz
248K /usr/share/doc/ghc-doc/Cabal.pdf.gz
100K /usr/share/doc/ghc-doc/Cabal.ps.gz
 24K /usr/share/doc/ghc-doc/changelog.Debian.gz
180K /usr/share/doc/ghc-doc/haddock.pdf.gz
 56K /usr/share/doc/ghc-doc/haddock.ps.gz
1,2M /usr/share/doc/ghc-doc/users_guide.pdf.gz
776K /usr/share/doc/ghc-doc/users_guide.ps.gz
and the additional build dependencies (yet to be identified) to build
them consistently do not depend on GHC, so no additional work for
porters. But does anyone use them? Maybe the PDF version is sufficient?
If we want to include them, maybe they should be linked from
file:///usr/share/doc/ghc-doc/html/index.html

And I notice that the haddock manual is not linked from
file:///usr/share/doc/ghc-doc/html/index.html, but the others are. This
needs to be fixed.


Greetings,
Joachim


-- 
Joachim "nomeata" Breitner
Debian Developer
  nomeata at debian.org | ICQ# 74513189 | GPG-Keyid: 4743206C
  JID: nomeata at joachim-breitner.de | http://people.debian.org/~nomeata
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://lists.alioth.debian.org/pipermail/pkg-haskell-maintainers/attachments/20111104/65326c6f/attachment-0001.pgp>


More information about the Pkg-haskell-maintainers mailing list