openwrt/package/network/utils
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
..
adb-enablemodem Move enablemodem from ramips to new package adb-enablemodem and make it used also by TL-MR6400 2017-05-27 07:54:40 +02:00
arptables treewide: switch git.netfilter.org to HTTPS 2017-10-08 21:10:36 +03:00
comgt comgt: add new script to send ussd request and get the answer 2020-07-08 16:07:05 +02:00
curl curl: bump to 7.71.1 2020-07-07 22:16:47 +02:00
dante dante: Fix compile with glibc 2020-04-18 21:06:45 +02:00
ebtables ebtables: update to latest git 2018-06-27 2018-07-02 17:33:55 +02:00
ethtool ethtool: bump to 5.4 2020-01-12 22:19:37 +01:00
iftop iftop: update to HEAD of 2018-10-03 - 77901c 2019-08-18 20:56:41 +02:00
iperf iperf: fix PKG_CONFIG_DEPENDS 2020-01-07 20:52:23 +01:00
iperf3 iperf3: update to 3.7 2019-07-08 16:28:47 +02:00
iproute2 iproute2: tc: fix missing em_ipset module 2020-07-14 22:00:43 +02:00
ipset ipset: update to 7.4 2019-11-09 14:33:42 +01:00
iptables iptables: update to 1.8.4 2020-03-15 15:55:56 +00:00
iw mac80211: Update to version 5.7-rc3-1 2020-05-21 14:39:34 +02:00
iwcap iwcap: fix handling kill signal during dump 2017-03-14 13:29:03 +01:00
iwinfo iwinfo: update to version 2020-06-03 2020-06-03 16:49:28 +02:00
layerscape/restool layerscape: update restool to LSDK-20.04 2020-05-07 12:53:06 +02:00
linux-atm linux-atm: Include linux/sockios.h for SIOCGSTAMP 2020-04-09 00:12:46 +02:00
maccalc network/utils/maccalc: drop Build/Prepare rule in favor of default one 2016-10-15 11:36:52 +02:00
nftables nftables: implement no/json variants 2020-03-29 17:27:54 +01:00
owipcalc network/utils/owipcalc: drop Build/Prepare rule in favor of default one 2016-10-15 11:36:52 +02:00
resolveip network/utils/resolveip: drop Build/Prepare rule in favor of default one 2016-10-15 11:36:52 +02:00
rssileds package: drop PKG_VERSION for purely local packages 2020-07-15 18:33:56 +02:00
tcpdump tcpdump: update to 4.9.3 2019-10-12 23:37:00 +02:00
umbim umbim: move package to 'WWAN' submenu 2020-02-24 23:27:50 +01:00
uqmi uqmi: fix indentation style and boundary 2019-07-03 07:45:00 +02:00
wireguard-tools wireguard-tools: replace backticks by $(...) 2020-07-11 12:52:01 +02:00
wireless-tools treewide: revise library packaging 2019-01-24 10:39:30 +01:00
wpan-tools wpan-tools: clean up Makefile 2019-04-06 19:14:06 +02:00
wwan wwan: replace backticks by $(...) 2020-05-13 19:01:23 +02:00