[Pkg-haskell-maintainers] Bug#625781: ghc 7.0.3-1 lacks man page for runghc

Mikhail Beloborodyy mbeloborodiy at gmail.com
Thu May 5 21:36:05 UTC 2011


Package: ghc
Version: 7.0.3-1
Severity: normal
Tags: patch

ghc 7.0.3-1 lacks man page for runghc. It's not a big problem for using
package, but this causes package configuration error.

I found cause of problem, it is in debian/rules file: runghc man-page is
installed if test on 213 line is passed "if test -e
debian/tmp/usr/bin/ghci-$(ProjectVersion); then BLA-BLA-BLA". But
debian/tmp/usr/bin/ghci-$(ProjectVersion) is not a file, but a soft-link
created at lines 182-183 and pointing to /usr/bin/ghci-$(ProjectVersion). It is
a good soft-link for installation purposes, but, as usually ghc is created by
previous version of ghc, this is a dead soft-link, so "test -e" fails for this
link and no man-page for runghc is installed. So IMO there are two options
a) quickfix is to rebuild ghc 7.0.3 using ghc 7.0.3
b) change "test -e" to "test -h", as debian/tmp/usr/bin/ghci-$(ProjectVersion)
is a soft-link created by debian/rules somewhat earlier

I'm not using debian, but trying convert some debian packages for ubuntu. But I
re-checked that debian/sid ghc package version 7.0.3-1 doesn't have runghc man
page

I'm attaching a fix for this problem (variant b)

-- System Information:
Debian Release: squeeze/sid
  APT prefers maverick-updates
  APT policy: (500, 'maverick-updates'), (500, 'maverick-security'), (500,
'maverick')
Architecture: i386 (i686)

Kernel: Linux 2.6.35-28-generic-pae (SMP w/2 CPU cores)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ghc_7.0.3_patch.diff
Type: text/x-diff
Size: 548 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-haskell-maintainers/attachments/20110506/a715d893/attachment.diff>


More information about the Pkg-haskell-maintainers mailing list