re2: add UPSTREAM_CHECK_GITTAGREGEX

Add UPSTREAM_CHECK_GITTAGREGEX to check the correct latest stable
verison.

Before the patch:
$ devtool latest-version re2
INFO: Current version: 2024.03.01
INFO: Latest version: 2025
INFO: Latest version's commit: 927f5d53caf8111721e734cf24724686bb745f55

After the patch:
$ devtool latest-version re2
INFO: Current version: 2024.03.01
INFO: Latest version: 2025-11-05
INFO: Latest version's commit: 927f5d53caf8111721e734cf24724686bb745f55

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Yi Zhao 2025-11-21 11:27:14 +08:00 committed by Khem Raj
parent 5bcd67a255
commit d1672fa209
No known key found for this signature in database
GPG Key ID: BB053355919D3314

View File

@ -10,6 +10,7 @@ SRC_URI = "git://github.com/google/re2.git;branch=main;protocol=https \
${@bb.utils.contains('PTEST_ENABLED', '1', 'file://run-ptest', '', d)} \
"
UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>\d+(-\d+)+)"
DEPENDS = "abseil-cpp ${@bb.utils.contains('PTEST_ENABLED', '1', 'gtest googlebenchmark', '', d)}"