Skip to contentSkip to conversation

iwd: depend on the regulatory database

PATCH New Ross Burton 1 participant 7 messages May 13

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/7 iwd: depend on the regulatory database

Doing wifi without the regulatory database is not good, so add a runtime dependency to iwd to ensure that it gets pulled into the image for the kernel drivers to use.

---
 meta-oe/recipes-connectivity/iwd/iwd_3.12.bb | 1 +
 1 file changed, 1 insertion(+)
meta-oe/recipes-connectivity/iwd/iwd_3.12.bb +1 -0
index a53137537e..073814d89d 100644
@@ -59,4 +59,5 @@ RRECOMMENDS:${PN} = "\
     kernel-module-pkcs7-message \
     kernel-module-pkcs8-key-parser \
     kernel-module-x509-key-parser \
+    wireless-regdb-static \
 "
Signature · 1 line
2.43.0
#1 lore raw

PATCH v2 2/7 libdazzle: add recipe (from oe-core)

This was previously in oe-core but is being removed as it is no longer used by anything in that layer.

---
 .../libdazzle/libdazzle_3.44.0.bb              | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
 create mode 100644 meta-gnome/recipes-support/libdazzle/libdazzle_3.44.0.bb
meta-gnome/recipes-support/libdazzle/libdazzle_3.44.0.bb new file +18 -0
new file mode 100644
index 0000000000..9bca7e9dce
@@ -0,0 +1,18 @@
+SUMMARY = "The libdazzle library is a companion library to GObject and Gtk+."
+DESCRIPTION = "A wide range of components from utilities for GIO, widgets for \
+GTK+, an animation framework, state machines, paneling and high-performance \
+counters are included."
+LICENSE = "GPL-3.0-or-later"
+HOMEPAGE = "https://gitlab.gnome.org/GNOME/libdazzle"
+BUGTRACKER = "https://gitlab.gnome.org/GNOME/libdazzle/issues"
+LIC_FILES_CHKSUM = "file://COPYING;md5=8f0e2cd40e05189ec81232da84bd6e1a"
+
+inherit gnomebase upstream-version-is-even vala features_check gobject-introspection
+
+DEPENDS = "glib-2.0-native glib-2.0 gtk+3"
+
+SRC_URI[archive.sha256sum] = "3cd3e45eb6e2680cb05d52e1e80dd8f9d59d4765212f0e28f78e6c1783d18eae"
+
+GIR_MESON_OPTION = 'with_introspection'
+
+ANY_OF_DISTRO_FEATURES = "${GTK3DISTROFEATURES}"
Signature · 1 line
2.43.0
#2 lore raw

PATCH v2 3/7 libhandy: add recipe (from oe-core)

In reply to Ross Burton

This was previously in oe-core but is being removed as it is no longer used by anything in that layer. Some changes were made in the process of moving the recipe to meta-oe:

- Inherit gnomebase, as this is a GNOME package
- Download the release tarball instead of a git clone
- Set the correct license, this is -or-later not -only. Add handy.h to the license checksum to provide verification.

The final output is identical to the recipe in oe-core.

---
 .../libhandy/libhandy_1.8.3.bb                | 25 +++++++++++++++++++
 1 file changed, 25 insertions(+)
 create mode 100644 meta-gnome/recipes-support/libhandy/libhandy_1.8.3.bb
meta-gnome/recipes-support/libhandy/libhandy_1.8.3.bb new file +25 -0
new file mode 100644
index 0000000000..0c525bcae3
@@ -0,0 +1,25 @@
+SUMMARY = "A library full of GTK+ widgets for mobile phones"
+DESCRIPTION = "Library with GTK widgets for mobile phones. Libhandy provides \
+GTK widgets and GObjects to ease developing applications for mobile phones. \
+It was developed by Purism (and used by several official GNOME projects) \
+to extend Gtk by providing mobile-friendly widgets and make the creation of \
+responsive apps easier."
+HOMEPAGE = "https://gitlab.gnome.org/GNOME/libhandy"
+BUGTRACKER = "https://gitlab.gnome.org/GNOME/libhandy/-/issues"
+LICENSE = "LGPL-2.1-or-later"
+LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c \
+                    file://src/handy.h;beginline=4;endline=4;md5=20a35c7a7509753627b8c372765d5f22"
+
+DEPENDS = "gtk+3"
+
+inherit gnomebase gobject-introspection vala gettext gi-docgen features_check
+
+SRC_URI[archive.sha256sum] = "05b497229073ff557f10b326e074c5066f8743a302d4820ab97bcb5cd2dab087"
+
+GIR_MESON_ENABLE_FLAG = 'enabled'
+GIR_MESON_DISABLE_FLAG = 'disabled'
+
+PACKAGES =+ "${PN}-examples"
+FILES:${PN}-examples = "${bindir}"
+
+ANY_OF_DISTRO_FEATURES = "${GTK3DISTROFEATURES}"
Signature · 1 line
2.43.0
#3 lore raw

PATCH v2 4/7 gnome-calendar: remove obsolete dependencies, clean up recipe

In reply to Ross Burton

Remove obsolete libdazzle and geocode-glib dependencies, these have been removed upstream.

Change the DISTRO_FEATURES check so that opengl is required and any of the GTK3DISTROFEATURES (x11 wayland) are present, as GTK 4 needs opengl and supports either x11 or wayland.

Drop the sed on the generated enums, the generated files have relative paths in now.

---
 .../gnome-calendar/gnome-calendar_48.0.bb             | 11 ++---------
 1 file changed, 2 insertions(+), 9 deletions(-)
meta-gnome/recipes-gnome/gnome-calendar/gnome-calendar_48.0.bb +2 -9
index 44bde3774d..3c282ab1f9 100644
@@ -10,28 +10,21 @@ DEPENDS = " \
     gsettings-desktop-schemas \
     evolution-data-server \
     libsoup \
-    libdazzle \
     libadwaita \
     libgweather4 \
     geoclue \
-    geocode-glib \
 "
 
 GTKIC_VERSION = '4'
 inherit gnomebase gsettings gtk-icon-cache gettext features_check upstream-version-is-even mime-xdg
 
-REQUIRED_DISTRO_FEATURES = "x11 opengl"
+REQUIRED_DISTRO_FEATURES = "opengl"
+ANY_OF_DISTRO_FEATURES = "${GTK3DISTROFEATURES}"
 
 SRC_URI[archive.sha256sum] = "e69a5a66be820105a4d823d4dba9b4e6ef9f6e7523978aaf33361ebbb993e604"
 
-do_install:prepend() {
-    sed -i -e 's|${S}/src|${TARGET_DBGSRC_DIR}/src|g' ${B}/src/gcal-enum-types.h
-    sed -i -e 's|${S}/src|${TARGET_DBGSRC_DIR}/src|g' ${B}/src/gcal-enum-types.c
-}
-
 FILES:${PN} += " \
     ${datadir}/gnome-shell \
     ${datadir}/metainfo \
     ${datadir}/dbus-1 \
 "
-
Signature · 1 line
2.43.0
#4 lore raw

PATCH v2 5/7 file-roller: drop libhandy dependency

In reply to Ross Burton

This was removed when file-roller was ported to GTK 4.

---
 meta-gnome/recipes-gnome/file-roller/file-roller_44.5.bb | 1 -
 1 file changed, 1 deletion(-)
meta-gnome/recipes-gnome/file-roller/file-roller_44.5.bb +0 -1
index 050f6803c7..f0f74f5561 100644
@@ -11,7 +11,6 @@ DEPENDS = " \
     gtk4 \
     libadwaita \
     libarchive \
-    libhandy \
     libportal \
 "
 
Signature · 1 line
2.43.0
#5 lore raw

PATCH v2 6/7 gnome-system-monitor: remove obsolete dependencies

In reply to Ross Burton

libhandy was removed when g-s-m ported to GTK 4.

gnome-common is not required now that g-s-m uses Meson not autoconf.

polkit was removed in g-s-m 3.36 (March 2020).

Update the DISTRO_FEATURES check, polkit isn't required but opengl is via GTK 4.

---
 .../gnome-system-monitor/gnome-system-monitor_50.0.bb       | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
meta-gnome/recipes-gnome/gnome-system-monitor/gnome-system-monitor_50.0.bb +1 -5
index 1ae11dda3b..29918605ef 100644
@@ -4,7 +4,6 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
 
 DEPENDS = " \
     catch2 \
-    gnome-common-native \
     libxml2-native \
     glib-2.0-native \
     glibmm-2.68 \
@@ -13,15 +12,12 @@ DEPENDS = " \
     libadwaita \
     libgtop \
     librsvg \
-    polkit \
-    libhandy \
 "
 
-
 inherit gnomebase gsettings gnome-help itstool gtk-icon-cache features_check gettext
 
 ANY_OF_DISTRO_FEATURES = "${GTK3DISTROFEATURES}"
-REQUIRED_DISTRO_FEATURES = "polkit"
+REQUIRED_DISTRO_FEATURES = "opengl"
 
 SRC_URI[archive.sha256sum] = "a4138aa754b4584c46de91fad1d685e27b12bc2457de761863b6be02d84c4862"
 
Signature · 1 line
2.43.0
#6 lore raw

PATCH v2 7/7 nautilus: update dependencies

In reply to Ross Burton

libhandy was removed when g-s-m ported to GTK 4.

Update the DISTRO_FEATURES checks to use GTK3DISTROFEATURES.

---
 meta-gnome/recipes-gnome/nautilus/nautilus_49.5.bb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
meta-gnome/recipes-gnome/nautilus/nautilus_49.5.bb +2 -2
index 45e0969d66..9597ce5136 100644
@@ -14,7 +14,6 @@ DEPENDS = " \
     gtk4 \
     libadwaita \
     libcloudproviders \
-    libhandy \
     libportal \
     libxml2 \
     tinysparql \
@@ -26,7 +25,8 @@ inherit gnomebase gsettings gobject-introspection gi-docgen gettext features_che
 
 SRC_URI[archive.sha256sum] = "fa5655e73ee7953aecfe71fea67bfec0c67447e14e6df135aa3f80334386872c"
 
-REQUIRED_DISTRO_FEATURES = "x11 opengl gobject-introspection-data"
+REQUIRED_DISTRO_FEATURES = "opengl gobject-introspection-data"
+ANY_OF_DISTRO_FEATURES = "${GTK3DISTROFEATURES}"
 
 GIDOCGEN_MESON_OPTION = "docs"
 GIDOCGEN_MESON_ENABLE_FLAG = 'true'
Signature · 1 line
2.43.0