Andreas Wacknitz
2024-04-05 5a9394761a76843883ab7b09d15c336324e2be13
transforms/generate-cleanup
@@ -78,12 +78,9 @@
# PEP 627 made the RECORD file optional.  Since we do not need the file and it
# could contain inaccurate info we simply drop it.
<transform dir file link hardlink path=usr\/lib\/python3\.\d+\/vendor-packages\/[^/]+\.dist-info/RECORD$ -> drop>
# Strip Python 3 cpython ABI extension
# Replace Python version by $(PYV)
<transform file -> \
   edit path "^(usr/lib/python3\.\d+/vendor-packages/(.*/)?[^/]+)\.cpython-3\d+\.so$" "\1.so">
# Strip Python 3 abi3 ABI extension
<transform file -> \
   edit path "^(usr/lib/python3\.\d+/vendor-packages/(.*/)?[^/]+)\.abi3\.so$" "\1.so">
   edit path "^(usr/lib/python3\.\d+/vendor-packages/(.*/)?[^/]+\.cpython-)3\d+\.so$" "\1$!(PYV).so">
# Replace Python version by $(PYVER)
<transform file path=usr/bin/[^/]+-3\.\d+$ -> default tmp.fmri "$(COMPONENT_FMRI)">
<transform file tmp.fmri=.*runtime/python -> edit path "^(usr/bin/[^/]+-)3\.\d+$" "\1$!(PYVER)">