tech-pkg archive

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

Re: Build fix for lang/python312 on macOS



Pierre Pronchery <khorben%defora.org@localhost> writes:

> FWIW, the issue with expat is related to the absence of the symbol
> XML_SetReparseDeferralEnabled in the version of expat detected by
> Python on macOS. If I try to build without
> CONFIGURE_ARGS+=--with-system-expat, the package builds again as
> expected.

Dropping --with-system-expat is highly likely to have python build a
vendored copy; that's almost certainly not a good fix, but it is a clue.

It may be that specifying API_DEPENDS is in order, if python needs a
specific/higher version of expat.  expat's bl3 says

  BUILDLINK_API_DEPENDS.expat+=   expat>=1.95.7

so perhaps in python, just before the include of expat's bl3:

  BUILDLINK_API_DEPENDS.expat+=   expat>=2.6.0


I didn't catch that you were testing on 2024Q3 instead of head.
python312 built for me on macOS on November 21.  But that was on old
macOS where pkgsrc expat was installed.

Building on

  Darwin Kernel Version 22.6.0: Thu Sep  5 20:48:48 PDT 2024

shows in the log

  => Generating pkg-config file for builtin expat package.

an the build succeeded.

I wonder if upstream python has avoided the newer symbols, or ?


Home | Main Index | Thread Index | Old Index