Skip to contentSkip to conversation

lcov: include UPSTREAM_CHECK_* to fix UNKNOWN_BROKEN status

PATCH New Akash Hadke 1 participant 3 messages Mar 8, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 lcov: include UPSTREAM_CHECK_* to fix UNKNOWN_BROKEN status

From: Alexandre Truong <[email protected]>

Adding UPSTREAM_CHECK_URI and UPSTREAM_CHECK_REGEX fix UNKNOWN_BROKEN status from running devtool check-upgrade-status.

The next version of the package can be found from upstream sources.

(cherry picked from commit e71a678f4d769da2f7f465bfcaa1ab614f9d0d1a)
---
 meta-oe/recipes-support/lcov/lcov_1.16.bb | 3 +++
 1 file changed, 3 insertions(+)
meta-oe/recipes-support/lcov/lcov_1.16.bb +3 -0
index 22d68814ee..4f35eff90f 100755
@@ -50,6 +50,9 @@ SRC_URI = "https://github.com/linux-test-project/lcov/releases/download/v${PV}/l
 SRC_URI[md5sum] = "bfee0cef50d7b7bd1df03bfadf68dcef"
 SRC_URI[sha256sum] = "987031ad5528c8a746d4b52b380bc1bffe412de1f2b9c2ba5224995668e3240b"
 
+UPSTREAM_CHECK_URI = "https://github.com/linux-test-project/lcov/releases"
+UPSTREAM_CHECK_REGEX = "(?P<pver>\d+(\.\d+)+)"
+
 do_install() {
     oe_runmake install PREFIX=${D}${prefix} CFG_DIR=${D}${sysconfdir} LCOV_PERL_PATH="/usr/bin/env perl"
 }
Signature · 1 line
2.25.1
#1 lore raw

PATCH 2/3 lcov: sort RDEPENDS alphabetical

From: Claus Stovgaard <[email protected]>

It is easier to get an overview of the perl modules needed for running lcov if they are sorted alphabetically

(cherry picked from commit 7ec1c9afdf45a3ee47bfff0470d90cf215ba4da5)
---
 meta-oe/recipes-support/lcov/lcov_1.16.bb | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
meta-oe/recipes-support/lcov/lcov_1.16.bb +5 -5
index 4f35eff90f..53e1921054 100755
@@ -10,12 +10,10 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
 
 RDEPENDS:${PN} += " \
     perl \
-    perl-module-filehandle \
-    perl-module-getopt-std \
-    perl-module-digest-md5 \
-    perl-module-digest-sha \
     perl-module-constant \
     perl-module-cwd \
+    perl-module-digest-md5 \
+    perl-module-digest-sha \
     perl-module-errno \
     perl-module-file-basename \
     perl-module-file-copy \
@@ -25,12 +23,14 @@ RDEPENDS:${PN} += " \
     perl-module-file-spec-functions \
     perl-module-file-spec-unix \
     perl-module-file-temp \
+    perl-module-filehandle \
     perl-module-getopt-long \
+    perl-module-getopt-std \
     perl-module-list-util \
     perl-module-mro \
     perl-module-overload \
-    perl-module-overloading \
     perl-module-overload-numbers \
+    perl-module-overloading \
     perl-module-parent \
     perl-module-pod-usage \
     perl-module-posix \
Signature · 1 line
2.25.1
#2 lore raw

PATCH 3/3 lcov: Add missing RDEPENDS

In reply to Akash Hadke

From: Claus Stovgaard <[email protected]>

Found by just adding lcov to core-image-minimal, running geninfo and getting errors like.

Can't locate Module/Load.pm in @INC (you may need to install the Module::Load module) ... at /usr/bin/geninfo line 63.
BEGIN failed--compilation aborted at /usr/bin/geninfo line 63.

Can't locate Module/Metadata.pm in @INC (you may need to install the Module::Metadata module) ... at /usr/lib/perl5/5.38.2/Module/Load/Conditional.pm line 14.
BEGIN failed--compilation aborted at /usr/lib/perl5/5.38.2/Module/Load/Conditional.pm line 14. Compilation failed in require at /usr/bin/geninfo line 64.

(cherry picked from commit e7f560b9b8dacf7aadf59d6321c2e869dcd5831e)
---
 meta-oe/recipes-support/lcov/lcov_1.16.bb | 4 ++++
 1 file changed, 4 insertions(+)
meta-oe/recipes-support/lcov/lcov_1.16.bb +4 -0
index 53e1921054..81b80790fe 100755
@@ -9,7 +9,9 @@ LICENSE = "GPL-2.0-only"
 LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
 
 RDEPENDS:${PN} += " \
+    libjson-perl \
     perl \
+    perl-module-compress-zlib \
     perl-module-constant \
     perl-module-cwd \
     perl-module-digest-md5 \
@@ -27,6 +29,8 @@ RDEPENDS:${PN} += " \
     perl-module-getopt-long \
     perl-module-getopt-std \
     perl-module-list-util \
+    perl-module-load \
+    perl-module-metadata \    
     perl-module-mro \
     perl-module-overload \
     perl-module-overload-numbers \
Signature · 1 line
2.25.1