On 22/07/2019 19:40, Dave via blfs-support wrote: > On 7/22/19 11:10 AM, Pierre Labastie via blfs-support wrote: >> On 22/07/2019 14:59, Dave via blfs-support wrote: >>> for some reason docbook doesn't accept the --add switch, it seems to >>> interpret >>> it as a /bin/add command. Doesn't add anything to the file. fails on >>> everything it tries to add. >>> >>> >>> root@ryzen-lfs docbook 10:42 # if [ ! -e /etc/xml/docbook ]; then >>>> xmlcatalog --noout --create /etc/xml/docbook >>>> fi && >>>> xmlcatalog --noout --add "public" \ >>>> "-//OASIS//DTD DocBook XML V4.5//EN" \ >>>> "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" \ >>>> /etc/xml/docbook >>> add command failed >>> >>> >> Hi Dave, >> Those commands are not specific to docbook: xmlcatalog is an utility >> installed >> with libxml2. Normally those command should succeed. There are two >> possibilities for failure I can think of (and certainly many others I am >> unable to figure out ;): >> - the /etc/xml/docbook file is not created, or created with wrong >> permissions, >> so that it cannot be written to. >> - something is wrong with the command (space after "\" at the end of a line >> is >> a classic)... >> >> You can also try to debug the command by adding -v after --noout. >> >> Regards, >> Pierre >> >> > I miss quoted which package, it's docbook XSL Stylesheets > > This was just a snippet of the attempted build, I should have removed the > slash before posting. When the entire command sequence produces the same > error. it doesn't like the --add switch. The file was created with > permissions 644. I may have to erase some directories and try this section, > and the related sections again. >
Not sure what is going on. You could try to test xmlcatalog by issuing (as user): cd /tmp xmlcatalog --noout --create catalog xmlcatalog --noout --add public something somethingelse catalog (replace something and somethingelse with whatever you'd like, the content is not important, this is a test, not building a functional catalog file) If that works, just rm /tmp/catalog. And try (as root): xmlcatalog --noout --add public "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" /etc/xml/docbook (all on the same line, in case the mailer add a linebreak at some point) If this does not work, inspect the content of /etc/xml/docbook. It should look like the examples on http://www.xmlsoft.org/catalog.html BTW, are you deviating from/adding to the book in some way (using a package manager, changing owners of files after install, ...)? Regards Pierre -- http://lists.linuxfromscratch.org/listinfo/blfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
