Skip to contentSkip to conversation

ntp: add UPSTREAM_CHECK_URI

PATCH New Yi Zhao 1 participant 2 messages Nov 13, 2025

lore
Share & tools
lore

Yi Zhao

author
#0 lore raw

PATCH 1/2 ntp: add UPSTREAM_CHECK_URI

Add UPSTREAM_CHECK_URI to check the correct latest stable verison.

Before the patch:

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

After the patch:

$ 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 | 1 +
 1 file changed, 1 insertion(+)
meta-networking/recipes-support/ntp/ntp_4.2.8p18.bb +1 -0
index 33d19a696a..a5a6048f8a 100644
@@ -26,6 +26,7 @@ SRC_URI = "http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/ntp-${PV}.tar.g
 
 SRC_URI[sha256sum] = "cf84c5f3fb1a295284942624d823fffa634144e096cfc4f9969ac98ef5f468e5"
 
+UPSTREAM_CHECK_URI = "https://downloads.nwtime.org/ntp/"
 UPSTREAM_CHECK_REGEX = "ntp-(?P<pver>(\d+(\.\d+)+)(p\d+)?)\.tar"
 
 CVE_STATUS[CVE-2016-9312] = "not-applicable-platform: Issue only applies on Windows"
Signature · 1 line
2.34.1
author
#1 lore raw

PATCH 2/2 dhcp-relay: update UPSTREAM_CHECK_REGEX

Update UPSTREAM_CHECK_REGEX to check the correct latest stable verison.

Before the patch:

$ devtool latest-version dhcp-relay
INFO: Current version: 4.4.3p1
INFO: Latest version: 4.4.3

After the patch:

$ devtool latest-version dhcp-relay
INFO: Current version: 4.4.3p1
INFO: Latest version: 4.4.3-P1
---
 meta-networking/recipes-connectivity/dhcp/dhcp-relay_4.4.3p1.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-networking/recipes-connectivity/dhcp/dhcp-relay_4.4.3p1.bb +1 -1
index 8a33feec21..707eeb0e26 100644
@@ -22,7 +22,7 @@ SRC_URI = "https://downloads.isc.org/isc/dhcp/4.4.3-P1/dhcp-4.4.3-P1.tar.gz \
 SRC_URI[sha256sum] = "0ac416bb55997ca8632174fd10737fd61cdb8dba2752160a335775bc21dc73c7"
 
 UPSTREAM_CHECK_URI = "http://ftp.isc.org/isc/dhcp/"
-UPSTREAM_CHECK_REGEX = "(?P<pver>\d+\.\d+\.(\d+?))/"
+UPSTREAM_CHECK_REGEX = "(?P<pver>(\d+(\.\d+)+)(-P\d+)?)"
 
 S = "${UNPACKDIR}/dhcp-4.4.3-P1"
 
Signature · 1 line
2.34.1