From 9fb60737d76efed183d947c8896f4d56bb5f291c Mon Sep 17 00:00:00 2001 From: Tobias Kortkamp Date: Fri, 1 Jun 2018 13:52:40 +0000 Subject: [PATCH] Fix broken 'uses-values' links in the Porter's Handbook The USES chapter sets an xml:id on its title tag but this doesn't seem to generate an anchor. As a consequence there currently are several 'uses-values' xrefs that point to nowhere. This is only really noticeable in the single page HTML version (book.html) of the handbook. PR: 227123 Reported by: 0mp Approved by: mat Differential Revision: https://reviews.freebsd.org/D15642 --- .../books/porters-handbook/makefiles/chapter.xml | 6 +++--- en_US.ISO8859-1/books/porters-handbook/special/chapter.xml | 4 ++-- en_US.ISO8859-1/books/porters-handbook/uses/chapter.xml | 3 +-- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/en_US.ISO8859-1/books/porters-handbook/makefiles/chapter.xml b/en_US.ISO8859-1/books/porters-handbook/makefiles/chapter.xml index 8785749e61..9082dc01ef 100644 --- a/en_US.ISO8859-1/books/porters-handbook/makefiles/chapter.xml +++ b/en_US.ISO8859-1/books/porters-handbook/makefiles/chapter.xml @@ -3209,7 +3209,7 @@ EXTRACT_SUFX= .tar.gzip USES=lha or USES=zip automatically set EXTRACT_SUFX to the most common archives extensions as necessary, see for more details. If neither of + linkend="uses"/> for more details. If neither of these are set then EXTRACT_SUFX defaults to .tar.gz. @@ -5646,7 +5646,7 @@ RUN_DEPENDS= ${MY_DEPENDS} and cannot be made to work using USES=tar, USES=lha or USES=zip described in . + linkend="uses"/>. @@ -5679,7 +5679,7 @@ RUN_DEPENDS= ${MY_DEPENDS} USES= feature[:arguments] For the complete list of values, please see - . + . USES cannot be assigned after diff --git a/en_US.ISO8859-1/books/porters-handbook/special/chapter.xml b/en_US.ISO8859-1/books/porters-handbook/special/chapter.xml index 13c22fddfc..a9ca1dc78f 100644 --- a/en_US.ISO8859-1/books/porters-handbook/special/chapter.xml +++ b/en_US.ISO8859-1/books/porters-handbook/special/chapter.xml @@ -4227,7 +4227,7 @@ USE_PYTHON= autoplist distutils See the USES=tcl and USES=tk of - for a full description of those + for a full description of those variables. A complete list of those variables is available in /usr/ports/Mk/Uses/tcl.mk. @@ -5015,7 +5015,7 @@ PLIST_SUB+= VERSION="${VER_STR}" If a specific version of Lua is needed, instructions on how to select it are given in the USES=lua part - of . + of . diff --git a/en_US.ISO8859-1/books/porters-handbook/uses/chapter.xml b/en_US.ISO8859-1/books/porters-handbook/uses/chapter.xml index 5ccb78a10a..d321f0e44c 100644 --- a/en_US.ISO8859-1/books/porters-handbook/uses/chapter.xml +++ b/en_US.ISO8859-1/books/porters-handbook/uses/chapter.xml @@ -26,8 +26,7 @@ - Using <varname>USES</varname> - Macros + Using <varname>USES</varname> Macros An Introduction to <varname>USES</varname>