pkgcheck icon indicating copy to clipboard operation
pkgcheck copied to clipboard

[Bug]: `SourcingCheck` does not work if additional packages are passed on command-line

Open mgorny opened this issue 7 months ago • 1 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Current Behavior

$ pkgcheck scan -c SourcingCheck,VisibilityCheck dev-python/shiboken2
dev-python/shiboken2
  SourcingError: version 5.15.14: failed sourcing ebuild: LLVM_COMPAT does not contain any valid versions (all older than 16?), (llvm-r1.eclass, line 122:  called die)
$ pkgcheck scan -c SourcingCheck,VisibilityCheck dev-python/shiboken2 nonexist/nonexist --exit error
$ echo $?
0

This is with llvm-r1.eclass modified the following way:

diff --git a/eclass/llvm-r1.eclass b/eclass/llvm-r1.eclass
index 075df9218be8..2169157b5e08 100644
--- a/eclass/llvm-r1.eclass
+++ b/eclass/llvm-r1.eclass
@@ -54,7 +54,7 @@ inherit llvm-utils
 # @DESCRIPTION:
 # Oldest supported LLVM slot.  This is used to automatically filter out
 # unsupported LLVM_COMPAT values.
-_LLVM_OLDEST_SLOT=15
+_LLVM_OLDEST_SLOT=16
 
 # @ECLASS_VARIABLE: _LLVM_NEWEST_STABLE
 # @INTERNAL

Expected Behavior

SourcingError displayed for the matched package.

pkgcheck version

0.10.30

pkgcore version

0.12.27

mgorny avatar Jun 24 '24 16:06 mgorny