FS#63613 - [lua-expat] Not-well-formed XML being produced on Lua 5.3
Attached to Project:
Community Packages
Opened by Link Mauve (linkmauve) - Saturday, 31 August 2019, 19:19 GMT
Last edited by Morten Linderud (Foxboron) - Tuesday, 19 April 2022, 19:07 GMT
Opened by Link Mauve (linkmauve) - Saturday, 31 August 2019, 19:19 GMT
Last edited by Morten Linderud (Foxboron) - Tuesday, 19 April 2022, 19:07 GMT
|
Details
Description:
-DLUA_32BITS is the wrong option to use to make lua-expat work on Lua 5.3, instead you should use -DLUA_C89_NUMBERS. The current option prevents the normal operation of this package. Additional info: * package version(s) 1.3.0-4 * config and/or log files etc. N/A * link to upstream bug report, if any Not yet. Steps to reproduce: % pacman -S prosody % cd /usr/lib/prosody % lua -e 'print(require("util.serialization").serialize(assert(require"util.xml".parse([[<foo xmlns:a="foo:bar" a:bar="baz">moo</foo>]]))))' If lua-expat is working correctly, this will print the parsed XML, if not it will say “invalid attribute name: expected string, got number”. |
This task depends upon
Basically this package exists but it does not _function_ for the main thing it's supposed to do, no everything that depends on it is basically without a dependency.
Unfortunately I've spent a couple hours on this one and still haven't found the magic incantation. It's still quite broken for Lua 5.3 and now Lua 5.4 too. I'm not sure how to make it work.
Link Mauve if you have any more concrete input about what needs fixing where I'd be up for making it happen.