Skip to contentSkip to conversation

libnsl2: set CVE_PRODUCT

PATCH New Ross Burton 1 participant 2 messages Nov 25, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 libnsl2: set CVE_PRODUCT

Our libnsl2 recipe is just libnsl version 2.x, so set the CVE vendor and product pair appropriately as per:

https://www.cvedetails.com/version/1177013/Libnsl-Project-Libnsl-2.0.0.html

---
 meta/recipes-extended/libnsl/libnsl2_git.bb | 2 ++
 1 file changed, 2 insertions(+)
meta/recipes-extended/libnsl/libnsl2_git.bb +2 -0
index 8cc1f7cec31..082c888be21 100644
@@ -10,6 +10,8 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c"
 SECTION = "libs"
 DEPENDS = "libtirpc"
 
+CVE_PRODUCT = "libnsl_project:libnsl"
+
 PV = "2.0.1"
 
 SRCREV = "d4b22e54b5e6637a69b26eab5faad2a326c9b182"
Signature · 1 line
2.34.1
#1 lore raw

PATCH 2/2 libnsl2: embed version in filename

This recipe fetches a tagged commit, so embed the PV in the filename.

---
 .../libnsl/{libnsl2_git.bb => libnsl2_2.0.1.bb}             | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
 rename meta/recipes-extended/libnsl/{libnsl2_git.bb => libnsl2_2.0.1.bb} (95%)
meta/recipes-extended/libnsl/libnsl2_2.0.1.bb renamed from meta/recipes-extended/libnsl/libnsl2_git.bb +1 -5
similarity index 95%
rename from meta/recipes-extended/libnsl/libnsl2_git.bb
rename to meta/recipes-extended/libnsl/libnsl2_2.0.1.bb
index 082c888be21..1b9be620c07 100644
@@ -12,13 +12,9 @@ DEPENDS = "libtirpc"
 
 CVE_PRODUCT = "libnsl_project:libnsl"
 
-PV = "2.0.1"
-
+SRC_URI = "git://github.com/thkukuk/libnsl;branch=master;protocol=https"
 SRCREV = "d4b22e54b5e6637a69b26eab5faad2a326c9b182"
 
-SRC_URI = "git://github.com/thkukuk/libnsl;branch=master;protocol=https \
-          "
-
 S = "${WORKDIR}/git"
 
 inherit autotools pkgconfig gettext
Signature · 1 line
2.34.1