gnome_verdir() stripped the last version component, so four-component
versions broke: libsecret 0.21.8.2 resolved to 0.21.8/ instead of 0.21/,
causing a fetch 404. Use the first two components instead, which is
unchanged for existing recipes.

Signed-off-by: Jaipaul Cheernam <[email protected]>
---
Changes since v1: shorten commit message and code comment; no functional change.

 meta/classes-recipe/gnomebase.bbclass | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/meta/classes-recipe/gnomebase.bbclass 
b/meta/classes-recipe/gnomebase.bbclass
index 57933dda71a..9715e90f165 100644
--- a/meta/classes-recipe/gnomebase.bbclass
+++ b/meta/classes-recipe/gnomebase.bbclass
@@ -5,7 +5,9 @@
 #
 
 def gnome_verdir(v):
-    return ".".join(v.split(".")[:-1]) or v
+    # GNOME dirs use the first two version components, e.g. 0.21.8.2 -> 0.21
+    parts = v.split(".")
+    return ".".join(parts[:2] if len(parts) >= 3 else parts[:-1]) or v
 
 
 GNOME_COMPRESS_TYPE ?= "xz"
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#246093): 
https://lists.openembedded.org/g/openembedded-core/message/246093
Mute This Topic: https://lists.openembedded.org/mt/121304875/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to