Skip to contentSkip to conversation

libgudev: fix SRC_URI

PATCH New Ross Burton 1 participant 2 messages Jun 28, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 libgudev: fix SRC_URI

Since oe-core fa8950d0c the logic to turn a version into a directory name doesn't work for versions which are too short.

Solve this by overriding gnome_verdir() to return the version as-is, as that is what the directory is called.

---
 meta/recipes-gnome/libgudev/libgudev_236.bb | 5 +++++
 1 file changed, 5 insertions(+)
meta/recipes-gnome/libgudev/libgudev_236.bb +5 -0
index daa578ddb19..5d1d2d782be 100644
@@ -26,3 +26,8 @@ GTKDOC_MESON_OPTION = "gtk_doc"
 
 UPSTREAM_CHECK_URI = "http://ftp.gnome.org/pub/GNOME/sources/libgudev/"
 UPSTREAM_CHECK_REGEX = "(?P<pver>(\d+))"
+
+# This isn't a GNOME-style version do gnome_verdir fails. Just return the
+# version as that is how the directory is structured.
+def gnome_verdir(v):
+    return v
Signature · 1 line
2.25.1
#1 lore raw

PATCH 2/2 cantarell-fonts: fix SRC_URI

Since oe-core fa8950d0c the logic to turn a version into a directory name doesn't work for versions which are too short.

Solve this by overriding gnome_verdir() to return the version as-is, as that is what the directory is called.

---
 .../cantarell-fonts/cantarell-fonts_0.301.bb                 | 5 +++++
 1 file changed, 5 insertions(+)
meta/recipes-graphics/cantarell-fonts/cantarell-fonts_0.301.bb +5 -0
index 8dc4ceb399e..b0ce56127d8 100644
@@ -20,3 +20,8 @@ HASHEQUIV_HASH_VERSION .= ".2"
 EXTRA_OEMESON += "-Duseprebuilt=true -Dbuildappstream=false"
 
 FILES_${PN} = "${datadir}/fonts ${datadir}/fontconfig"
+
+# This isn't a GNOME-style version do gnome_verdir fails. Just return the
+# version as that is how the directory is structured.
+def gnome_verdir(v):
+    return v
Signature · 1 line
2.25.1