[oe][meta-oe][PATCH 9/15] librdkafka: add UPSTREAM_CHECK_GITTAGREGEX

[email protected]
Newsgroups org.openembedded.lists.openembedded-devel
Message-ID <[email protected]>
From: Ankur Tyagi <[email protected]>

Also include tag in the SRC_URI

Fixes:
$ devtool latest-version librdkafka
...
INFO: Current version: 2.11.1
INFO: Latest version: 64
INFO: Latest version's commit: 1f33da62396378c1f8a92ac4b8c8b4beb6b40617

Signed-off-by: Ankur Tyagi <[email protected]>
---
 meta-oe/recipes-support/librdkafka/librdkafka_2.11.1.bb | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/meta-oe/recipes-support/librdkafka/librdkafka_2.11.1.bb b/meta-oe/recipes-support/librdkafka/librdkafka_2.11.1.bb
index 23ae2fbb29..d7f3ee572d 100644
--- a/meta-oe/recipes-support/librdkafka/librdkafka_2.11.1.bb
+++ b/meta-oe/recipes-support/librdkafka/librdkafka_2.11.1.bb
@@ -7,9 +7,11 @@ LICENSE = "BSD-2-Clause"
 
 LIC_FILES_CHKSUM = "file://LICENSE;md5=40b04809b5d6f648f20f45143cbcb1ad"
 
-SRC_URI = "git://github.com/edenhill/librdkafka;protocol=https;branch=master"
+SRC_URI = "git://github.com/edenhill/librdkafka;protocol=https;branch=master;tag=v${PV}"
 SRCREV = "69b1865efdc0118cd017760d038d34e52fb3f0d0"
 
+UPSTREAM_CHECK_GITTAGREGEX = "v(?P<pver>\d+(\.\d+)+)"
+
 DEPENDS = "zlib openssl zstd curl"
 
 inherit cmake
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.