[openwrt/openwrt] toolchain: add PKG_RELEASE if local files

LEDE Commits lede-commits at lists.infradead.org
Wed Jul 29 11:14:45 EDT 2020


adrian pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/eda3da56a6847f94aaff42a493166670853b8bc6

commit eda3da56a6847f94aaff42a493166670853b8bc6
Author: Paul Spooren <mail at aparcar.org>
AuthorDate: Thu Jul 23 10:20:57 2020 -1000

    toolchain: add PKG_RELEASE if local files
    
    The toolchain packages partly contain local code like patches and
    configuration files. These files are not tracked via PKG_VERSION as this
    variable only covers the upstream package version.
    
    To allow versioning of the buildsystem, this commit adds PKG_RELEASE:=1
    to all toolchain packages with local files. Whenever a local file is
    changed the release must be increased.
    
    This does not touch binutils and gcc for now, as these provide multiple
    versions within one package.
    
    Also update the copyright of touched files to 2020.
    
    Signed-off-by: Paul Spooren <mail at aparcar.org>
    [exclude binutils/gcc from patch, adjust commit title/message]
    Signed-off-by: Adrian Schmutzler <freifunk at adrianschmutzler.de>
---
 toolchain/gdb/Makefile     | 3 ++-
 toolchain/glibc/common.mk  | 3 ++-
 toolchain/uClibc/common.mk | 3 ++-
 3 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/toolchain/gdb/Makefile b/toolchain/gdb/Makefile
index c25d181990..3452ac4dc7 100644
--- a/toolchain/gdb/Makefile
+++ b/toolchain/gdb/Makefile
@@ -1,5 +1,5 @@
 #
-# Copyright (C) 2006-2016 OpenWrt.org
+# Copyright (C) 2006-2020 OpenWrt.org
 #
 # This is free software, licensed under the GNU General Public License v2.
 # See /LICENSE for more information.
@@ -8,6 +8,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=gdb
 PKG_VERSION:=8.3.1
+PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
 PKG_SOURCE_URL:=@GNU/gdb
diff --git a/toolchain/glibc/common.mk b/toolchain/glibc/common.mk
index 1a084d0862..9a9c4a5343 100644
--- a/toolchain/glibc/common.mk
+++ b/toolchain/glibc/common.mk
@@ -1,5 +1,5 @@
 #
-# Copyright (C) 2006-2016 OpenWrt.org
+# Copyright (C) 2006-2020 OpenWrt.org
 #
 # This is free software, licensed under the GNU General Public License v2.
 # See /LICENSE for more information.
@@ -8,6 +8,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=glibc
 PKG_VERSION:=2.31
+PKG_RELEASE:=1
 
 PKG_SOURCE_PROTO:=git
 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
diff --git a/toolchain/uClibc/common.mk b/toolchain/uClibc/common.mk
index 6f4c50c380..a79a838be4 100644
--- a/toolchain/uClibc/common.mk
+++ b/toolchain/uClibc/common.mk
@@ -1,5 +1,5 @@
 #
-# Copyright (C) 2006-2012 OpenWrt.org
+# Copyright (C) 2006-2020 OpenWrt.org
 #
 # This is free software, licensed under the GNU General Public License v2.
 # See /LICENSE for more information.
@@ -8,6 +8,7 @@ include $(TOPDIR)/rules.mk
 include $(INCLUDE_DIR)/target.mk
 
 PKG_VERSION:=1.0.31
+PKG_RELEASE:=1
 
 PKG_NAME:=uClibc-ng
 PKG_SOURCE_URL = http://downloads.uclibc-ng.org/releases/$(PKG_VERSION)/



More information about the lede-commits mailing list