Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Jul 2021 11:15:20 +0000
From:      bugzilla-noreply@freebsd.org
To:        python@FreeBSD.org
Subject:   [Bug 257041] [NEW PORT]: devel/py-lief: Parse, modify and abstract ELF, PE and MachO formats.
Message-ID:  <bug-257041-21822-wjG8TLXfXf@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-257041-21822@https.bugs.freebsd.org/bugzilla/>
References:  <bug-257041-21822@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D257041

--- 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=3Dautoplist doesn't work.

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

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

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

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

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

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

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

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

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

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-257041-21822-wjG8TLXfXf>