From 623ee73d661e5ed8475cb264511f683407d87365 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 12 Apr 2020 03:41:30 +0100 Subject: gentoo Easter resync : 12.04.2020 --- gnome-base/gnome-shell/Manifest | 12 +- .../files/3.34-optional-bluetooth.patch | 59 +++ .../files/3.34.4-custom_stylesheet_crash.patch | 524 +++++++++++++++++++++ .../gnome-shell/gnome-shell-3.26.2-r4.ebuild | 1 + .../gnome-shell/gnome-shell-3.32.2-r1.ebuild | 1 + .../gnome-shell/gnome-shell-3.34.4-r1.ebuild | 198 ++++++++ gnome-base/gnome-shell/gnome-shell-3.34.4.ebuild | 194 ++++++++ gnome-base/gnome-shell/gnome-shell-3.34.5.ebuild | 195 ++++++++ 8 files changed, 1182 insertions(+), 2 deletions(-) create mode 100644 gnome-base/gnome-shell/files/3.34-optional-bluetooth.patch create mode 100644 gnome-base/gnome-shell/files/3.34.4-custom_stylesheet_crash.patch create mode 100644 gnome-base/gnome-shell/gnome-shell-3.34.4-r1.ebuild create mode 100644 gnome-base/gnome-shell/gnome-shell-3.34.4.ebuild create mode 100644 gnome-base/gnome-shell/gnome-shell-3.34.5.ebuild (limited to 'gnome-base/gnome-shell') diff --git a/gnome-base/gnome-shell/Manifest b/gnome-base/gnome-shell/Manifest index 24319e7c66e5..ddd5a7075adc 100644 --- a/gnome-base/gnome-shell/Manifest +++ b/gnome-base/gnome-shell/Manifest @@ -1,11 +1,19 @@ AUX 3.26-optional-bluetooth.patch 2406 BLAKE2B b747c9d5cdbefbec8c045e24502bcb57b45b14151264cbad31e9ce96ff8320ed140c327e10fb72878da8638af93f63871d523176b18979756937ff5219eb52c6 SHA512 d1f4ce36c705be4669b336f736172f29b4b8f373b146fff4a27bb84cfdde3ec989253b92cb0eaa881e98d7f3267db4954ea9413b75c01c65bcc6e54ce32c14c7 AUX 3.28.3-defaults.patch 1385 BLAKE2B d7e0495aadec7fa042086b5219cc34906f9333a446484e63d90932551d09f469e66cc5da43040a2bf955ecdb3d2beca0e1dba435dd7c309bbc78a1b7aba7f43b SHA512 190a9a61b164373e1f2528b96eca0312a7884651ee44212f686e5752430197b2644b67550dc41ed10684cccd0e8a0d870cfdeddf8582d57de637f7dad11d0124 AUX 3.32-optional-bluetooth.patch 1935 BLAKE2B b1f21039e4567a82c83d3a8886703e0094e63be1a1a9af61f6ba28a4db106a2ebf8ea93dd89212fc68e9b20d9979724997d10272ba49de7c7760d1b22788f45d SHA512 edb3d948b67c3210b5e1cd4065a41552e64d63da3c43d52b397c925321445fe67cb23e4f58ab8a7168f5d47fc543da6bf8dc5772e6d3c7f3320e8637397830c3 +AUX 3.34-optional-bluetooth.patch 1971 BLAKE2B bac967362e46cbd8b76368377c607573e34489b41b70441488086953f56581c8c77b013f848c079bb189188b5ac62de935fc55dd03f2bce725547079b344a27e SHA512 f3c8479090656f5655766a6fd790729e5c16c1b09f61f7b41485bdeee53e6e2ada7ecf7e641b8c8a9cb520a5db8a1bb4f5d0d005226bc5c08c1c553541e3e049 +AUX 3.34.4-custom_stylesheet_crash.patch 17904 BLAKE2B cff95bf20f9b2e35daa885cbfb2e7490c968daefbcaac0a11287833d4cc23ca6c7e4e4ca52a523555da69e40ef0efd85cdeea8ad25f0943c887cabef22935bd4 SHA512 c0200c7759aa502b6d3ba4cbff789ab52d1510a0a0d7213c64e26e4773a58f1c7767b9fa2531a2c032943f08101b268453a462e7013d12cec96a32bfd3642c7e AUX gnome-shell-3.22.0-defaults.patch 1228 BLAKE2B 9bb49d830c2bbc36123ca8fdddc02d4b750a5ffd174fa653ead26a75dc9478be4b5a39c31a004a3897655aae097c23f511d6bb494b0aede51fea74294be3fcf6 SHA512 f350324af68de8f7ae9dab609fdb81e272f9d545a125f3da85d9f06e4a0de09f857517d6c7a585ff1ea3b56f4d51b049cbeb62c39472d61d45026331104c5af5 DIST gnome-shell-3.26.2-patchset.tar.xz 55492 BLAKE2B 745b8549f7480b004f4df9b81508c94c9224f77a5a503f45dfda20105e9c305f8cae6ae5e420e597cea9f98899933bb19efd8cf0e9811dc35d0844a3c2920143 SHA512 93a730082e84807c23f4b7e390c2d0fb02d3666fc32241de02b3534cc271b160bd9a6a6a2e908ed5bdde91cef383c1e400b0f7cbf04ac104f7f9758218e635ed DIST gnome-shell-3.26.2.tar.xz 1405580 BLAKE2B ccbb8ad374931335fdc6e752a7feedcba4fe2b61112404b62bc9711b1736216d46fd6e85c6f06439cae50af86a174359d7df0e111e8db6ffed567e91b4292b14 SHA512 0e13bc7abff2367d24ea748cd69a1879ff14a6755ef27d17cf20cef61bc6d15bf6e9d18362142a2d6462689f64eada833f9bba21ebaac3a33765a5be0ae48d3a DIST gnome-shell-3.32.2-patchset.tar.xz 23540 BLAKE2B 363989a630faa7538ccbf9765a1ccc5995fb4584b00a603ef11e48fee970a6d9791ed1fa92e2344e56cd8c282c9a22779cb8e50e7ec6637e0efda1ccc36579a4 SHA512 e854ba9fd864101009528d94cb310be10495db225380c353b76cd61b082a88f1f89035a0708cd386d1738001cf9949b4a8b8b8d7b1d2675068e01fecb35738c7 DIST gnome-shell-3.32.2.tar.xz 1454372 BLAKE2B 9da7e17d4e47e187fa2285c6cf942cc8dc955e388179d2ad1fe8036c2908e217fc47d8b1515fc3cf6973e2083de8c350b55912782b9adbcf1b6cc37c7a3a9ae2 SHA512 7d8b25aa75149f096033a8b44d7f6f8d17ddadfcd8f5bb1915652423fe9d9db14902e674508f16fe5c6e7cbe956cde8349ec779c24c46f32b0a346755876bc46 -EBUILD gnome-shell-3.26.2-r4.ebuild 6651 BLAKE2B 5054b063b21e7387efed3f78e25fbfe915f09fbe87827a1f840974ee6ad7b7f448d074a44dd5179f5fd8d6fbd90c5190b74369ba1ea2ba9d70b5da65a20fa29a SHA512 d096f22f0160c1757641bbeb11fd6bc1a0c2c6a06d97a943cab77472d0b60c8eed94c081e04c91ecc0f5d590cbadc9e5bcdc656e002215e51534b4cb7fa913a2 -EBUILD gnome-shell-3.32.2-r1.ebuild 6391 BLAKE2B 48f857ad425a2a651f0ab0191cc629a1e203a44be154d01d2d29f7af3d88fbb35488287cb3936282aab3a27eaa6b4dce3df5253da7b7375b6e88cbb8f3b831c6 SHA512 6dbbf3fb482f5a7511368338991c5caff2180d33b1dc0e3edd0c13488c61baa280c21c1324da236dfe62a2374482c56d140d0f5531d97e593d88c839a3b985ab +DIST gnome-shell-3.34.4-patchset.tar.xz 3284 BLAKE2B c161f4422c8964b61ec0d5bc3267c1c9c69e632767ab5f0fde232c6055e34d1f1c8e4d1f92e3a636f67d08452061512ebc9cfec003a9e4e250f7f213203df0a1 SHA512 d8147d59a379eea5d90c441dd4ed8599243477e6325a579c5c10e825d68c21bf92b95c6f1b414d66bea8c2a7c3b181cf848fb6a79f9f06c713471c75543bae55 +DIST gnome-shell-3.34.4.tar.xz 1545568 BLAKE2B a197235ece72e047d2c22b38aa20a4935c78d88b88fc66f881e788ee3659d89318632d2bbb2fc61448d13633d2a3c0b63e9ce5d1f8060aa5f4d63c2a986fce79 SHA512 17832780bcd91f9aedfd642881f4b17f52fe6844e7cc144a6ecac4e3e13ff889779ef24cf52e7f58e61bffc3fa3a3ef75d23c92ed3833ad42d00c49382284b89 +DIST gnome-shell-3.34.5.tar.xz 1558672 BLAKE2B 7b786a35b6b79a4532d9bbb761ee0629cfb18b8c4c151f5958bb9169cae01ddb489a31c9d1a0cfef3ab6dd1f29c449600c1ad9bb11adbae284e86035bec15234 SHA512 ef6a70b0b3bb14fedb07c465742fe0d78c96ddd24352fd0babf871336ee404f9823cadea5bd522e388f5b714d33b219c8ff2badaed379b7135dd90de9fca9bc4 +EBUILD gnome-shell-3.26.2-r4.ebuild 6692 BLAKE2B 9b0be8f340798f888824b383c71366c2b8bb5833c3939b84363ca619fd927bf050a5cd59e20193968e9c814cd0d5246d6efcbc352564aa69401615e1bbf9b272 SHA512 a63be996a4a9c19e7f5102db12571aa140a4207bacbab4a8a41ce5a48c7d35b3445e35f997e29e1818a202915bf83a25fd520c50ceac92a4001aedde561df94e +EBUILD gnome-shell-3.32.2-r1.ebuild 6432 BLAKE2B 74c9100e4a0510abcf624c842bcc70000e8db328671d82898358deb72da65c2288fbb11cd93302500369ee780e881b6a8f76c63ecac01becb879bed6201eb549 SHA512 06baea1dbddb7042aad9ea1f450f6459f701e27fbb8a0ca52b56f49ebf32192ad8ecf8003ffc1be52c148717efe0be36dd6248c932130b7365e2420437b39f7d +EBUILD gnome-shell-3.34.4-r1.ebuild 6876 BLAKE2B 6f17b63536b6764f6876dc5b9e7ad860f834a9e687dabf4df0c5d65665c070306eaee6d194310cd7f1535e739316924710aeefa09af9dbbe4c4174ce850c06d5 SHA512 f5c48f39930b3e6923dec1b0fe2e377a811d7c788a3282b7438cb5af710aeb33e8e4388068c98f1b99a7c901606a792e11dee0c869414c47d345fabe70f0b21a +EBUILD gnome-shell-3.34.4.ebuild 6579 BLAKE2B f42cd00dde0fb55a2f92d3e2d444baca2d57e8337949f6194c481de0c6ca3ae69be07ef7baf0a3190e88df1618dc7af436fea8ce69157750bf1d8710263e40c2 SHA512 1fee74eb5aa775270584057e8fe70e64260d002f9505a37ed2e37e04f2cca171b9c6d8720c05771a56cc815e1cf24705f962bbff42de578572ac39776c6ca173 +EBUILD gnome-shell-3.34.5.ebuild 6731 BLAKE2B edd2d2be8d77aa8406ba29d976823b15edaa7b55c00c0b5c8f57bc862bee23ce2b098454dc1aee45e629bc5cfed2c337a719ce8e4b74c26eba7ad17845c12d7b SHA512 ae39bc3996228662ef973f907b5c18c630bd16fe5143ca3c31de5509fb3022a75cbaecfce30c7d4e95a4f34997a2a7a403f4c03e88b803b657be8c5af8921150 MISC metadata.xml 1050 BLAKE2B cf97e536a47f3b023e118a818bbc34af63500d2ea94bbc71201d2ce18aa6e473673cb28a47245de24b7bad9a174a6dda6b46c300518521c8ea0662e88e95627d SHA512 50c1d4c3eacb89b77bc49b4f236bba9d9041ef047392d5bda19e85b0c935709a095a388b1625a2c77c66145758e9b4ab77a202aa6cdd2b86f262c5b56e428b06 diff --git a/gnome-base/gnome-shell/files/3.34-optional-bluetooth.patch b/gnome-base/gnome-shell/files/3.34-optional-bluetooth.patch new file mode 100644 index 000000000000..01e28192d363 --- /dev/null +++ b/gnome-base/gnome-shell/files/3.34-optional-bluetooth.patch @@ -0,0 +1,59 @@ +From 23b1b1184a3a882febb104652f5ac2e6ffd3fed0 Mon Sep 17 00:00:00 2001 +From: Mart Raudsepp +Date: Thu, 28 Feb 2019 00:50:19 +0200 +Subject: [PATCH] build: Make bluetooth support optional + +--- + js/misc/meson.build | 2 +- + meson.build | 7 ++++++- + meson_options.txt | 6 ++++++ + 3 files changed, 13 insertions(+), 2 deletions(-) + +diff --git a/js/misc/meson.build b/js/misc/meson.build +index 5a4871762..3c5e02368 100644 +--- a/js/misc/meson.build ++++ b/js/misc/meson.build +@@ -3,7 +3,7 @@ jsconf.set('PACKAGE_NAME', meson.project_name()) + jsconf.set('PACKAGE_VERSION', meson.project_version()) + jsconf.set('GETTEXT_PACKAGE', meson.project_name()) + jsconf.set('LIBMUTTER_API_VERSION', mutter_api_version) +-jsconf.set10('HAVE_BLUETOOTH', bt_dep.found()) ++jsconf.set10('HAVE_BLUETOOTH', have_bluetooth) + jsconf.set10('HAVE_NETWORKMANAGER', have_networkmanager) + jsconf.set('datadir', datadir) + jsconf.set('libexecdir', libexecdir) +diff --git a/meson.build b/meson.build +index 97de19758..77646793f 100644 +--- a/meson.build ++++ b/meson.build +@@ -100,7 +100,12 @@ x11_dep = dependency('x11') + schemas_dep = dependency('gsettings-desktop-schemas', version: schemas_req) + gnome_desktop_dep = dependency('gnome-desktop-3.0', version: gnome_desktop_req) + +-bt_dep = dependency('gnome-bluetooth-1.0', version: bt_req, required: false) ++if get_option('bluetooth') ++ bt_dep = dependency('gnome-bluetooth-1.0', version: bt_req) ++ have_bluetooth = true ++else ++ have_bluetooth = false ++endif + gst_dep = dependency('gstreamer-1.0', version: gst_req, required: false) + gst_base_dep = dependency('gstreamer-base-1.0', required: false) + +diff --git a/meson_options.txt b/meson_options.txt +index 2c5539012..8e8d9eee6 100644 +--- a/meson_options.txt ++++ b/meson_options.txt +@@ -1,3 +1,9 @@ ++option('bluetooth', ++ type: 'boolean', ++ value: true, ++ description: 'Enable bluetooth support' ++) ++ + option('extensions_tool', + type: 'boolean', + value: true, +-- +2.20.1 + diff --git a/gnome-base/gnome-shell/files/3.34.4-custom_stylesheet_crash.patch b/gnome-base/gnome-shell/files/3.34.4-custom_stylesheet_crash.patch new file mode 100644 index 000000000000..186939b91477 --- /dev/null +++ b/gnome-base/gnome-shell/files/3.34.4-custom_stylesheet_crash.patch @@ -0,0 +1,524 @@ +From 87afb02e50c7a636a508cf619beb68a46168e54b Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= +Date: Mon, 6 May 2019 18:28:40 -0500 +Subject: [PATCH 1/5] st-theme: Use CRStyleSheet app_data instead of hash map + +Use the CRStyleSheet field to save stylesheet details instead of using an extra +hash table. In this way we can access to the stylesheet file faster without +having to lookup it. Define a destroy function so that we can automatically +remove the data when the container hash table is destroyed. + +Fixes https://gitlab.gnome.org/GNOME/gnome-shell/issues/1265 + +https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/536 +--- + src/st/st-theme.c | 91 +++++++++++++++++++++++++++++++---------------- + 1 file changed, 60 insertions(+), 31 deletions(-) + +diff --git a/src/st/st-theme.c b/src/st/st-theme.c +index b567f7e5e3..208f536c5b 100644 +--- a/src/st/st-theme.c ++++ b/src/st/st-theme.c +@@ -66,11 +66,16 @@ struct _StTheme + GSList *custom_stylesheets; + + GHashTable *stylesheets_by_file; +- GHashTable *files_by_stylesheet; + + CRCascade *cascade; + }; + ++typedef struct _StyleSheetData ++{ ++ GFile *file; ++ gboolean extension_stylesheet; ++} StyleSheetData; ++ + enum + { + PROP_0, +@@ -106,12 +111,25 @@ file_equal0 (GFile *file1, + return g_file_equal (file1, file2); + } + ++static void ++stylesheet_destroy (CRStyleSheet *stylesheet) ++{ ++ if (stylesheet->app_data) ++ { ++ g_slice_free (StyleSheetData, stylesheet->app_data); ++ stylesheet->app_data = NULL; ++ } ++ ++ cr_stylesheet_unref (stylesheet); ++} ++ + static void + st_theme_init (StTheme *theme) + { +- theme->stylesheets_by_file = g_hash_table_new_full (g_file_hash, (GEqualFunc) g_file_equal, +- (GDestroyNotify)g_object_unref, (GDestroyNotify)cr_stylesheet_unref); +- theme->files_by_stylesheet = g_hash_table_new (g_direct_hash, g_direct_equal); ++ theme->stylesheets_by_file = ++ g_hash_table_new_full (g_file_hash, (GEqualFunc) g_file_equal, ++ (GDestroyNotify) g_object_unref, ++ (GDestroyNotify) stylesheet_destroy); + } + + static void +@@ -205,9 +223,6 @@ parse_stylesheet (GFile *file, + return NULL; + } + +- /* Extension stylesheet */ +- stylesheet->app_data = GUINT_TO_POINTER (FALSE); +- + return stylesheet; + } + +@@ -234,19 +249,30 @@ parse_stylesheet_nofail (GFile *file) + return result; + } + +-static void ++static gboolean + insert_stylesheet (StTheme *theme, + GFile *file, + CRStyleSheet *stylesheet) + { ++ StyleSheetData *stylesheet_data; ++ + if (stylesheet == NULL) +- return; ++ return FALSE; + +- g_object_ref (file); +- cr_stylesheet_ref (stylesheet); ++ if (g_hash_table_contains (theme->stylesheets_by_file, file)) ++ { ++ cr_stylesheet_unref (stylesheet); ++ return FALSE; ++ } + +- g_hash_table_insert (theme->stylesheets_by_file, file, stylesheet); +- g_hash_table_insert (theme->files_by_stylesheet, stylesheet, file); ++ stylesheet_data = g_slice_new0 (StyleSheetData); ++ stylesheet_data->file = file; ++ stylesheet->app_data = stylesheet_data; ++ ++ cr_stylesheet_ref (stylesheet); ++ g_hash_table_insert (theme->stylesheets_by_file, ++ g_object_ref (file), stylesheet); ++ return TRUE; + } + + gboolean +@@ -255,14 +281,15 @@ st_theme_load_stylesheet (StTheme *theme, + GError **error) + { + CRStyleSheet *stylesheet; ++ StyleSheetData *stylesheet_data; + + stylesheet = parse_stylesheet (file, error); +- if (!stylesheet) ++ if (!insert_stylesheet (theme, file, stylesheet)) + return FALSE; + +- stylesheet->app_data = GUINT_TO_POINTER (TRUE); ++ stylesheet_data = stylesheet->app_data; ++ stylesheet_data->extension_stylesheet = TRUE; + +- insert_stylesheet (theme, file, stylesheet); + cr_stylesheet_ref (stylesheet); + theme->custom_stylesheets = g_slist_prepend (theme->custom_stylesheets, stylesheet); + g_signal_emit (theme, signals[STYLESHEETS_CHANGED], 0); +@@ -283,9 +310,8 @@ st_theme_unload_stylesheet (StTheme *theme, + if (!g_slist_find (theme->custom_stylesheets, stylesheet)) + return; + +- theme->custom_stylesheets = g_slist_remove (theme->custom_stylesheets, stylesheet); + g_hash_table_remove (theme->stylesheets_by_file, file); +- g_hash_table_remove (theme->files_by_stylesheet, stylesheet); ++ theme->custom_stylesheets = g_slist_remove (theme->custom_stylesheets, stylesheet); + cr_stylesheet_unref (stylesheet); + g_signal_emit (theme, signals[STYLESHEETS_CHANGED], 0); + } +@@ -306,9 +332,10 @@ st_theme_get_custom_stylesheets (StTheme *theme) + for (iter = theme->custom_stylesheets; iter; iter = iter->next) + { + CRStyleSheet *stylesheet = iter->data; +- GFile *file = g_hash_table_lookup (theme->files_by_stylesheet, stylesheet); ++ StyleSheetData *stylesheet_data = stylesheet->app_data; + +- result = g_slist_prepend (result, g_object_ref (file)); ++ if (stylesheet_data && stylesheet_data->file) ++ result = g_slist_prepend (result, g_object_ref (stylesheet_data->file)); + } + + return result; +@@ -350,7 +377,6 @@ st_theme_finalize (GObject * object) + theme->custom_stylesheets = NULL; + + g_hash_table_destroy (theme->stylesheets_by_file); +- g_hash_table_destroy (theme->files_by_stylesheet); + + g_clear_object (&theme->application_stylesheet); + g_clear_object (&theme->theme_stylesheet); +@@ -877,18 +903,20 @@ add_matched_properties (StTheme *a_this, + + if (import_rule->url->stryng && import_rule->url->stryng->str) + { ++ CRStyleSheet *sheet; + file = _st_theme_resolve_url (a_this, + a_nodesheet, + import_rule->url->stryng->str); +- import_rule->sheet = parse_stylesheet (file, NULL); +- } ++ sheet = parse_stylesheet (file, NULL); + +- if (import_rule->sheet) +- { +- insert_stylesheet (a_this, file, import_rule->sheet); +- /* refcount of stylesheets starts off at zero, so we don't need to unref! */ ++ if (insert_stylesheet (a_this, file, sheet)) ++ import_rule->sheet = sheet; ++ ++ /* refcount of stylesheets starts off at zero, so we don't ++ * need to unref! */ + } +- else ++ ++ if (!import_rule->sheet) + { + /* Set a marker to avoid repeatedly trying to parse a non-existent or + * broken stylesheet +@@ -962,12 +990,12 @@ static inline int + get_origin (const CRDeclaration * decl) + { + enum CRStyleOrigin origin = decl->parent_statement->parent_sheet->origin; +- gboolean is_extension_sheet = GPOINTER_TO_UINT (decl->parent_statement->parent_sheet->app_data); ++ StyleSheetData *sheet_data = decl->parent_statement->parent_sheet->app_data; + + if (decl->important) + origin += ORIGIN_OFFSET_IMPORTANT; + +- if (is_extension_sheet) ++ if (sheet_data && sheet_data->extension_stylesheet) + origin += ORIGIN_OFFSET_EXTENSION; + + return origin; +@@ -1046,8 +1074,9 @@ _st_theme_resolve_url (StTheme *theme, + else if (base_stylesheet != NULL) + { + GFile *base_file = NULL, *parent; ++ StyleSheetData *stylesheet_data = base_stylesheet->app_data; + +- base_file = g_hash_table_lookup (theme->files_by_stylesheet, base_stylesheet); ++ base_file = stylesheet_data->file; + + /* This is an internal function, if we get here with + a bad @base_stylesheet we have a problem. */ +-- +2.24.1 + + +From 0974a3290aa2951ada3c9f2adceb2c65c2321849 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= +Date: Mon, 6 May 2019 18:33:36 -0500 +Subject: [PATCH 2/5] st-theme: Use newer functions to finalize objects + +Use g_slist_free_full on custom stylesheets list and clear the hashtable and +its pointer using g_clear_pointer and g_hash_table_destroy. + +https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/536 +--- + src/st/st-theme.c | 8 ++++---- + 1 file changed, 4 insertions(+), 4 deletions(-) + +diff --git a/src/st/st-theme.c b/src/st/st-theme.c +index 208f536c5b..2d51420a20 100644 +--- a/src/st/st-theme.c ++++ b/src/st/st-theme.c +@@ -372,11 +372,11 @@ st_theme_finalize (GObject * object) + { + StTheme *theme = ST_THEME (object); + +- g_slist_foreach (theme->custom_stylesheets, (GFunc) cr_stylesheet_unref, NULL); +- g_slist_free (theme->custom_stylesheets); +- theme->custom_stylesheets = NULL; ++ g_clear_pointer (&theme->stylesheets_by_file, g_hash_table_destroy); + +- g_hash_table_destroy (theme->stylesheets_by_file); ++ g_slist_free_full (theme->custom_stylesheets, ++ (GDestroyNotify) cr_stylesheet_unref); ++ theme->custom_stylesheets = NULL; + + g_clear_object (&theme->application_stylesheet); + g_clear_object (&theme->theme_stylesheet); +-- +2.24.1 + + +From 801fd1884af2011ec6981e4d7844aac6f8dbecf0 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= +Date: Tue, 7 May 2019 01:59:11 -0500 +Subject: [PATCH 3/5] st-theme: Remove custom stylesheets list + +Since we already mark the stylesheet laded by extensions in the data, we don't +need to use another list to go trough these as we can just iterate over the +hash table with a minimum overhead, as this will normally contain just one +default stylesheet and all the extension stylesheets anyways. + +https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/536 +--- + src/st/st-theme.c | 37 +++++++++++++++++++------------------ + 1 file changed, 19 insertions(+), 18 deletions(-) + +diff --git a/src/st/st-theme.c b/src/st/st-theme.c +index 2d51420a20..9f6b2f6e35 100644 +--- a/src/st/st-theme.c ++++ b/src/st/st-theme.c +@@ -63,7 +63,6 @@ struct _StTheme + GFile *application_stylesheet; + GFile *default_stylesheet; + GFile *theme_stylesheet; +- GSList *custom_stylesheets; + + GHashTable *stylesheets_by_file; + +@@ -290,8 +289,6 @@ st_theme_load_stylesheet (StTheme *theme, + stylesheet_data = stylesheet->app_data; + stylesheet_data->extension_stylesheet = TRUE; + +- cr_stylesheet_ref (stylesheet); +- theme->custom_stylesheets = g_slist_prepend (theme->custom_stylesheets, stylesheet); + g_signal_emit (theme, signals[STYLESHEETS_CHANGED], 0); + + return TRUE; +@@ -302,17 +299,17 @@ st_theme_unload_stylesheet (StTheme *theme, + GFile *file) + { + CRStyleSheet *stylesheet; ++ StyleSheetData *stylesheet_data; + + stylesheet = g_hash_table_lookup (theme->stylesheets_by_file, file); +- if (!stylesheet) ++ if (!stylesheet || !stylesheet->app_data) + return; + +- if (!g_slist_find (theme->custom_stylesheets, stylesheet)) ++ stylesheet_data = stylesheet->app_data; ++ if (!stylesheet_data->extension_stylesheet) + return; + + g_hash_table_remove (theme->stylesheets_by_file, file); +- theme->custom_stylesheets = g_slist_remove (theme->custom_stylesheets, stylesheet); +- cr_stylesheet_unref (stylesheet); + g_signal_emit (theme, signals[STYLESHEETS_CHANGED], 0); + } + +@@ -327,14 +324,17 @@ GSList* + st_theme_get_custom_stylesheets (StTheme *theme) + { + GSList *result = NULL; +- GSList *iter; ++ GHashTableIter iter; ++ gpointer value; + +- for (iter = theme->custom_stylesheets; iter; iter = iter->next) ++ g_hash_table_iter_init (&iter, theme->stylesheets_by_file); ++ ++ while (g_hash_table_iter_next (&iter, NULL, &value)) + { +- CRStyleSheet *stylesheet = iter->data; ++ CRStyleSheet *stylesheet = value; + StyleSheetData *stylesheet_data = stylesheet->app_data; + +- if (stylesheet_data && stylesheet_data->file) ++ if (stylesheet_data && stylesheet_data->extension_stylesheet) + result = g_slist_prepend (result, g_object_ref (stylesheet_data->file)); + } + +@@ -374,10 +374,6 @@ st_theme_finalize (GObject * object) + + g_clear_pointer (&theme->stylesheets_by_file, g_hash_table_destroy); + +- g_slist_free_full (theme->custom_stylesheets, +- (GDestroyNotify) cr_stylesheet_unref); +- theme->custom_stylesheets = NULL; +- + g_clear_object (&theme->application_stylesheet); + g_clear_object (&theme->theme_stylesheet); + g_clear_object (&theme->default_stylesheet); +@@ -1030,7 +1026,7 @@ _st_theme_get_matched_properties (StTheme *theme, + enum CRStyleOrigin origin = 0; + CRStyleSheet *sheet = NULL; + GPtrArray *props = g_ptr_array_new (); +- GSList *iter; ++ GHashTableIter iter; + + g_return_val_if_fail (ST_IS_THEME (theme), NULL); + g_return_val_if_fail (ST_IS_THEME_NODE (node), NULL); +@@ -1044,8 +1040,13 @@ _st_theme_get_matched_properties (StTheme *theme, + add_matched_properties (theme, sheet, node, props); + } + +- for (iter = theme->custom_stylesheets; iter; iter = iter->next) +- add_matched_properties (theme, iter->data, node, props); ++ g_hash_table_iter_init (&iter, theme->stylesheets_by_file); ++ while (g_hash_table_iter_next (&iter, NULL, (gpointer) &sheet)) ++ { ++ if (sheet->app_data && ++ ((StyleSheetData *) sheet->app_data)->extension_stylesheet) ++ add_matched_properties (theme, sheet, node, props); ++ } + + /* We count on a stable sort here so that later declarations come + * after earlier declarations */ +-- +2.24.1 + + +From 5b66ecb1019f3ba32aa05562a8b58ebd95702669 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= +Date: Mon, 6 May 2019 18:56:49 -0500 +Subject: [PATCH 4/5] st-theme: Ref stylesheet using facility function + +Define stylesheet_ref as a wrapper of cr_stylesheet_ref that returns the +ref'ed instance so that we can use this on the caller function to make clear +what we're passing. + +https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/536 +--- + src/st/st-theme.c | 10 ++++++++-- + 1 file changed, 8 insertions(+), 2 deletions(-) + +diff --git a/src/st/st-theme.c b/src/st/st-theme.c +index 9f6b2f6e35..30733b6fd5 100644 +--- a/src/st/st-theme.c ++++ b/src/st/st-theme.c +@@ -110,6 +110,13 @@ file_equal0 (GFile *file1, + return g_file_equal (file1, file2); + } + ++static inline CRStyleSheet * ++stylesheet_ref (CRStyleSheet *stylesheet) ++{ ++ cr_stylesheet_ref (stylesheet); ++ return stylesheet; ++} ++ + static void + stylesheet_destroy (CRStyleSheet *stylesheet) + { +@@ -268,9 +275,8 @@ insert_stylesheet (StTheme *theme, + stylesheet_data->file = file; + stylesheet->app_data = stylesheet_data; + +- cr_stylesheet_ref (stylesheet); + g_hash_table_insert (theme->stylesheets_by_file, +- g_object_ref (file), stylesheet); ++ g_object_ref (file), stylesheet_ref (stylesheet)); + return TRUE; + } + +-- +2.24.1 + + +From bf5ea4dc4fbcf09c77a830ae9a227660e1c72d7d Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= +Date: Mon, 6 May 2019 18:40:13 -0500 +Subject: [PATCH 5/5] st-theme: Use glib auto free/ptr features + +Use g_autofree and g_autoptr for managing memory in a smarter way. + +https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/536 +--- + src/st/st-theme.c | 21 ++++++--------------- + 1 file changed, 6 insertions(+), 15 deletions(-) + +diff --git a/src/st/st-theme.c b/src/st/st-theme.c +index 30733b6fd5..4c8730a4ce 100644 +--- a/src/st/st-theme.c ++++ b/src/st/st-theme.c +@@ -205,7 +205,7 @@ parse_stylesheet (GFile *file, + { + enum CRStatus status; + CRStyleSheet *stylesheet; +- char *contents; ++ g_autofree char *contents = NULL; + gsize length; + + if (file == NULL) +@@ -218,14 +218,11 @@ parse_stylesheet (GFile *file, + length, + CR_UTF_8, + &stylesheet); +- g_free (contents); +- + if (status != CR_OK) + { +- char *uri = g_file_get_uri (file); ++ g_autofree char *uri = g_file_get_uri (file); + g_set_error (error, G_IO_ERROR, G_IO_ERROR_FAILED, + "Error parsing stylesheet '%s'; errcode:%d", uri, status); +- g_free (uri); + return NULL; + } + +@@ -901,7 +898,7 @@ add_matched_properties (StTheme *a_this, + + if (import_rule->sheet == NULL) + { +- GFile *file = NULL; ++ g_autoptr (GFile) file = NULL; + + if (import_rule->url->stryng && import_rule->url->stryng->str) + { +@@ -925,9 +922,6 @@ add_matched_properties (StTheme *a_this, + */ + import_rule->sheet = (CRStyleSheet *) - 1; + } +- +- if (file) +- g_object_unref (file); + } + + if (import_rule->sheet != (CRStyleSheet *) - 1) +@@ -1070,20 +1064,19 @@ _st_theme_resolve_url (StTheme *theme, + CRStyleSheet *base_stylesheet, + const char *url) + { +- char *scheme; ++ g_autofree char *scheme = NULL; + GFile *resource; + + if ((scheme = g_uri_parse_scheme (url))) + { +- g_free (scheme); + resource = g_file_new_for_uri (url); + } + else if (base_stylesheet != NULL) + { +- GFile *base_file = NULL, *parent; + StyleSheetData *stylesheet_data = base_stylesheet->app_data; ++ GFile *base_file = stylesheet_data->file; ++ g_autoptr (GFile) parent = NULL; + +- base_file = stylesheet_data->file; + + /* This is an internal function, if we get here with + a bad @base_stylesheet we have a problem. */ +@@ -1091,8 +1084,6 @@ _st_theme_resolve_url (StTheme *theme, + + parent = g_file_get_parent (base_file); + resource = g_file_resolve_relative_path (parent, url); +- +- g_object_unref (parent); + } + else + { +-- +2.24.1 + diff --git a/gnome-base/gnome-shell/gnome-shell-3.26.2-r4.ebuild b/gnome-base/gnome-shell/gnome-shell-3.26.2-r4.ebuild index 6daa3d58709a..31536117ad67 100644 --- a/gnome-base/gnome-shell/gnome-shell-3.26.2-r4.ebuild +++ b/gnome-base/gnome-shell/gnome-shell-3.26.2-r4.ebuild @@ -24,6 +24,7 @@ KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~x86" COMMON_DEPEND=" >=dev-libs/libcroco-0.6.8:0.6 >=gnome-extra/evolution-data-server-3.17.2:= + =app-crypt/gcr-3.7.5[introspection] >=gnome-base/gnome-desktop-3.7.90:3=[introspection] >=dev-libs/glib-2.53.0:2 diff --git a/gnome-base/gnome-shell/gnome-shell-3.32.2-r1.ebuild b/gnome-base/gnome-shell/gnome-shell-3.32.2-r1.ebuild index 3b1c0f71c323..4e6c8468dd1f 100644 --- a/gnome-base/gnome-shell/gnome-shell-3.32.2-r1.ebuild +++ b/gnome-base/gnome-shell/gnome-shell-3.32.2-r1.ebuild @@ -24,6 +24,7 @@ KEYWORDS="amd64 ~arm ~arm64 ~ppc ~ppc64 x86" DEPEND=" >=dev-libs/libcroco-0.6.8:0.6 >=gnome-extra/evolution-data-server-3.17.2:= + =app-crypt/gcr-3.7.5[introspection] >=gnome-base/gnome-desktop-3.7.90:3=[introspection] >=dev-libs/glib-2.57.2:2 diff --git a/gnome-base/gnome-shell/gnome-shell-3.34.4-r1.ebuild b/gnome-base/gnome-shell/gnome-shell-3.34.4-r1.ebuild new file mode 100644 index 000000000000..2e737d33e727 --- /dev/null +++ b/gnome-base/gnome-shell/gnome-shell-3.34.4-r1.ebuild @@ -0,0 +1,198 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +PYTHON_COMPAT=( python3_{6,7,8} ) + +inherit gnome.org gnome2-utils meson pax-utils python-single-r1 virtualx xdg + +DESCRIPTION="Provides core UI functions for the GNOME 3 desktop" +HOMEPAGE="https://wiki.gnome.org/Projects/GnomeShell" +SRC_URI+=" https://dev.gentoo.org/~leio/distfiles/${P}-patchset.tar.xz" + +LICENSE="GPL-2+ LGPL-2+" +SLOT="0" +IUSE="+bluetooth +browser-extension elogind gtk-doc +ibus +networkmanager systemd telepathy" +REQUIRED_USE="${PYTHON_REQUIRED_USE} + ?? ( elogind systemd )" + +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86" + +# libXfixes-5.0 needed for pointer barriers and #include +# FIXME: +# * gstreamer support is currently automagic +DEPEND=" + >=dev-libs/libcroco-0.6.8:0.6 + >=gnome-extra/evolution-data-server-3.33.1:= + >=app-crypt/gcr-3.7.5[introspection] + >=dev-libs/glib-2.57.2:2 + >=dev-libs/gobject-introspection-1.49.1:= + >=dev-libs/gjs-1.57.3 + >=x11-libs/gtk+-3.15.0:3[introspection] + >=x11-wm/mutter-3.34.0:0/5[introspection] + >=sys-auth/polkit-0.100[introspection] + >=gnome-base/gsettings-desktop-schemas-3.33.1 + >=x11-libs/startup-notification-0.11 + >=app-i18n/ibus-1.5.2 + >=gnome-base/gnome-desktop-3.32:3=[introspection] + bluetooth? ( >=net-wireless/gnome-bluetooth-3.9[introspection] ) + >=media-libs/gstreamer-0.11.92:1.0 + media-libs/gst-plugins-base:1.0 + networkmanager? ( + >=net-misc/networkmanager-1.10.4:=[introspection] + >=app-crypt/libsecret-0.18 + dev-libs/dbus-glib ) + systemd? ( >=sys-apps/systemd-31 + >=gnome-base/gnome-desktop-3.34.2:3=[systemd] ) + elogind? ( >=sys-auth/elogind-237 ) + app-arch/gnome-autoar + dev-libs/json-glib + + >=app-accessibility/at-spi2-atk-2.5.3 + x11-libs/gdk-pixbuf:2[introspection] + dev-libs/libxml2:2 + x11-libs/libX11 + + >=media-sound/pulseaudio-2[glib] + >=dev-libs/atk-2[introspection] + dev-libs/libical:= + >=x11-libs/libXfixes-5.0 + + ${PYTHON_DEPS} + $(python_gen_cond_dep ' + dev-python/pygobject:3[${PYTHON_MULTI_USEDEP}] + ') + media-libs/mesa[X(+)] +" +# Runtime-only deps are probably incomplete and approximate. +# Introspection deps generated using: +# grep -roe "imports.gi.*" gnome-shell-* | cut -f2 -d: | sort | uniq +# Each block: +# 1. Introspection stuff needed via imports.gi.* +# 2. gnome-session needed for shutdown/reboot/inhibitors/etc +# 3. Control shell settings +# 4. logind interface needed for suspending support +# 5. xdg-utils needed for xdg-open, used by extension tool +# 6. adwaita-icon-theme needed for various icons & arrows (3.26 for new video-joined-displays-symbolic and co icons; review for 3.28+) +# 7. mobile-broadband-provider-info, timezone-data for shell-mobile-providers.c # TODO: Review +# 8. IBus is needed for nls integration +# 9. Optional telepathy chat integration +# 10. Cantarell font used in gnome-shell global CSS (if removing this for some reason, make sure it's pulled in somehow for non-meta users still too) +# 11. TODO: semi-optional webkit-gtk[introspection] for captive portal helper +RDEPEND="${DEPEND} + >=sys-apps/accountsservice-0.6.14[introspection] + app-accessibility/at-spi2-core:2[introspection] + app-misc/geoclue[introspection] + >=dev-libs/libgweather-3.26:2[introspection] + >=sys-power/upower-0.99:=[introspection] + x11-libs/pango[introspection] + gnome-base/librsvg:2[introspection] + + >=gnome-base/gnome-session-2.91.91 + >=gnome-base/gnome-settings-daemon-3.8.3 + + x11-misc/xdg-utils + + >=x11-themes/adwaita-icon-theme-3.26 + + networkmanager? ( + net-misc/mobile-broadband-provider-info + sys-libs/timezone-data ) + ibus? ( >=app-i18n/ibus-1.4.99[dconf(+),gtk,introspection] ) + telepathy? ( + >=net-im/telepathy-logger-0.2.4[introspection] + >=net-libs/telepathy-glib-0.19[introspection] ) + media-fonts/cantarell +" +# avoid circular dependency, see bug #546134 +PDEPEND=" + >=gnome-base/gdm-3.5[introspection] + >=gnome-base/gnome-control-center-3.26[bluetooth(+)?,networkmanager(+)?] + browser-extension? ( gnome-extra/chrome-gnome-shell ) +" +BDEPEND=" + dev-lang/sassc + dev-libs/libxslt + app-text/asciidoc + >=dev-util/gdbus-codegen-2.45.3 + dev-util/glib-utils + gtk-doc? ( >=dev-util/gtk-doc-1.17 + app-text/docbook-xml-dtd:4.3 ) + >=sys-devel/gettext-0.19.8 + virtual/pkgconfig +" + +PATCHES=( + # Patches from gnome-3-34 branch on top of 3.34.4 + "${WORKDIR}"/patches/ + # Try to fix crashes related to custom stylesheet; triggered often by package installs (probably desktop database update) + # https://gitlab.gnome.org/GNOME/gnome-shell/issues/1265 + # https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/536 + "${FILESDIR}"/${PV}-custom_stylesheet_crash.patch + # Fix automagic gnome-bluetooth dep, bug #398145 + "${FILESDIR}"/3.34-optional-bluetooth.patch + # Change favorites defaults, bug #479918 + "${FILESDIR}"/3.28.3-defaults.patch +) + +src_prepare() { + xdg_src_prepare + # Hack in correct python shebang + sed -e "s:python\.path():'/usr/bin/env ${EPYTHON}':" -i src/meson.build || die +} + +src_configure() { + local emesonargs=( + $(meson_use bluetooth) + -Dextensions_tool=true + $(meson_use gtk-doc gtk_doc) + -Dman=true + $(meson_use networkmanager) + $(meson_use systemd) # this controls journald integration and desktop file user services related property only as of 3.34.4 + # (structured logging and having gnome-shell launched apps use its own identifier instead of gnome-session) + # suspend support is runtime optional via /run/systemd/seats presence and org.freedesktop.login1.Manager dbus interface; elogind should provide what's necessary + ) + meson_src_configure +} + +src_install() { + meson_src_install + + # Required for gnome-shell on hardened/PaX, bug #398941; FIXME: Is this still relevant? + pax-mark m "${ED}/usr/bin/gnome-shell"{,-extension-prefs} +} + +src_test() { + virtx meson_src_test +} + +pkg_postinst() { + xdg_pkg_postinst + gnome2_schemas_update + + if ! has_version 'media-libs/gst-plugins-good:1.0' || \ + ! has_version 'media-plugins/gst-plugins-vpx:1.0'; then + ewarn "To make use of GNOME Shell's built-in screen recording utility," + ewarn "you need to either install media-libs/gst-plugins-good:1.0" + ewarn "and media-plugins/gst-plugins-vpx:1.0, or use dconf-editor to change" + ewarn "apps.gnome-shell.recorder/pipeline to what you want to use." + fi + + if ! has_version "media-libs/mesa[llvm]"; then + elog "llvmpipe is used as fallback when no 3D acceleration" + elog "is available. You will need to enable llvm USE for" + elog "media-libs/mesa if you do not have hardware 3D setup." + fi + + # https://bugs.gentoo.org/show_bug.cgi?id=563084 + # TODO: Is this still the case after various fixed in 3.28 for detecting non-working KMS for wayland (to fall back to X)? + if has_version "x11-drivers/nvidia-drivers[-kms]"; then + ewarn "You will need to enable kms support in x11-drivers/nvidia-drivers," + ewarn "otherwise Gnome will fail to start" + fi +} + +pkg_postrm() { + xdg_pkg_postrm + gnome2_schemas_update +} diff --git a/gnome-base/gnome-shell/gnome-shell-3.34.4.ebuild b/gnome-base/gnome-shell/gnome-shell-3.34.4.ebuild new file mode 100644 index 000000000000..556c9a167ede --- /dev/null +++ b/gnome-base/gnome-shell/gnome-shell-3.34.4.ebuild @@ -0,0 +1,194 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +PYTHON_COMPAT=( python3_{6,7,8} ) + +inherit gnome.org gnome2-utils meson pax-utils python-single-r1 virtualx xdg + +DESCRIPTION="Provides core UI functions for the GNOME 3 desktop" +HOMEPAGE="https://wiki.gnome.org/Projects/GnomeShell" +SRC_URI+=" https://dev.gentoo.org/~leio/distfiles/${P}-patchset.tar.xz" + +LICENSE="GPL-2+ LGPL-2+" +SLOT="0" +IUSE="+bluetooth +browser-extension elogind gtk-doc +ibus +networkmanager systemd telepathy" +REQUIRED_USE="${PYTHON_REQUIRED_USE} + ?? ( elogind systemd )" + +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86" + +# libXfixes-5.0 needed for pointer barriers and #include +# FIXME: +# * gstreamer support is currently automagic +DEPEND=" + >=dev-libs/libcroco-0.6.8:0.6 + >=gnome-extra/evolution-data-server-3.33.1:= + >=app-crypt/gcr-3.7.5[introspection] + >=dev-libs/glib-2.57.2:2 + >=dev-libs/gobject-introspection-1.49.1:= + >=dev-libs/gjs-1.57.3 + >=x11-libs/gtk+-3.15.0:3[introspection] + >=x11-wm/mutter-3.34.0:0/5[introspection] + >=sys-auth/polkit-0.100[introspection] + >=gnome-base/gsettings-desktop-schemas-3.33.1 + >=x11-libs/startup-notification-0.11 + >=app-i18n/ibus-1.5.2 + >=gnome-base/gnome-desktop-3.32:3=[introspection] + bluetooth? ( >=net-wireless/gnome-bluetooth-3.9[introspection] ) + >=media-libs/gstreamer-0.11.92:1.0 + media-libs/gst-plugins-base:1.0 + networkmanager? ( + >=net-misc/networkmanager-1.10.4:=[introspection] + >=app-crypt/libsecret-0.18 + dev-libs/dbus-glib ) + systemd? ( >=sys-apps/systemd-31 + >=gnome-base/gnome-desktop-3.34.2:3=[systemd] ) + elogind? ( >=sys-auth/elogind-237 ) + app-arch/gnome-autoar + dev-libs/json-glib + + >=app-accessibility/at-spi2-atk-2.5.3 + x11-libs/gdk-pixbuf:2[introspection] + dev-libs/libxml2:2 + x11-libs/libX11 + + >=media-sound/pulseaudio-2[glib] + >=dev-libs/atk-2[introspection] + dev-libs/libical:= + >=x11-libs/libXfixes-5.0 + + ${PYTHON_DEPS} + $(python_gen_cond_dep ' + dev-python/pygobject:3[${PYTHON_MULTI_USEDEP}] + ') + media-libs/mesa[X(+)] +" +# Runtime-only deps are probably incomplete and approximate. +# Introspection deps generated using: +# grep -roe "imports.gi.*" gnome-shell-* | cut -f2 -d: | sort | uniq +# Each block: +# 1. Introspection stuff needed via imports.gi.* +# 2. gnome-session needed for shutdown/reboot/inhibitors/etc +# 3. Control shell settings +# 4. logind interface needed for suspending support +# 5. xdg-utils needed for xdg-open, used by extension tool +# 6. adwaita-icon-theme needed for various icons & arrows (3.26 for new video-joined-displays-symbolic and co icons; review for 3.28+) +# 7. mobile-broadband-provider-info, timezone-data for shell-mobile-providers.c # TODO: Review +# 8. IBus is needed for nls integration +# 9. Optional telepathy chat integration +# 10. Cantarell font used in gnome-shell global CSS (if removing this for some reason, make sure it's pulled in somehow for non-meta users still too) +# 11. TODO: semi-optional webkit-gtk[introspection] for captive portal helper +RDEPEND="${DEPEND} + >=sys-apps/accountsservice-0.6.14[introspection] + app-accessibility/at-spi2-core:2[introspection] + app-misc/geoclue[introspection] + >=dev-libs/libgweather-3.26:2[introspection] + >=sys-power/upower-0.99:=[introspection] + x11-libs/pango[introspection] + gnome-base/librsvg:2[introspection] + + >=gnome-base/gnome-session-2.91.91 + >=gnome-base/gnome-settings-daemon-3.8.3 + + x11-misc/xdg-utils + + >=x11-themes/adwaita-icon-theme-3.26 + + networkmanager? ( + net-misc/mobile-broadband-provider-info + sys-libs/timezone-data ) + ibus? ( >=app-i18n/ibus-1.4.99[dconf(+),gtk,introspection] ) + telepathy? ( + >=net-im/telepathy-logger-0.2.4[introspection] + >=net-libs/telepathy-glib-0.19[introspection] ) + media-fonts/cantarell +" +# avoid circular dependency, see bug #546134 +PDEPEND=" + >=gnome-base/gdm-3.5[introspection] + >=gnome-base/gnome-control-center-3.26[bluetooth(+)?,networkmanager(+)?] + browser-extension? ( gnome-extra/chrome-gnome-shell ) +" +BDEPEND=" + dev-lang/sassc + dev-libs/libxslt + app-text/asciidoc + >=dev-util/gdbus-codegen-2.45.3 + dev-util/glib-utils + gtk-doc? ( >=dev-util/gtk-doc-1.17 + app-text/docbook-xml-dtd:4.3 ) + >=sys-devel/gettext-0.19.8 + virtual/pkgconfig +" + +PATCHES=( + # Patches from gnome-3-34 branch on top of 3.34.4 + "${WORKDIR}"/patches/ + # Fix automagic gnome-bluetooth dep, bug #398145 + "${FILESDIR}"/3.34-optional-bluetooth.patch + # Change favorites defaults, bug #479918 + "${FILESDIR}"/3.28.3-defaults.patch +) + +src_prepare() { + xdg_src_prepare + # Hack in correct python shebang + sed -e "s:python\.path():'/usr/bin/env ${EPYTHON}':" -i src/meson.build || die +} + +src_configure() { + local emesonargs=( + $(meson_use bluetooth) + -Dextensions_tool=true + $(meson_use gtk-doc gtk_doc) + -Dman=true + $(meson_use networkmanager) + $(meson_use systemd) # this controls journald integration and desktop file user services related property only as of 3.34.4 + # (structured logging and having gnome-shell launched apps use its own identifier instead of gnome-session) + # suspend support is runtime optional via /run/systemd/seats presence and org.freedesktop.login1.Manager dbus interface; elogind should provide what's necessary + ) + meson_src_configure +} + +src_install() { + meson_src_install + + # Required for gnome-shell on hardened/PaX, bug #398941; FIXME: Is this still relevant? + pax-mark m "${ED}/usr/bin/gnome-shell"{,-extension-prefs} +} + +src_test() { + virtx meson_src_test +} + +pkg_postinst() { + xdg_pkg_postinst + gnome2_schemas_update + + if ! has_version 'media-libs/gst-plugins-good:1.0' || \ + ! has_version 'media-plugins/gst-plugins-vpx:1.0'; then + ewarn "To make use of GNOME Shell's built-in screen recording utility," + ewarn "you need to either install media-libs/gst-plugins-good:1.0" + ewarn "and media-plugins/gst-plugins-vpx:1.0, or use dconf-editor to change" + ewarn "apps.gnome-shell.recorder/pipeline to what you want to use." + fi + + if ! has_version "media-libs/mesa[llvm]"; then + elog "llvmpipe is used as fallback when no 3D acceleration" + elog "is available. You will need to enable llvm USE for" + elog "media-libs/mesa if you do not have hardware 3D setup." + fi + + # https://bugs.gentoo.org/show_bug.cgi?id=563084 + # TODO: Is this still the case after various fixed in 3.28 for detecting non-working KMS for wayland (to fall back to X)? + if has_version "x11-drivers/nvidia-drivers[-kms]"; then + ewarn "You will need to enable kms support in x11-drivers/nvidia-drivers," + ewarn "otherwise Gnome will fail to start" + fi +} + +pkg_postrm() { + xdg_pkg_postrm + gnome2_schemas_update +} diff --git a/gnome-base/gnome-shell/gnome-shell-3.34.5.ebuild b/gnome-base/gnome-shell/gnome-shell-3.34.5.ebuild new file mode 100644 index 000000000000..31bff815d4a8 --- /dev/null +++ b/gnome-base/gnome-shell/gnome-shell-3.34.5.ebuild @@ -0,0 +1,195 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +PYTHON_COMPAT=( python3_{6,7,8} ) + +inherit gnome.org gnome2-utils meson pax-utils python-single-r1 virtualx xdg + +DESCRIPTION="Provides core UI functions for the GNOME 3 desktop" +HOMEPAGE="https://wiki.gnome.org/Projects/GnomeShell" + +LICENSE="GPL-2+ LGPL-2+" +SLOT="0" +IUSE="+bluetooth +browser-extension elogind gtk-doc +ibus +networkmanager systemd telepathy" +REQUIRED_USE="${PYTHON_REQUIRED_USE} + ?? ( elogind systemd )" + +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86" + +# libXfixes-5.0 needed for pointer barriers and #include +# FIXME: +# * gstreamer support is currently automagic +DEPEND=" + >=dev-libs/libcroco-0.6.8:0.6 + >=gnome-extra/evolution-data-server-3.33.1:= + >=app-crypt/gcr-3.7.5[introspection] + >=dev-libs/glib-2.57.2:2 + >=dev-libs/gobject-introspection-1.49.1:= + >=dev-libs/gjs-1.57.3 + >=x11-libs/gtk+-3.15.0:3[introspection] + >=x11-wm/mutter-3.34.0:0/5[introspection] + >=sys-auth/polkit-0.100[introspection] + >=gnome-base/gsettings-desktop-schemas-3.33.1 + >=x11-libs/startup-notification-0.11 + >=app-i18n/ibus-1.5.2 + >=gnome-base/gnome-desktop-3.32:3=[introspection] + bluetooth? ( >=net-wireless/gnome-bluetooth-3.9[introspection] ) + >=media-libs/gstreamer-0.11.92:1.0 + media-libs/gst-plugins-base:1.0 + networkmanager? ( + >=net-misc/networkmanager-1.10.4:=[introspection] + >=app-crypt/libsecret-0.18 + dev-libs/dbus-glib ) + systemd? ( >=sys-apps/systemd-31 + >=gnome-base/gnome-desktop-3.34.2:3=[systemd] ) + elogind? ( >=sys-auth/elogind-237 ) + app-arch/gnome-autoar + dev-libs/json-glib + + >=app-accessibility/at-spi2-atk-2.5.3 + x11-libs/gdk-pixbuf:2[introspection] + dev-libs/libxml2:2 + x11-libs/libX11 + + >=media-sound/pulseaudio-2[glib] + >=dev-libs/atk-2[introspection] + dev-libs/libical:= + >=x11-libs/libXfixes-5.0 + + ${PYTHON_DEPS} + $(python_gen_cond_dep ' + dev-python/pygobject:3[${PYTHON_MULTI_USEDEP}] + ') + media-libs/mesa[X(+)] +" +# Runtime-only deps are probably incomplete and approximate. +# Introspection deps generated using: +# grep -roe "imports.gi.*" gnome-shell-* | cut -f2 -d: | sort | uniq +# Each block: +# 1. Introspection stuff needed via imports.gi.* +# 2. gnome-session needed for shutdown/reboot/inhibitors/etc +# 3. Control shell settings +# 4. logind interface needed for suspending support +# 5. xdg-utils needed for xdg-open, used by extension tool +# 6. adwaita-icon-theme needed for various icons & arrows (3.26 for new video-joined-displays-symbolic and co icons; review for 3.28+) +# 7. mobile-broadband-provider-info, timezone-data for shell-mobile-providers.c # TODO: Review +# 8. IBus is needed for nls integration +# 9. Optional telepathy chat integration +# 10. Cantarell font used in gnome-shell global CSS (if removing this for some reason, make sure it's pulled in somehow for non-meta users still too) +# 11. TODO: semi-optional webkit-gtk[introspection] for captive portal helper +RDEPEND="${DEPEND} + >=sys-apps/accountsservice-0.6.14[introspection] + app-accessibility/at-spi2-core:2[introspection] + app-misc/geoclue[introspection] + >=dev-libs/libgweather-3.26:2[introspection] + >=sys-power/upower-0.99:=[introspection] + x11-libs/pango[introspection] + gnome-base/librsvg:2[introspection] + + >=gnome-base/gnome-session-2.91.91 + >=gnome-base/gnome-settings-daemon-3.8.3 + + x11-misc/xdg-utils + + >=x11-themes/adwaita-icon-theme-3.26 + + networkmanager? ( + net-misc/mobile-broadband-provider-info + sys-libs/timezone-data ) + ibus? ( >=app-i18n/ibus-1.4.99[dconf(+),gtk,introspection] ) + telepathy? ( + >=net-im/telepathy-logger-0.2.4[introspection] + >=net-libs/telepathy-glib-0.19[introspection] ) + media-fonts/cantarell +" +# avoid circular dependency, see bug #546134 +PDEPEND=" + >=gnome-base/gdm-3.5[introspection] + >=gnome-base/gnome-control-center-3.26[bluetooth(+)?,networkmanager(+)?] + browser-extension? ( gnome-extra/chrome-gnome-shell ) +" +BDEPEND=" + dev-lang/sassc + dev-libs/libxslt + app-text/asciidoc + >=dev-util/gdbus-codegen-2.45.3 + dev-util/glib-utils + gtk-doc? ( >=dev-util/gtk-doc-1.17 + app-text/docbook-xml-dtd:4.3 ) + >=sys-devel/gettext-0.19.8 + virtual/pkgconfig +" + +PATCHES=( + # Try to fix crashes related to custom stylesheet; triggered often by package installs (probably desktop database update) + # https://gitlab.gnome.org/GNOME/gnome-shell/issues/1265 + # https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/536 + "${FILESDIR}"/3.34.4-custom_stylesheet_crash.patch + # Fix automagic gnome-bluetooth dep, bug #398145 + "${FILESDIR}"/3.34-optional-bluetooth.patch + # Change favorites defaults, bug #479918 + "${FILESDIR}"/3.28.3-defaults.patch +) + +src_prepare() { + xdg_src_prepare + # Hack in correct python shebang + sed -e "s:python\.path():'/usr/bin/env ${EPYTHON}':" -i src/meson.build || die +} + +src_configure() { + local emesonargs=( + $(meson_use bluetooth) + -Dextensions_tool=true + $(meson_use gtk-doc gtk_doc) + -Dman=true + $(meson_use networkmanager) + $(meson_use systemd) # this controls journald integration and desktop file user services related property only as of 3.34.4 + # (structured logging and having gnome-shell launched apps use its own identifier instead of gnome-session) + # suspend support is runtime optional via /run/systemd/seats presence and org.freedesktop.login1.Manager dbus interface; elogind should provide what's necessary + ) + meson_src_configure +} + +src_install() { + meson_src_install + + # Required for gnome-shell on hardened/PaX, bug #398941; FIXME: Is this still relevant? + pax-mark m "${ED}/usr/bin/gnome-shell"{,-extension-prefs} +} + +src_test() { + virtx meson_src_test +} + +pkg_postinst() { + xdg_pkg_postinst + gnome2_schemas_update + + if ! has_version 'media-libs/gst-plugins-good:1.0' || \ + ! has_version 'media-plugins/gst-plugins-vpx:1.0'; then + ewarn "To make use of GNOME Shell's built-in screen recording utility," + ewarn "you need to either install media-libs/gst-plugins-good:1.0" + ewarn "and media-plugins/gst-plugins-vpx:1.0, or use dconf-editor to change" + ewarn "apps.gnome-shell.recorder/pipeline to what you want to use." + fi + + if ! has_version "media-libs/mesa[llvm]"; then + elog "llvmpipe is used as fallback when no 3D acceleration" + elog "is available. You will need to enable llvm USE for" + elog "media-libs/mesa if you do not have hardware 3D setup." + fi + + # https://bugs.gentoo.org/show_bug.cgi?id=563084 + # TODO: Is this still the case after various fixed in 3.28 for detecting non-working KMS for wayland (to fall back to X)? + if has_version "x11-drivers/nvidia-drivers[-kms]"; then + ewarn "You will need to enable kms support in x11-drivers/nvidia-drivers," + ewarn "otherwise Gnome will fail to start" + fi +} + +pkg_postrm() { + xdg_pkg_postrm + gnome2_schemas_update +} -- cgit v1.2.3