Skip to contentSkip to conversation

libjpeg-turbo: exclude x.y.9z versions from upstream check

PATCH In review Alexander Kanavin 2 participants 4 messages Apr 22 – Apr 24

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 libjpeg-turbo: exclude x.y.9z versions from upstream check

From: Alexander Kanavin <[email protected]>

E.g. the current 3.1.90 is a pre-release and shouldn't be considered.

---
 meta/recipes-graphics/jpeg/libjpeg-turbo_3.1.3.bb | 1 +
 1 file changed, 1 insertion(+)
meta/recipes-graphics/jpeg/libjpeg-turbo_3.1.3.bb +1 -0
index 26e84ca42c..f3e1ff59a6 100644
@@ -10,6 +10,7 @@ DEPENDS:append:x86:class-target = " nasm-native"
 
 SRC_URI = "${GITHUB_BASE_URI}/download/${PV}/${BP}.tar.gz"
 SRC_URI[sha256sum] = "075920b826834ac4ddf97661cc73491047855859affd671d52079c6867c1c6c0"
+UPSTREAM_CHECK_REGEX = "releases/tag/(?P<pver>\d+\.\d+\.(?!9\d+)\d+(\.\d+)*)"
 
 PE = "1"
 
Signature · 1 line
2.47.3
#1 lore raw

PATCH 2/2 sbom-cve-check: exclude recipes from version checks and version updates

From: Alexander Kanavin <[email protected]>

These recipes rely on AUTOREV enabled with a fragment, and upstream otherwise updates them far too often to make regular version updates feasible.

---
 .../recipes-devtools/sbom-cve-check/sbom-cve-check-update-db.inc | 1 +
 1 file changed, 1 insertion(+)
meta/recipes-devtools/sbom-cve-check/sbom-cve-check-update-db.inc +1 -0
index fbdc561e8c..8f8639ab6c 100644
@@ -2,6 +2,7 @@
 
 INHIBIT_DEFAULT_DEPS = "1"
 EXCLUDE_FROM_WORLD = "1"
+RECIPE_NO_UPDATE_REASON = "Recipe is enabled via fragment that also sets AUTOREV, and so it doesn't require manual updates"
 
 inherit native
 require conf/sbom-cve-check-config.inc
Signature · 1 line
2.47.3
#2 lore raw

Re: [OE-core] [PATCH 2/2] sbom-cve-check: exclude recipes from version checks and version updates

Quoted 5 lines · Alexander Kanavin via lists.openembedded.org

From: Alexander Kanavin <[email protected]>

These recipes rely on AUTOREV enabled with a fragment, and upstream otherwise updates them far too often to make regular version updates feasible.

I actually think we want to keep this. We encourage people to use AUTOREV on these recipes, but we should update the underlying SRCREV occasionally at least, and AUH is one easy way of doing that.

Ross

#3 lore raw

Re: [OE-core] [PATCH 2/2] sbom-cve-check: exclude recipes from version checks and version updates

Quoted 4 lines · Ross Burton
Quoted 2 lines

These recipes rely on AUTOREV enabled with a fragment, and upstream otherwise updates them far too often to make regular version updates feasible.

I actually think we want to keep this. We encourage people to use AUTOREV on these recipes, but we should update the underlying SRCREV occasionally at least, and AUH is one easy way of doing that.

I guess we can set PV to upstream tags, although both upstreams update tags once a day, or even more frequently:

https://github.com/fkie-cad/nvd-json-data-feeds/tags
https://github.com/CVEProject/cvelistV5/tags

I'm not super keen to have recipes that are always out of date, and are updated at random intervals, but yes it's doable.

Alex