Repository navigation
Tags: saltstack/relenv
Tags
Release 0.22.29 (#333) * Release 0.22.29 * Fix pyexpat link failure with expat 2.9.0 expat 2.9.0 extracted xcslen/xcscmp/xcsncmp into a new translation unit (lib/xcs.c), but Python's build system only compiles the three fixed sources xmlparse.c/xmlrole.c/xmltok.c. When relenv's update_expat() drops the raw 2.9.0 tarball sources into Modules/expat/, xcs.c is never compiled and pyexpat.so fails to link with undefined references to the xcs* symbols on every platform. CPython's own refresh.sh handles this upstream by renaming xcs.c to xcsinc.c and including it from xmlparse.c. Mirror that approach: when the dropped-in tarball ships xcs.c, append #include "xcs.c" to xmlparse.c so the symbols land in the TU Python's build already compiles. The existing entropy-source append is left in place, and the new include is gated on xcs.c's presence so expat < 2.9.0 drop-ins continue to work unchanged. --------- Co-authored-by: dwoz <1527763+dwoz@users.noreply.github.com> Co-authored-by: Daniel A. Wozniak <daniel.wozniak@broadcom.com>
PreviousNext