aports/testing/bird/bird-correct-version.patch
Fusl 22a593abe6 testing/bird: don't use git repo as version number
Makefile.in (used by `make`) contains a shell execution line to read the current git tags and uses that value in the resulting binary. However, since we're not building from a git repository but from a tar file, this results in `bird --version` reporting a version of `v3.7.0-3239-gc13b5c993b` instead of `2.0.2`. The added patch makes sure that bird uses the `BIRD_VERSION` from `sysdep/config.h`
2018-05-03 19:29:45 +02:00

16 lines
489 B
Diff

diff -urp a/Makefile.in b/Makefile.in
--- a/Makefile.in 1970-01-01 00:00:00.000000000 +0000
+++ b/Makefile.in 1970-01-01 00:00:00.000000000 +0000
@@ -21,11 +21,6 @@ INSTALL=@INSTALL@
INSTALL_PROGRAM=@INSTALL_PROGRAM@
INSTALL_DATA=@INSTALL_DATA@
-git-label:=$(strip $(shell git describe --always --dirty=-x 2>/dev/null))
-ifneq ($(git-label),)
- CFLAGS += -DGIT_LABEL="$(git-label)"
-endif
-
client=$(addprefix $(exedir)/,@CLIENT@)
daemon=$(exedir)/bird
protocols=@protocols@