[lfs] branch trunk updated: build: add --valid in addition to --postvalid

git Owner ([email protected] via lfs-book Mailing List) <[email protected]> Fri, 24 Jul 2026 08:13:25 +0000
Newsgroups gmane.linux.lfs.book
Message-ID <178488080513.2171130.7196605205107407260@rivendell.linuxfromscratch.org>
This is a multi-part message in MIME format...

------------=_1784880808-1024790-5729
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit

This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch trunk
in repository lfs.

The following commit(s) were added to refs/heads/trunk by this push:
     new e404a5577 build: add --valid in addition to --postvalid
e404a5577 is described below

commit e404a55770a2d3665ddf5e302f398e1bd992f04b
Author: Xi Ruoyao <[email protected]>
AuthorDate: Fri Jul 24 16:10:01 2026 +0800

    build: add --valid in addition to --postvalid
    
    I don't know why but with the libxml2-2.15.3 shipped with the current
    BLFS, --postvalid alone does not produce a meaningful message for some
    errors.  For example, with an incorrect xref linkend:
    
        Creating and cleaning /home/xry111/tmp
        Processing bootscripts...
        Adjusting for revision systemd...
        Validating the book...
        Document /home/xry111/tmp/lfs-html2.xml does not validate
        make: *** [Makefile:125:validate] Error 3
    
    It really says nothing.  Adding --valid produces a meaningful message
    before the "does not validate" line:
    
        /home/xry111/tmp/lfs-html2.xml:2958: element xref: validity error : IDREF attribute linkend references an unknown ID "ch-botable-grub"
    
    I don't really understand this but there seems no harm to just add
    --valid.
---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index e6654318a..b1a09d470 100644
--- a/Makefile
+++ b/Makefile
@@ -131,7 +131,7 @@ validate: tmpdir version
 	@echo "Validating the book..."
 	$(Q)xmllint --nonet                            \
                --encode UTF-8                     \
-               --postvalid                        \
+               --postvalid --valid                \
                --output $(RENDERTMP)/lfs-full.xml \
                $(RENDERTMP)/lfs-html2.xml
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

------------=_1784880808-1024790-5729
Content-Type: text/plain; charset="UTF-8"
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
MIME-Version: 1.0

-- 
http://lists.linuxfromscratch.org/sympa/info/lfs-book
Unsubscribe: See the above information page

------------=_1784880808-1024790-5729--