Hallo,
I tried jhalfs 2.4 for the first time to automate BLFS build, and it failed me (or the other way round) for a surprising reason. The install script tries to find out whether docbook tools and files are installed correctly, using some helper functions in common/libs and the final test in func_check_version.sh uses something like echo $XML_FILE | xmllint -nonet -noout -postvalid - to verify that XML can be handled the way it is needed. This test failed for me and it took me some time to find out why. Basically the XML is put in a shell variable XML_FILE="<?xml version='1.0' encoding='ISO-8859-1'?> <?xml-stylesheet type='text/xsl' href='http://docbook.sourceforge.net/release/xsl/1.69.1/xhtml/docbook.xsl'?> <!DOCTYPE article PUBLIC '-//OASIS//DTD DocBook XML V4.5//EN' 'http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd'> <article> <title>Test file</title> <sect1> <title>Some title</title> <para>Some text</para> </sect1> </article>" and then fed to xmllint as stdin. The *same* XML code given to xmllint as a file was working. I then tried some variations with echo and printf, adding quotes because I loathe unquoted variable usage, but it was a completely different solution: bash history expansion mangled the line which contains a "!" exclamation mark. Since this is a feature I've never used and when I've encountered it it always caused me grief so I simply switched it off by adding "set +H" to the head of install-blfs-tools.sh. It might also work to escape the "!" in the XML code but this is rather inelegant. Tschau...Thomas -- "Do you wanna be a legend or a passing footprint on the sands of time?"
signature.asc
Description: OpenPGP digital signature
-- http://lists.linuxfromscratch.org/listinfo/alfs-discuss FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
