summaryrefslogtreecommitdiff
path: root/mate-base/mate-control-center
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-04-10 00:31:33 +0100
committerV3n3RiX <venerix@koprulu.sector>2024-04-10 00:31:33 +0100
commitabb30563c27d2f713333a02c5d124acc8e301d12 (patch)
tree584169f99cd4c93cecaaf57768c589fef99d78b8 /mate-base/mate-control-center
parentfb7c221776ce0bda5eb40ef32cb74daa98aed0d7 (diff)
gentoo auto-resync : 10:04:2024 - 00:31:32
Diffstat (limited to 'mate-base/mate-control-center')
-rw-r--r--mate-base/mate-control-center/Manifest5
-rw-r--r--mate-base/mate-control-center/files/mate-control-center-1.28.0-optional-systemd.patch250
-rw-r--r--mate-base/mate-control-center/mate-control-center-1.28.0.ebuild (renamed from mate-base/mate-control-center/mate-control-center-1.27.0.ebuild)7
3 files changed, 256 insertions, 6 deletions
diff --git a/mate-base/mate-control-center/Manifest b/mate-base/mate-control-center/Manifest
index 2487c2af84fd..4c1c4935e326 100644
--- a/mate-base/mate-control-center/Manifest
+++ b/mate-base/mate-control-center/Manifest
@@ -1,6 +1,7 @@
AUX mate-control-center-1.26.0-ayatana-detection.patch 13594 BLAKE2B 57a8711bebc864a8b315ec2b6c66de36cddddd4302ce2ca07b8a6136c401ece9ac99efe3608656c1ce61730bb65829f10d52ff22f19a1ee32a3f6b15b458faf1 SHA512 0cf3a80780e072c61f3cc5815d4f0a40958972d4f507209c2824b377ae1e6b4b77fa2aac1b894740d2fb836412173156afda917e0afede6cc2c54a4d9019cd44
+AUX mate-control-center-1.28.0-optional-systemd.patch 9881 BLAKE2B bb297f261099f0c412f6329e4da4f0a906c1483d6a9bbb24f2efa8c3a6208df1759494a5abce1339137ef4abf412416352394e89a886d9fa36cf049941a97726 SHA512 17f25fd8d829a78f30fe2507bf9c589089a3dc4c4065995862f5f02ce112137b763e0c94669ef69d56ac51c2b4b6f28feb65816a04484c23abc18d9d0bf8ed7b
DIST mate-control-center-1.26.1.tar.xz 3495636 BLAKE2B 3e56ef75ea8af47613de09d565850b8ce58cfb3cd835194b4c4dc89f8d71042f074303c45b4830974bbd5272332d95b66eb7cad426c7996153b5afaa5c0098b3 SHA512 f359173596035a5ac3a73b17ab590bd9da5e202af9f203f0d6d4621877c6946e496d9a850823f8fa49bae6eac3035df7c7888c71d881c97acaa21b5e262da1a6
-DIST mate-control-center-1.27.0.tar.xz 3466284 BLAKE2B 20ef344d908564d49c3662939d869837c43ce7812203fbdd018e1a136c95e1893507f340e4e26ec82c4ea41732e9e701922f6f5a24a487995442c0a9e6a7dbb2 SHA512 ed8c93012ec72e1dbc8becefc23aad6ba488dcc10204f0e9a4b5819f0a311b4c618003f4a4f5f911422fc54e28b1da0953d5b81530fb8e55446feb7c297cc29c
+DIST mate-control-center-1.28.0.tar.xz 3540504 BLAKE2B 285f96a320944fc659af6922224375cb910cad0d8646a0785d2d769d02347de505fa4ef8d1359956452aae861b7dc5e5361e3f1db3e28eab961dbbb3e083d1c6 SHA512 6047ecf466d6168bbd040dc0315ce6ffadc189a95cc794dbe521845fa4b7889506ea46246fbbd19ecb293b036b10190ab584dc2dc97653388b1367b65b29ed74
EBUILD mate-control-center-1.26.1.ebuild 1663 BLAKE2B 2bc8ecb2c0685dddb8f9cce4dd1b76ab70121b597ad7b83531602c67f631bfa5b5e06558eb4b8730612b9883ba12f4cad6c60f12fa5ff22f75c767df73ab27f9 SHA512 41bbd3f89023186308dd29b96cf0b2c2caaf36f47a2e1f16893d26b1d4a751bc89345ca34e8b66acd47020d0bf63873b60e331eb46bc4075d4d7f636bec0d943
-EBUILD mate-control-center-1.27.0.ebuild 1694 BLAKE2B 57fc097b1e8fa68b75d024d20e9d0dcabd77cc270ac965ca2319116c0b621482a13f512be96f55618a15f90bc2eafd8c84846c213696431450d93dd593901051 SHA512 03eb93b2319ef2bbdcd568fc164cf7b6bddc625d8c027011be06a7918595c9b99a9af42d4bc54c25275901936973944789b4d666d6f5d3a94bc40c0cc662272d
+EBUILD mate-control-center-1.28.0.ebuild 1665 BLAKE2B d5066c0775e4cdc238b23b8eb5c31ad51e9992cde0c39a6bc596d97292ed9649eff138cb09b7fc2b0c5c8226056571002a1a556fb9e272d499cdb2780d407322 SHA512 165adde894d6cc9b002ae66f4c610fae2bc2e6dd9c1c8820da3059f230e6c295ede692f4da6702103cdd7ae350bcee04037eacf9cac215cb70a340a225f0eb81
MISC metadata.xml 584 BLAKE2B 3f1dec0dd08a22df2f276426c6349b0c004f170dbc670bd8b40b125dd119a642555e6b46aac755067d7ff88bf4698102b13615bc8dcb136dcd6281da6b726180 SHA512 aa83d258443abacad69984dd9731d62c7f74f9ea52e51b32b8c62e4b80226586025bde0f8767ee7f0705998e0f341dab8fb36f945a1c313a158a9960e5989393
diff --git a/mate-base/mate-control-center/files/mate-control-center-1.28.0-optional-systemd.patch b/mate-base/mate-control-center/files/mate-control-center-1.28.0-optional-systemd.patch
new file mode 100644
index 000000000000..11ecdc855382
--- /dev/null
+++ b/mate-base/mate-control-center/files/mate-control-center-1.28.0-optional-systemd.patch
@@ -0,0 +1,250 @@
+From 86a190c7b0ac8e5dbd5545d9aea30da771e34b31 Mon Sep 17 00:00:00 2001
+From: Oz Tiram <oz.tiram@gmail.com>
+Date: Sun, 3 Mar 2024 14:36:27 +0100
+Subject: [PATCH 1/2] Make systemd optional
+
+There is not much of direct systemd usage in the system-info plugin.
+This patch suggestion enables building this plugin on system like
+alpine, voidlinux or gentoo with openrc.
+
+Signed-off-by: Oz Tiram <oz.tiram@gmail.com>
+---
+ capplets/system-info/mate-system-info.c | 12 ++++++++++--
+ configure.ac | 16 +++++++++++++++-
+ 2 files changed, 25 insertions(+), 3 deletions(-)
+
+diff --git a/capplets/system-info/mate-system-info.c b/capplets/system-info/mate-system-info.c
+index 36380678..180cdf3e 100644
+--- a/capplets/system-info/mate-system-info.c
++++ b/capplets/system-info/mate-system-info.c
+@@ -21,6 +21,7 @@
+ *
+ */
+ #include <gtk/gtk.h>
++#include <glib.h>
+ #include <glibtop/fsusage.h>
+ #include <glibtop/mountlist.h>
+ #include <glibtop/mem.h>
+@@ -159,6 +160,7 @@ mate_system_info_set_row (MateSystemInfo *info)
+ static char *
+ get_system_hostname (void)
+ {
++# ifdef HAVE_SYSTEMD
+ GDBusProxy *hostnamed_proxy;
+ g_autoptr(GVariant) variant = NULL;
+ g_autoptr(GError) error = NULL;
+@@ -206,6 +208,9 @@ get_system_hostname (void)
+ g_object_unref (hostnamed_proxy);
+ return g_variant_dup_string (variant, NULL);
+ }
++# else
++ return g_strdup (g_get_host_name ());
++# endif
+ }
+
+ static char *
+@@ -493,7 +498,9 @@ static struct {
+ { "openvz", "OpenVZ" },
+ { "lxc", "LXC" },
+ { "lxc-libvirt", "LXC (libvirt)" },
+- { "systemd-nspawn", "systemd (nspawn)" }
++# ifdef HAVE_SYSTEMD
++ { "systemd-nspawn", "systemd (nspawn)" },
++# endif
+ };
+
+ static char *
+@@ -666,7 +673,7 @@ mate_system_info_setup (MateSystemInfo *info)
+ kernel_text = get_kernel_vesrion ();
+ label = g_object_get_data (G_OBJECT (info->kernel_row), "labelvalue");
+ set_lable_style (label, "gray", 12, kernel_text, FALSE);
+-
++# ifdef HAVE_SYSTEMD
+ virt_text = get_system_virt ();
+ if (virt_text != NULL)
+ {
+@@ -674,6 +681,7 @@ mate_system_info_setup (MateSystemInfo *info)
+ label = g_object_get_data (G_OBJECT (info->virtualization_row), "labelvalue");
+ set_lable_style (label, "gray", 12, virt_text, FALSE);
+ }
++# endif
+ windowing_system_text = get_windowing_system ();
+ label = g_object_get_data (G_OBJECT (info->windowing_system_row), "labelvalue");
+ set_lable_style (label, "gray", 12, windowing_system_text, FALSE);
+diff --git a/configure.ac b/configure.ac
+index aa43d083..45d5365f 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -121,7 +121,6 @@ PKG_CHECK_MODULES(TYPING, $GMODULE_ADD glib-2.0 >= $GLIB_REQUIRED gio-2.0 gtk+-3
+ PKG_CHECK_MODULES(GIO, gio-2.0)
+ PKG_CHECK_MODULES(GLIBTOP, libgtop-2.0)
+ PKG_CHECK_MODULES(UDISKS, udisks2)
+-PKG_CHECK_MODULES(SYSTEMD, systemd >= $SYSTEMD_REQUIRED)
+
+ PKG_CHECK_MODULES([DCONF], [dconf >= 0.13.4])
+ AC_SUBST(DCONF_CFLAGS)
+@@ -168,6 +167,20 @@ AC_ARG_ENABLE([libappindicator],
+ [enable_appindicator=yes],
+ [enable_appindicator=no])])])
+
++AC_ARG_ENABLE([systemd],
++ [AS_HELP_STRING([--enable-systemd[=@<:@no/auto/yes@:>@]],[Use systemd @<:@default=yes@:>@])],
++ [enable_systemd=$enableval],
++ [PKG_CHECK_EXISTS([$SYSTEMD >= $SYSTEMD_REQUIRED],
++ [enable_systemd=no],
++ ,
++ )])
++
++AS_IF([test "x$enable_systemd" = xyes],
++ [AC_MSG_NOTICE([Building with systemd support.])
++ PKG_CHECK_MODULES([SYSTEMD],
++ [systemd >= $SYSTEMD_REQUIRED],
++ [AC_DEFINE(HAVE_SYSTEMD, 1, [Have systemd])])])
++
+ AS_IF([test "x$enable_appindicator" = xyes],
+ [AC_MSG_NOTICE([Buidling against Ubuntu AppIndicator.])
+ PKG_CHECK_MODULES([APPINDICATOR],
+@@ -313,6 +326,7 @@ Configure summary:
+
+ Ayatana AppIndicator (preferred) $(test "x$enable_appindicator" = xyes && echo no || echo yes)
+ Ubuntu AppIndicator (legacy) $(test "x$enable_appindicator" = xyes && echo yes || echo no)
++ Systemd: $(test "x$enable_systemd" = xyes && echo yes || echo no)
+
+ Accountsservice: ${have_accountsservice}
+ Native Language support: ${USE_NLS}
+--
+2.43.0
+
+
+From 0f0f4f7151cce75e44fe3fef870e7120b17866a4 Mon Sep 17 00:00:00 2001
+From: Oz Tiram <oz.tiram@gmail.com>
+Date: Mon, 4 Mar 2024 08:03:40 +0100
+Subject: [PATCH 2/2] Disable function definitions if systemd isn't found
+
+Signed-off-by: Oz Tiram <oz.tiram@gmail.com>
+---
+ capplets/system-info/mate-system-info.c | 23 ++++++++++++++++-------
+ 1 file changed, 16 insertions(+), 7 deletions(-)
+
+diff --git a/capplets/system-info/mate-system-info.c b/capplets/system-info/mate-system-info.c
+index 180cdf3e..00b0d8a3 100644
+--- a/capplets/system-info/mate-system-info.c
++++ b/capplets/system-info/mate-system-info.c
+@@ -132,13 +132,15 @@ static void
+ mate_system_info_set_row (MateSystemInfo *info)
+ {
+ mate_system_info_row_fill (info->hostname_row, _("Device Name"), FALSE);
++# ifdef HAVE_SYSTEMD
+ mate_system_info_row_fill (info->hardware_model_row, _("Hardware Model"), TRUE);
++ mate_system_info_row_fill (info->virtualization_row, _("Virtualization"), TRUE);
++# endif
+ mate_system_info_row_fill (info->memory_row, _("Memory"), TRUE);
+ mate_system_info_row_fill (info->processor_row, _("Processor"), TRUE);
+ mate_system_info_row_fill (info->graphics_row, _("Graphics"), TRUE);
+ mate_system_info_row_fill (info->disk_row, _("Disk Capacity"), FALSE);
+ mate_system_info_row_fill (info->kernel_row, _("Kernel Version"), FALSE);
+- mate_system_info_row_fill (info->virtualization_row, _("Virtualization"), TRUE);
+ mate_system_info_row_fill (info->windowing_system_row, _("Windowing System"), TRUE);
+ mate_system_info_row_fill (info->mate_version_row, _("MATE Version"), TRUE);
+ mate_system_info_row_fill (info->os_name_row, _("OS Name"), TRUE);
+@@ -213,6 +215,7 @@ get_system_hostname (void)
+ # endif
+ }
+
++# ifdef HAVE_SYSTEMD
+ static char *
+ get_hardware_model (void)
+ {
+@@ -263,6 +266,7 @@ get_hardware_model (void)
+
+ return NULL;
+ }
++# endif
+
+ static char *
+ get_cpu_info (void)
+@@ -483,6 +487,7 @@ get_kernel_vesrion (void)
+ return g_strdup_printf ("%s %s", un.sysname, un.release);
+ }
+
++# ifdef HAVE_SYSTEMD
+ static struct {
+ const char *id;
+ const char *display;
+@@ -498,9 +503,7 @@ static struct {
+ { "openvz", "OpenVZ" },
+ { "lxc", "LXC" },
+ { "lxc-libvirt", "LXC (libvirt)" },
+-# ifdef HAVE_SYSTEMD
+- { "systemd-nspawn", "systemd (nspawn)" },
+-# endif
++ { "systemd-nspawn", "systemd (nspawn)" }
+ };
+
+ static char *
+@@ -567,6 +570,7 @@ get_system_virt (void)
+
+ return get_virtualization_label (g_variant_get_string (inner, NULL));
+ }
++# endif
+
+ static char *
+ get_mate_desktop_version ()
+@@ -622,7 +626,10 @@ mate_system_info_setup (MateSystemInfo *info)
+ {
+ g_autofree char *logo_name = NULL;
+ g_autofree char *hostname_text = NULL;
++# ifdef HAVE_SYSTEMD
+ g_autofree char *hw_model_text = NULL;
++ g_autofree char *virt_text = NULL;
++# endif
+ g_autofree char *memory_text = NULL;
+ g_autofree char *cpu_text = NULL;
+ g_autofree char *os_type_text = NULL;
+@@ -630,7 +637,6 @@ mate_system_info_setup (MateSystemInfo *info)
+ g_autofree char *disk_text = NULL;
+ g_autofree char *kernel_text = NULL;
+ g_autofree char *windowing_system_text = NULL;
+- g_autofree char *virt_text = NULL;
+ g_autofree char *de_text = NULL;
+ g_autofree char *graphics_hardware_string = NULL;
+
+@@ -645,6 +651,7 @@ mate_system_info_setup (MateSystemInfo *info)
+ label = g_object_get_data (G_OBJECT (info->hostname_row), "labelvalue");
+ set_lable_style (label, "gray", 12, hostname_text, FALSE);
+
++# if HAVE_SYSTEMD
+ hw_model_text = get_hardware_model ();
+ if (hw_model_text != NULL)
+ {
+@@ -652,7 +659,7 @@ mate_system_info_setup (MateSystemInfo *info)
+ label = g_object_get_data (G_OBJECT (info->hardware_model_row), "labelvalue");
+ set_lable_style (label, "gray", 12, hw_model_text, FALSE);
+ }
+-
++# endif
+ glibtop_get_mem (&mem);
+ memory_text = g_format_size_full (mem.total, G_FORMAT_SIZE_IEC_UNITS);
+ label = g_object_get_data (G_OBJECT (info->memory_row), "labelvalue");
+@@ -714,7 +721,10 @@ mate_system_info_class_init (MateSystemInfoClass *klass)
+ gtk_widget_class_set_template_from_resource (widget_class, "/org/mate/control-center/system-info/mate-system-info.ui");
+
+ gtk_widget_class_bind_template_child (widget_class, MateSystemInfo, hostname_row);
++# ifdef HAVE_SYSTEMD
+ gtk_widget_class_bind_template_child (widget_class, MateSystemInfo, hardware_box);
++ gtk_widget_class_bind_template_child (widget_class, MateSystemInfo, virtualization_row);
++# endif
+ gtk_widget_class_bind_template_child (widget_class, MateSystemInfo, disk_row);
+ gtk_widget_class_bind_template_child (widget_class, MateSystemInfo, mate_version_row);
+ gtk_widget_class_bind_template_child (widget_class, MateSystemInfo, graphics_row);
+@@ -725,7 +735,6 @@ mate_system_info_class_init (MateSystemInfoClass *klass)
+ gtk_widget_class_bind_template_child (widget_class, MateSystemInfo, os_name_row);
+ gtk_widget_class_bind_template_child (widget_class, MateSystemInfo, os_type_row);
+ gtk_widget_class_bind_template_child (widget_class, MateSystemInfo, processor_row);
+- gtk_widget_class_bind_template_child (widget_class, MateSystemInfo, virtualization_row);
+ gtk_widget_class_bind_template_child (widget_class, MateSystemInfo, kernel_row);
+ gtk_widget_class_bind_template_child (widget_class, MateSystemInfo, windowing_system_row);
+ }
+--
+2.43.0
+
diff --git a/mate-base/mate-control-center/mate-control-center-1.27.0.ebuild b/mate-base/mate-control-center/mate-control-center-1.28.0.ebuild
index 5a5773ddccae..49df50a37938 100644
--- a/mate-base/mate-control-center/mate-control-center-1.27.0.ebuild
+++ b/mate-base/mate-control-center/mate-control-center-1.28.0.ebuild
@@ -16,7 +16,7 @@ DESCRIPTION="The MATE Desktop configuration tool"
LICENSE="FDL-1.1+ GPL-2+ LGPL-2+ LGPL-2.1+ HPND"
SLOT="0"
-IUSE="accountsservice appindicator debug nls"
+IUSE="accountsservice appindicator debug nls systemd"
COMMON_DEPEND="
>=app-accessibility/at-spi2-core-2.46.0:2
@@ -48,6 +48,7 @@ COMMON_DEPEND="
>=x11-wm/marco-1.17.0:=
accountsservice? ( sys-apps/accountsservice )
appindicator? ( dev-libs/libayatana-appindicator )
+ systemd? ( sys-apps/systemd )
"
RDEPEND="${COMMON_DEPEND}"
@@ -61,10 +62,8 @@ BDEPEND="${COMMON_DEPEND}
x11-base/xorg-proto
virtual/pkgconfig
"
-
PATCHES=(
- # https://github.com/mate-desktop/mate-control-center/issues/701
- "${FILESDIR}"/${PN}-1.26.0-ayatana-detection.patch
+ "${FILESDIR}"/${PN}-1.28.0-optional-systemd.patch
)
src_configure() {