Sanetize packages version
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest0 of 4 patches 0 repliesNew
Patches in v1 No applies recorded yet
None of the 4 patches the cover letter announces are in this archive.
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [Buildroot] [PATCH 0/4] Sanetize packages version
Hello,
Quoted 37 lines · On Wed, 12 Jun 2019 09:26 +0200 Thomas Petazzoni…
I guess an example of this is the "at" package, which has:
AT_VERSION= release/3.1.23AT_SITE= https://salsa.debian.org/debian/at.gitAT_SITE_METHOD= gitbut we would probably want the version to be just "3.1.23", like is tracked at https://release-monitoring.org/project/127/.
So indeed, I see two possible directions here:
(1) Keep the <pkg>_VERSION semantic as it is today, and add a separate <pkg>_UPSTREAM_VERSION variable (or some other name) that holds the upstream version. This would give:
AT_UPSTREAM_VERSION= 3.1.23
AT_VERSION= release/$(AT_UPSTREAM_VERSION)With this, no need to change anything in the package infrastructure, we just need <pkg>_UPSTREAM_VERSION be extracted by support/scripts/pkg-stats, which is can trivially do instead of extracting <pkg>_VERSION.
This approach also has the advantage that the name of the tarballs stored on disk doesn't change, which means all the
DL_DIRcontents
+ sources.b.o content remain identical.Of course, the package infrastructure defines <pkg>_UPSTREAM_VERSION to <pkg>_VERSION if there's no <pkg>_UPSTREAM_VERSION value defined for a given package.
(2) As suggested by Victor, add a separate variable that tells the Git
download logic what is the actual tag/version to fetch, i.e: AT_VERSION = 3.1.23 AT_GIT_COMMIT = release/$(AT_UPSTREAM_VERSION)
Quoted 4 lines
Perhaps option (1) is the easiest ? But it has the drawback that <pkg>_VERSION doesn't contain just the actual version, but like we do today, some possibly semi-random stuff in addition to the version (like "release/1.2.3" or "foo-1.2.3).
Changing the version variable does not impact the archive name inside the DL_DIR. For these packages the tarball name is the one specify in the <pkg>_SOURCE variable which stay the same after the patch.
In contrast, all github fetched packages are impacted by changing the <pkg>_VERSION variable and as you point out, this cause a re-download on client side (on the server side we could use hardlinks so the disk-space is not impacted). I would add that it also impact the hash file that needs to match the new archive name.
Quoted 5 lines
Quoted 2 lines
Also, there are a few packages that use the <pkg>_VERSION variable to store more than just the version. For example gap-madam-bin-maxi have a suffix
I don't see a gap-madam-bin-maxi package in Buildroot. I am missing something ?
Oupsy, I don't know what appended here, I meant the gpu-amd-bin-mx51 subpackage of freescale-imx which is suffixed by either "-fb" or "-x11".
Quoted 8 lines
Quoted 5 lines
A last case I found is the case of Kodi. Kodi's major versions have a codename in addition to the version number (eg. 18.2 "Leia" or 17.3 "Krypton"). This codename may or not be consider as an inherent part of the version. I would tend to consider this as part of the version and keep it as a version suffix for all kodi-related packages as it is currently.
Kodi has two different entries in release-monitoring.org:
Quoted 8 lines
https://release-monitoring.org/project/5511/, which has only the version, but seems to be outdated
https://release-monitoring.org/project/20547/, which has the version
+ codename, and seems to be updatedSo it looks like we should use the second one, and therefore keep the code name ?
The second entry was not originally present. I added it myself because as you say the first one is pretty outdated. I preferred add a new entry rather than edit the existing one because the version scheme changed (this is now using the github repo) and could break one of the multiple disto that already map kodi.
Best regards,
Victor
Signature · 3 lines
Victor Huesca, Bootlin Embedded Linux and kernel engineering https://bootlin.com