Cross-building py39-wheel on amd64 for armv7 fails with an extraction error. Apparently something is wrong with character encoding of something inside the archive, but I can't get to the bottom of it. Manually extracting the distil doesn't give me any errors.
This happens for Python 3.7, 3.8 and 3.10 as well. => SHA256 Checksum OK for wheel-0.38.4.tar.gz. tar: Pathname can't be converted from UTF-8 to current locale. tar: Error exit delayed from previous errors.
I managed to work around this by creating my own tarball of the upstream distribution omitting the Unicode test cases and their data files (the filenames of which are causing Poudriere to abort) for this port entirely. This isn't exactly optimal as we shouldn't just cut out tests that we don't like. Not sure where to report this, though, as it's an interaction between BSD Tar, Poudriere and this particular package which just so happens to contain non-ASCII characters in its distribution. This could happen all over the tree.
Created attachment 238969 [details] patch to fix extraction on cross-building amd64/armv7 Hi, may you try with this patch? Thanks.
I just got a successful build. Thanks!
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=63476029ed362a75484925a4a3425517b262849b commit 63476029ed362a75484925a4a3425517b262849b Author: Nicola Vitale <nivit@FreeBSD.org> AuthorDate: 2022-12-22 13:46:08 +0000 Commit: Nicola Vitale <nivit@FreeBSD.org> CommitDate: 2022-12-22 13:49:59 +0000 devel/py-wheel: Fix extraction when cross-building the port Override EXTRACT_CMD and pass the variable LC_ALL to fix the extraction of the distfile. The build fails when cross-building the port with the following error: => SHA256 Checksum OK for wheel-0.38.4.tar.gz. tar: Pathname can't be converted from UTF-8 to current locale. tar: Error exit delayed from previous errors. PR: 268500 Reported by: <bas@area536.com> devel/py-wheel/Makefile | 2 ++ 1 file changed, 2 insertions(+)
Fixed. Thank you for the feedback and the PR!