FS#18252 - package asciidoc is needed to build the documentation

Attached to Project: Pacman
Opened by Denis A. Altoe Falqueto (denisfalqueto) - Tuesday, 09 February 2010, 11:30 GMT
Last edited by Allan McRae (Allan) - Sunday, 06 June 2010, 09:52 GMT
Task Type Bug Report
Category Scripts & Tools
Status Closed
Assigned To No-one
Architecture All
Severity Medium
Priority Normal
Reported Version git
Due in Version 3.4.0
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Summary and Info:

When building from git, the make process stopped with

make[2]: Entrando no diretório `/var/abs/local/pacman/src/pacman/doc'
a2x --no-xmllint -d manpage -f manpage --xsltproc-opts='-param man.endnotes.list.enabled 0 -param man.endnotes.are.numbered 0' --asciidoc-opts="-f asciidoc.conf -a pacman_version="3.3.3" -a pacman_date="`date +%Y-%m-%d`" -a sysconfdir=/etc" pacman.8.txt
a2x --no-xmllint -d manpage -f manpage --xsltproc-opts='-param man.endnotes.list.enabled 0 -param man.endnotes.are.numbered 0' --asciidoc-opts="-f asciidoc.conf -a pacman_version="3.3.3" -a pacman_date="`date +%Y-%m-%d`" -a sysconfdir=/etc" makepkg.8.txt
a2x --no-xmllint -d manpage -f manpage --xsltproc-opts='-param man.endnotes.list.enabled 0 -param man.endnotes.are.numbered 0' --asciidoc-opts="-f asciidoc.conf -a pacman_version="3.3.3" -a pacman_date="`date +%Y-%m-%d`" -a sysconfdir=/etc" repo-add.8.txt
/bin/sh: a2x: comando não encontrado
make[2]: ** [pacman.8] Erro 127

It is in portuguese, but it means that the program a2x was not found. it seems that the documentation needs the package asciidoc (which is in community right now and contains a2x). I don't know if the better solution should be to bring asciidoc to core (or extra) and adding it to makedepends or to avoid using it all together.
This task depends upon

Closed by  Allan McRae (Allan)
Sunday, 06 June 2010, 09:52 GMT
Reason for closing:  Implemented
Additional comments about closing:  http://projects.archlinux.org/pacman.git /commit/?id=d44e5099
Comment by Allan McRae (Allan) - Tuesday, 09 February 2010, 11:43 GMT
Asciidoc is not needed when building pacman from the released source tarballs, so it is not needed as a makedepends to the pacman package in Arch.
Comment by Xavier (shining) - Tuesday, 09 February 2010, 11:57 GMT
I am not sure why we are talking about makedepends. Did Denis write a pkgbuild for pacman git ?

The one in AUR has the asciidoc makedepends : http://aur.archlinux.org/packages/pacman-git/pacman-git/PKGBUILD

Anyway, this issue regularly comes up, is there really nothing we can do ?
Why cannot we detect at configure time whether asciidoc will be needed or not, and fail at this point.
Comment by Denis A. Altoe Falqueto (denisfalqueto) - Tuesday, 09 February 2010, 11:59 GMT
Ah, yes, I really made my own PKGBUILD to compile it from git. Forgotten completely of AUR, oh damn... But if there was something in the README saying that asciidoc is needed only for git compiling, there would be useful. Thanks and sorry for the noise.
Comment by Allan McRae (Allan) - Tuesday, 09 February 2010, 12:00 GMT
I am sure we can detect it...
frugalware-git@frugalware.org/msg04710.html"> http://www.mail-archive.com/frugalware-git@frugalware.org/msg04710.html

Loading...