iproute2: stop writing unused snapshot information
authorGeorge Tsiamasiotis <[email protected]>
Thu, 2 Oct 2025 18:37:58 +0000 (21:37 +0300)
committerRobert Marko <[email protected]>
Mon, 6 Oct 2025 17:08:56 +0000 (19:08 +0200)
iproute2 already generates and uses a proper version string based off
of git since 2020 [1]. Since the aforementioned commit has already
removed the include for SNAPSHOT.h, this bit of code has had no effect
since then other than disabling the built-in configure script invocation.

[1]: https://git.kernel.org/pub/scm/network/iproute2/iproute2.git/commit/?id=fbef655568ee931a82ad463a6f46f01ce3fb27aa

Signed-off-by: George Tsiamasiotis <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/20281
Signed-off-by: Robert Marko <[email protected]>
package/network/utils/iproute2/Makefile

index 6a1b15e148ca2cf4d63f1101c9a049e59816cafa..41668e9381ae355c8019f701ed527c4a093d77a2 100644 (file)
@@ -161,10 +161,8 @@ ifdef CONFIG_PACKAGE_rdma
   HAVE_MNL:=y
 endif
 
-define Build/Configure
-       echo "static const char SNAPSHOT[] = \"$(PKG_VERSION)-$(PKG_RELEASE)-openwrt\";" \
-               > $(PKG_BUILD_DIR)/include/SNAPSHOT.h
-endef
+# Disable built-in configure invocation.
+Build/Configure=
 
 TARGET_LDFLAGS += -Wl,--as-needed
 TARGET_CPPFLAGS += -I$(STAGING_DIR)/usr/include/libnl-tiny