While working on upgrading the Yocto Project recipe for pydantic-core to the latest version, I noticed that we are seeing build directory (TMPDIR) contamination in the _pydantic-core.*.so. This throws a QA warning for us, but would also lead to non-reproducible builds (because a different build directory would produce a different binary lib output).
On further inspection, it appears it might be a python backtrace related to the schema generation? (This happens on 2.19.0 and in this case 2.20.1 as well).
readelf -p 14 pydantic_core/_pydantic_core.cpython-312-x86_64-linux-gnu.so
pydantic-core-readelf-rodata.txt
Any ideas what could be causing this host information to be injected into the binary lib?