You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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>
4 years ago
..
adb-enablemodem Move enablemodem from ramips to new package adb-enablemodem and make it used also by TL-MR6400 7 years ago
arptables treewide: switch git.netfilter.org to HTTPS 7 years ago
comgt comgt: add new script to send ussd request and get the answer 4 years ago
curl curl: bump to 7.71.1 4 years ago
dante dante: Fix compile with glibc 4 years ago
ebtables ebtables: update to latest git 2018-06-27 6 years ago
ethtool ethtool: bump to 5.4 4 years ago
iftop iftop: update to HEAD of 2018-10-03 - 77901c 5 years ago
iperf iperf: fix PKG_CONFIG_DEPENDS 4 years ago
iperf3 iperf3: update to 3.7 5 years ago
iproute2 iproute2: tc: fix missing em_ipset module 4 years ago
ipset ipset: update to 7.4 5 years ago
iptables iptables: update to 1.8.4 4 years ago
iw mac80211: Update to version 5.7-rc3-1 4 years ago
iwcap iwcap: fix handling kill signal during dump 7 years ago
iwinfo iwinfo: update to version 2020-06-03 4 years ago
layerscape/restool layerscape: update restool to LSDK-20.04 4 years ago
linux-atm linux-atm: Include linux/sockios.h for SIOCGSTAMP 4 years ago
maccalc network/utils/maccalc: drop Build/Prepare rule in favor of default one 8 years ago
nftables nftables: implement no/json variants 4 years ago
owipcalc network/utils/owipcalc: drop Build/Prepare rule in favor of default one 8 years ago
resolveip network/utils/resolveip: drop Build/Prepare rule in favor of default one 8 years ago
rssileds package: drop PKG_VERSION for purely local packages 4 years ago
tcpdump tcpdump: update to 4.9.3 5 years ago
umbim umbim: move package to 'WWAN' submenu 4 years ago
uqmi uqmi: fix indentation style and boundary 5 years ago
wireguard-tools wireguard-tools: replace backticks by $(...) 4 years ago
wireless-tools treewide: revise library packaging 5 years ago
wpan-tools wpan-tools: clean up Makefile 5 years ago
wwan wwan: replace backticks by $(...) 4 years ago