Bug 268500 - devel/py-wheel Poudriere fails to extract py-wheel
Summary: devel/py-wheel Poudriere fails to extract py-wheel
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Nicola Vitale
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-12-21 10:56 UTC by bas
Modified: 2022-12-22 13:54 UTC (History)
0 users

See Also:
nivit: maintainer-feedback+


Attachments
patch to fix extraction on cross-building amd64/armv7 (371 bytes, patch)
2022-12-22 10:28 UTC, Nicola Vitale
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description bas 2022-12-21 10:56:56 UTC
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.
Comment 1 bas 2022-12-21 14:11:00 UTC
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.
Comment 2 bas 2022-12-22 10:24:15 UTC
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.
Comment 3 Nicola Vitale freebsd_committer freebsd_triage 2022-12-22 10:28:23 UTC
Created attachment 238969 [details]
patch to fix extraction on cross-building amd64/armv7

Hi, may you try with this patch? Thanks.
Comment 4 bas 2022-12-22 12:19:34 UTC
I just got a successful build. Thanks!
Comment 5 commit-hook freebsd_committer freebsd_triage 2022-12-22 13:52:54 UTC
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(+)
Comment 6 Nicola Vitale freebsd_committer freebsd_triage 2022-12-22 13:54:01 UTC
Fixed. Thank you for the feedback and the PR!