On 05/02/2018 04:11 PM, Pierre Bechetoille wrote:
Hi,
While compiling colord in BLFS, I encountered some messages from msgfmt
complaining that /usr/share/gettext-0.19.8/its/appdata.loc was an
invalid xml file.
Looking at the instructions for gettext in lfs book, I found that the fix :
sed -e '/AppData/N;N;p;s/\.appdata\./.metainfo./' \ -i
gettext-tools/its/appdata.loc
produces the following appdata.loc file :
<?xml version="1.0"?>
<locatingRules>
<?xml version="1.0"?>
<locatingRules>
<locatingRule name="AppData" pattern="*.appdata.xml">
<documentRule localName="component" target="appdata.its"/>
</locatingRule>
<locatingRule name="AppData" pattern="*.metainfo.xml">
<documentRule localName="component" target="appdata.its"/>
</locatingRule>
</locatingRules>
I think the first 2 lines shall be removed to get a valid file.
You are right. The sed should have braces:
sed -e '/AppData/{N;N;p;s/\.appdata\./.metainfo./}' \
-i gettext-tools/its/appdata.loc
Please test that and see if it works for you.
-- Bruce
--
http://lists.linuxfromscratch.org/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page