summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoah Meyerhans <frodo@morgul.net>2021-02-03 08:21:49 -0800
committerNoah Meyerhans <frodo@morgul.net>2021-02-03 13:33:06 -0800
commit64ed17c88c37ff314752001eaccfab0b3b75defe (patch)
tree8426b475674405e5100bcdf656fe23bc6b27eb8b
parentabb0501e2828db50782591ecb0f11beb0c0b6bb3 (diff)
iputils: Fix version reporting
The iputils build system embeds git tags into the generated binaries for use by commands like ping -V. Since openwrt packaging is done in a different repository from the upstream repo, the tags it finds aren't particularly meaningful, and we get confusing results like those described at https://github.com/openwrt/packages/issues/13920 This change removes the git tag inspection in favor of the static version string that's already known to the upstream build system. Signed-off-by: Noah Meyerhans <frodo@morgul.net>
-rw-r--r--net/iputils/patches/001_version_fix.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/net/iputils/patches/001_version_fix.patch b/net/iputils/patches/001_version_fix.patch
new file mode 100644
index 000000000..e9237903c
--- /dev/null
+++ b/net/iputils/patches/001_version_fix.patch
@@ -0,0 +1,24 @@
+Description: set a static version string rather than discern it from git
+--- a/meson.build
++++ b/meson.build
+@@ -17,6 +17,7 @@ add_project_arguments(
+
+ conf = configuration_data()
+ conf.set_quoted('PACKAGE_NAME', meson.project_name())
++conf.set('VCS_TAG', meson.project_version())
+ conf.set('_GNU_SOURCE', 1, description : 'Enable GNU extensions on systems that have them.')
+
+ build_arping = get_option('BUILD_ARPING')
+@@ -207,10 +208,10 @@ foreach h : [
+ endif
+ endforeach
+
+-git_version_h = vcs_tag(
++git_version_h = configure_file(
+ input : 'git-version.h.meson',
+ output : 'git-version.h',
+- fallback : meson.project_version()
++ configuration: conf
+ )
+
+ config_h = configure_file(