tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: xsd



On Thu, 18 Mar 2021 16:37:35 +1300
Mark Davies <mark%ecs.vuw.ac.nz@localhost> wrote:

> I'm trying to update the devel/xsd package to version 4.0.0.
> I've just committed what I've got to wip/xsd.
> 
> If I build the package from wip/xsd on NetBSD9 and on Linux and
> then write the following to x.xsd
> 
> --
> <?xml version="1.0" encoding="UTF-8"?>
> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema";
>      targetNamespace="urn:ietf:params:xml:ns:icalendar-2.0"
>      xmlns="urn:ietf:params:xml:ns:icalendar-2.0"
>      elementFormDefault="qualified">
> 
> </xs:schema>
> --
> 
> then run:
>   xsdcxx cxx-tree --namespace-map http://kolab.org=KolabXSD /tmp/x.xsd
> 
> on Linux the command succeeds, but on NetBSD I get the error:
> error: invalid XML to C++ namespace mapping specified: 
> 'http://kolab.org=KolabXSD': invalid C++ identifier
> 
> Can anyone tell me why on NetBSD the argument is getting missparsed?
> Its doing a regexp match in the c++ code that seems to be incorrectly 
> failing.
> 
> cheers
> mark

Hi mark, I have imported libcutl with fixes from FreeBSD ports and made
xsd use this instead of its internal libcutl. For me this now works.
The internal libcutl uses an internal version of boost that is old
and has regexp that is now gone from boost. Somehow boost regexp don't
work well on NetBSD.


Home | Main Index | Thread Index | Old Index