commit: c1a730bbc60ea0d0dc7dcd8c8af3199bafc02220 Author: Ophelia Beatrice de Sica <GoGoOtaku <AT> gmail <DOT> com> AuthorDate: Fri Jul 11 19:37:30 2025 +0000 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> CommitDate: Fri Jul 11 19:43:51 2025 +0000 URL: https://gitweb.gentoo.org/proj/pkgcore/pkgcheck.git/commit/?id=c1a730bb
Replace p7zip with 7zip for .7z files P7zip was a fork of 7zip from a time when 7zip was windows only. Since then 7zip got official Linux support and work on p7zip stopped. At this point p7zip is old and outdated and may or may not be vulnerable. (See notice on the official Gentoo wiki) Last year I filed a bug about this on the Gentoo bug tracker which is currently being worked on. I think it is somewhat counter productive to tell people to require p7zip when there is active work to replace it. See-also: https://wiki.gentoo.org/index.php?title=P7zip&oldid=1306559 Bug: https://bugs.gentoo.org/942397 Signed-off-by: Ophelia de Sica <GoGoOtaku <AT> gmail.com> Closes: https://github.com/pkgcore/pkgcheck/pull/744 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org> src/pkgcheck/checks/metadata.py | 2 +- tests/checks/test_metadata.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pkgcheck/checks/metadata.py b/src/pkgcheck/checks/metadata.py index 2020eaec..1ca5ad77 100644 --- a/src/pkgcheck/checks/metadata.py +++ b/src/pkgcheck/checks/metadata.py @@ -1747,7 +1747,7 @@ class MissingUnpackerDepCheck(Check): non_system_unpackers = ImmutableDict( { ".zip": frozenset(["app-arch/unzip"]), - ".7z": frozenset(["app-arch/p7zip"]), + ".7z": frozenset(["app-arch/7zip"]), ".rar": frozenset(["app-arch/rar", "app-arch/unrar"]), ".lha": frozenset(["app-arch/lha"]), ".lzh": frozenset(["app-arch/lha"]), diff --git a/tests/checks/test_metadata.py b/tests/checks/test_metadata.py index 5e336633..b34704a2 100644 --- a/tests/checks/test_metadata.py +++ b/tests/checks/test_metadata.py @@ -1378,4 +1378,4 @@ class TestMissingUnpackerDepCheck(use_based(), misc.ReportTestCase): ) assert isinstance(r, metadata.MissingUnpackerDep) assert r.filenames == (f"diffball-2.7.1.7z",) - assert r.unpackers == ("app-arch/p7zip",) + assert r.unpackers == ("app-arch/7zip",)
