]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
toolchain: drop $(REVISION) from GCC version
authorPaul Spooren <mail@aparcar.org>
Wed, 22 Jul 2026 12:37:12 +0000 (14:37 +0200)
committerPaul Spooren <mail@aparcar.org>
Thu, 23 Jul 2026 11:20:23 +0000 (13:20 +0200)
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 <mail@aparcar.org>
toolchain/gcc/common.mk

index 8a802dc531dab7eac4e67940c7de01c3bb211b25..dd69d510652365775b2d7dc35280ba0c02747bfc 100644 (file)
@@ -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