Sync to gnome-3-38, Improve pick_mr(), Add !1440, misc cleanup
This commit is contained in:
parent
04ce138061
commit
2fd83bd92a
3 changed files with 33 additions and 119 deletions
12
.SRCINFO
12
.SRCINFO
|
@ -1,6 +1,6 @@
|
||||||
pkgbase = gnome-shell-performance
|
pkgbase = gnome-shell-performance
|
||||||
pkgdesc = Next generation desktop shell
|
pkgdesc = Next generation desktop shell
|
||||||
pkgver = 3.36.6
|
pkgver = 3.38.1+9+g610db2703
|
||||||
pkgrel = 1
|
pkgrel = 1
|
||||||
epoch = 1
|
epoch = 1
|
||||||
url = https://wiki.gnome.org/Projects/GnomeShell
|
url = https://wiki.gnome.org/Projects/GnomeShell
|
||||||
|
@ -39,15 +39,13 @@ pkgbase = gnome-shell-performance
|
||||||
optdepends = gnome-control-center: System settings
|
optdepends = gnome-control-center: System settings
|
||||||
optdepends = evolution-data-server: Evolution calendar integration
|
optdepends = evolution-data-server: Evolution calendar integration
|
||||||
provides = gnome-shell
|
provides = gnome-shell
|
||||||
provides = gnome-shell=3.36.6
|
provides = gnome-shell=3.38.1+9+g610db2703
|
||||||
provides = gnome-shell=1:3.36.6
|
provides = gnome-shell=1:3.38.1+9+g610db2703
|
||||||
conflicts = gnome-shell
|
conflicts = gnome-shell
|
||||||
source = git+https://gitlab.gnome.org/GNOME/gnome-shell.git#commit=682d4588bc6b2c1826013f98c52cc0b5afccea29
|
source = git+https://gitlab.gnome.org/GNOME/gnome-shell.git#commit=610db2703e5495d468d9b9370c587d0bd9c8b7bc
|
||||||
source = git+https://gitlab.gnome.org/GNOME/libgnome-volume-control.git
|
source = git+https://gitlab.gnome.org/GNOME/libgnome-volume-control.git
|
||||||
source = 1126.diff
|
|
||||||
sha256sums = SKIP
|
sha256sums = SKIP
|
||||||
sha256sums = SKIP
|
sha256sums = SKIP
|
||||||
sha256sums = 32661c22298d0c4af9b6b6bb718480ce192f528367f853d9709f74c146b2f8d4
|
|
||||||
|
|
||||||
pkgname = gnome-shell-performance
|
pkgname = gnome-shell-performance
|
||||||
depends = accountsservice
|
depends = accountsservice
|
||||||
|
@ -69,5 +67,5 @@ pkgname = gnome-shell-performance
|
||||||
depends = libibus
|
depends = libibus
|
||||||
depends = gnome-autoar
|
depends = gnome-autoar
|
||||||
depends = gnome-disk-utility
|
depends = gnome-disk-utility
|
||||||
depends = libmutter-6.so
|
depends = libmutter-7.so
|
||||||
|
|
||||||
|
|
87
1126.diff
87
1126.diff
|
@ -1,87 +0,0 @@
|
||||||
diff --git a/js/ui/calendar.js b/js/ui/calendar.js
|
|
||||||
index 99641841768fca6ef96bb41197fce1c75040fbc2..286aac1e10ee9bd966a98a86eb10cb7210ff3ff6 100644
|
|
||||||
--- a/js/ui/calendar.js
|
|
||||||
+++ b/js/ui/calendar.js
|
|
||||||
@@ -199,46 +199,47 @@ class DBusEventSource extends EventSourceBase {
|
|
||||||
|
|
||||||
this._initialized = false;
|
|
||||||
this._dbusProxy = new CalendarServer();
|
|
||||||
- this._dbusProxy.init_async(GLib.PRIORITY_DEFAULT, null, (object, result) => {
|
|
||||||
- let loaded = false;
|
|
||||||
-
|
|
||||||
- try {
|
|
||||||
- this._dbusProxy.init_finish(result);
|
|
||||||
- loaded = true;
|
|
||||||
- } catch (e) {
|
|
||||||
- if (e.matches(Gio.DBusError, Gio.DBusError.TIMED_OUT)) {
|
|
||||||
- // Ignore timeouts and install signals as normal, because with high
|
|
||||||
- // probability the service will appear later on, and we will get a
|
|
||||||
- // NameOwnerChanged which will finish loading
|
|
||||||
- //
|
|
||||||
- // (But still _initialized to false, because the proxy does not know
|
|
||||||
- // about the HasCalendars property and would cause an exception trying
|
|
||||||
- // to read it)
|
|
||||||
- } else {
|
|
||||||
- log('Error loading calendars: %s'.format(e.message));
|
|
||||||
- return;
|
|
||||||
- }
|
|
||||||
+ this._initProxy();
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+ async _initProxy() {
|
|
||||||
+ let loaded = false;
|
|
||||||
+
|
|
||||||
+ try {
|
|
||||||
+ await this._dbusProxy.init_async(GLib.PRIORITY_DEFAULT, null);
|
|
||||||
+ loaded = true;
|
|
||||||
+ } catch (e) {
|
|
||||||
+ // Ignore timeouts and install signals as normal, because with high
|
|
||||||
+ // probability the service will appear later on, and we will get a
|
|
||||||
+ // NameOwnerChanged which will finish loading
|
|
||||||
+ //
|
|
||||||
+ // (But still _initialized to false, because the proxy does not know
|
|
||||||
+ // about the HasCalendars property and would cause an exception trying
|
|
||||||
+ // to read it)
|
|
||||||
+ if (!e.matches(Gio.DBusError, Gio.DBusError.TIMED_OUT)) {
|
|
||||||
+ log('Error loading calendars: %s'.format(e.message));
|
|
||||||
+ return;
|
|
||||||
}
|
|
||||||
+ }
|
|
||||||
|
|
||||||
- this._dbusProxy.connectSignal('Changed', this._onChanged.bind(this));
|
|
||||||
-
|
|
||||||
- this._dbusProxy.connect('notify::g-name-owner', () => {
|
|
||||||
- if (this._dbusProxy.g_name_owner)
|
|
||||||
- this._onNameAppeared();
|
|
||||||
- else
|
|
||||||
- this._onNameVanished();
|
|
||||||
- });
|
|
||||||
-
|
|
||||||
- this._dbusProxy.connect('g-properties-changed', () => {
|
|
||||||
- this.notify('has-calendars');
|
|
||||||
- });
|
|
||||||
+ this._dbusProxy.connectSignal('Changed', this._onChanged.bind(this));
|
|
||||||
|
|
||||||
- this._initialized = loaded;
|
|
||||||
- if (loaded) {
|
|
||||||
- this.notify('has-calendars');
|
|
||||||
+ this._dbusProxy.connect('notify::g-name-owner', () => {
|
|
||||||
+ if (this._dbusProxy.g_name_owner)
|
|
||||||
this._onNameAppeared();
|
|
||||||
- }
|
|
||||||
+ else
|
|
||||||
+ this._onNameVanished();
|
|
||||||
+ });
|
|
||||||
+
|
|
||||||
+ this._dbusProxy.connect('g-properties-changed', () => {
|
|
||||||
+ this.notify('has-calendars');
|
|
||||||
});
|
|
||||||
+
|
|
||||||
+ this._initialized = loaded;
|
|
||||||
+ if (loaded) {
|
|
||||||
+ this.notify('has-calendars');
|
|
||||||
+ this._onNameAppeared();
|
|
||||||
+ }
|
|
||||||
}
|
|
||||||
|
|
||||||
destroy() {
|
|
41
PKGBUILD
41
PKGBUILD
|
@ -1,4 +1,4 @@
|
||||||
# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
|
# Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
|
||||||
# Patched package maintainer: Saren Arterius <saren@wtako.net>
|
# Patched package maintainer: Saren Arterius <saren@wtako.net>
|
||||||
# Contributor: Ionut Biru <ibiru@archlinux.org>
|
# Contributor: Ionut Biru <ibiru@archlinux.org>
|
||||||
# Contributor: Flamelab <panosfilip@gmail.com
|
# Contributor: Flamelab <panosfilip@gmail.com
|
||||||
|
@ -6,15 +6,15 @@
|
||||||
|
|
||||||
### MERGE REQUESTS SELECTION
|
### MERGE REQUESTS SELECTION
|
||||||
|
|
||||||
# available MR: ('536' '786' '923')
|
# available MR: ('536' '786' '923' '1440')
|
||||||
_merge_requests_to_use=('536') # safe pick
|
_merge_requests_to_use=('536' '1440') # safe pick
|
||||||
|
|
||||||
### IMPORTANT: Do no edit below this line unless you know what you're doing
|
### IMPORTANT: Do no edit below this line unless you know what you're doing
|
||||||
|
|
||||||
|
|
||||||
pkgname=gnome-shell-performance
|
pkgname=gnome-shell-performance
|
||||||
_pkgname=gnome-shell
|
_pkgname=gnome-shell
|
||||||
pkgver=3.36.6
|
pkgver=3.38.1+9+g610db2703
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
epoch=1
|
epoch=1
|
||||||
pkgdesc="Next generation desktop shell"
|
pkgdesc="Next generation desktop shell"
|
||||||
|
@ -32,13 +32,11 @@ groups=(gnome)
|
||||||
provides=(gnome-shell gnome-shell=$pkgver gnome-shell=$epoch:$pkgver)
|
provides=(gnome-shell gnome-shell=$pkgver gnome-shell=$epoch:$pkgver)
|
||||||
conflicts=(gnome-shell)
|
conflicts=(gnome-shell)
|
||||||
install=$pkgname.install
|
install=$pkgname.install
|
||||||
_commit=682d4588bc6b2c1826013f98c52cc0b5afccea29 # tags/3.36.6^0
|
_commit=610db2703e5495d468d9b9370c587d0bd9c8b7bc # tags/3.38.1^9
|
||||||
source=("git+https://gitlab.gnome.org/GNOME/gnome-shell.git#commit=$_commit"
|
source=("git+https://gitlab.gnome.org/GNOME/gnome-shell.git#commit=$_commit"
|
||||||
"git+https://gitlab.gnome.org/GNOME/libgnome-volume-control.git"
|
"git+https://gitlab.gnome.org/GNOME/libgnome-volume-control.git")
|
||||||
"1126.diff")
|
|
||||||
sha256sums=('SKIP'
|
sha256sums=('SKIP'
|
||||||
'SKIP'
|
'SKIP')
|
||||||
'32661c22298d0c4af9b6b6bb718480ce192f528367f853d9709f74c146b2f8d4')
|
|
||||||
|
|
||||||
pkgver() {
|
pkgver() {
|
||||||
cd $_pkgname
|
cd $_pkgname
|
||||||
|
@ -56,8 +54,14 @@ pick_mr() {
|
||||||
echo "Reverting $1..."
|
echo "Reverting $1..."
|
||||||
git revert "$2" --no-commit
|
git revert "$2" --no-commit
|
||||||
elif [ "$3" = "patch" ]; then
|
elif [ "$3" = "patch" ]; then
|
||||||
|
if [ -e ../"$2" ]; then
|
||||||
echo "Patching with $2..."
|
echo "Patching with $2..."
|
||||||
patch -Np1 -i ../"$2"
|
patch -Np1 -i ../"$2"
|
||||||
|
else
|
||||||
|
echo "Downloading $mr as $2 then patching..."
|
||||||
|
curl -O "https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/$mr.diff" -o "$2"
|
||||||
|
patch -Np1 -i "$2"
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
echo "ERROR: wrong argument given: $2"
|
echo "ERROR: wrong argument given: $2"
|
||||||
fi
|
fi
|
||||||
|
@ -112,15 +116,7 @@ prepare() {
|
||||||
# Type: 2
|
# Type: 2
|
||||||
# Status: 1
|
# Status: 1
|
||||||
# Comment: Crash fix for st_theme_get_custom_stylesheets
|
# Comment: Crash fix for st_theme_get_custom_stylesheets
|
||||||
# pick_mr '536'
|
pick_mr '536' '536.diff' 'patch'
|
||||||
for mr in "${_merge_requests_to_use[@]}"; do
|
|
||||||
if [ "536" = "$mr" ]; then
|
|
||||||
echo "Downloading then Merging 536..."
|
|
||||||
curl -O "https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/536.diff"
|
|
||||||
patch -Np1 -i 536.diff
|
|
||||||
break
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
# Title: Some fixes for setting key focus of the closeDialog
|
# Title: Some fixes for setting key focus of the closeDialog
|
||||||
# URL: https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/786
|
# URL: https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/786
|
||||||
|
@ -136,6 +132,13 @@ prepare() {
|
||||||
# Comment: Unlock freezes, it hits me too.
|
# Comment: Unlock freezes, it hits me too.
|
||||||
pick_mr '923'
|
pick_mr '923'
|
||||||
|
|
||||||
|
# Avoid missing/broken app launch animations
|
||||||
|
# URL: https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/1440
|
||||||
|
# Type: 3
|
||||||
|
# Status: 2
|
||||||
|
# Comment:
|
||||||
|
pick_mr '1440'
|
||||||
|
|
||||||
git submodule init
|
git submodule init
|
||||||
git submodule set-url subprojects/gvc "$srcdir/libgnome-volume-control"
|
git submodule set-url subprojects/gvc "$srcdir/libgnome-volume-control"
|
||||||
git submodule update
|
git submodule update
|
||||||
|
@ -147,6 +150,6 @@ build() {
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
depends+=(libmutter-6.so)
|
depends+=(libmutter-7.so)
|
||||||
DESTDIR="$pkgdir" meson install -C build
|
DESTDIR="$pkgdir" meson install -C build
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue