Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Jun 2013 09:02:25 +0200
From:      Matthias Andree <mandree@FreeBSD.org>
To:        freebsd-ports@freebsd.org
Cc:        Albert.Shih@obspm.fr, Wesley Shields <wxs@FreeBSD.org>, dim@FreeBSD.org, jonc@chen.org.nz
Subject:   Re: git contrib install failed
Message-ID:  <51C00601.9080301@FreeBSD.org>
In-Reply-To: <20130617204612.GA63292@pcjas.obspm.fr>
References:  <20130617204612.GA63292@pcjas.obspm.fr>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enigD85F396A4FAFF27A5CCAE51B
Content-Type: multipart/mixed;
 boundary="------------080103060907090505070107"

This is a multi-part message in MIME format.
--------------080103060907090505070107
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Am 17.06.2013 22:46, schrieb Albert Shih:
> Hi everyone
>=20
> When I try to upgrade git I got this error in the installation (the por=
ts
> build work fine)=20
>=20
> install -m 755 git-subtree /usr/local/libexec/git-core
> asciidoc -b docbook -d manpage -f ../../Documentation/asciidoc.conf \
>         -agit_version=3D1.8.3.1 git-subtree.txt
> xmlto -m ../../Documentation/manpage-normal.xsl  man git-subtree.xml
> xmlto: /usr/ports/devel/git/work/git-1.8.3.1/contrib/subtree/git-subtre=
e.xml does not validate (status 3)
> xmlto: Fix document syntax or use --skip-validation option
> I/O error : Attempt to load network entity http://www.oasis-open.org/do=
cbook/xml/4.5/docbookx.dtd
> /usr/ports/devel/git/work/git-1.8.3.1/contrib/subtree/git-subtree.xml:2=
: warning: failed to load external entity "http://www.oasis-open.org/docb=
ook/xml/4.5/docbookx.dtd"
> D DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docb=
ookx.dtd"
>                                                                        =
        ^
> I/O error : Attempt to load network entity http://www.oasis-open.org/do=
cbook/xml/4.5/docbookx.dtd
> warning: failed to load external entity "http://www.oasis-open.org/docb=
ook/xml/4.5/docbookx.dtd"
> validity error : Could not load the external subset "http://www.oasis-o=
pen.org/docbook/xml/4.5/docbookx.dtd"
> Document /usr/ports/devel/git/work/git-1.8.3.1/contrib/subtree/git-subt=
ree.xml does not validate
> gmake: *** [git-subtree.1] Erreur 13
> *** [post-install] Error code 2
>=20
> Stop in /usr/ports/devel/git.
> *** [reinstall] Error code 1
>=20
>=20
> Without contrib everything work fine.
>=20
> All my ports is up2date.
>=20
> Regards.
>=20
> JAS
>=20

Greetings,

This looks like devel/git should depend on Docbook XML 4.5 if and only
if contrib/ is enabled (I have not checked other stuff that is fed
through the asciidoc -> xmlto processing chain).

xmlto would normally run _both_ the validator (xmllint) and the
formatter (xsltproc) with the "--nonet" option, so it cannot fetch the
DTD or whatever from oasis-open.org; instead, it (the Docbook XML data)
has to be installed locally.


Albert, Jonathan,

please install textproc/docbook-xml-450, then re-try installing Git with
CONTRIB, and report if that helps.


Wesley,

I propose the attached patch to devel/git to remedy this, and please run
a test build with CONTRIB enabled in a Tinderbox to see if there are any
other requisites that need to be listed additionally.


Best regards
Matthias


--------------080103060907090505070107
Content-Type: text/x-patch;
 name="devel_git.patch"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
 filename="devel_git.patch"

Index: Makefile
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- Makefile	(Revision 321142)
+++ Makefile	(Arbeitskopie)
@@ -328,7 +328,8 @@
 .if ${PORT_OPTIONS:MCONTRIB}
 PLIST_SUB+=3D	CONTRIB=3D""
 BUILD_DEPENDS+=3D	xmlto:${PORTSDIR}/textproc/xmlto \
-		asciidoc:${PORTSDIR}/textproc/asciidoc
+		asciidoc:${PORTSDIR}/textproc/asciidoc \
+		${LOCALBASE}/share/xml/docbook/4.5/docbookx.dtd:${PORTSDIR}/textproc/d=
ocbook-xml-450
 MAN1+=3D		git-subtree.1
 .else
 PLIST_SUB+=3D	CONTRIB=3D"@comment "

--------------080103060907090505070107--

--------------enigD85F396A4FAFF27A5CCAE51B
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with undefined - http://www.enigmail.net/

iEYEARECAAYFAlHABgYACgkQvmGDOQUufZXaYgCdHRP5WDbhp/qgQjA9Wsg8JEs2
agQAoK2FLIc1HovE6hgxUjWEl2K55/o5
=P2nK
-----END PGP SIGNATURE-----

--------------enigD85F396A4FAFF27A5CCAE51B--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?51C00601.9080301>