From: "Benda XU" <heroxbd@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-wm/xpra/, x11-wm/xpra/files/
Date: Mon, 16 Dec 2019 14:11:35 +0000 (UTC) [thread overview]
Message-ID: <1576505487.c4e62235cc5085750be9c498b95570f785cf2049.heroxbd@gentoo> (raw)
commit: c4e62235cc5085750be9c498b95570f785cf2049
Author: Benda Xu <heroxbd <AT> gentoo <DOT> org>
AuthorDate: Mon Dec 16 14:11:14 2019 +0000
Commit: Benda XU <heroxbd <AT> gentoo <DOT> org>
CommitDate: Mon Dec 16 14:11:27 2019 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c4e62235
x11-wm/xpra: fix for USE=-dbus.
This patch allows xpra to be started without Python dbus module when
USE=-dbus.
Package-Manager: Portage-2.3.79, Repoman-2.3.18
Signed-off-by: Benda Xu <heroxbd <AT> gentoo.org>
x11-wm/xpra/files/xpra-3.0.2-dbus.patch | 29 +++++++++++++++++++++++++++++
x11-wm/xpra/xpra-3.0.2.ebuild | 2 ++
2 files changed, 31 insertions(+)
diff --git a/x11-wm/xpra/files/xpra-3.0.2-dbus.patch b/x11-wm/xpra/files/xpra-3.0.2-dbus.patch
new file mode 100644
index 00000000000..e0f14b8ba59
--- /dev/null
+++ b/x11-wm/xpra/files/xpra-3.0.2-dbus.patch
@@ -0,0 +1,29 @@
+Remove dbus functionality if USE=dbus is not specified.
+
+Index: xpra-3.0.2/xpra/scripts/server.py
+===================================================================
+--- xpra-3.0.2.orig/xpra/scripts/server.py
++++ xpra-3.0.2/xpra/scripts/server.py
+@@ -748,14 +748,9 @@ def do_run_server(error_cb, opts, mode,
+ log("chdir(%s)", opts.chdir)
+ os.chdir(opts.chdir)
+
+- dbus_pid, dbus_env = 0, {}
+ if not shadowing and POSIX and not OSX and not clobber:
+ no_gtk()
+ assert starting or starting_desktop or proxying
+- from xpra.server.dbus.dbus_start import start_dbus
+- dbus_pid, dbus_env = start_dbus(opts.dbus_launch)
+- if dbus_env:
+- os.environ.update(dbus_env)
+
+ display = None
+ if not proxying:
+@@ -835,7 +830,6 @@ def do_run_server(error_cb, opts, mode,
+ app.display_name = display_name
+ app.init(opts)
+ app.init_sockets(sockets)
+- app.init_dbus(dbus_pid, dbus_env)
+ if not shadowing and (xvfb_pid or clobber):
+ app.init_display_pid(xvfb_pid)
+ app.original_desktop_display = desktop_display
diff --git a/x11-wm/xpra/xpra-3.0.2.ebuild b/x11-wm/xpra/xpra-3.0.2.ebuild
index c57900d96ee..f3cb1bc10de 100644
--- a/x11-wm/xpra/xpra-3.0.2.ebuild
+++ b/x11-wm/xpra/xpra-3.0.2.ebuild
@@ -97,6 +97,8 @@ pkg_postinst() {
}
python_prepare_all() {
+ use dbus || eapply ${FILESDIR}/${PN}-3.0.2-dbus.patch
+
hprefixify -w '/os.path/' setup.py
hprefixify tmpfiles.d/xpra.conf xpra/server/server_util.py \
xpra/platform{/xposix,}/paths.py xpra/scripts/server.py
next reply other threads:[~2019-12-16 14:11 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-12-16 14:11 Benda XU [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-06-10 19:18 [gentoo-commits] repo/gentoo:master commit in: x11-wm/xpra/, x11-wm/xpra/files/ Alexey Shvetsov
2023-09-02 9:19 Benda XU
2023-05-01 7:51 James Le Cuirot
2022-08-29 14:06 James Le Cuirot
2022-02-28 23:05 James Le Cuirot
2022-01-15 23:31 James Le Cuirot
2021-10-06 12:08 James Le Cuirot
2021-09-04 10:18 James Le Cuirot
2021-07-18 10:43 Conrad Kostecki
2021-05-30 7:56 James Le Cuirot
2020-10-29 22:24 Andreas K. Hüttel
2020-01-16 11:31 Andreas K. Hüttel
2019-11-29 4:41 Benda XU
2018-12-02 22:39 Andreas K. Hüttel
2017-03-10 12:17 Michael Weber
2016-02-22 13:37 Michael Weber
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1576505487.c4e62235cc5085750be9c498b95570f785cf2049.heroxbd@gentoo \
--to=heroxbd@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox