Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
0.22.29
=======

* Update expat to 2.9.0


0.22.28
=======

Expand Down
6 changes: 6 additions & 0 deletions relenv/build/darwin.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,12 @@ def update_expat(dirs: Dirs, env: MutableMapping[str, str]) -> None:
f.write('#if defined(HAVE_ARC4RANDOM_BUF)\n#include "random_arc4random_buf.c"\n#endif\n')
f.write('#if defined(HAVE_ARC4RANDOM)\n#include "random_arc4random.c"\n#endif\n')
f.write('#if !defined(_WIN32) && defined(XML_DEV_URANDOM)\n#include "random_dev_urandom.c"\n#endif\n')
# expat >= 2.9.0 moved xcslen/xcscmp/xcsncmp into a separate TU
# (xcs.c). Python's build system only compiles xmlparse.c,
# xmlrole.c, and xmltok.c, so pull xcs.c into xmlparse.c's TU to
# avoid undefined-reference failures when linking pyexpat.
if (expat_dir / "xcs.c").exists():
f.write('#include "xcs.c"\n')

# Update SBOM with correct checksums for updated expat files
files_to_update = {}
Expand Down
6 changes: 6 additions & 0 deletions relenv/build/linux.py
Original file line number Diff line number Diff line change
Expand Up @@ -476,6 +476,12 @@ def update_expat(dirs: Dirs, env: EnvMapping) -> None:
f.write('#if defined(HAVE_ARC4RANDOM_BUF)\n#include "random_arc4random_buf.c"\n#endif\n')
f.write('#if defined(HAVE_ARC4RANDOM)\n#include "random_arc4random.c"\n#endif\n')
f.write('#if !defined(_WIN32) && defined(XML_DEV_URANDOM)\n#include "random_dev_urandom.c"\n#endif\n')
# expat >= 2.9.0 moved xcslen/xcscmp/xcsncmp into a separate TU
# (xcs.c). Python's build system only compiles xmlparse.c,
# xmlrole.c, and xmltok.c, so pull xcs.c into xmlparse.c's TU to
# avoid undefined-reference failures when linking pyexpat.
if (expat_dir / "xcs.c").exists():
f.write('#include "xcs.c"\n')

# Update SBOM with correct checksums for updated expat files
files_to_update = {}
Expand Down
6 changes: 6 additions & 0 deletions relenv/build/windows.py
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,12 @@ def update_expat(dirs: Dirs, env: EnvMapping) -> None:
f.write('#if defined(HAVE_ARC4RANDOM_BUF)\n#include "random_arc4random_buf.c"\n#endif\n')
f.write('#if defined(HAVE_ARC4RANDOM)\n#include "random_arc4random.c"\n#endif\n')
f.write('#if !defined(_WIN32) && defined(XML_DEV_URANDOM)\n#include "random_dev_urandom.c"\n#endif\n')
# expat >= 2.9.0 moved xcslen/xcscmp/xcsncmp into a separate TU
# (xcs.c). Python's build system only compiles xmlparse.c,
# xmlrole.c, and xmltok.c, so pull xcs.c into xmlparse.c's TU to
# avoid undefined-reference failures when linking pyexpat.
if (expat_dir / "xcs.c").exists():
f.write('#include "xcs.c"\n')

# Update SBOM with correct checksums for updated expat files
files_to_update = {f"Modules/expat/{f.name}": f for f in updated_files}
Expand Down
2 changes: 1 addition & 1 deletion relenv/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
from collections.abc import Callable, Iterable, Mapping

# relenv package version
__version__ = "0.22.28"
__version__ = "0.22.29"

log = logging.getLogger(__name__)

Expand Down
9 changes: 9 additions & 0 deletions relenv/python-versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -675,6 +675,15 @@
"darwin",
"win32"
]
},
"2.9.0": {
"url": "https://github.com/libexpat/libexpat/releases/download/R_2_9_0/expat-{version}.tar.xz",
"sha256": "1e6371862cc31999b368c3b89b49994f0677e1bab5f1b2b85ae3741f5d803051",
"platforms": [
"linux",
"darwin",
"win32"
]
}
}
}
Expand Down