From owner-freebsd-ports@freebsd.org Fri Oct 27 03:26:24 2017 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C608CE5A648; Fri, 27 Oct 2017 03:26:24 +0000 (UTC) (envelope-from russ.haley@gmail.com) Received: from mail-lf0-x236.google.com (mail-lf0-x236.google.com [IPv6:2a00:1450:4010:c07::236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3D806749E0; Fri, 27 Oct 2017 03:26:24 +0000 (UTC) (envelope-from russ.haley@gmail.com) Received: by mail-lf0-x236.google.com with SMTP id k40so5888184lfi.4; Thu, 26 Oct 2017 20:26:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=kV/Wvhm9ieMU0Aq5kaYkHYjQmqLN5FBTHN5sV+AtNYc=; b=nRLmzDmv0CVP+SZ0KoV+YZlXD+f3s9BmzCYvnJXT54by0VFY8zBI/yLKPlJPC1xgBM GJRS0LkTySTCNo9kqehJizCkDsr7wf0XAVwe4R++1D4dDFNdXpPWj9TaSEyK2r+Yc8Up uT5NUWxYqjVRepwtNlde1jz/jh216LAHGeaDJ8VMZehFqbHwtHWI8HnBHysocbJxCnq4 XAPZqwg9/RHo6bQ2qKfc7ojfB540U390NTBjrzDObOqRpGJQf44J5ixkWw4PUpLCTf4h 9Wb+PC4HCf9OVkitCFqXF401K5PapRD8AX0p1v+o3SeKeBXqXJ42HvdOqBoD5R8Dwnd7 6d8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=kV/Wvhm9ieMU0Aq5kaYkHYjQmqLN5FBTHN5sV+AtNYc=; b=PgKOBFsK6DFUjlBds39U4HohK8uVMvcb7LKdLVJRrCGk5xTLATTsQlyyi7BpJK5pIJ czv89rtNevit+RtSSSDBUz0GNl3MS+7W/Q4RAsIVGkOOpvYlPqjS00jooydptSfXmUU2 h4b+oKHtvN1aZYRM8nbbxc+Mw7CF8lPI3s3XlMFNtwXIaM+Z1r1pX+68ciZM0OjRg5ou ZlACC3PwBOmhxui5q5vjXO/ciTA1kLgxjY9TSCkJw7vMygWfPdgvS8Dx3ZwaSv0UtR3N 0niZBbvXHNXPcLzInDFtvmx3kNI0q5y43a30wJRNiC8rkFy9IjMpDBjg1pItHghSHPk8 fmOg== X-Gm-Message-State: AMCzsaWnuYlCThJQggxm8O7TEC3UbDeCPthch8d96fU0qYMKGT2SbtIe jtxMwJjUQ5uL9tpPKPm8Pq772CkClpidE+H04pn7IA== X-Google-Smtp-Source: ABhQp+RaN7KEKIvSFo2eHoZaZSPDT/5mBgjh7wdNt9dcLyBVpRhHCrKSzPjeRPi3gE6cLINZHN+emzXI5YGrN9QdWRQ= X-Received: by 10.25.19.196 with SMTP id 65mr8177302lft.221.1509074781873; Thu, 26 Oct 2017 20:26:21 -0700 (PDT) MIME-Version: 1.0 Received: by 10.46.14.1 with HTTP; Thu, 26 Oct 2017 20:26:21 -0700 (PDT) In-Reply-To: References: <7b2f2464-5c35-e24a-2047-838c1a9e96a3@FreeBSD.org> <20171009224825.GM96685@kduck.kaduk.org> <20171011223253.GB96685@kduck.kaduk.org> <59DE9DD4.7010707@gmail.com> <20171011225205.GC96685@kduck.kaduk.org> From: Russell Haley Date: Thu, 26 Oct 2017 20:26:21 -0700 Message-ID: Subject: Re: Porters Handbook section 4.4 To: doc@freebsd.org Cc: freebsd-ports@freebsd.org Content-Type: text/plain; charset="UTF-8" X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Oct 2017 03:26:24 -0000 Hello, I'm still stuck building the new chapters I wrote for the Porters Handbook. I can't seem to get the system to "find" the file noted in my previous post: russellh@prescott:~/FreeBSD/doc/en_US.ISO8859-1/books/porters-handbook% make env XML_CATALOG_FILES="file:///usr/home/russellh/FreeBSD/doc/en_US.ISO8859-1/books/porters-handbook/catalog-cwd.xml file:///usr/home/russellh/FreeBSD/doc/en_US.ISO8859-1/share/xml/catalog.xml file:///usr/home/russellh/FreeBSD/doc/share/xml/catalog.xml file:///usr/local/share/xml/catalog" /usr/local/bin/xsltproc --xinclude --nonet --maxvars 20000 --stringparam latestrevision.timestamp "2017-09-29 03:54:21" --stringparam latestrevision.committer "wosch" --stringparam latestrevision.number "50969" http://www.FreeBSD.org/XML/share/xml/freebsd-xhtml-chunk.xsl book.parsed.xml I/O error : Attempt to load network entity http://docbook.sourceforge.net/release/xsl-ns/current/xhtml/chunk.xsl warning: failed to load external entity "http://docbook.sourceforge.net/release/xsl-ns/current/xhtml/chunk.xsl" compilation error: file file:///usr/home/russellh/FreeBSD/doc/share/xml/freebsd-xhtml-chunk.xsl line 13 element import xsl:import : unable to load http://docbook.sourceforge.net/release/xsl-ns/current/xhtml/chunk.xsl *** Error code 5 Stop. make: stopped in /usr/home/russellh/FreeBSD/doc/en_US.ISO8859-1/books/porters-handbook I opened file:///usr/home/russellh/FreeBSD/doc/share/xml/freebsd-xhtml-chunk.xsl and found the offending line. I can see the chunk.xsl file in a browser, I can download the file with wget. I attempted to import it from a local file as such (including numerous variations): which only gets me: russellh@prescott:~/FreeBSD/doc/en_US.ISO8859-1/books/porters-handbook% make env XML_CATALOG_FILES="file:///usr/home/russellh/FreeBSD/doc/en_US.ISO8859-1/books/porters-handbook/catalog-cwd.xml file:///usr/home/russellh/FreeBSD/doc/en_US.ISO8859-1/share/xml/catalog.xml file:///usr/home/russellh/FreeBSD/doc/share/xml/catalog.xml file:///usr/local/share/xml/catalog" /usr/local/bin/xsltproc --xinclude --nonet --maxvars 20000 --stringparam latestrevision.timestamp "2017-09-29 03:54:21" --stringparam latestrevision.committer "wosch" --stringparam latestrevision.number "50969" http://www.FreeBSD.org/XML/share/xml/freebsd-xhtml-chunk.xsl book.parsed.xml compilation error: file file:///usr/home/russellh/FreeBSD/doc/share/xml/freebsd-xhtml-chunk.xsl line 13 element import xsl:import : invalid URI reference file://chunk.xsl *** Error code 5 Stop. make: stopped in /usr/home/russellh/FreeBSD/doc/en_US.ISO8859-1/books/porters-handbook I also tried placing the file locally and removing the import line, which gave me numerous errors as such: runtime error: file file:///usr/home/russellh/FreeBSD/doc/share/xml/freebsd-common.xsl line 21 element call-template The called template 'inline.monoseq' was not found. runtime error: file file:///usr/home/russellh/FreeBSD/doc/share/xml/freebsd-common.xsl line 21 element call-template The called template 'inline.monoseq' was not found. runtime error: file file:///usr/home/russellh/FreeBSD/doc/share/xml/freebsd-common.xsl line 21 element call-template The called template 'inline.monoseq' was not found. runtime error: file file:///usr/home/russellh/FreeBSD/doc/share/xml/freebsd-common.xsl line 21 element call-template The called template 'inline.monoseq' was not found. runtime error: file file:///usr/home/russellh/FreeBSD/doc/share/xml/freebsd-common.xsl line 21 element call-template The called template 'inline.monoseq' was not found. runtime error: file file:///usr/home/russellh/FreeBSD/doc/share/xml/freebsd-common.xsl line 21 element call-template The called template 'inline.monoseq' was not found. runtime error: file file:///usr/home/russellh/FreeBSD/doc/share/xml/freebsd-common.xsl line 21 element call-template The called template 'inline.monoseq' was not found. no result for book.parsed.xml *** Error code 9 So, there it sits, incomplete. If anyone can help or point me in some direction to look, I would be appreciative. Russ On Wed, Oct 11, 2017 at 9:20 PM, Russell Haley wrote: > Hi, > > This is a rough cut of three new chapters at the beginning of the > book. I have left all the original content in place (I think). I > haven't attempted to get all the markup but I seem to have worked > through all my xml errors. Unfortunately I'm getting an error about a > missing xsl file > "http://docbook.sourceforge.net/release/xsl-ns/current/xhtml/chunk.xsl". > I was able to manually download the file but I don't know where to put > it yet. > > I'd like to get the new chapters to compile and at least take a stab > at cleaning up the formatting before I put it on the review board. > However, a patch file can be found here for now: > https://github.com/RussellHaley/portershandbook . > > Build error: > > russellh@prescott:~/FreeBSD/doc/en_US.ISO8859-1/books/porters-handbook% > make > install /usr/home/russellh/FreeBSD/doc/share/xml/catalog-cwd.xml > /usr/home/russellh/FreeBSD/doc/en_US.ISO8859-1/books/porters-handbook/catalog-cwd.xml > echo '' >> > /usr/home/russellh/FreeBSD/doc/en_US.ISO8859-1/books/porters-handbook/autogen.ent > env XML_CATALOG_FILES="file:///usr/home/russellh/FreeBSD/doc/en_US.ISO8859-1/books/porters-handbook/catalog-cwd.xml > file:///usr/home/russellh/FreeBSD/doc/en_US.ISO8859-1/share/xml/catalog.xml > file:///usr/home/russellh/FreeBSD/doc/share/xml/catalog.xml > file:///usr/local/share/xml/catalog" /usr/local/bin/xmllint --nonet > --noent --valid --dropdtd --xinclude > /usr/home/russellh/FreeBSD/doc/en_US.ISO8859-1/books/porters-handbook/book.xml >> book.parsed.xml.tmp > /bin/mv book.parsed.xml.tmp book.parsed.xml > /usr/bin/sed 's|@@URL_RELPREFIX@@|https://www.FreeBSD.org|g' < > book.parsed.xml > book.parsed.print.xml > /usr/bin/sed -i '' -e 's|@@URL_RELPREFIX@@|../../../..|g' > book.parsed.xml > cp -f -p /usr/home/russellh/FreeBSD/doc/en_US.ISO8859-1/books/porters-handbook/../../../share/images/callouts/1.png > imagelib/callouts/1.png > cp -f -p /usr/home/russellh/FreeBSD/doc/en_US.ISO8859-1/books/porters-handbook/../../../share/images/callouts/2.png > imagelib/callouts/2.png > cp -f -p /usr/home/russellh/FreeBSD/doc/en_US.ISO8859-1/books/porters-handbook/../../../share/images/callouts/3.png > imagelib/callouts/3.png > cp -f -p /usr/home/russellh/FreeBSD/doc/en_US.ISO8859-1/books/porters-handbook/../../../share/images/callouts/4.png > imagelib/callouts/4.png > cp -f -p /usr/home/russellh/FreeBSD/doc/en_US.ISO8859-1/books/porters-handbook/../../../share/images/callouts/5.png > imagelib/callouts/5.png > cp -f -p /usr/home/russellh/FreeBSD/doc/en_US.ISO8859-1/books/porters-handbook/../../../share/images/callouts/6.png > imagelib/callouts/6.png > cp -f -p /usr/home/russellh/FreeBSD/doc/en_US.ISO8859-1/books/porters-handbook/../../../share/images/callouts/7.png > imagelib/callouts/7.png > cp -f -p /usr/home/russellh/FreeBSD/doc/en_US.ISO8859-1/books/porters-handbook/../../../share/images/callouts/8.png > imagelib/callouts/8.png > cp -f -p /usr/home/russellh/FreeBSD/doc/en_US.ISO8859-1/books/porters-handbook/../../../share/images/callouts/9.png > imagelib/callouts/9.png > cp -f -p /usr/home/russellh/FreeBSD/doc/en_US.ISO8859-1/books/porters-handbook/../../../share/images/callouts/10.png > imagelib/callouts/10.png > cp -f -p /usr/home/russellh/FreeBSD/doc/en_US.ISO8859-1/books/porters-handbook/../../../share/images/callouts/11.png > imagelib/callouts/11.png > cp -f -p /usr/home/russellh/FreeBSD/doc/en_US.ISO8859-1/books/porters-handbook/../../../share/images/callouts/12.png > imagelib/callouts/12.png > cp -f -p /usr/home/russellh/FreeBSD/doc/en_US.ISO8859-1/books/porters-handbook/../../../share/images/callouts/13.png > imagelib/callouts/13.png > cp -f -p /usr/home/russellh/FreeBSD/doc/en_US.ISO8859-1/books/porters-handbook/../../../share/images/callouts/14.png > imagelib/callouts/14.png > cp -f -p /usr/home/russellh/FreeBSD/doc/en_US.ISO8859-1/books/porters-handbook/../../../share/images/callouts/15.png > imagelib/callouts/15.png > cp -f -p /usr/home/russellh/FreeBSD/doc/en_US.ISO8859-1/books/porters-handbook/../../../share/images/callouts/16.png > imagelib/callouts/16.png > cp -f -p /usr/home/russellh/FreeBSD/doc/en_US.ISO8859-1/books/porters-handbook/../../../share/images/callouts/17.png > imagelib/callouts/17.png > cp -f -p /usr/home/russellh/FreeBSD/doc/en_US.ISO8859-1/books/porters-handbook/../../../share/images/callouts/18.png > imagelib/callouts/18.png > cp -f -p /usr/home/russellh/FreeBSD/doc/en_US.ISO8859-1/books/porters-handbook/../../../share/images/callouts/19.png > imagelib/callouts/19.png > cp -f -p /usr/home/russellh/FreeBSD/doc/en_US.ISO8859-1/books/porters-handbook/../../../share/images/callouts/20.png > imagelib/callouts/20.png > cp -f -p /usr/home/russellh/FreeBSD/doc/en_US.ISO8859-1/books/porters-handbook/../../../share/images/callouts/21.png > imagelib/callouts/21.png > /bin/rm -f docbook.css > /bin/cat /usr/home/russellh/FreeBSD/doc/share/misc/docbook.css > > docbook.css > env XML_CATALOG_FILES="file:///usr/home/russellh/FreeBSD/doc/en_US.ISO8859-1/books/porters-handbook/catalog-cwd.xml > file:///usr/home/russellh/FreeBSD/doc/en_US.ISO8859-1/share/xml/catalog.xml > file:///usr/home/russellh/FreeBSD/doc/share/xml/catalog.xml > file:///usr/local/share/xml/catalog" /usr/local/bin/xsltproc > --xinclude --nonet --maxvars 20000 --stringparam > latestrevision.timestamp "2017-09-29 03:54:21" --stringparam > latestrevision.committer "wosch" --stringparam > latestrevision.number "50969" > http://www.FreeBSD.org/XML/share/xml/freebsd-xhtml-chunk.xsl > book.parsed.xml > I/O error : Attempt to load network entity > http://docbook.sourceforge.net/release/xsl-ns/current/xhtml/chunk.xsl > warning: failed to load external entity > "http://docbook.sourceforge.net/release/xsl-ns/current/xhtml/chunk.xsl" > compilation error: file > file:///usr/home/russellh/FreeBSD/doc/share/xml/freebsd-xhtml-chunk.xsl > line 13 element import > xsl:import : unable to load > http://docbook.sourceforge.net/release/xsl-ns/current/xhtml/chunk.xsl > *** Error code 5 > > Stop. > make: stopped in > /usr/home/russellh/FreeBSD/doc/en_US.ISO8859-1/books/porters-handbook > > > Cheers, > > Russ > > On Wed, Oct 11, 2017 at 3:52 PM, Benjamin Kaduk wrote: >> On Wed, Oct 11, 2017 at 06:40:20PM -0400, Ernie Luzar wrote: >>> >>> Have nothing to add here, but this post peaked my interest about what >>> your talking about. >>> >>> What is Phabricator? >> >> Phabricator is a project/software for doing code review of all sorts. >> The FreeBSD documentation tree contains a lot of XML file, which can >> be treated as code and subjected to pre-commit review as well. >> >>> What is its use in generating doc markup file for handbook changes? >> >> It doesn't help with converting non-marked-up text to XML form, it's >> just a convenient place to post a draft patch and be able to make >> line-by-line comments on it that are archived in a useful way. >> >> https://www.phacility.com/phabricator/ seems to be the upstream project's >> home page. >> >> -Ben >> _______________________________________________ >> freebsd-doc@freebsd.org mailing list >> https://lists.freebsd.org/mailman/listinfo/freebsd-doc >> To unsubscribe, send any mail to "freebsd-doc-unsubscribe@freebsd.org"