Re: python311 vs expat

Adam <[email protected]> Fri, 20 Mar 2026 15:07:19 +0100
Newsgroups gmane.os.netbsd.devel.packages
Message-ID <[email protected]>
>> That's because newer expat.h depends on features defined in expat_config.h. In this particular case XML_SetAllocTrackerActivationThreshold is guarded with "#  if defined(XML_DTD) || (defined(XML_GE) && XML_GE == 1)", and XML_DTD, XML_GE, and XML_GE are defined in expat_config.h.
> 
> It should be possible to add some builtin.mk checks to handle this, gated on whichever release started requiring it.
> 
>> I can commit PREFER.expat=pkgsrc solution, if no objection.
> 
> I think we should do this for now, and evaluate a more general builtin.mk approach after the freeze.

In that case, I've pushed the changes.

Cheers :)
Adam