gnome3.gnome-control-center: 3.38.4 → 40.0

This commit is contained in:
Jan Tojnar 2021-03-21 06:15:46 +01:00
parent 346e062862
commit f11bdd0595
No known key found for this signature in database
GPG Key ID: 7FAB2A15F7A607A4
3 changed files with 72 additions and 84 deletions

View File

@ -1,6 +1,7 @@
{ fetchurl { fetchurl
, fetchFromGitLab , fetchpatch
, lib, stdenv , lib
, stdenv
, substituteAll , substituteAll
, accountsservice , accountsservice
, adwaita-icon-theme , adwaita-icon-theme
@ -10,7 +11,7 @@
, colord , colord
, colord-gtk , colord-gtk
, cups , cups
, docbook_xsl , docbook-xsl-nons
, fontconfig , fontconfig
, gdk-pixbuf , gdk-pixbuf
, gettext , gettext
@ -69,20 +70,32 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "gnome-control-center"; pname = "gnome-control-center";
version = "3.38.4"; version = "40.0";
src = fetchurl { src = fetchurl {
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz"; url = "mirror://gnome/sources/${pname}/${lib.versions.major version}/${pname}-${version}.tar.xz";
sha256 = "sha256-SdxjeNTTXBxu1ZIk9WNpFsK2+km7+4tW6xmoTW6QzRk="; sha256 = "sha256-zMmlc2UXOFEJrlpZkGwlgkTdh5t1A61ZhM9BZVyzAvE=";
}; };
# See https://mail.gnome.org/archives/distributor-list/2020-September/msg00001.html patches = [
prePatch = (import ../gvc-with-ucm-prePatch.nix { (substituteAll {
inherit fetchFromGitLab; src = ./paths.patch;
}); gcm = gnome-color-manager;
gnome_desktop = gnome-desktop;
inherit glibc libgnomekbd tzdata;
inherit cups networkmanagerapplet;
})
# Fix startup assertion in power panel.
# https://gitlab.gnome.org/GNOME/gnome-control-center/merge_requests/974
(fetchpatch {
url = "https://gitlab.gnome.org/GNOME/gnome-control-center/commit/9acaa10567c94048657c69538e5d7813f82c4224.patch";
sha256 = "59GeTPcG2UiVTL4VTS/TP0p0QkAQpm3VgvuAiw64wUU=";
})
];
nativeBuildInputs = [ nativeBuildInputs = [
docbook_xsl docbook-xsl-nons
gettext gettext
libxslt libxslt
meson meson
@ -142,16 +155,6 @@ stdenv.mkDerivation rec {
upower upower
]; ];
patches = [
(substituteAll {
src = ./paths.patch;
gcm = gnome-color-manager;
gnome_desktop = gnome-desktop;
inherit glibc libgnomekbd tzdata;
inherit cups networkmanagerapplet;
})
];
postPatch = '' postPatch = ''
chmod +x build-aux/meson/meson_post_install.py # patchShebangs requires executable file chmod +x build-aux/meson/meson_post_install.py # patchShebangs requires executable file
patchShebangs build-aux/meson/meson_post_install.py patchShebangs build-aux/meson/meson_post_install.py

View File

@ -1,26 +1,26 @@
diff --git a/panels/color/cc-color-panel.c b/panels/color/cc-color-panel.c diff --git a/panels/color/cc-color-panel.c b/panels/color/cc-color-panel.c
index 49ca35220..adefb87b9 100644 index 603178efc..c363a6a5c 100644
--- a/panels/color/cc-color-panel.c --- a/panels/color/cc-color-panel.c
+++ b/panels/color/cc-color-panel.c +++ b/panels/color/cc-color-panel.c
@@ -599,7 +599,7 @@ gcm_prefs_calibrate_cb (GtkWidget *widget, CcColorPanel *prefs) @@ -591,7 +591,7 @@ gcm_prefs_calibrate_cb (CcColorPanel *prefs)
/* run with modal set */ /* run with modal set */
argv = g_ptr_array_new_with_free_func (g_free); argv = g_ptr_array_new_with_free_func (g_free);
- g_ptr_array_add (argv, g_build_filename (BINDIR, "gcm-calibrate", NULL)); - g_ptr_array_add (argv, g_strdup ("gcm-calibrate"));
+ g_ptr_array_add (argv, g_build_filename ("@gcm@", "bin", "gcm-calibrate", NULL)); + g_ptr_array_add (argv, g_build_filename ("@gcm@", "bin", "gcm-calibrate", NULL));
g_ptr_array_add (argv, g_strdup ("--device")); g_ptr_array_add (argv, g_strdup ("--device"));
g_ptr_array_add (argv, g_strdup (cd_device_get_id (prefs->current_device))); g_ptr_array_add (argv, g_strdup (cd_device_get_id (prefs->current_device)));
g_ptr_array_add (argv, g_strdup ("--parent-window")); g_ptr_array_add (argv, g_strdup ("--parent-window"));
@@ -1038,7 +1038,7 @@ gcm_prefs_profile_view (CcColorPanel *prefs, CdProfile *profile) @@ -1029,7 +1029,7 @@ gcm_prefs_profile_view (CcColorPanel *prefs, CdProfile *profile)
/* open up gcm-viewer as a info pane */ /* open up gcm-viewer as a info pane */
argv = g_ptr_array_new_with_free_func (g_free); argv = g_ptr_array_new_with_free_func (g_free);
- g_ptr_array_add (argv, g_build_filename (BINDIR, "gcm-viewer", NULL)); - g_ptr_array_add (argv, g_strdup ("gcm-viewer"));
+ g_ptr_array_add (argv, g_build_filename ("@gcm@", "bin", "gcm-viewer", NULL)); + g_ptr_array_add (argv, g_build_filename ("@gcm@", "bin", "gcm-viewer", NULL));
g_ptr_array_add (argv, g_strdup ("--profile")); g_ptr_array_add (argv, g_strdup ("--profile"));
g_ptr_array_add (argv, g_strdup (cd_profile_get_id (profile))); g_ptr_array_add (argv, g_strdup (cd_profile_get_id (profile)));
g_ptr_array_add (argv, g_strdup ("--parent-window")); g_ptr_array_add (argv, g_strdup ("--parent-window"));
@@ -1288,15 +1288,12 @@ gcm_prefs_device_clicked (CcColorPanel *prefs, CdDevice *device) @@ -1275,15 +1275,12 @@ gcm_prefs_device_clicked (CcColorPanel *prefs, CdDevice *device)
static void static void
gcm_prefs_profile_clicked (CcColorPanel *prefs, CdProfile *profile, CdDevice *device) gcm_prefs_profile_clicked (CcColorPanel *prefs, CdProfile *profile, CdDevice *device)
{ {
@ -38,12 +38,12 @@ index 49ca35220..adefb87b9 100644
else else
gtk_widget_set_sensitive (prefs->toolbutton_profile_view, FALSE); gtk_widget_set_sensitive (prefs->toolbutton_profile_view, FALSE);
diff --git a/panels/datetime/tz.h b/panels/datetime/tz.h diff --git a/panels/datetime/tz.h b/panels/datetime/tz.h
index 96b25140c..1ad704d4a 100644 index a2376f8a4..98769e08f 100644
--- a/panels/datetime/tz.h --- a/panels/datetime/tz.h
+++ b/panels/datetime/tz.h +++ b/panels/datetime/tz.h
@@ -27,11 +27,7 @@ @@ -27,11 +27,7 @@
#include <glib.h> G_BEGIN_DECLS
-#ifndef __sun -#ifndef __sun
-# define TZ_DATA_FILE "/usr/share/zoneinfo/zone.tab" -# define TZ_DATA_FILE "/usr/share/zoneinfo/zone.tab"
@ -55,10 +55,10 @@ index 96b25140c..1ad704d4a 100644
typedef struct _TzDB TzDB; typedef struct _TzDB TzDB;
typedef struct _TzLocation TzLocation; typedef struct _TzLocation TzLocation;
diff --git a/panels/info-overview/cc-info-overview-panel.c b/panels/info-overview/cc-info-overview-panel.c diff --git a/panels/info-overview/cc-info-overview-panel.c b/panels/info-overview/cc-info-overview-panel.c
index 4541986db..da7826bfe 100644 index bd0e07762..0e71351f8 100644
--- a/panels/info-overview/cc-info-overview-panel.c --- a/panels/info-overview/cc-info-overview-panel.c
+++ b/panels/info-overview/cc-info-overview-panel.c +++ b/panels/info-overview/cc-info-overview-panel.c
@@ -169,7 +169,7 @@ load_gnome_version (char **version, @@ -172,7 +172,7 @@ load_gnome_version (char **version,
gsize length; gsize length;
g_autoptr(VersionData) data = NULL; g_autoptr(VersionData) data = NULL;
@ -67,11 +67,28 @@ index 4541986db..da7826bfe 100644
&contents, &contents,
&length, &length,
&error)) &error))
diff --git a/panels/keyboard/cc-input-list-box.c b/panels/keyboard/cc-input-list-box.c
index 6c2cb5614..8f57159cc 100644
--- a/panels/keyboard/cc-input-list-box.c
+++ b/panels/keyboard/cc-input-list-box.c
@@ -223,10 +223,10 @@ row_layout_cb (CcInputListBox *self,
layout_variant = cc_input_source_get_layout_variant (source);
if (layout_variant && layout_variant[0])
- commandline = g_strdup_printf ("gkbd-keyboard-display -l \"%s\t%s\"",
+ commandline = g_strdup_printf ("@libgnomekbd@/bin/gkbd-keyboard-display -l \"%s\t%s\"",
layout, layout_variant);
else
- commandline = g_strdup_printf ("gkbd-keyboard-display -l %s",
+ commandline = g_strdup_printf ("@libgnomekbd@/bin/gkbd-keyboard-display -l %s",
layout);
g_spawn_command_line_async (commandline, NULL);
diff --git a/panels/network/connection-editor/net-connection-editor.c b/panels/network/connection-editor/net-connection-editor.c diff --git a/panels/network/connection-editor/net-connection-editor.c b/panels/network/connection-editor/net-connection-editor.c
index 9390a3308..d30b4a68e 100644 index 505b8ee25..62e94009f 100644
--- a/panels/network/connection-editor/net-connection-editor.c --- a/panels/network/connection-editor/net-connection-editor.c
+++ b/panels/network/connection-editor/net-connection-editor.c +++ b/panels/network/connection-editor/net-connection-editor.c
@@ -278,9 +278,9 @@ net_connection_editor_do_fallback (NetConnectionEditor *self, const gchar *type) @@ -267,9 +267,9 @@ net_connection_editor_do_fallback (NetConnectionEditor *self, const gchar *type)
g_autoptr(GError) error = NULL; g_autoptr(GError) error = NULL;
if (self->is_new_connection) { if (self->is_new_connection) {
@ -84,6 +101,7 @@ index 9390a3308..d30b4a68e 100644
} }
diff --git a/panels/network/net-device-bluetooth.c b/panels/network/net-device-bluetooth.c diff --git a/panels/network/net-device-bluetooth.c b/panels/network/net-device-bluetooth.c
index 74dfb0e9a..5f53d1a20 100644
--- a/panels/network/net-device-bluetooth.c --- a/panels/network/net-device-bluetooth.c
+++ b/panels/network/net-device-bluetooth.c +++ b/panels/network/net-device-bluetooth.c
@@ -90,7 +90,7 @@ nm_device_bluetooth_refresh_ui (NetDeviceBluetooth *self) @@ -90,7 +90,7 @@ nm_device_bluetooth_refresh_ui (NetDeviceBluetooth *self)
@ -114,9 +132,10 @@ diff --git a/panels/network/net-device-bluetooth.c b/panels/network/net-device-b
} }
diff --git a/panels/network/net-device-mobile.c b/panels/network/net-device-mobile.c diff --git a/panels/network/net-device-mobile.c b/panels/network/net-device-mobile.c
index 34eb86241..50d0a2bed 100644
--- a/panels/network/net-device-mobile.c --- a/panels/network/net-device-mobile.c
+++ b/panels/network/net-device-mobile.c +++ b/panels/network/net-device-mobile.c
@@ -484,7 +484,7 @@ options_button_clicked_cb (NetDeviceMobile *self) @@ -508,7 +508,7 @@ options_button_clicked_cb (NetDeviceMobile *self)
connection = net_device_get_find_connection (self->client, self->device); connection = net_device_get_find_connection (self->client, self->device);
uuid = nm_connection_get_uuid (connection); uuid = nm_connection_get_uuid (connection);
@ -125,7 +144,7 @@ diff --git a/panels/network/net-device-mobile.c b/panels/network/net-device-mobi
g_debug ("Launching '%s'\n", cmdline); g_debug ("Launching '%s'\n", cmdline);
if (!g_spawn_command_line_async (cmdline, &error)) if (!g_spawn_command_line_async (cmdline, &error))
g_warning ("Failed to launch nm-connection-editor: %s", error->message); g_warning ("Failed to launch nm-connection-editor: %s", error->message);
@@ -776,7 +776,7 @@ net_device_mobile_init (NetDeviceMobile *self) @@ -797,7 +797,7 @@ net_device_mobile_init (NetDeviceMobile *self)
self->cancellable = g_cancellable_new (); self->cancellable = g_cancellable_new ();
@ -135,11 +154,11 @@ diff --git a/panels/network/net-device-mobile.c b/panels/network/net-device-mobi
} }
diff --git a/panels/printers/pp-host.c b/panels/printers/pp-host.c diff --git a/panels/printers/pp-host.c b/panels/printers/pp-host.c
index f53ba217e..d24bcaeb9 100644 index a31a606e3..ed5133d29 100644
--- a/panels/printers/pp-host.c --- a/panels/printers/pp-host.c
+++ b/panels/printers/pp-host.c +++ b/panels/printers/pp-host.c
@@ -256,7 +256,7 @@ _pp_host_get_snmp_devices_thread (GTask *task, @@ -256,7 +256,7 @@ _pp_host_get_snmp_devices_thread (GTask *task,
devices = g_new0 (PpDevicesList, 1); devices = g_ptr_array_new_with_free_func (g_object_unref);
argv = g_new0 (gchar *, 3); argv = g_new0 (gchar *, 3);
- argv[0] = g_strdup ("/usr/lib/cups/backend/snmp"); - argv[0] = g_strdup ("/usr/lib/cups/backend/snmp");
@ -147,25 +166,8 @@ index f53ba217e..d24bcaeb9 100644
argv[1] = g_strdup (priv->hostname); argv[1] = g_strdup (priv->hostname);
/* Use SNMP to get printer's informations */ /* Use SNMP to get printer's informations */
diff --git a/panels/region/cc-region-panel.c b/panels/region/cc-region-panel.c
index 35859526d..21486c917 100644
--- a/panels/region/cc-region-panel.c
+++ b/panels/region/cc-region-panel.c
@@ -755,10 +755,10 @@ row_layout_cb (CcRegionPanel *self,
layout_variant = cc_input_source_get_layout_variant (source);
if (layout_variant && layout_variant[0])
- commandline = g_strdup_printf ("gkbd-keyboard-display -l \"%s\t%s\"",
+ commandline = g_strdup_printf ("@libgnomekbd@/bin/gkbd-keyboard-display -l \"%s\t%s\"",
layout, layout_variant);
else
- commandline = g_strdup_printf ("gkbd-keyboard-display -l %s",
+ commandline = g_strdup_printf ("@libgnomekbd@/bin/gkbd-keyboard-display -l %s",
layout);
g_spawn_command_line_async (commandline, NULL);
diff --git a/panels/user-accounts/run-passwd.c b/panels/user-accounts/run-passwd.c diff --git a/panels/user-accounts/run-passwd.c b/panels/user-accounts/run-passwd.c
index 00239ce0f..617c98870 100644 index 86f53d4fc..0b052856f 100644
--- a/panels/user-accounts/run-passwd.c --- a/panels/user-accounts/run-passwd.c
+++ b/panels/user-accounts/run-passwd.c +++ b/panels/user-accounts/run-passwd.c
@@ -150,7 +150,7 @@ spawn_passwd (PasswdHandler *passwd_handler, GError **error) @@ -150,7 +150,7 @@ spawn_passwd (PasswdHandler *passwd_handler, GError **error)

View File

@ -1,17 +0,0 @@
{ fetchFromGitLab }:
let
# We need a gvc different then that which is shipped in the source tarball of
# whatever package that imports this file
gvc-src-with-ucm = fetchFromGitLab {
domain = "gitlab.gnome.org";
owner = "GNOME";
repo = "libgnome-volume-control";
rev = "7a621180b46421e356b33972e3446775a504139c";
sha256 = "07rkgh9f7qcmlpy6jqh944axzh3z38f47g48ii842f2i3a1mrbw9";
};
in
''
rm -r ./subprojects/gvc
cp -r ${gvc-src-with-ucm} ./subprojects/gvc
''