pkgcore / pkgcheck

pkgcore-based QA utility for ebuild repos
https://pkgcore.github.io/pkgcheck
BSD 3-Clause "New" or "Revised" License
34 stars 29 forks source link

[Bug]: Missing detection of invalid := in PDEPEND #693

Closed thesamesam closed 4 days ago

thesamesam commented 2 weeks ago

Is there an existing issue for this?

Current Behavior

As a silly example:

diff --git a/sys-apps/sed/sed-4.9-r1.ebuild b/sys-apps/sed/sed-4.9-r1.ebuild
index 96c05b2fc320..b5cf28c830fe 100644
--- a/sys-apps/sed/sed-4.9-r1.ebuild
+++ b/sys-apps/sed/sed-4.9-r1.ebuild
@@ -32,6 +32,7 @@ DEPEND="${RDEPEND}
 "
 BDEPEND="nls? ( sys-devel/gettext )
        verify-sig? ( sec-keys/openpgp-keys-sed )"
+PDEPEND="sys-libs/readline:="

 src_prepare() {
        default

No warning or error raised.

Expected Behavior

An invalid dependency result to be raised.

pkgcheck version

pkgcheck 0.10.31-4-g722236d -- Sat, 6 Jul 2024 19:23:36 +0300

pkgcore version

pkgcore 0.12.28-3-gaa9418b -- Thu, 4 Jul 2024 22:32:44 +0300

thesamesam commented 2 weeks ago

This was pointed out by radhermit on IRC.