From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 14 06:30:50 2024 Received: (at submit) by debbugs.gnu.org; 14 Feb 2024 11:30:50 +0000 Received: from localhost ([127.0.0.1]:50613 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1raDTW-0007iZ-11 for submit@debbugs.gnu.org; Wed, 14 Feb 2024 06:30:50 -0500 Received: from lists.gnu.org ([209.51.188.17]:33532) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1raDTT-0007iQ-BA for submit@debbugs.gnu.org; Wed, 14 Feb 2024 06:30:48 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1raDTB-0003uA-1f for guix-patches@gnu.org; Wed, 14 Feb 2024 06:30:29 -0500 Received: from relay7-d.mail.gandi.net ([2001:4b98:dc4:8::227]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1raDT8-0002aw-BN for guix-patches@gnu.org; Wed, 14 Feb 2024 06:30:28 -0500 Received: by mail.gandi.net (Postfix) with ESMTPSA id E599620002; Wed, 14 Feb 2024 11:30:18 +0000 (UTC) From: Allan Adair To: guix-patches@gnu.org Subject: [PATCH] gnu: vpn-slice: Fix substitution paths for "ip" and "iptables". Date: Wed, 14 Feb 2024 12:29:25 +0100 Message-ID: <49af58fd668de419521436b4c9e6e181be57d2dc.1707910165.git.allan@adair.no> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-GND-Sasl: allan@adair.no Received-SPF: pass client-ip=2001:4b98:dc4:8::227; envelope-from=allan@adair.no; helo=relay7-d.mail.gandi.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, 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-Spam-Score: -3.4 (---) X-Debbugs-Envelope-To: submit Cc: Allan Adair X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.4 (----) vpn-slice expects commands "ip" and "iptables" to be found according to FHS paths. A previous patch introduced an incorrect path for iptables because of overlapping matches for "/sbin/ip" and "/sbin/iptables". * gnu/packages/vpn.scm (vpn-slice)[arguments]: Fix substitution paths in "vpn_slice/linux.py" for "ip" and "iptables" commands. Change-Id: I68ffc002a3aa5ebcdff2fa6ecc64b6b1231a17e7 --- gnu/packages/vpn.scm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gnu/packages/vpn.scm b/gnu/packages/vpn.scm index 7823ef19eb..758356f404 100644 --- a/gnu/packages/vpn.scm +++ b/gnu/packages/vpn.scm @@ -1261,10 +1261,10 @@ (define-public vpn-slice (add-after 'unpack 'patch-FHS-file-names (lambda _ (substitute* "vpn_slice/linux.py" - (("/sbin/iptables") - (which "iptables")) - (("/sbin/ip") - (which "ip")))))))) + (("'/sbin/iptables'") + (string-append "'" (which "iptables") "'")) + (("'/sbin/ip'") + (string-append "'" (which "ip") "'")))))))) (inputs (list python-dnspython python-setproctitle iproute iptables)) (home-page "https://github.com/dlenski/vpn-slice") (synopsis "Split tunneling replacement for vpnc-script") base-commit: 2ba2875dbda4b080fcad4e6d672bb4104d59dd0c -- 2.41.0