From 1c6c37355445ce6f0b6461c645044d6742d6d41b Mon Sep 17 00:00:00 2001 From: Yi Zhao Date: Tue, 30 Sep 2025 22:18:34 +1300 Subject: [PATCH] nmap: set UPSTREAM_CHECK_REGEX Set UPSTREAM_CHECK_REGEX to check the correct latest stable verison. Before the fix: $ devtool latest-version nmap INFO: Current version: 7.95 INFO: Latest version: 7.95-1 After the fix: $ devtool latest-version nmap INFO: Current version: 7.95 INFO: Latest version: 7.95 Signed-off-by: Yi Zhao Signed-off-by: Khem Raj (cherry picked from commit 12e69dd55590bc5c44fcc30e3c68369723e56506) Signed-off-by: Ankur Tyagi Signed-off-by: Gyorgy Sarvari --- meta-oe/recipes-security/nmap/nmap_7.95.bb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/meta-oe/recipes-security/nmap/nmap_7.95.bb b/meta-oe/recipes-security/nmap/nmap_7.95.bb index f3775f24b0..c410751595 100644 --- a/meta-oe/recipes-security/nmap/nmap_7.95.bb +++ b/meta-oe/recipes-security/nmap/nmap_7.95.bb @@ -14,6 +14,9 @@ SRC_URI = "http://nmap.org/dist/${BP}.tar.bz2 \ file://0001-fix-racing-between-build-ncat-and-build-lua.patch \ " SRC_URI[sha256sum] = "e14ab530e47b5afd88f1c8a2bac7f89cd8fe6b478e22d255c5b9bddb7a1c5778" + +UPSTREAM_CHECK_REGEX = "nmap-(?P\d+(\.\d+)+)\.tar" + inherit autotools-brokensep pkgconfig python3native PACKAGECONFIG ?= "pcre ncat nping pcap"