immortalwrt/package/network/utils
Adrian Schmutzler ba7e451bc5
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-16 20:15:59 +08:00
..
adb-enablemodem treewide: sync with upstream source 2020-03-28 23:37:17 +08:00
arptables fix & merge 2019-09-30 13:21:19 +08:00
comgt treewide: sync with upstream source 2020-03-28 23:37:17 +08:00
curl curl: bump to 7.71.1 2020-07-08 12:02:50 +08:00
dante dante: Fix compile with glibc 2020-04-19 19:57:16 +08:00
ebtables fix & merge 2019-09-30 13:21:19 +08:00
ethtool ethtool: bump to 5.4 2020-01-15 01:55:17 +08:00
iftop treewide: sync with upstream source 2020-03-28 23:37:17 +08:00
iperf iperf: Allow enabling multicast support 2020-01-15 02:01:51 +08:00
iperf3 iperf3: update to 3.7 2019-08-16 12:23:45 +08:00
iproute2 iproute2: tc: fix missing em_ipset module 2020-07-16 20:11:50 +08:00
ipset ipset: update to 7.4 2019-11-16 08:36:25 +08:00
iptables iptables: xtables-restore: fix for --noflush and empty lines 2020-03-31 20:31:46 +08:00
iw Wireless: rollback with mac80211 (#4683) 2020-05-27 11:45:56 +08:00
iwcap fix permission 2019-09-30 13:42:16 +08:00
iwinfo Wireless: rollback with mac80211 (#4683) 2020-05-27 11:45:56 +08:00
layerscape/restool treewide: sync with upstream source 2020-03-28 23:37:17 +08:00
linux-atm treewide: sync with upstream source 2020-03-28 23:37:17 +08:00
maccalc fix permission 2019-09-30 13:42:16 +08:00
nftables nftables: bump to 0.9.3 2020-03-25 04:14:04 +08:00
owipcalc fix permission 2019-09-30 13:42:16 +08:00
resolveip fix permission 2019-09-30 13:42:16 +08:00
rssileds package: drop PKG_VERSION for purely local packages 2020-07-16 20:15:59 +08:00
tcpdump tcpdump: update to 4.9.3 2019-10-13 11:53:24 +08:00
umbim umbim: supress warning about pointers to members of a packed struct in gcc9 2020-04-16 19:53:06 +08:00
uqmi treewide: sync with upstream source 2020-03-28 23:37:17 +08:00
wireguard-tools wireguard-tools: replace backticks by $(...) 2020-07-12 11:54:55 +08:00
wireless-tools treewide: sync with upstream source 2020-03-28 23:37:17 +08:00
wpan-tools treewide: sync with upstream source 2020-03-28 23:37:17 +08:00
wwan treewide: sync with upstream source 2020-03-28 23:37:17 +08:00