@@ -5,7 +5,16 @@
#
def gnome_verdir(v):
- return ".".join(v.split(".")[:-1]) or v
+ # Upstream treats a major of 40+ as a flag day to switch between major.minor
+ # versioned directories, or just major.
+ # See get_majmin() in
+ # https://gitlab.gnome.org/Infrastructure/openshift-images/gnome-release-service/-/blob/main/gnome_release_service/gnome_release_system/utils.py
+ parts = v.split(".")
+ major = int(parts[0])
+ if major >= 40:
+ return major
+ else:
+ return ".".join(parts[:2])
GNOME_COMPRESS_TYPE ?= "xz"
libsecret released 0.21.8.2, which broke our gnome_verdir() logic used to construct a SRC_URI. Rewrite the logic, using the code that the GNOME servers use to generate these URLs in the first place. This looks at the major version, if it's above 40 then just the major version is used, otherwise the first two components are used. Signed-off-by: Ross Burton <ross.burton@arm.com> --- meta/classes-recipe/gnomebase.bbclass | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-)