FS#15042 - [ghc] package doesn't include man page

Attached to Project: Arch Linux
Opened by Magnus Therning (magus) - Wednesday, 10 June 2009, 12:56 GMT
Last edited by Paul Mattal (paul) - Wednesday, 20 January 2010, 12:39 GMT
Task Type Feature Request
Category Packages: Extra
Status Closed
Assigned To Vesa Kaihlavirta (vegai)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:
The current package does not include the man-page for ghc. It is installed as part of the 'install-docs' target.

Additional info:
* ghc-6.10.3-1-x86_64.pkg.tar.gz
This task depends upon

Closed by  Paul Mattal (paul)
Wednesday, 20 January 2010, 12:39 GMT
Reason for closing:  Fixed
Additional comments about closing:  Man page present in 6.12.1-2.
Comment by Gerardo Exequiel Pozzi (djgera) - Wednesday, 10 June 2009, 14:04 GMT
  • Field changed: Summary (GHC package doesn't include man page → [ghc] package doesn't include man page)
  • Field changed: Status (Unconfirmed → Assigned)
  • Task assigned to Vesa Kaihlavirta (vegai)
@magus: don't worry about title, anyway I will fix it
Comment by Paul Mattal (paul) - Sunday, 06 December 2009, 17:51 GMT
Sounds like they've added one upstream, but we need to turn it on in the build process:

http://hackage.haskell.org/trac/ghc/ticket/730
Comment by Paul Mattal (paul) - Sunday, 06 December 2009, 19:12 GMT
I tried the thing described above, but it does not seem to result in a manpage being built:

Set GhcManpages?=YES in mk/build.mk if you want to build the manpage.

Guess we have to try something else.
Comment by Magnus Therning (magus) - Sunday, 06 December 2009, 20:31 GMT
Paul, that's strange, looking in the Makefile after running configure I find the following target:

install-docs ::
@case '${MFLAGS}' in *-[ik]*) x_on_err=0;; *-r*[ik]*) x_on_err=0;; *) x_on_err=1;; esac; \
for i in $(SUBDIRS); do \
echo "------------------------------------------------------------------------"; \
echo "== $(MAKE) $@ $(MFLAGS);"; \
echo " in $(shell pwd)/$$i"; \
echo "------------------------------------------------------------------------"; \
$(MAKE) --no-print-directory -C $$i $(INSTALL_STAGE) $(MFLAGS) $@; \
if [ $$? -eq 0 -o $$x_on_err -eq 0 ] ; then true; else exit 1; fi; \
done

I added 'make DESTDIR=$startdir/pkg install-docs' just after the install target, and after installing the resulting package I see the following:

% pacman -Ql -p ghc-6.10.4-1-x86_64.pkg.tar.gz|grep man1
ghc /usr/share/man/man1/
ghc /usr/share/man/man1/ghc.1.gz
Comment by Paul Mattal (paul) - Sunday, 06 December 2009, 20:32 GMT
This is almost definitely the problem. I don't think I added the install-docs.

Will try that later. Thanks!
Comment by Paul Mattal (paul) - Monday, 07 December 2009, 00:12 GMT
This works. However, in the install, I'm getting:

[pjmattal@tic trunk]$ sudo pacman -U ./ghc-6.10.4-2-i686.pkg.tar.gz
Password:
loading package data...
checking dependencies...
(1/1) checking for file conflicts [###################################################################################################] 100%
/tmp/alpm_4QnIAn/.INSTALL: line 7: cd: /usr/share/haskell/: No such file or directory
==> Unregistering cabalized packages...
==> Done.
(1/1) upgrading ghc [###################################################################################################] 100%
==> All cabalized and yaourt-installed packages need to be reinstalled now.
==> See /usr/share/haskell/ and ghc-pkg list --user for a tentative list of affected packages.

Anyone know if /usr/share/haskell has moved elsewhere? I don't really use ghc, so I could figure it out if needed, but figured someone might know more quickly.
Comment by orbisvicis (orbisvicis) - Tuesday, 19 January 2010, 22:17 GMT
/usr/share/haskell seems to exist only for external haskell libraries.

6.12.1-2 includes a man page. Can this be closed?
Comment by Paul Mattal (paul) - Wednesday, 20 January 2010, 12:39 GMT
Confirmed it's there on i686.

Loading...