Date: Saturday, April 29, 2023 @ 00:19:09
  Author: heftig
Revision: 475344

archrelease: copy trunk to gnome-unstable-x86_64

Added:
  gnome-shell/repos/gnome-unstable-x86_64/
  
gnome-shell/repos/gnome-unstable-x86_64/0001-main-Leak-the-GJS-context-and-ShellGlobal.patch
    (from rev 475343, 
gnome-shell/trunk/0001-main-Leak-the-GJS-context-and-ShellGlobal.patch)
  gnome-shell/repos/gnome-unstable-x86_64/PKGBUILD
    (from rev 475343, gnome-shell/trunk/PKGBUILD)

------------------------------------------------------+
 0001-main-Leak-the-GJS-context-and-ShellGlobal.patch |   28 ++++
 PKGBUILD                                             |  111 +++++++++++++++++
 2 files changed, 139 insertions(+)

Copied: 
gnome-shell/repos/gnome-unstable-x86_64/0001-main-Leak-the-GJS-context-and-ShellGlobal.patch
 (from rev 475343, 
gnome-shell/trunk/0001-main-Leak-the-GJS-context-and-ShellGlobal.patch)
===================================================================
--- gnome-unstable-x86_64/0001-main-Leak-the-GJS-context-and-ShellGlobal.patch  
                        (rev 0)
+++ gnome-unstable-x86_64/0001-main-Leak-the-GJS-context-and-ShellGlobal.patch  
2023-04-29 00:19:09 UTC (rev 475344)
@@ -0,0 +1,28 @@
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Jonas=20=C3=85dahl?= <[email protected]>
+Date: Wed, 6 Oct 2021 10:00:43 +0200
+Subject: [PATCH] main: Leak the GJS context and ShellGlobal
+
+There are many crash-on-exit happening as a side effect of destroying
+the GJS context. Work around these until we have a better solution by
+leaking them.
+---
+ src/main.c | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/src/main.c b/src/main.c
+index 29275cda0725..2311a74bd110 100644
+--- a/src/main.c
++++ b/src/main.c
+@@ -589,9 +589,11 @@ main (int argc, char **argv)
+ 
+   shell_profiler_shutdown ();
+ 
++#if 0
+   g_debug ("Doing final cleanup");
+   _shell_global_destroy_gjs_context (shell_global_get ());
+   g_object_unref (shell_global_get ());
++#endif
+ 
+   return ecode;
+ }

Copied: gnome-shell/repos/gnome-unstable-x86_64/PKGBUILD (from rev 475343, 
gnome-shell/trunk/PKGBUILD)
===================================================================
--- gnome-unstable-x86_64/PKGBUILD                              (rev 0)
+++ gnome-unstable-x86_64/PKGBUILD      2023-04-29 00:19:09 UTC (rev 475344)
@@ -0,0 +1,111 @@
+# Maintainer: Jan Alexander Steffens (heftig) <[email protected]>
+# Contributor: Ionut Biru <[email protected]>
+# Contributor: Flamelab <[email protected]
+
+pkgname=gnome-shell
+pkgver=44.1
+pkgrel=1
+epoch=1
+pkgdesc="Next generation desktop shell"
+url="https://wiki.gnome.org/Projects/GnomeShell";
+arch=(x86_64)
+license=(GPL)
+depends=(
+  accountsservice
+  gcr-4
+  gjs
+  gnome-autoar
+  gnome-session
+  gnome-settings-daemon
+  gsettings-desktop-schemas
+  gtk4
+  libadwaita
+  libcanberra-pulse
+  libgdm
+  libgweather-4
+  libibus
+  libnma
+  libsecret
+  libsoup3
+  mutter
+  unzip
+  upower
+)
+makedepends=(
+  asciidoc
+  bash-completion
+  evolution-data-server
+  git
+  gnome-control-center
+  gobject-introspection
+  gtk-doc
+  meson
+  sassc
+)
+checkdepends=(
+  appstream-glib
+  python-dbusmock
+  xorg-server-xvfb
+)
+optdepends=(
+  'evolution-data-server: Evolution calendar integration'
+  'gnome-bluetooth-3.0: Bluetooth support'
+  'gnome-control-center: System settings'
+  'gnome-disk-utility: Mount with keyfiles'
+  'gst-plugin-pipewire: Screen recording'
+  'gst-plugins-good: Screen recording'
+  'power-profiles-daemon: Power profile switching'
+  'switcheroo-control: Multi-GPU support'
+)
+groups=(gnome)
+_commit=b0ca64e7775225b7c5d049571a44ef40bf516406  # tags/44.1^0
+source=(
+  "git+https://gitlab.gnome.org/GNOME/gnome-shell.git#commit=$_commit";
+  "git+https://gitlab.gnome.org/GNOME/libgnome-volume-control.git";
+)
+b2sums=('SKIP'
+        'SKIP')
+
+pkgver() {
+  cd $pkgname
+  git describe --tags | sed 's/[^-]*-g/r&/;s/-/+/g'
+}
+
+prepare() {
+  cd $pkgname
+
+  git submodule init
+  git submodule set-url subprojects/gvc "$srcdir/libgnome-volume-control"
+  git -c protocol.file.allow=always submodule update
+}
+
+build() {
+  local meson_options=(
+    -D gtk_doc=true
+  )
+
+  CFLAGS="${CFLAGS/-O2/-O3} -fno-semantic-interposition"
+  LDFLAGS+=" -Wl,-Bsymbolic-functions"
+
+  arch-meson $pkgname build "${meson_options[@]}"
+  meson compile -C build
+}
+
+_check() (
+  export XDG_RUNTIME_DIR="$PWD/rdir"
+  mkdir -p -m 700 "$XDG_RUNTIME_DIR"
+
+  meson test -C build --print-errorlogs -t 3
+)
+
+check() {
+  dbus-run-session xvfb-run -s '-nolisten local +iglx -noreset' \
+    bash -c "$(declare -f _check); _check"
+}
+
+package() {
+  depends+=(libmutter-12.so)
+  meson install -C build --destdir "$pkgdir"
+}
+
+# vim:set sw=2 sts=-1 et:

Reply via email to