From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id CAdsORGeI2KBMQEAgWs5BA (envelope-from ) for ; Sat, 05 Mar 2022 18:29:53 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id eNROMhGeI2J41AAAG6o9tA (envelope-from ) for ; Sat, 05 Mar 2022 18:29:53 +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 691223FFA9 for ; Sat, 5 Mar 2022 18:29:53 +0100 (CET) Received: from localhost ([::1]:48194 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nQYE4-0007Hn-0g for larch@yhetil.org; Sat, 05 Mar 2022 12:29:52 -0500 Received: from eggs.gnu.org ([209.51.188.92]:57996) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nQYBL-0004JQ-Og for guix-patches@gnu.org; Sat, 05 Mar 2022 12:27:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:55072) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nQYBL-0001ix-Fp for guix-patches@gnu.org; Sat, 05 Mar 2022 12:27:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nQYBL-0001Fi-Cy for guix-patches@gnu.org; Sat, 05 Mar 2022 12:27:03 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#54266] [PATCH] samba: wrap scripts with GUIX_PYTHONPATH Resent-From: fesoj000 Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 05 Mar 2022 17:27:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 54266 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 54266@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16465012114776 (code B ref -1); Sat, 05 Mar 2022 17:27:03 +0000 Received: (at submit) by debbugs.gnu.org; 5 Mar 2022 17:26:51 +0000 Received: from localhost ([127.0.0.1]:48967 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nQYB9-0001Ex-8U for submit@debbugs.gnu.org; Sat, 05 Mar 2022 12:26:51 -0500 Received: from lists.gnu.org ([209.51.188.17]:36074) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nQTAo-0007jY-1n for submit@debbugs.gnu.org; Sat, 05 Mar 2022 07:06:10 -0500 Received: from eggs.gnu.org ([209.51.188.92]:36538) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nQTAn-0006xv-UN for guix-patches@gnu.org; Sat, 05 Mar 2022 07:06:09 -0500 Received: from [2a00:1450:4864:20::42c] (port=43880 helo=mail-wr1-x42c.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nQTAl-0004Dt-N5 for guix-patches@gnu.org; Sat, 05 Mar 2022 07:06:09 -0500 Received: by mail-wr1-x42c.google.com with SMTP id e24so3340915wrc.10 for ; Sat, 05 Mar 2022 04:06:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:from:subject :content-language:to:content-transfer-encoding; bh=+qz8SEJesP6c46pTu63/+QoImSuqQM09LAfU4fcZajY=; b=IWQKbkV8C2/vS1NmxT+maoZ2rRJRa3IMQ+yksOuSN7fIPSmdeOoXJJ0xQwdFmXWuBu jPhSjud6h4Q0JMafTPo3Azy6T+cg3HETI+XMTZKwYu84hh66XUVzgxwfFjO5EbLupFfS xfZwzPtbPLH3XpPaUsXEJH9PdBPuSIEhqAGJDrfu2L8NJNPmNDKYUknWG5sFjV0MRZKs jjMl+aIyEtpUq24UKcJIy19Opy0P/fekTkARxj5kTKjgisq19Ae1WGApwtiwnlf+TGEs ukywKltgxWQb+Mi8PzUlDejOX26jSlEMNCbjsVAJVUjfulRML8qr0blI23+5rgpK78cR 6n8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:from :subject:content-language:to:content-transfer-encoding; bh=+qz8SEJesP6c46pTu63/+QoImSuqQM09LAfU4fcZajY=; b=vU/7Y/0s6gSXacZGK85VjIG55pZ8cutgnq6bfQQ4FFwtTh1IM07LjiKAH5x9cOrgMy IbG3UyO1hBh9Qn/Ns3qPZWlFOOEA5eNaNCLnHchdfNs3Y3Vr0n3T0SK2zxzeWX6Ue3BU mVkJuVZkAItiEQAkDBqW+1GaWrTcefOKMf+yHqk4qyW4nLB5JEEm88dffGPbh3bi6wYy genODjWk+vG06Mdwrx8vf6hUPszsg3Cm2d/T1wwvg52TzmBMOOPTrFGaPxivSjKzwRA8 bmTgg2yIBWropwiDPDqIQvI4u50O0LCrJ1acfTlBp9ZJS8DGFXFyEJ2qGQoNnC9ks4Yt jcKw== X-Gm-Message-State: AOAM530W7L2SjEPsnoOKhIQ4W51ArhG4n16cuGGkm2Nl2mYSp/Jn/xvI 5/tLMCKa2D62Qn9Z/Fsng2SigwOyBRoVxO9mCT4= X-Google-Smtp-Source: ABdhPJzTQW7ZNiBtRnCEwt7m+5HFBppjOOlhCmaXyI8kVPjJPo/G3U0ZUiJrJdajudmOxQ5c3v3HKQ== X-Received: by 2002:adf:d08f:0:b0:1f0:7eaa:e541 with SMTP id y15-20020adfd08f000000b001f07eaae541mr2255767wrh.372.1646481965839; Sat, 05 Mar 2022 04:06:05 -0800 (PST) Received: from ?IPV6:2003:ee:af37:9e00:7c00:dc64:347c:6fed? (p200300eeaf379e007c00dc64347c6fed.dip0.t-ipconnect.de. [2003:ee:af37:9e00:7c00:dc64:347c:6fed]) by smtp.gmail.com with ESMTPSA id s17-20020adfdb11000000b001f02d5fea43sm7311010wri.98.2022.03.05.04.06.05 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 05 Mar 2022 04:06:05 -0800 (PST) Message-ID: <50be1b85-e682-d910-970c-14a08275278f@gmail.com> Date: Sat, 5 Mar 2022 13:06:04 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.6.1 From: fesoj000 Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::42c (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::42c; envelope-from=fesoj000@gmail.com; helo=mail-wr1-x42c.google.com X-Spam_score_int: -3 X-Spam_score: -0.4 X-Spam_bar: / X-Spam_report: (-0.4 / 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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, PDS_HP_HELO_NORDNS=0.659, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sat, 05 Mar 2022 12:26:49 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Mailman-Approved-At: Sat, 05 Mar 2022 12:29:47 -0500 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-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1646501393; 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: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=+qz8SEJesP6c46pTu63/+QoImSuqQM09LAfU4fcZajY=; b=RCauuwtIfbxku5RV/ydXu1tz3mqQwauZuZPXOlKTqnihtX26Vm/FjGIvkcICTpeEl4QuHx EmJTm+vSTbx/+eGJGzMnZ94qZshmYBH4tJx1+VAzB/k0zqHc3FXc5zss67+T2FuhS+DExG twfaEIg2HaXhJEzf/RRUK9WoZjntooNLYNwiSJAzOomzW4IaYoIAsX6kqa/kK3ImfCL5Xy uppt/+7HRdZblxdBp1Gf1ogV2fBQNru3ysVCmDELXo91tZV330luORebhzHk7FY4AeTdht XDc0YKFbsKtBTrZc8Q95o4DssbQW1cOwGZullkuWDiUHBycD01rv8SXbkfG8Hw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1646501393; a=rsa-sha256; cv=none; b=hAu4JOXG7CNJFQpxOrDSm9/YnK/wj8tqLOaCqmkiQbJdL1AJlQjETpwUT/5SrkmBbw2SYo RETrUfCAgRywtI22qUjZom1qUB7KqrFm7bn/IuXsJswoJFdOgykqlQaJ5BFiEfXQfgg1N+ YIvQHe95tvhl/yp29V2vPBlbxCLZapP1XkHYdhGY0p2evSG6qYdGrYhCFrF0gIei0kOLpa XCvySgwKn81kAfOANpjhfPEEE62TTrLvMh/fTdsYTKBmnmyd2Lb1sGBHcQk4GuCwxnegsq 8VUYNUEWQ0112BW0v5eXXPlSrlyKIoFSm7wwGBqgVJPAUaPskS3aPZqsxet73A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=IWQKbkV8; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (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.26 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=IWQKbkV8; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (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: 691223FFA9 X-Spam-Score: 4.26 X-Migadu-Scanner: scn0.migadu.com X-TUID: eSuwx+b3Heqx Tools like samba-tool depend on the python libraries installed by samba. * gnu/packages/samba.scm: new buildstep (samba)[wrap-scripts]: Add build step. --- gnu/packages/samba.scm | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/gnu/packages/samba.scm b/gnu/packages/samba.scm index b775ad905c..e7afe9330d 100644 --- a/gnu/packages/samba.scm +++ b/gnu/packages/samba.scm @@ -40,6 +40,7 @@ (define-module (gnu packages samba) #:use-module (gnu packages autotools) #:use-module (gnu packages backup) #:use-module (gnu packages base) + #:use-module (gnu packages bash) #:use-module (gnu packages check) #:use-module (gnu packages crypto) #:use-module (gnu packages cups) @@ -231,12 +232,23 @@ (define-public samba (add-before 'install 'disable-etc,var-samba-directories-setup (lambda _ (substitute* "dynconfig/wscript" - (("bld\\.INSTALL_DIR.*") ""))))) + (("bld\\.INSTALL_DIR.*") "")))) + (add-after 'install 'wrap-scripts + (lambda* (#:key outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out"))) + (for-each (lambda (file) + (wrap-program (string-append out file) + `("GUIX_PYTHONPATH" = (,(getenv "GUIX_PYTHONPATH"))))) + '("/bin/samba-tool" "/sbin/samba_dnsupdate" + "/sbin/samba_downgrade_db" "/sbin/samba-gpupdate" + "/sbin/samba_kcc" "/sbin/samba_spnupdate" + "/sbin/samba_upgradedns")))))) ;; FIXME: The test suite seemingly hangs after failing to provision the ;; test environment. #:tests? #f)) (inputs (list acl + bash-minimal cmocka cups gamin -- 2.34.0