commit: af6fea3b78f9247bacb8e47748ebaade390c3e7d Author: Alfred Wingate <parona <AT> protonmail <DOT> com> AuthorDate: Tue Dec 9 09:06:35 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Thu Dec 18 06:29:54 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=af6fea3b
app-arch/patool: workaround setuptools-reproducible Bug: https://bugs.gentoo.org/958470 Signed-off-by: Alfred Wingate <parona <AT> protonmail.com> Part-of: https://github.com/gentoo/gentoo/pull/44965 Signed-off-by: Sam James <sam <AT> gentoo.org> app-arch/patool/patool-4.0.1.ebuild | 17 +++++++++-------- app-arch/patool/patool-4.0.2.ebuild | 17 +++++++++-------- 2 files changed, 18 insertions(+), 16 deletions(-) diff --git a/app-arch/patool/patool-4.0.1.ebuild b/app-arch/patool/patool-4.0.1.ebuild index 31c44a0e176d..02f641fd5094 100644 --- a/app-arch/patool/patool-4.0.1.ebuild +++ b/app-arch/patool/patool-4.0.1.ebuild @@ -103,6 +103,15 @@ python_prepare_all() { sed -e 's/setuptools-reproducible/setuptools/' \ -e 's/setuptools_reproducible/setuptools.build_meta/' \ -i pyproject.toml || die + + # Workaround setuptools-reproducible setting file stamps to invalid dates. + # bug #958470 + # + # Test fails because the timestamp of the zip archive is before 1980. + # This is due to the timestamps getting reset to the unix epoch in + # the unpacked tar archive. + # ValueError: ZIP does not support timestamps before 1980 + find tests/data/ -exec touch {} + || die } python_install_all() { @@ -122,14 +131,6 @@ python_test() { # Error: 1002 (invalid input file) "tests/archives/test_mac.py" ) - local EPYTEST_DESELECT=( - # Something changed in the upstream sdist creation between 4.0.0 and 4.0.1 - # Test fails because the timestamp of the zip arhive is before 1980. - # This is due to the timestamps getting reset to the unix epoch in - # the unpacked tar archive. - # ValueError: ZIP does not support timestamps before 1980 - "tests/archives/test_pyzipfile.py::TestPyzipfile::test_py_zipfile" - ) if use elibc_musl; then EPYTEST_IGNORE+=( diff --git a/app-arch/patool/patool-4.0.2.ebuild b/app-arch/patool/patool-4.0.2.ebuild index 5d7e8a588e0b..9e8562a59801 100644 --- a/app-arch/patool/patool-4.0.2.ebuild +++ b/app-arch/patool/patool-4.0.2.ebuild @@ -103,6 +103,15 @@ python_prepare_all() { sed -e 's/setuptools-reproducible/setuptools/' \ -e 's/setuptools_reproducible/setuptools.build_meta/' \ -i pyproject.toml || die + + # Workaround setuptools-reproducible setting file stamps to invalid dates. + # bug #958470 + # + # Test fails because the timestamp of the zip archive is before 1980. + # This is due to the timestamps getting reset to the unix epoch in + # the unpacked tar archive. + # ValueError: ZIP does not support timestamps before 1980 + find tests/data/ -exec touch {} + || die } python_install_all() { @@ -122,14 +131,6 @@ python_test() { # Error: 1002 (invalid input file) "tests/archives/test_mac.py" ) - local EPYTEST_DESELECT=( - # Something changed in the upstream sdist creation between 4.0.0 and 4.0.1 - # Test fails because the timestamp of the zip arhive is before 1980. - # This is due to the timestamps getting reset to the unix epoch in - # the unpacked tar archive. - # ValueError: ZIP does not support timestamps before 1980 - "tests/archives/test_pyzipfile.py::TestPyzipfile::test_py_zipfile" - ) if use elibc_musl; then EPYTEST_IGNORE+=(
