[Bug 257041] [NEW PORT]: devel/py-lief: Parse, modify and abstract ELF, PE and MachO formats.

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 13 Jul 2021 11:15:20 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=257041

--- Comment #10 from Fukang Chen <loader@FreeBSD.org> ---
(In reply to Neal Nelson from comment #9)

comment #6 is not about reporting the port fails to build on 14.0-CURRENT
aarch64,
I was just trying to explaining why USE_PYTHON=autoplist doesn't work.

OS version and architecture are irrelevant to USE_PYTHON=autoplist,
I will just use the testport log from dvl@ here
https://gist.github.com/dlangille/78902092fd8839bc4514492f949bad16

on my 14.0-CURRENT aarch64:
====> Checking for pkg-plist issues (check-plist)
===> Parsing plist
===> Checking for items in STAGEDIR missing from pkg-plist
Error: Orphaned: %%PYTHON_SITELIBDIR%%/lief%%PYTHON_EXT_SUFFIX%%.so
===> Checking for items in pkg-plist which are not in STAGEDIR
Error: Missing: %%PYTHON_SITELIBDIR%%/.11.5/lief%%PYTHON_EXT_SUFFIX%%.so
===> Error: Plist issues found.

dvl@'s testport log
====> Checking for pkg-plist issues (check-plist)
===> Parsing plist
===> Checking for items in STAGEDIR missing from pkg-plist
Error: Orphaned: %%PYTHON_SITELIBDIR%%/lief%%PYTHON_EXT_SUFFIX%%.so
===> Checking for items in pkg-plist which are not in STAGEDIR
Error: Missing: %%PYTHON_SITELIBDIR%%/f-0.11.4/lief%%PYTHON_EXT_SUFFIX%%.so
===> Error: Plist issues found.

https://github.com/python/cpython/blob/v3.8.10/Lib/distutils/command/install_lib.py#L143-L156
in the function _mutate_outputs():

build_dir => build/lib.freebsd-14.0-CURRENT-arm64-3.8
build_dir => build/lib.freebsd-12.2-RELEASE-p2-amd64-3.8

file => /usr/ports/devel/py-lief/work-py38/LIEF-0.11.5/lief.cpython-38.so
file => /wrkdirs/usr/ports/vrt/py-lief/work-py38/lief-0.11.4/lief.cpython-38.so

prefix_len => len(build_dir) + len(os.sep) => 40 + 1 => 41
prefix_len => len(build_dir) + len(os.sep) => 43 + 1 => 44

file[prefix_len:] =>    .11.5/lief.cpython-38.so
file[prefix_len:] => f-0.11.4/lief.cpython-38.so

os.path.join(output_dir, file[prefix_len:]) =>
/usr/ports/devel/py-lief/work-py38/stage/usr/local/lib/python3.8/site-packages/.11.5/lief.cpython-38.so
os.path.join(output_dir, file[prefix_len:]) =>
/wrkdirs/usr/ports/vrt/py-lief/work-py38/stage/usr/local/lib/python3.8/site-packages/f-0.11.4/lief.cpython-38.so

-- 
You are receiving this mail because:
You are on the CC list for the bug.