tn3399_openwrt/package/kernel
Adrian Schmutzler 9c170cb92f package: drop PKG_VERSION for purely local packages
In the package guidelines, PKG_VERSION is supposed to be used as
"The upstream version number that we're downloading", while
PKG_RELEASE is referred to as "The version of this package Makefile".
Thus, the variables in a strict interpretation provide a clear
distinction between "their" (upstream) version in PKG_VERSION and
"our" (local OpenWrt trunk) version in PKG_RELEASE.

For local (OpenWrt-only) packages, this implies that those will only
need PKG_RELEASE defined, while PKG_VERSION does not apply following
a strict interpretation. While the majority of "our" packages actually
follow that scheme, there are also some that mix both variables or
have one of them defined but keep them at "1".

This is misleading and confusing, which can be observed by the fact
that there typically either one of the variables is never bumped or
the choice of the variable to increase depends on the person doing the
change.

Consequently, this patch aims at clarifying the situation by
consistently using only PKG_RELEASE for "our" packages. To achieve
that, PKG_VERSION is removed there, bumping PKG_RELEASE where
necessary to ensure the resulting package version string is bigger
than before.

During adjustment, one has to make sure that the new resulting composite
package version will not be considered "older" than the previous one.

A useful tool for evaluating that is 'opkg compare-versions'. In
principle, there are the following cases:

1. Sole PKG_VERSION replaced by sole PKG_RELEASE:
   In this case, the resulting version string does not change, it's
   just the value of the variable put in the file. Consequently, we
   do not bump the number in these cases so nobody is tempted to
   install the same package again.

2. PKG_VERSION and PKG_RELEASE replaced by sole PKG_RELEASE:
   In this case, the resulting version string has been "version-release",
   e.g. 1-3 or 1.0-3. For this case, the new PKG_RELEASE will just
   need to be higher than the previous PKG_VERSION.
   For the cases where PKG_VERSION has always sticked to "1", and
   PKG_RELEASE has been incremented, we take the most recent value of
   PKG_RELEASE.

Apart from that, a few packages appear to have developed their own
complex versioning scheme, e.g. using x.y.z number for PKG_VERSION
_and_ a PKG_RELEASE (qos-scripts) or using dates for PKG_VERSION
(adb-enablemodem, wwan). I didn't touch these few in this patch.

Cc: Hans Dedecker <dedeckeh@gmail.com>
Cc: Felix Fietkau <nbd@nbd.name>
Cc: Andre Valentin <avalentin@marcant.net>
Cc: Matthias Schiffer <mschiffer@universe-factory.net>
Cc: Jo-Philipp Wich <jo@mein.io>
Cc: Steven Barth <steven@midlink.org>
Cc: Daniel Golle <dgolle@allnet.de>
Cc: John Crispin <john@phrozen.org>

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2020-07-15 18:33:56 +02:00
..
acx-mac80211 kernel: replace SUBDIRS with M in package recipes 2020-02-22 16:38:41 +01:00
ath10k-ct ath10k-ct: update to version 2020-06-30 2020-07-01 15:39:15 +02:00
bcm27xx-gpu-fw bcm27xx-gpu-fw: bump to most recent good version 2020-06-07 10:26:54 +03:00
bcm63xx-cfe bcm63xx-cfe: fix build with CONFIG_AUTOREMOVE 2020-05-20 08:46:13 +02:00
broadcom-wl broadcom-wl: don't inherit lock descriptor in nas process 2020-05-28 13:08:14 +02:00
button-hotplug kernel: replace SUBDIRS with M in package recipes 2020-02-22 16:38:41 +01:00
cryptodev-linux cryptodev-linux: Fix error when compiling with 5.4 kernel 2020-03-18 23:12:48 +01:00
dtc/patches package: kernel: dtc: Add DTO support 2017-11-06 16:39:41 +01:00
gpio-button-hotplug gpio-button-hotplug: remove duplicate logging text 2020-03-08 15:10:55 +01:00
gpio-nct5104d kernel: drop outdated kernel version switches for local code 2020-05-17 18:35:51 +02:00
hwmon-gsc kernel: make kmod-hwmon-core selected by dependent modules 2020-03-13 14:23:33 +01:00
i2c-gpio-custom kernel: replace SUBDIRS with M in package recipes 2020-02-22 16:38:41 +01:00
kmod-sched-cake-oot kernel: Add kmod-sch-cake-virtual intermediate package 2020-06-06 19:15:43 +01:00
lantiq ltq-vmmc: update permission handling 2020-07-11 14:49:10 +02:00
linux kernel: kmod-zram: break the strict dependency from lz4 2020-07-11 13:33:28 +02:00
mac80211 mac80211: rt2x00: define RF5592 in init_eeprom routine 2020-07-10 18:53:52 +01:00
mt76 mt76: enable hostapd 802.11ax support if kmod-mt7915e is selected 2020-06-10 12:56:35 +02:00
mt7621-qtn-rgmii mt7621-qtn-rgmii: enable RGMII connected Quantenna QV840 2020-07-08 16:07:05 +02:00
mwlwifi mwlwifi: Update the 88W8964's firmware to 9.3.2.12 and fix backports version detection 2020-04-13 22:11:26 +02:00
nat46 nat46: fix translation of ICMP protocol unreachable 2020-07-07 21:42:49 +02:00
om-watchdog package: drop PKG_VERSION for purely local packages 2020-07-15 18:33:56 +02:00
rtc-rv5c386a kernel: drop outdated kernel version switches for local code 2020-05-17 18:35:51 +02:00
rtl8812au-ct rtl8812au-ct: Update to version 2020-01-12 2020-02-24 21:27:08 +01:00
spi-gpio-custom kernel: replace SUBDIRS with M in package recipes 2020-02-22 16:38:41 +01:00
trelay package: drop PKG_VERSION for purely local packages 2020-07-15 18:33:56 +02:00
w1-gpio-custom kernel: replace SUBDIRS with M in package recipes 2020-02-22 16:38:41 +01:00