Hi
I am getting the following error:
make[1]: Entering directory `/root/ansible/rpm-build/ansible-0.0.1’
a2x -D docs/man/man1/ -d manpage -f manpage docs/man/man1/ansible.1.asciidoc
I/O error : Attempt to load network entity http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
warning: failed to load external entity “http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl”
compilation error: file /etc/asciidoc/docbook-xsl/manpage.xsl line 13 element import
xsl:import : unable to load http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
a2x: failed: xsltproc --stringparam callout.graphics 0 --stringparam navig.graphics 0 --stringparam admon.textlabel 1 --stringparam admon.graphics 0 --nonet “/etc/asciidoc/docbook-xsl/manpage.xsl” “/root/ansible/rpm-build/ansible-0.0.1/docs/man/man1/ansible.1.xml”
make[1]: *** [docs/man/man1/ansible.1] Error 1
make[1]: Leaving directory `/root/ansible/rpm-build/ansible-0.0.1’
error: Bad exit status from /var/tmp/rpm-tmp.69445 (%build)
when I do rpm build… DNS is working fine and I can wget the xsl file so not sure why it does not want to work.
Running it as root on a RHEL5.5 machine.
Regards
I haven’t had this problem on CentOS 6. I do get other problems about not being able to find any of the library module files, further on down the line, so
I haven’t been building the RPM myself. However, I’ve mostly been focusing on ‘upstream’ and not worrying so much about packaging just yet.
Maybe it’s a problem with the asciidoc version on EL 5.5?
(RPM experts, have you tried the RPM build on EL6? Still curious if that works for you…)
I would say just do “make install”, though that also tries to install the manages via setup.py. IMHO, this should probably change so where setup.py
only installs ansible and the libraries, and the docs are installed only by the RPM. I will probably make this change soon (filing bug) since manages
aren’t exactly related to the python code parts, unless that makes things hard on the RPM packaging. This would allow “make install” to not need
to build the docs first, which potentially makes things more likely to work from “pip install” or whatever, should we choose to make Ansible available
to be installed that way too. Probably will.
Obviously having RPMs is important. We’re working on packaging so it will be available from Fedora/EPEL directly soon so this should be less of an
issue.
Hi
I will try a build on RHEL6, I am happy to just do make install.
On a very basic install the following were requirements for me to get to the stage where I got to:
yum install rpm-build asciidoc python-devel libxslt
Regards
Hmm, I never installed libxslt that I can recall, maybe asciidoc gets ‘smarter’ (or rather, dumber) when it is installed.
In the worst case, we can switch to something extra simple like pod2man, which is what cobbler used, if the tool is annoying on older
platforms.
It complained about libxslt being missing. I can do a quick rebuild and start afresh and post the error message here if that helps.
Regards
FYI,
make installs fails horribly. It stumbles on the same docbook error as mentioned before. Manually doing the install doing: python setup.py install works fine though.
Regards
I have put in a pull request for a patch which I think fixes rpm build
issues on el6.
But to be fair I never had the problems you're encountering before.
What versions of the following do you have installed:
rpm-build
asciidoc
docbook-dtds
docbook-style-xsl
libxslt
sgml-common
xml-common
I have:
asciidoc-8.4.5-4.1.el6.noarch
docbook-dtds-1.0-51.el6.noarch
docbook-style-xsl-1.75.2-6.el6.noarch
libxslt-1.1.26-2.el6.x86_64
sgml-common-0.6.3-32.el6.noarch
xml-common-0.6.3-32.el6.noarch
-sv
Vanilla RHEL5.5 install ( hmmmm, I had EPEL testing switched on… maybe that caused a problem )
asciidoc-8.1.0-1.el5
docbook-dtds-1.0-30.1
libxslt-1.1.17-2.el5_2.2
libxslt-1.1.17-2.el5_2.2
rpm-build-4.4.2.3-18.el5
sgml-common-0.6.3-18
xml-common-0.6.3-18
Regards
Ah - I thought you were on rhel6 not on rhel5.
apply this patch to your local tree and see if it builds
https://github.com/skvidal/ansible/commit/3567237dbc88fdcc11ada0d191bd928bbce80efe
not sure it will - but it is a start.
-sv