diff mbox series

kronosnet: Fetch version tag with BB_GIT_SHALLOW_EXTRA_REFS

Message ID 20251017145337.1853142-1-m.schwan@phytec.de
State Under Review
Headers show
Series kronosnet: Fetch version tag with BB_GIT_SHALLOW_EXTRA_REFS | expand

Commit Message

Martin Schwan Oct. 17, 2025, 2:53 p.m. UTC
Fetch the needed Git tag by using BB_GIT_SHALLOW_EXTRA_REFS. This fixes
the following autotools configuration error:

| build-aux/git-version-gen: WARNING: .gitarchivever doesn't contain valid version tag
| build-aux/git-version-gen: ERROR: Can't find valid version. Please use valid git repository, released tarball or version tagged archive
| configure.ac:22: error: AC_INIT should be called with package and version arguments

Signed-off-by: Martin Schwan <m.schwan@phytec.de>
---
 meta-networking/recipes-extended/kronosnet/kronosnet_1.31.bb | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/meta-networking/recipes-extended/kronosnet/kronosnet_1.31.bb b/meta-networking/recipes-extended/kronosnet/kronosnet_1.31.bb
index d4b76903c4..d95bb81278 100644
--- a/meta-networking/recipes-extended/kronosnet/kronosnet_1.31.bb
+++ b/meta-networking/recipes-extended/kronosnet/kronosnet_1.31.bb
@@ -14,6 +14,8 @@  DEPENDS = "doxygen-native libqb-native libxml2-native bzip2 libqb libxml2 libnl
 SRCREV = "da73f2a1e0ffe2aee15d4f705edf90ee8445e2d4"
 SRC_URI = "git://github.com/kronosnet/kronosnet;protocol=https;branch=stable1;tag=v${PV}"
 
+BB_GIT_SHALLOW_EXTRA_REFS = "refs/tags/v${PV}"
+
 UPSTREAM_CHECK_URI = "https://github.com/kronosnet/kronosnet/releases"
 
 inherit autotools pkgconfig