gnome-* ver. bump

This commit is contained in:
Rmys
2023-02-15 17:12:38 +03:00
parent 18a93efa39
commit b28e379702
7 changed files with 44 additions and 16 deletions
+2 -3
View File
@@ -11,11 +11,9 @@ from pisi.actionsapi import get
def setup():
shelltools.system("sed 's@/bin/sh@/bin/sh -l@' -i gnome-session/gnome-session.in")
shelltools.system("""sed -i "/ systemd_dep/,+3d;/if enable_systemd/a \ " meson.build""")
shelltools.system("""sed -i "/ systemd_dep/,+3d;/if enable_systemd/a \ systemd_userunitdir = '/tmp\'" meson.build""")
mesontools.configure("--buildtype=release \
-Dsystemd=false \
-Dsystemd_session=disable \
-Dsystemd_journal=false")
def build():
@@ -24,4 +22,5 @@ def build():
def install():
mesontools.install()
pisitools.removeDir("/tmp")
#shelltools.system("rm -rv %s/tmp/{*.d,*.target,*.service}" % get.installDIR())
@@ -22,23 +22,23 @@ index ef5132c6..7f68aaae 100644
+assert(not (enable_systemd and enable_elogind), 'Can not support systemd and elogind at once')
+if enable_systemd or enable_elogind or enable_consolekit
session_bin_deps += dependency('gio-unix-2.0', version: glib_req_version)
# Check for systemd
@@ -152,6 +154,10 @@ if enable_systemd or enable_consolekit
endif
session_tracking = 'systemd'
+ elif enable_elogind
+ libelogind_dep = dependency('libelogind', version: '>= 239.4')
+ session_bin_deps += libelogind_dep
+ session_tracking = 'elogind'
endif
# Check for ConsoleKit
@@ -161,7 +167,7 @@ if enable_systemd or enable_consolekit
session_bin_deps += dbus_glib_dep
- if enable_systemd
+ if enable_systemd or enable_elogind
session_tracking += ' (with fallback to ConsoleKit)'
@@ -63,5 +63,6 @@ index 4c05dc6e..512d1528 100644
option('session_selector', type: 'boolean', value: false, description: 'enable building a custom session selector dialog')
option('systemd', type: 'boolean', value: true, description: 'Use systemd')
option('systemd_session', type: 'combo', choices: ['disable', 'enable', 'default'], value: 'default', description: 'Whether to include systemd session support and use it by default')
--
--
2.26.2
+3 -3
View File
@@ -29,10 +29,10 @@
<Dependency>meson</Dependency>
</BuildDependencies>
<Patches>
<Patch>0001-revert-autostart-app-Strip-blacklisted-variables-fro.patch</Patch>
<!--Patch>0001-revert-autostart-app-Strip-blacklisted-variables-fro.patch</Patch>
<Patch>include-profile-env-variables.patch</Patch>
<Patch>no-systemd-dep.patch</Patch>
<Patch>support-elogind.patch</Patch>
<Patch>no-systemd-dep.patch</Patch-->
<!-- <Patch>support-elogind.patch</Patch> -->
</Patches>
</Source>