From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id iMdYFnYx5mGkfwAAgWs5BA (envelope-from ) for ; Tue, 18 Jan 2022 04:18:14 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id MP8MD3Yx5mGaagAAG6o9tA (envelope-from ) for ; Tue, 18 Jan 2022 04:18:14 +0100 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 E687723A09 for ; Tue, 18 Jan 2022 04:18:13 +0100 (CET) Received: from localhost ([::1]:39532 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n9f0f-00086W-3E for larch@yhetil.org; Mon, 17 Jan 2022 22:18:13 -0500 Received: from eggs.gnu.org ([209.51.188.92]:34894) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n9f0U-00086K-6L for bug-guix@gnu.org; Mon, 17 Jan 2022 22:18:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:55642) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n9f0T-00033E-SM for bug-guix@gnu.org; Mon, 17 Jan 2022 22:18:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n9f0T-00016z-JW for bug-guix@gnu.org; Mon, 17 Jan 2022 22:18:01 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#53334: [PATCH] qbittorrent: Phase patch to use full nix path for python-gate to avoid "Missing Python Runtime" failure on search engine References: <43f27323-66b8-d72b-9ab5-062c5a27a72b@rixotstudio.cz> In-Reply-To: <43f27323-66b8-d72b-9ab5-062c5a27a72b@rixotstudio.cz> Resent-From: Jacob Hrbek Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 18 Jan 2022 03:18:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53334 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 53334@debbugs.gnu.org Received: via spool by 53334-submit@debbugs.gnu.org id=B53334.16424758304209 (code B ref 53334); Tue, 18 Jan 2022 03:18:01 +0000 Received: (at 53334) by debbugs.gnu.org; 18 Jan 2022 03:17:10 +0000 Received: from localhost ([127.0.0.1]:48545 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n9eze-00015p-Is for submit@debbugs.gnu.org; Mon, 17 Jan 2022 22:17:10 -0500 Received: from mail-4323.proton.ch ([185.70.43.23]:15523) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n9ezb-00015J-5q for 53334@debbugs.gnu.org; Mon, 17 Jan 2022 22:17:08 -0500 Date: Tue, 18 Jan 2022 03:16:52 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rixotstudio.cz; s=protonmail2; t=1642475820; bh=ef2R/XIyp25YSJxr2ORTcjfz7maLqJRAuLhakVqM/kc=; h=Date:To:From:Cc:Reply-To:Subject:Message-ID:From:To:Cc; b=yTavc7MoyMQNSpqbiZref4SfhxD+QfX5JKXsrXhODAKIEBKgif7vjvDVHIf4sQqY6 +bYzoSg7Vw2iahHYz60z+mmXyuDHj+pAIAqWNLsr0hIZFdSC+TyIMdPNM/qG3loHQJ jbiSRC7RfyHsoDr4pBU7d5h2wFd7FamNYr9iV/JakEs4KGAYQHG5vxFpPZnH7L8rHl vZkLyie7wUzcQ3JnlRetjeG2prS/7Z3jlaZXPgXcVBtDiSYVwATi8NLA9LO9cy4Hw6 biY8gdLtXLvSRpcLXiWCjgj8RPCQJltfa4fOiLXGakNiicy8HdPCzjFIzAPDAXgN1Y 18vOtfq/zS/2g== From: Jacob Hrbek Message-ID: <20220118031617.17242-1-kreyren@rixotstudio.cz> MIME-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg=pgp-sha256; boundary="------eafb24b66d29aa7e511252e0a9335334abec8de5b7dae1b8c30f76ac4bb59ee6"; charset=utf-8 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Jacob Hrbek Cc: Jacob Hrbek Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1642475894; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=ef2R/XIyp25YSJxr2ORTcjfz7maLqJRAuLhakVqM/kc=; b=VUDdZVnpmX1D1Camcfly33EnNs7w5b/52cKzlpSErvc14sMgFt49hCOrMIsz7UCAfuWOl5 uUH23nXehE+kLfg5T1MVDK3uvdqunF0jEaRqdqEcCdkeMT8N3JqgE+XtyhDVjKXkTN7vKg 1hGTwOImZM7wHo0F+/7cmPBP2nG6PaanSf7PrYBveSaaDWnoVtpZ5JGHeEl6JSF1/DLuFk YapBru5/aM78S3wf9A3Tq1DrM6j459s6G0MEoSkKuy4yXiUj+iCBSbvitRrh8PuA0zmnC3 FqGr5COp1A9hzLWDvvzWz3ci0WRdi9hiWp/uwLD/KzzgX4iLqOsgwH7lEVa3jw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1642475894; a=rsa-sha256; cv=none; b=BexGNlA/Kk0GfFECSV+YerAyhsqdsCtUpWvGI93YDxCsTvyujIhhC4SXRuGYtGfFecH9XX ZGmAZLJmR41OMs7T3h56R1Z20WRVUkoWKmoiIwt11TWOMAA2AX3Lw0/hjDTrC91gEmQqrO goeLcWYZ05ZY15oV5fD85Ysp+HxzdppIPEtnMsZWHZ6JnB6nY6FVoKPviaXc/kKGGS0eib Neyc0IyNoy7OSYkERYsJeUuqZmRRO+80i1/cLsx4A0f9YSy7W7nAkZsPmB/pgnck+jwj0A VfwwZ5T0DPpAkj51Eq8bD56kCyfCLsGcUYASbmWER1sj0HE4ud9t2sqFlQiH2A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=rixotstudio.cz header.s=protonmail2 header.b=yTavc7Mo; dmarc=fail reason="SPF not aligned (relaxed)" header.from=rixotstudio.cz (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.02 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=rixotstudio.cz header.s=protonmail2 header.b=yTavc7Mo; dmarc=fail reason="SPF not aligned (relaxed)" header.from=rixotstudio.cz (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: E687723A09 X-Spam-Score: -3.02 X-Migadu-Scanner: scn1.migadu.com X-TUID: HXwr2Ak99M9O This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --------eafb24b66d29aa7e511252e0a9335334abec8de5b7dae1b8c30f76ac4bb59ee6 Content-Type: multipart/mixed; boundary=23a2cee8cff26ee1a68470c720eb1d3b9f20d58709a742259b4ce5d2a556 From: Jacob Hrbek To: 53334@debbugs.gnu.org Cc: Jacob Hrbek Subject: [PATCH] qbittorrent: Phase patch to use full nix path for python-gate to avoid "Missing Python Runtime" failure on search engine Date: Tue, 18 Jan 2022 04:16:17 +0100 Message-Id: <20220118031617.17242-1-kreyren@rixotstudio.cz> X-Mailer: git-send-email 2.34.0 MIME-Version: 1.0 --23a2cee8cff26ee1a68470c720eb1d3b9f20d58709a742259b4ce5d2a556 Content-Transfer-Encoding: 8bit Content-Disposition: Content-Type: text/plain; charset=UTF-8 Fixes: https://issues.guix.gnu.org/53334 Signed-off-by: Jacob Hrbek --- gnu/packages/bittorrent.scm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gnu/packages/bittorrent.scm b/gnu/packages/bittorrent.scm index fa88c91163..f222b87692 100644 --- a/gnu/packages/bittorrent.scm +++ b/gnu/packages/bittorrent.scm @@ -491,6 +491,13 @@ (define-public qbittorrent (guix build qt-utils)) #:phases (modify-phases %standard-phases + ;; The package is checking for a `python` or `python3` executable in an environment variable `PATH` which causes the search engine to fail with "Missing Python Runtime" this phase substitutes the python executables with full path in the nix store executable -- https://issues.guix.gnu.org/53334 + ;; FIXME-QA(Krey): This codeblock depends on upstream's declaration of https://github.com/qbittorrent/qBittorrent/blob/master/src/base/utils/foreignapps.cpp#L277, if the fi le declaration changes then this phase will be malfunction -> Consider optimizing the upstream code for nix userland + (add-after 'unpack 'python-path-compat + (lambda* (#:key inputs #:allow-other-keys) + (substitute* "src/base/utils/foreignapps.cpp" + (("if \\(testPythonInstallation\\(\"python3\", pyInfo\\)\\)") + (string-append "if (testPythonInstallation(\"" (search-input-file inputs "/bin/python") "\", pyInfo))"))))) (add-after 'install 'wrap-qt (lambda* (#:key outputs inputs #:allow-other-keys) (let ((out (assoc-ref outputs "out"))) -- 2.34.0 --23a2cee8cff26ee1a68470c720eb1d3b9f20d58709a742259b4ce5d2a556 Content-Transfer-Encoding: base64 Content-Disposition: attachment; name="publickey - kreyren@rixotstudio.cz - 1677db82.asc"; filename="publickey - kreyren@rixotstudio.cz - 1677db82.asc" Content-Type: application/pgp-keys; name="publickey - kreyren@rixotstudio.cz - 1677db82.asc"; filename="publickey - kreyren@rixotstudio.cz - 1677db82.asc" LS0tLS1CRUdJTiBQR1AgUFVCTElDIEtFWSBCTE9DSy0tLS0tClZlcnNpb246IEdvcGVuUEdQIDIu Mi4yCkNvbW1lbnQ6IGh0dHBzOi8vZ29wZW5wZ3Aub3JnCgp4ak1FWUFsM0ZoWUpLd1lCQkFIYVJ3 OEJBUWRBUUtBcG1kUjh0RzlhS0VkeHdISi9aS08yQ3ZaTVJXUHRCTk5HCnFKVWhwMkxOTDJ0eVpY bHlaVzVBY21sNGIzUnpkSFZrYVc4dVkzb2dQR3R5WlhseVpXNUFjbWw0YjNSemRIVmsKYVc4dVkz byt3bzhFRUJZS0FDQUZBbUFKZHhZR0N3a0hDQU1DQkJVSUNnSUVGZ0lCQUFJWkFRSWJBd0llQVFB aApDUkN0MDMwVXEwTDhxUlloQkJaMzI0S1RqS2hsYzRFakI2M1RmUlNyUXZ5cDU3UUEvMHRsYmRu Q0l6cmVLWG12ClcyWFNZWHpBSm90SmR4Q3pFK1hBVE0rcVBES3pBUUNjYkhwN3l3NitBcm5nZVN0 R0ZuL29saHhUUGRwdTY0MUMKTEdpZ1BtRW9CYzQ0QkdBSmR4WVNDaXNHQVFRQmwxVUJCUUVCQjBE YWlJM2pRZlNvaTNEWjQvTmZteEdkc1Jzdgo5L0JxTWdXNWo2amRCcWt5SUFNQkNBZkNlQVFZRmdn QUNRVUNZQWwzRmdJYkRBQWhDUkN0MDMwVXEwTDhxUlloCkJCWjMyNEtUaktobGM0RWpCNjNUZlJT clF2eXBIY0VCQU9ReFMvSi9VTTBlZThrMmpibGlXZC9RMElkK1g4VUgKQlhoeXFWUmMyMnFyQVFE TEhjVzk3V1FiU0pGbzE5a3d0NzBPeUhlcEY2TFdwREQwUHVJU1pENklDZz09Cj05a1pnCi0tLS0t RU5EIFBHUCBQVUJMSUMgS0VZIEJMT0NLLS0tLS0= --23a2cee8cff26ee1a68470c720eb1d3b9f20d58709a742259b4ce5d2a556-- --------eafb24b66d29aa7e511252e0a9335334abec8de5b7dae1b8c30f76ac4bb59ee6 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: ProtonMail wnUEARYIACcFAmHmMSIJkK3TfRSrQvypFqEEFnfbgpOMqGVzgSMHrdN9FKtC /KkAAF0kAPsFYX2w6qhGZwGEe43CdVHD6yIWd7nL3mAlzFxs5kSnkgEAzcnn 7rfKqm9iZRUu0gthklRKW7T0TMqbZ10D1vPFvwE= =bmNA -----END PGP SIGNATURE----- --------eafb24b66d29aa7e511252e0a9335334abec8de5b7dae1b8c30f76ac4bb59ee6--