Skip to contentSkip to conversation

ntp: set UPSTREAM_CHECK_REGEX

PATCH New Yi Zhao 1 participant 1 message Apr 12, 2025

lore
Share & tools
lore

Yi Zhao

author
#0 lore raw

PATCH 1/1 ntp: set UPSTREAM_CHECK_REGEX

Set UPSTREAM_CHECK_REGEX to skip RC/beta version.

Before the fix:

$ devtool latest-version ntp
INFO: Current version: 4.2.8p18
INFO: Latest version: 4.2.8p18-RC1

After the fix:

$ devtool latest-version ntp
INFO: Current version: 4.2.8p18
INFO: Latest version: 4.2.8p18
---
 meta-networking/recipes-support/ntp/ntp_4.2.8p18.bb | 2 ++
 1 file changed, 2 insertions(+)
meta-networking/recipes-support/ntp/ntp_4.2.8p18.bb +2 -0
index 6fae993482..33d19a696a 100644
@@ -26,6 +26,8 @@ SRC_URI = "http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/ntp-${PV}.tar.g
 
 SRC_URI[sha256sum] = "cf84c5f3fb1a295284942624d823fffa634144e096cfc4f9969ac98ef5f468e5"
 
+UPSTREAM_CHECK_REGEX = "ntp-(?P<pver>(\d+(\.\d+)+)(p\d+)?)\.tar"
+
 CVE_STATUS[CVE-2016-9312] = "not-applicable-platform: Issue only applies on Windows"
 CVE_STATUS[CVE-2019-11331] = "upstream-wontfix: inherent to RFC 5905 and cannot be fixed without breaking compatibility"
 CVE_STATUS_GROUPS += "CVE_STATUS_NTP"
Signature · 1 line
2.34.1