From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id sBNsKiy9B2OV+QAAbAwnHQ (envelope-from ) for ; Thu, 25 Aug 2022 20:19:24 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id KP+AKiy9B2MVbAEA9RJhRA (envelope-from ) for ; Thu, 25 Aug 2022 20:19:24 +0200 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 5698EDB60 for ; Thu, 25 Aug 2022 20:19:24 +0200 (CEST) Received: from localhost ([::1]:52916 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oRHRq-0002vn-TM for larch@yhetil.org; Thu, 25 Aug 2022 14:19:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35242) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oRHRW-0002vG-TX for guix-patches@gnu.org; Thu, 25 Aug 2022 14:19:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:33258) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oRHRW-00085X-Jw for guix-patches@gnu.org; Thu, 25 Aug 2022 14:19:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oRHRW-0007zi-Al for guix-patches@gnu.org; Thu, 25 Aug 2022 14:19:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#57413] [PATCH] gnu: snakemake-7: Fix cluster execution bug Resent-From: Konrad Hinsen Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 25 Aug 2022 18:19:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 57413 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 57413@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.166145149330665 (code B ref -1); Thu, 25 Aug 2022 18:19:02 +0000 Received: (at submit) by debbugs.gnu.org; 25 Aug 2022 18:18:13 +0000 Received: from localhost ([127.0.0.1]:51240 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oRHQi-0007yW-Lf for submit@debbugs.gnu.org; Thu, 25 Aug 2022 14:18:12 -0400 Received: from lists.gnu.org ([209.51.188.17]:33644) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oRHQf-0007yO-S4 for submit@debbugs.gnu.org; Thu, 25 Aug 2022 14:18:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51718) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oRHQb-0002cL-KY for guix-patches@gnu.org; Thu, 25 Aug 2022 14:18:09 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:57947) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oRHQZ-00080N-FF for guix-patches@gnu.org; Thu, 25 Aug 2022 14:18:05 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id E67385C0086; Thu, 25 Aug 2022 14:18:00 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Thu, 25 Aug 2022 14:18:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.net; h= cc:content-type:date:date:from:from:in-reply-to:message-id :mime-version:reply-to:sender:subject:subject:to:to; s=fm1; t= 1661451480; x=1661537880; bh=67ZkwHcclHlApbB0zFT05psKgxfVWxYImay xpfZekqk=; b=fQa1lOLrHa4rgtXTT2crmribTg1md2U6x2uSoWis/ZmxrEqxUnv 4vwW8JFRXcjYh/KG3MwpvcO3dFIiexeJ0q3zeN8gFdo9NsLEUu2XcWqRQys3N2fd c9+jQD6abSp6bUo3v7TsanflA5FOAQ+GsAtvivX5ss5ubEugzevjtHleGFIhAblm qUTcwLNhI4kt8BCnIY/xO9QotTH7DyaJpNp5foecHGizDdsH8lg6vAN0BJmqXdNX xeE7tEfgXi9JdwaHfkr1FLoV33CX0ZAZcAtLTaHvM5AW2CV6voitPXKhcC6pUz4j tx49vQ+Ze9ZvMzsEv+QWvVOZuJ573YGprAQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:message-id:mime-version :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1661451480; x= 1661537880; bh=67ZkwHcclHlApbB0zFT05psKgxfVWxYImayxpfZekqk=; b=r IoHWRqxYhBa4M+R2sty+XNWvABk8rAVe9uOGdMBgiJc8hXe5yNEElU73NyLOUkVR IJqP8ggQ5tgpGglsxPnH3PbYX17b5vO88dG/xtQfdymCVbNCQeKDvILk3+Q+jWPc hG5omF2pH6MpDMkk7Cm+PXhcIcGdBQWw139JtA3TxwFInKP5bgCLuVvRoLRoUr/B VeOutwmlbXfHjUYzyc5wQL7pdMdXFaOAUpJA1FM2MRlE5GlmzJ0UiXlS4qaxx/pj NQArd1QLbLWOhyz9RqbVwWymkW30SR0hJTf/tHlVxcg8009rCg5gsJcPf2Lc5Gkq m1j6tvy1oklvI1kgkHSYg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrvdejfedguddvvdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkfggtgesthdtredttd dttdenucfhrhhomhepmfhonhhrrgguucfjihhnshgvnhcuoehkohhnrhgrugdrhhhinhhs vghnsehfrghsthhmrghilhdrnhgvtheqnecuggftrfgrthhtvghrnhepveefveeutdeitd ettefggeehvdduieelkefgheekheduteevheegueetueevjeehnecuvehluhhsthgvrhfu ihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepkhhonhhrrggurdhhihhnshgvnh esfhgrshhtmhgrihhlrdhnvght X-ME-Proxy: Feedback-ID: i184641e2:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 25 Aug 2022 14:17:59 -0400 (EDT) From: Konrad Hinsen Date: Thu, 25 Aug 2022 20:17:55 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=66.111.4.25; envelope-from=konrad.hinsen@fastmail.net; helo=out1-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1661451564; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:list-id:list-help:list-unsubscribe:list-subscribe: list-post:dkim-signature; bh=67ZkwHcclHlApbB0zFT05psKgxfVWxYImayxpfZekqk=; b=ml2icn2WckcklhCAokewAiJZxnlCG0jBAoxR/gh3fIgzbVMdJUW0/y+AgnXlTNdedxKPug 2Tn/Bd2KwTB3jhXA9xOOUFdTuYvSFyUQNRRZGBryGb1CsfnG52Y7kvROiElPMDwgSIg3Vm /B+Q7x05d1VfNkxl9VMYQToeAogeX29CWjyewQp/joTmBEWBoiqyhrw/EerSxMeEpL4qtm OlHdtBacEnNMLo7E/Kltlnv2o7EvgBfhljEWfOFCqKCeux+paw6q29VBBxgEEUnfXLWfn+ x4UoiQRiXKjT/CLM94sAkzOjf82+ugWOftbXt3l6LPWqrK3+dqO3BrYxVkM8hA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1661451564; a=rsa-sha256; cv=none; b=BzzjV5hC/XVcN6g64E7uhVNzGhpUbzYqQhuIIoH7Mz8GL7+VHXBXka22ZwzLbl2NQjE+mF qBkNolk4H97bg53AT4tN0lxWEhcZCmVPezkHnmFrN/kGtldABCzE0S6AFW0BptHqyZn55b M/V6CEqvVamo0n+ypvRbqddInlE19mZOUOBo1xFvIJh3S2km83Afnb0UcACakoAmsej/ec M6IqODvD+H324mWAt6ADnK5FBbmEmdJqtAvIJi1QWnjgaYxD+9oAeLv64+WvKobLI24wFt /mSGIGWnb+z4h0y5dreZFRx65SfhJaCteIp+b7jkBOYkH+X4Rf7aYl+8VdE2sQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=fastmail.net header.s=fm1 header.b=fQa1lOLr; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm1 header.b="r IoHWRq"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=fastmail.net (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 4.39 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=fastmail.net header.s=fm1 header.b=fQa1lOLr; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm1 header.b="r IoHWRq"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=fastmail.net (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 5698EDB60 X-Spam-Score: 4.39 X-Migadu-Scanner: scn0.migadu.com X-TUID: v2zlXg3an2+u * gnu/packages/python-xyz.scm (snakemake-7): Revise the patch for the cluster execution script --- gnu/packages/python-xyz.scm | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index f7971b75fa..cb3eba77aa 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -9784,15 +9784,14 @@ (define-public snakemake-7 ;; For cluster execution Snakemake will call Python. Since there is ;; no suitable GUIX_PYTHONPATH set, cluster execution will fail. We ;; fix this by calling the snakemake wrapper instead. - - ;; XXX: There is another instance of sys.executable on line 692, but - ;; it is not clear how to patch it. (add-after 'unpack 'call-wrapper-not-wrapped-snakemake (lambda* (#:key outputs #:allow-other-keys) (substitute* "snakemake/executors/__init__.py" - (("\\{sys.executable\\} -m snakemake") - (string-append (assoc-ref outputs "out") - "/bin/snakemake"))))) + (("self\\.get_python_executable\\(\\),") + "") + (("\"-m snakemake\"") + (string-append "\"" (assoc-ref outputs "out") + "/bin/snakemake" "\""))))) (replace 'check (lambda* (#:key tests? #:allow-other-keys) (when tests? -- 2.37.1