[OpenWrt-Devel] [PATCH] package: use PKG_VERSION only for upstream packages

Adrian Schmutzler mail at adrianschmutzler.de
Mon Feb 24 11:51:19 EST 2020


Hi Daniel,

> -----Original Message-----
> From: Daniel Golle [mailto:daniel at makrotopia.org]
> Sent: Montag, 24. Februar 2020 17:43
> To: Adrian Schmutzler <freifunk at adrianschmutzler.de>
> Cc: openwrt-devel at lists.openwrt.org; Hans Dedecker <dedeckeh at gmail.com>;
> Jo-Philipp Wich <jo at mein.io>; Andre Valentin <avalentin at marcant.net>; Daniel
> Golle <dgolle at allnet.de>; John Crispin <john at phrozen.org>; Matthias Schiffer
> <mschiffer at universe-factory.net>; Steven Barth <steven at midlink.org>; Felix
> Fietkau <nbd at nbd.name>
> Subject: Re: [OpenWrt-Devel] [PATCH] package: use PKG_VERSION only for
> upstream packages
> 
> On Mon, Feb 24, 2020 at 05:08:18PM +0100, Adrian Schmutzler wrote:
> > 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.
> 
> Not sure, but I guess this may bring problems when people do
> opkg show-upgradable
> as removing PKG_VERSION may then result in the package manager
> considering it a downgrade...?
> 
> I haven't tried nor looked into it in detail though.

Thanks for your feedback. This might actually be the only big problem I see,
too, and I also have not tested it yet (but I plan to do so).

I do not plan to merge this fast, but rather wanted to bring this on the table
for discussion (so I do not waste time on testing details in case somebody NAKs
it right away).

Best

Adrian


_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list