Bird 3.1.0 tarball missing version info
Svenne Krap
svenne at kracon.dk
Thu Apr 24 11:05:37 CEST 2025
Hi all,
I stumbled over, that Bird 3.1.0 in Arch Linux is missing all version information.
Having peeked at the PKGBUILD it seems to do nothing weird, so I have reproduced it by hand.
Steps:
$ wget <https://gitlab.nic.cz/labs/bird/-/archive/v3.1.0/bird-v3.1.0.tar.gz>
$ tar axvf bird-v3.1.0.tar.gz
$ cd bird-v3.1.0
$ autoreconf -vif
$ ./configure
$ make
$ ./bird --version
The latter shows (like "show status" on the real Arch package)
BIRD version +detached.
It seems like the error is in tools/version, that only works in a git repo.
The following patch is a suggestion for a fix
--- ../bird-v3.1.0-failed/tools/version 2025-04-03 20:39:22.000000000 +0200
+++ tools/version 2025-04-24 11:02:58.276023973 +0200
@@ -1,5 +1,12 @@
#!/bin/bash
+# Are we in a release tarball?
+git status >& /dev/null
+if [ $? -eq 128 ]; then
+ realpath . | awk -F/ '{print $NF}' | cut -dv -f 2
+ exit 0
+fi
+
# Aren't we directly at version?
TAG=$(git tag | grep -F $(git describe))if [ -n "$TAG" ]; then
Otherwise, the Arch package seems to work fine.
Regards,
Svenne
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20250424/b531bab7/attachment.htm>
More information about the Bird-users
mailing list