From 9292f32fd96dc00b7c3f34a028d1fc41a4fcb6d2 Mon Sep 17 00:00:00 2001 From: Paul Spooren Date: Wed, 22 Jul 2026 14:37:12 +0200 Subject: [PATCH] toolchain: drop $(REVISION) from GCC version MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Storing the ever changing revision in the GCC binary may result in leakage in package builds. If two equal GCC versions build the same package version with different OpenWrt revisions, the package becomes unreproducible. Solve this by dropping the revision. Below is an example of the `cni` package: │ ├── readelf --wide --decompress --string-dump=.comment {} │ │ @@ -1,4 +1,4 @@ │ │ │ │ String dump of section '.comment': │ │ - [ 0] GCC: (OpenWrt GCC 14.4.0 r35470-1b2aeb4f8a) 14.4.0 │ │ + [ 0] GCC: (OpenWrt GCC 14.4.0 r35485-0f256a0a7a) 14.4.0 Signed-off-by: Paul Spooren --- toolchain/gcc/common.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toolchain/gcc/common.mk b/toolchain/gcc/common.mk index 8a802dc531..dd69d51065 100644 --- a/toolchain/gcc/common.mk +++ b/toolchain/gcc/common.mk @@ -45,7 +45,7 @@ endif PATCH_DIR=../patches-$(GCC_MAJOR_VERSION).x BUGURL=http://bugs.openwrt.org/ -PKGVERSION=OpenWrt GCC $(PKG_VERSION) $(REVISION) +PKGVERSION=OpenWrt GCC $(PKG_VERSION) HOST_BUILD_PARALLEL:=1