From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id YI3LAF3Jt16ODgAA0tVLHw (envelope-from ) for ; Sun, 10 May 2020 09:29:01 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id aLS8HGrJt15vNQAA1q6Kng (envelope-from ) for ; Sun, 10 May 2020 09:29:14 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.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 2638794050F for ; Sun, 10 May 2020 09:29:12 +0000 (UTC) Received: from localhost ([::1]:48440 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jXiGl-0004W5-Lf for larch@yhetil.org; Sun, 10 May 2020 05:29:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45108) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jXiGc-0004Vl-9S for bug-guix@gnu.org; Sun, 10 May 2020 05:29:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:37388) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jXiGc-00052H-07 for bug-guix@gnu.org; Sun, 10 May 2020 05:29:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jXiGb-0004I4-RZ for bug-guix@gnu.org; Sun, 10 May 2020 05:29:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#41025: blueman does not start Resent-From: Pierre Neidhardt Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sun, 10 May 2020 09:29:01 +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: Raghav Gururajan X-Debbugs-Original-Cc: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.158910288416416 (code B ref -1); Sun, 10 May 2020 09:29:01 +0000 Received: (at submit) by debbugs.gnu.org; 10 May 2020 09:28:04 +0000 Received: from localhost ([127.0.0.1]:48934 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jXiFg-0004Gi-4t for submit@debbugs.gnu.org; Sun, 10 May 2020 05:28:04 -0400 Received: from lists.gnu.org ([209.51.188.17]:53670) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jXiFe-0004Ga-Ct for submit@debbugs.gnu.org; Sun, 10 May 2020 05:28:02 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45022) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jXiFe-0004Sv-8E for bug-guix@gnu.org; Sun, 10 May 2020 05:28:02 -0400 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:55019) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jXiFc-0003Gv-FT for bug-guix@gnu.org; Sun, 10 May 2020 05:28:01 -0400 X-Originating-IP: 78.199.129.170 Received: from mimimi (moi44-1-78-199-129-170.fbx.proxad.net [78.199.129.170]) (Authenticated sender: mail@ambrevar.xyz) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id 2C41AE0004; Sun, 10 May 2020 09:27:54 +0000 (UTC) From: Pierre Neidhardt In-Reply-To: <2beca260-cf82-3099-8d4f-c246314d7121@disroot.org> References: <87lfmacv7s.fsf@ambrevar.xyz> <20200502095619.35385ab1.raghavgururajan@disroot.org> <87v9leb2gx.fsf@ambrevar.xyz> <20200503112441.66903f8c.raghavgururajan@disroot.org> <87a72pyp1h.fsf@ambrevar.xyz> <20200503231853.5dc44352.raghavgururajan@disroot.org> <87pnbkxf1h.fsf@ambrevar.xyz> <878si1sc86.fsf@ambrevar.xyz> <2beca260-cf82-3099-8d4f-c246314d7121@disroot.org> Date: Sun, 10 May 2020 11:27:54 +0200 Message-ID: <878si0cf6t.fsf@ambrevar.xyz> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Received-SPF: pass client-ip=217.70.183.196; envelope-from=mail@ambrevar.xyz; helo=relay4-d.mail.gandi.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/10 05:27:56 X-ACL-Warn: Detected OS = Linux 3.11 and newer X-Spam_score_int: -8 X-Spam_score: -0.9 X-Spam_bar: / X-Spam_report: (-0.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, URIBL_SBL=1.623, URIBL_SBL_A=0.1 autolearn=_AUTOLEARN X-Spam_action: no action X-Spam-Score: 1.6 (+) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: 1.6 (+) 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: -0.61 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Scan-Result: default: False [-0.61 / 13.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; GENERIC_REPUTATION(0.00)[-0.53902288093902]; HAS_XOIP(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:209.51.188.0/24:c]; R_MISSING_CHARSET(2.50)[]; DWL_DNSWL_FAIL(0.00)[209.51.188.17:server fail]; IP_REPUTATION_HAM(0.00)[asn: 22989(0.08), country: US(-0.00), ip: 209.51.188.17(-0.54)]; MX_GOOD(-0.50)[cached: eggs.gnu.org]; RCPT_COUNT_TWO(0.00)[2]; MAILLIST(-0.20)[mailman]; SIGNED_PGP(-2.00)[]; FORGED_RECIPIENTS_MAILLIST(0.00)[]; RCVD_IN_DNSWL_FAIL(0.00)[209.51.188.17:server fail]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:22989, ipnet:209.51.188.0/24, country:US]; R_DKIM_NA(0.00)[]; TAGGED_FROM(0.00)[larch=yhetil.org]; ARC_NA(0.00)[]; FROM_NEQ_ENVFROM(0.00)[mail@ambrevar.xyz,bug-guix-bounces@gnu.org]; FROM_HAS_DN(0.00)[]; URIBL_BLOCKED(0.00)[ambrevar.xyz:url]; MID_RHS_MATCH_FROM(0.00)[]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; DMARC_NA(0.00)[ambrevar.xyz]; HAS_LIST_UNSUB(-0.01)[]; RECEIVED_SPAMHAUS_PBL(0.00)[78.199.129.170:received]; RWL_MAILSPIKE_POSSIBLE(0.00)[209.51.188.17:from]; RCVD_COUNT_SEVEN(0.00)[10]; FORGED_SENDER_MAILLIST(0.00)[] X-TUID: PaOV/7hd9Nr6 --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Sorry to disappoint :p Sadly this patch does not work yet ;) =2D You've hardcoded the python version (3.7) while you should get it dynamically from the one you are using. You can try using something like =2D-8<---------------cut here---------------start------------->8--- ,(version-major+minor (package-version python)) =2D-8<---------------cut here---------------end--------------->8--- =2D You've hardcoded paths to ~/.guix-profile which should be avoided because profiles can be anywhere. =2D-8<---------------cut here---------------start------------->8--- + (substitute* + '("apps/blueman-mechanism.in" "blueman/Functions.py") + (("/usr/bin:/bin:/usr/sbin:/sbin") + (string-append + "~/.guix-profile/bin:" + "/run/current-system/profile/bin:" + "~/.guix-profile/sbin:" + "/run/current-system/profile/sbin")) + ((":/sbin:/usr/sbin") + (string-append + ":/run/current-system/profile/sbin:" + "~/.guix-profile/sbin"))) =2D-8<---------------cut here---------------end--------------->8--- I think this should be replace by the Python equivalent of `(getenv "PATH")= `. =2D In the following comment, the ';' should be a colon. "patching" should probably be something like "we patch". =2D-8<---------------cut here---------------start------------->8--- + ;; Python references are not being patched in patch-phase of buil= d; + ;; despite using python-wrapper as input. So patching them manual= ly. =2D-8<---------------cut here---------------end--------------->8--- Stay put, almost there! :) =2D-=20 Pierre Neidhardt https://ambrevar.xyz/ --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAl63yRoACgkQm9z0l6S7 zH8Kxwf/ZxRCotabRDVyyYOgeq397iRoGG5bbfyWM8MGB3YLK5iH4iv4LRH1wJAX Rzol0W2bMc3IJGdFcIMFRf2CJQ338p3s1FInXVUWDSirVZtQRcWH7d/ls91jOJQv aTwigIBUMpmFEb2ruBuWLuqHQWhpvs/ILXyGYdJszPmvbPlemGdadA6QDcWmJ156 NZWUzQjOIEnMjG/1xHJ6BexU3qOyaOx5HvMnSzOVuO99AFFegovcNtlnqAgsD2c6 kb6mpOV1Uh/Yn9/yRQ/kGL1YMnAaKZkF0Ka18s93p+5ST2Lu/skkvw0E5MDJY4Am +Uk/aR6h6XZ/1BNEGhtfH8N4TbRWLg== =EJ1J -----END PGP SIGNATURE----- --=-=-=--