>>> py3-libarchive-c: Building community/py3-libarchive-c 5.1-r2 (using abuild 3.18.0_rc7-r1) started Thu, 22 Oct 2026 00:20:09 +0000 >>> py3-libarchive-c: Validating /home/buildozer/aports/community/py3-libarchive-c/APKBUILD... >>> py3-libarchive-c: Analyzing dependencies... >>> py3-libarchive-c: Installing for build: build-base libarchive python3 python3-dev libarchive-dev py3-setuptools py3-pytest py3-mock ( 1/34) Installing libbz2 (1.0.8-r6) ( 2/34) Installing xz-libs (5.8.4-r0) ( 3/34) Installing libarchive (3.8.10-r0) ( 4/34) Installing libffi (3.8.0-r0) ( 5/34) Installing mpdecimal (4.0.1-r0) ( 6/34) Installing libpanelw (6.6_p20260822-r0) ( 7/34) Installing readline (8.3.3-r1) ( 8/34) Installing sqlite-libs (3.54.1-r0) ( 9/34) Installing python3 (3.14.8-r0) (10/34) Installing python3-pycache-pyc0 (3.14.8-r0) (11/34) Installing pyc (3.14.8-r0) (12/34) Installing python3-pyc (3.14.8-r0) (13/34) Installing python3-dev (3.14.8-r0) (14/34) Installing openssl-dev (3.5.9-r0) (15/34) Installing libarchive-dev (3.8.10-r0) (16/34) Installing py3-parsing (3.3.3-r0) (17/34) Installing py3-parsing-pyc (3.3.3-r0) (18/34) Installing py3-packaging (26.3-r0) (19/34) Installing py3-packaging-pyc (26.3-r0) (20/34) Installing py3-setuptools (84.0.0-r0) (21/34) Installing py3-setuptools-pyc (84.0.0-r0) (22/34) Installing py3-iniconfig (2.3.0-r1) (23/34) Installing py3-iniconfig-pyc (2.3.0-r1) (24/34) Installing py3-pluggy (1.6.0-r1) (25/34) Installing py3-pluggy-pyc (1.6.0-r1) (26/34) Installing py3-py (1.11.0-r5) (27/34) Installing py3-py-pyc (1.11.0-r5) (28/34) Installing py3-pygments (2.21.0-r0) (29/34) Installing py3-pygments-pyc (2.21.0-r0) (30/34) Installing py3-pytest (9.1.1-r1) (31/34) Installing py3-pytest-pyc (9.1.1-r1) (32/34) Installing py3-mock (5.2.0-r1) (33/34) Installing py3-mock-pyc (5.2.0-r1) (34/34) Installing .makedepends-py3-libarchive-c (20261022.002028) Executing busybox-1.38.0-r7.trigger OK: 427.1 MiB in 136 packages >>> py3-libarchive-c: Cleaning up srcdir >>> py3-libarchive-c: Cleaning up pkgdir >>> py3-libarchive-c: Cleaning up tmpdir >>> py3-libarchive-c: Fetching https://distfiles.alpinelinux.org/distfiles/v3.25/python-libarchive-c-5.1-1.tar.gz /var/cache/distfiles/v3.25/python-libarchive-c-5.1-1.tar.gz: OK /home/buildozer/aports/community/py3-libarchive-c/fix-test-entry-testtar.patch: OK >>> py3-libarchive-c: Fetching https://distfiles.alpinelinux.org/distfiles/v3.25/python-libarchive-c-5.1-1.tar.gz /var/cache/distfiles/v3.25/python-libarchive-c-5.1-1.tar.gz: OK /home/buildozer/aports/community/py3-libarchive-c/fix-test-entry-testtar.patch: OK >>> py3-libarchive-c: Unpacking /var/cache/distfiles/v3.25/python-libarchive-c-5.1-1.tar.gz... >>> py3-libarchive-c: fix-test-entry-testtar.patch patching file tests/test_entry.py running build running build_py creating build/lib/libarchive copying libarchive/__init__.py -> build/lib/libarchive copying libarchive/ffi.py -> build/lib/libarchive copying libarchive/entry.py -> build/lib/libarchive copying libarchive/flags.py -> build/lib/libarchive copying libarchive/exception.py -> build/lib/libarchive copying libarchive/read.py -> build/lib/libarchive copying libarchive/write.py -> build/lib/libarchive copying libarchive/extract.py -> build/lib/libarchive ============================= test session starts ============================== platform linux -- Python 3.14.8, pytest-9.1.1, pluggy-1.6.0 rootdir: /home/buildozer/aports/community/py3-libarchive-c/src/python-libarchive-c-5.1 collected 36 items tests/test_atime_mtime_ctime.py ........ [ 22%] tests/test_convert.py . [ 25%] tests/test_entry.py ..F..F... [ 50%] tests/test_errors.py .... [ 61%] tests/test_rwx.py ........... [ 91%] tests/test_security_flags.py ... [100%] =================================== FAILURES =================================== _________________ test_check_archiveentry_using_python_testtar _________________ def test_check_archiveentry_using_python_testtar(): # This test behaves differently depending on the libarchive version: # 3.5, 3.6 and presumably all future versions reject the archive as damaged, # whereas older versions accepted it. try: > check_entries(join(data_dir, 'testtar.tar')) tests/test_entry.py:71: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_entry.py:101: in check_entries actual = list(get_entries(test_file)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/__init__.py:47: in get_entries for entry in arch: ^^^^ libarchive/read.py:27: in __iter__ r = read_next_header2(archive_p, entry._entry_p) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ retcode = -30, func = <_FuncPtr object at 0xf617a120> args = (4137864016, 4129109296) def check_int(retcode, func, args): if retcode >= 0: return retcode elif retcode == ARCHIVE_WARN: logger.warning(_error_string(args[0])) return retcode else: > raise archive_error(args[0], retcode) E libarchive.exception.ArchiveError: Unsupported pax global extended header attribute 'gname' (errno=84, retcode=-30, archive_p=4137864016) libarchive/ffi.py:98: ArchiveError During handling of the above exception, another exception occurred: def test_check_archiveentry_using_python_testtar(): # This test behaves differently depending on the libarchive version: # 3.5, 3.6 and presumably all future versions reject the archive as damaged, # whereas older versions accepted it. try: check_entries(join(data_dir, 'testtar.tar')) except ArchiveError as e: > assert e.msg == "Damaged tar archive" E assert "Unsupported ...ibute 'gname'" == 'Damaged tar archive' E E - Damaged tar archive E + Unsupported pax global extended header attribute 'gname' tests/test_entry.py:73: AssertionError _________ test_check_archiveentry_with_unicode_and_binary_entries_zip2 _________ def test_check_archiveentry_with_unicode_and_binary_entries_zip2(): > check_entries(join(data_dir, 'unicode2.zip'), ignore='mode') tests/test_entry.py:85: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ test_file = '/home/buildozer/aports/community/py3-libarchive-c/src/python-libarchive-c-5.1/tests/data/unicode2.zip' regen = False, ignore = ['mode'] def check_entries(test_file, regen=False, ignore=''): ignore = ignore.split() fixture_file = test_file + '.json' if regen: entries = list(get_entries(test_file)) with open(fixture_file, 'w', encoding='UTF-8') as ex: json.dump(entries, ex, indent=2, sort_keys=True) with open(fixture_file, encoding='UTF-8') as ex: expected = json.load(ex) actual = list(get_entries(test_file)) for e1, e2 in zip(actual, expected): for key in ignore: e1.pop(key) e2.pop(key) # Normalize all unicode (can vary depending on the system) for d in (e1, e2): for key in d: if isinstance(d[key], text_type): d[key] = unicodedata.normalize('NFC', d[key]) > assert e1 == e2 E AssertionError: assert {'path': 'a/'...': False, ...} == {'gid': 0, 'i...': False, ...} E E Omitting 13 identical items, use -vv to show E Differing items: E {'mtime': 1381745470.4904878} != {'mtime': 1381752672} E Use -v to get more diff tests/test_entry.py:111: AssertionError =============================== warnings summary =============================== tests/test_entry.py::test_check_archiveentry_using_python_testtar tests/test_entry.py::test_check_archiveentry_with_unicode_and_binary_entries_tar tests/test_entry.py::test_check_archiveentry_with_unicode_and_binary_entries_zip tests/test_entry.py::test_check_archiveentry_with_unicode_and_binary_entries_zip2 tests/test_entry.py::test_check_archiveentry_with_unicode_entries_and_name_zip /home/buildozer/aports/community/py3-libarchive-c/src/python-libarchive-c-5.1/tests/test_entry.py:99: DeprecationWarning: codecs.open() is deprecated. Use open() instead. with open(fixture_file, encoding='UTF-8') as ex: -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html =========================== short test summary info ============================ FAILED tests/test_entry.py::test_check_archiveentry_using_python_testtar - as... FAILED tests/test_entry.py::test_check_archiveentry_with_unicode_and_binary_entries_zip2 =================== 2 failed, 34 passed, 5 warnings in 0.58s =================== >>> ERROR: py3-libarchive-c: check failed >>> py3-libarchive-c: Uninstalling dependencies... ( 1/34) Purging .makedepends-py3-libarchive-c (20261022.002028) ( 2/34) Purging python3-dev (3.14.8-r0) ( 3/34) Purging libarchive-dev (3.8.10-r0) ( 4/34) Purging libarchive (3.8.10-r0) ( 5/34) Purging py3-setuptools-pyc (84.0.0-r0) ( 6/34) Purging py3-setuptools (84.0.0-r0) ( 7/34) Purging py3-pytest-pyc (9.1.1-r1) ( 8/34) Purging py3-pytest (9.1.1-r1) ( 9/34) Purging py3-iniconfig-pyc (2.3.0-r1) (10/34) Purging py3-iniconfig (2.3.0-r1) (11/34) Purging py3-packaging-pyc (26.3-r0) (12/34) Purging py3-packaging (26.3-r0) (13/34) Purging py3-parsing-pyc (3.3.3-r0) (14/34) Purging py3-parsing (3.3.3-r0) (15/34) Purging py3-pluggy-pyc (1.6.0-r1) (16/34) Purging py3-pluggy (1.6.0-r1) (17/34) Purging py3-py-pyc (1.11.0-r5) (18/34) Purging py3-py (1.11.0-r5) (19/34) Purging py3-pygments-pyc (2.21.0-r0) (20/34) Purging py3-pygments (2.21.0-r0) (21/34) Purging py3-mock-pyc (5.2.0-r1) (22/34) Purging py3-mock (5.2.0-r1) (23/34) Purging python3-pyc (3.14.8-r0) (24/34) Purging python3-pycache-pyc0 (3.14.8-r0) (25/34) Purging pyc (3.14.8-r0) (26/34) Purging python3 (3.14.8-r0) (27/34) Purging libbz2 (1.0.8-r6) (28/34) Purging libffi (3.8.0-r0) (29/34) Purging libpanelw (6.6_p20260822-r0) (30/34) Purging mpdecimal (4.0.1-r0) (31/34) Purging openssl-dev (3.5.9-r0) (32/34) Purging readline (8.3.3-r1) (33/34) Purging sqlite-libs (3.54.1-r0) (34/34) Purging xz-libs (5.8.4-r0) Executing busybox-1.38.0-r7.trigger OK: 294.4 MiB in 102 packages