From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id QDhoKYvirl7cbwAA0tVLHw (envelope-from ) for ; Sun, 03 May 2020 15:26:03 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id gF+XGpbirl6vPgAAbx9fmQ (envelope-from ) for ; Sun, 03 May 2020 15:26:14 +0000 Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:470:142::17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 93217944544 for ; Sun, 3 May 2020 15:26:11 +0000 (UTC) Received: from localhost ([::1]:58162 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jVGVP-0007gx-Pg for larch@yhetil.org; Sun, 03 May 2020 11:26:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52122) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jVGVH-0007gc-K1 for bug-guix@gnu.org; Sun, 03 May 2020 11:26:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:46134) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jVGVG-0006qj-BG for bug-guix@gnu.org; Sun, 03 May 2020 11:26:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jVGVG-0005pq-6M for bug-guix@gnu.org; Sun, 03 May 2020 11:26:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#41025: blueman does not start Resent-From: Raghav Gururajan Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sun, 03 May 2020 15:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41025 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Pierre Neidhardt X-Debbugs-Original-Cc: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.158851953822399 (code B ref -1); Sun, 03 May 2020 15:26:02 +0000 Received: (at submit) by debbugs.gnu.org; 3 May 2020 15:25:38 +0000 Received: from localhost ([127.0.0.1]:57680 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jVGUj-0005p4-8J for submit@debbugs.gnu.org; Sun, 03 May 2020 11:25:37 -0400 Received: from lists.gnu.org ([209.51.188.17]:34344) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jVGUX-0005ok-HA for submit@debbugs.gnu.org; Sun, 03 May 2020 11:25:28 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51802) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jVGUW-0007EF-Ot for bug-guix@gnu.org; Sun, 03 May 2020 11:25:17 -0400 Received: from knopi.disroot.org ([178.21.23.139]:58696) by eggs.gnu.org with esmtps (TLS1.2:DHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1jVGUU-00063s-7V for bug-guix@gnu.org; Sun, 03 May 2020 11:25:16 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 52ADD25617; Sun, 3 May 2020 17:25:07 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id pk6fXsPqJc40; Sun, 3 May 2020 17:25:04 +0200 (CEST) Date: Sun, 3 May 2020 11:24:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1588519504; bh=wc79yK1KSEmTZV/4FbZNKFvD2UduWyUjL85GGp6YYYI=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=bJIyOW9PoS/5gv8w76ARAVX23TWDku19Gl95ZhDH1XmY+t5iqa7VM4FsRa8FA9Wud l/NsuipgBLy0yYz2iIed1ijCIS6Q48TjfJs2JFa+ccx0TsyQJOdTyKrqX2DOWaZQ0z LYjgLrPoY7ujkecTqNHyNwOmxHdsmD1i8+c+QiDTTx6PDYvj+TGjjK+LR0/uKeXxy8 l272IsmEPyZW9ak08Stm34Mmk6EGLfhGYsPjTEC9JqYArukXpBXc4PYG0WzbdqEmHq N5te+BqfCRiW7DP5QDsLwhAiqLHI/zLBOKoTM7SQhkMmhwzRqLOKrZLfMy31TZbBUs zc8v5Ncm+QmxA== From: Raghav Gururajan Message-ID: <20200503112441.66903f8c.raghavgururajan@disroot.org> In-Reply-To: <87v9leb2gx.fsf@ambrevar.xyz> References: <87lfmacv7s.fsf@ambrevar.xyz> <20200502095619.35385ab1.raghavgururajan@disroot.org> <87v9leb2gx.fsf@ambrevar.xyz> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="MP_/QoH=dufioucoOTS_V26W.Jl" Received-SPF: pass client-ip=178.21.23.139; envelope-from=raghavgururajan@disroot.org; helo=knopi.disroot.org X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/03 11:25:07 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-Spam-Score: 0.9 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -0.1 (/) X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 41025@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Scanner: scn0 X-Spam-Score: 1.59 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=disroot.org header.s=mail header.b=bJIyOW9P; dmarc=fail reason="SPF not aligned (relaxed)" header.from=disroot.org (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 2001:470:142::17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Scan-Result: default: False [1.59 / 13.00]; GENERIC_REPUTATION(0.00)[-0.49377640627503]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2001:470:142::/48:c]; MV_CASE(0.50)[]; HAS_ATTACHMENT(0.00)[]; IP_REPUTATION_HAM(0.00)[asn: 22989(0.14), country: US(-0.00), ip: 2001:470:142::17(-0.49)]; DWL_DNSWL_FAIL(0.00)[2001:470:142::17:server fail]; R_DKIM_REJECT(1.00)[disroot.org:s=mail]; MX_GOOD(-0.50)[cached: eggs.gnu.org]; RCPT_COUNT_TWO(0.00)[2]; DKIM_TRACE(0.00)[disroot.org:-]; MAILLIST(-0.20)[mailman]; FORGED_RECIPIENTS_MAILLIST(0.00)[]; RCVD_IN_DNSWL_FAIL(0.00)[2001:470:142::17:server fail]; MIME_TRACE(0.00)[0:+,1:+,2:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:22989, ipnet:2001:470:142::/48, country:US]; TAGGED_FROM(0.00)[larch=yhetil.org]; FROM_NEQ_ENVFROM(0.00)[raghavgururajan@disroot.org,bug-guix-bounces@gnu.org]; ARC_NA(0.00)[]; URIBL_BLOCKED(0.00)[disroot.org:email]; FROM_HAS_DN(0.00)[]; MIME_GOOD(-0.10)[multipart/mixed,text/plain,text/x-patch]; HAS_LIST_UNSUB(-0.01)[]; MID_CONTAINS_FROM(1.00)[]; RCVD_COUNT_SEVEN(0.00)[11]; FORGED_SENDER_MAILLIST(0.00)[]; DMARC_POLICY_SOFTFAIL(0.10)[disroot.org : SPF not aligned (relaxed),none] X-TUID: X3hr8dl1DRLe --MP_/QoH=dufioucoOTS_V26W.Jl Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi Pierre! > Thanks! Sadly your patch does not fix the issue for me. > > You can reproduce with > > --8<---------------cut here---------------start------------->8--- > ./pre-inst-env guix environment --pure --ad-hoc blueman -- blueman-tray > --8<---------------cut here---------------end--------------->8--- > > I had a quick look at the package definition: it's a > glib-or-gtk-build-system but the package is in python, so you need to > set the PYTHONPATH manually I think. Look at the other GNOME package > written in Python, my guess is that it's the same thing. Thanks! I was able to fix "gi" error. But "No module 'blueman', I could not fix. Any ideas? I have attached a new patch. Regards, RG. --MP_/QoH=dufioucoOTS_V26W.Jl Content-Type: text/x-patch Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=0004-gnu-blueman-Test-patch.patch >From 19cdddadcff5fa940c8e7e6ef1a31040a4412db5 Mon Sep 17 00:00:00 2001 From: Raghav Gururajan Date: Sun, 3 May 2020 11:21:48 -0400 Subject: [PATCH 4/4] gnu: blueman: Test patch. * gnu/packages/networking.scm (blueman): Test patch. --- gnu/packages/networking.scm | 119 +++++++++++++++++++++++++++++++++++- 1 file changed, 118 insertions(+), 1 deletion(-) diff --git a/gnu/packages/networking.scm b/gnu/packages/networking.scm index 94b521584f..b624149b23 100644 --- a/gnu/packages/networking.scm +++ b/gnu/packages/networking.scm @@ -143,7 +143,124 @@ "--enable-polkit" "--disable-appindicator" ; Deprecated "--with-systemdsystemunitdir=no" ; Not required - "--with-systemduserunitdir=no"))) ; Not required + "--with-systemduserunitdir=no") ; Not required + #:phases + (modify-phases %standard-phases + ;; Python references are not being patched in patch-phase of build; + ;; despite using python-wrapper as input. So patching them manually. + (add-after 'unpack 'patch-python-references + (lambda* (#:key inputs #:allow-other-keys) + (substitute* "apps/blueman-adapters.in" + (("@PYTHON@") (string-append (assoc-ref inputs "python") + "/bin/python3.7"))) + (substitute* "apps/blueman-applet.in" + (("@PYTHON@") (string-append (assoc-ref inputs "python") + "/bin/python3.7"))) + (substitute* "apps/blueman-assistant.in" + (("@PYTHON@") (string-append (assoc-ref inputs "python") + "/bin/python3.7"))) + (substitute* "apps/blueman-manager.in" + (("@PYTHON@") (string-append (assoc-ref inputs "python") + "/bin/python3.7"))) + (substitute* "apps/blueman-mechanism.in" + (("@PYTHON@") (string-append (assoc-ref inputs "python") + "/bin/python3.7"))) + (substitute* "apps/blueman-report.in" + (("@PYTHON@") (string-append (assoc-ref inputs "python") + "/bin/python3.7"))) + (substitute* "apps/blueman-rfcomm-watcher.in" + (("@PYTHON@") (string-append (assoc-ref inputs "python") + "/bin/python3.7"))) + (substitute* "apps/blueman-sendto.in" + (("@PYTHON@") (string-append (assoc-ref inputs "python") + "/bin/python3.7"))) + (substitute* "apps/blueman-services.in" + (("@PYTHON@") (string-append (assoc-ref inputs "python") + "/bin/python3.7"))) + (substitute* "apps/blueman-tray.in" + (("@PYTHON@") (string-append (assoc-ref inputs "python") + "/bin/python3.7"))) + #t)) + (add-after 'glib-or-gtk-wrap 'wrap-blueman-adapters + (lambda* (#:key outputs #:allow-other-keys) + (let + ((bm-adap + (string-append + (assoc-ref outputs "out") "/bin/blueman-adapters"))) + (wrap-program bm-adap + `("PYTHONPATH" = (,(getenv "PYTHONPATH"))) + `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH")))) + #t))) + (add-after 'glib-or-gtk-wrap 'wrap-blueman-applet + (lambda* (#:key outputs #:allow-other-keys) + (let + ((bm-app + (string-append + (assoc-ref outputs "out") "/bin/blueman-applet"))) + (wrap-program bm-app + `("PYTHONPATH" = (,(getenv "PYTHONPATH"))) + `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH")))) + #t))) + (add-after 'glib-or-gtk-wrap 'wrap-blueman-assistant + (lambda* (#:key outputs #:allow-other-keys) + (let + ((bm-ass + (string-append + (assoc-ref outputs "out") "/bin/blueman-assistant"))) + (wrap-program bm-ass + `("PYTHONPATH" = (,(getenv "PYTHONPATH"))) + `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH")))) + #t))) + (add-after 'glib-or-gtk-wrap 'wrap-blueman-manager + (lambda* (#:key outputs #:allow-other-keys) + (let + ((bm-man + (string-append + (assoc-ref outputs "out") "/bin/blueman-manager"))) + (wrap-program bm-man + `("PYTHONPATH" = (,(getenv "PYTHONPATH"))) + `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH")))) + #t))) + (add-after 'glib-or-gtk-wrap 'wrap-blueman-report + (lambda* (#:key outputs #:allow-other-keys) + (let + ((bm-rep + (string-append + (assoc-ref outputs "out") "/bin/blueman-report"))) + (wrap-program bm-rep + `("PYTHONPATH" = (,(getenv "PYTHONPATH"))) + `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH")))) + #t))) + (add-after 'glib-or-gtk-wrap 'wrap-blueman-sendto + (lambda* (#:key outputs #:allow-other-keys) + (let + ((bm-st + (string-append + (assoc-ref outputs "out") "/bin/blueman-sendto"))) + (wrap-program bm-st + `("PYTHONPATH" = (,(getenv "PYTHONPATH"))) + `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH")))) + #t))) + (add-after 'glib-or-gtk-wrap 'wrap-blueman-services + (lambda* (#:key outputs #:allow-other-keys) + (let + ((bm-serv + (string-append + (assoc-ref outputs "out") "/bin/blueman-services"))) + (wrap-program bm-serv + `("PYTHONPATH" = (,(getenv "PYTHONPATH"))) + `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH")))) + #t))) + (add-after 'glib-or-gtk-wrap 'wrap-blueman-tray + (lambda* (#:key outputs #:allow-other-keys) + (let + ((bm-tray + (string-append + (assoc-ref outputs "out") "/bin/blueman-tray"))) + (wrap-program bm-tray + `("PYTHONPATH" = (,(getenv "PYTHONPATH"))) + `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH")))) + #t)))))) (native-inputs `(("cython" ,python-cython) ("glib:bin" ,glib "bin") -- 2.26.2 --MP_/QoH=dufioucoOTS_V26W.Jl--