From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 63355 invoked by alias); 1 Jul 2016 22:11:33 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 63347 invoked by uid 89); 1 Jul 2016 22:11:33 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.6 required=5.0 tests=AWL,BAYES_50,KAM_LAZY_DOMAIN_SECURITY,RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy=curve, brker, hans-bernhard, hansbernhard X-HELO: etr-usa.com Received: from etr-usa.com (HELO etr-usa.com) (130.94.180.135) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 01 Jul 2016 22:11:22 +0000 Received: (qmail 28593 invoked by uid 13447); 1 Jul 2016 22:11:20 -0000 Received: from unknown (HELO polypore.west.etr-usa.com) ([73.26.17.49]) (envelope-sender ) by 130.94.180.135 (qmail-ldap-1.03) with AES256-SHA encrypted SMTP for ; 1 Jul 2016 22:11:20 -0000 Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: Lengthy "xmlto" build step in Cygwin. From: Warren Young In-Reply-To: <438a2cac-c7d3-4f5d-d9da-ad98c79b6baf@t-online.de> Date: Fri, 01 Jul 2016 22:11:00 -0000 Content-Transfer-Encoding: quoted-printable Message-Id: References: <438a2cac-c7d3-4f5d-d9da-ad98c79b6baf@t-online.de> To: The Cygwin Mailing List X-IsSubscribed: yes X-SW-Source: 2016-07/txt/msg00021.txt.bz2 On Jul 1, 2016, at 2:52 PM, Hans-Bernhard Br=C3=B6ker wrote: >=20 > Am 01.07.2016 um 20:36 schrieb Warren Young: >=20 >> That means you have the DocBook tools installed but don=E2=80=99t have t= he >> DocBook XSL stylesheets installed >=20 > only docbox2x-texi is checked for by winsup/doc/configure.ac. You=E2=80=99re in a fine position to fix that, then. :) > At least xmlto surely has to be checked for, too, don't you think? That and xsltproc, at least. > And maybe it would be possible to add a check for the docbook-xml45 packa= ge The trick is finding that out portably. You can=E2=80=99t check for version 4.5 stylesheets specifically, because s= omeday the docs may move to DocBook 5. You also can=E2=80=99t use Cygwin-specific methods to check for this becaus= e the docs are also built on non-Cygwin systems. The official builds of ev= erything under winsup are in fact cross-compiled on a Fedora box rather tha= n built under Cygwin. Finally, the stylesheets may be in different locations on different machine= s. Probably the most portable method is something like if ! grep -q file://.*docbook /etc/xml/catalog then AC_MSG_ERROR([the DocBook stylesheets are not installed]) fi Consider that pseudocode. (Untested, written off the top of my head.) > Or, to turn this around: shouldn't one of these packages: >=20 > xmlto > dblatex > docbook2x >=20 > formally require package docbook-xml45 Certainly not xmlto or xsltproc, as they=E2=80=99re both used for more than= DocBook. dblatex could, I suppose, but you=E2=80=99ll find that Fedora doesn=E2=80= =99t tie those two together, either: http://koji.fedoraproject.org/koji/rpminfo?rpmID=3D7275706 That=E2=80=99s probably because dblatex will consume either XSL or SGML sty= lesheets, and they don=E2=80=99t want to depend on both. Plus, as you=E2= =80=99ve found, the network fetch option does work; it=E2=80=99s just sllll= ooooow. Even if you fix that, there's more than just dblatex for rendering DocBook = to PDF, so you=E2=80=99d have to chase all those avenues, too. For instanc= e, there=E2=80=99s FOP, which isn=E2=80=99t DocBook specific, so making doc= book-xsl a dependency of it would be wrong, so you=E2=80=99re left hangnig. docbook2x is perhaps a better candidate, though I don=E2=80=99t actually se= e a reason it=E2=80=99s the only possible build option. I suspect you coul= d do everything it does in pure XSLT, obviating the need for it. So, you= =E2=80=99d still need to call out the need for docbook-xsl in the build ins= tructions. Bottom line, you just have to know you need these things, if you=E2=80=99re= going to work with DocBook. It=E2=80=99s just part of the learning curve. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple