loongson-community / discussions

Cross-community issue tracker & discussions / 跨社区工单追踪 & 讨论场所
9 stars 0 forks source link

Potential issue regarding ABI identification for PyPI manylinux purposes #63

Open xen0n opened 1 month ago

xen0n commented 1 month ago

Link: https://github.com/pypa/manylinux/discussions/1587

If we were to support LoongArch manylinux wheels on PyPI, we must be able to prevent installation of wheels built on a different world than that of the running system.

Right now, due to:

the multiarch specifiers for both worlds are the same, so we must be able to distinguish by other means. This is likely glibc symbol versions for glibc-based systems, but I think musl-based systems will need something else.

xen0n commented 1 month ago

cc @yzewei @loongson-zn (seems both are from Loongson)

xry111 commented 1 month ago

Maybe just check EF_LOONGARCH_OBJABI_V1 for every EM_LOONGARCH ELF files containing a SEC_LOAD | SEC_CODE | SEC_HAS_CONTENTS section in the wheel.

xry111 commented 1 month ago

Or, we can add this check into libc loader (gated with something like a Glibc tunable) and the packages requiring such a check will be able to simply enable it.