[openwrt/openwrt] iproute2: stop writing unused snapshot information

LEDE Commits lede-commits at lists.infradead.org
Mon Oct 6 10:09:00 PDT 2025


robimarko pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/2069b83ec6c924d95ce5de6a0514011eeb4dac65

commit 2069b83ec6c924d95ce5de6a0514011eeb4dac65
Author: George Tsiamasiotis <george at tsiamasiotis.gr>
AuthorDate: Thu Oct 2 21:37:58 2025 +0300

    iproute2: stop writing unused snapshot information
    
    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 <george at tsiamasiotis.gr>
    Link: https://github.com/openwrt/openwrt/pull/20281
    Signed-off-by: Robert Marko <robimarko at gmail.com>
---
 package/network/utils/iproute2/Makefile | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/package/network/utils/iproute2/Makefile b/package/network/utils/iproute2/Makefile
index 6a1b15e148..41668e9381 100644
--- a/package/network/utils/iproute2/Makefile
+++ b/package/network/utils/iproute2/Makefile
@@ -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




More information about the lede-commits mailing list