From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id gA7LHn71zWUlAgAA62LTzQ:P1 (envelope-from ) for ; Thu, 15 Feb 2024 12:29:02 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id gA7LHn71zWUlAgAA62LTzQ (envelope-from ) for ; Thu, 15 Feb 2024 12:29:02 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=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"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1707996542; 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-transfer-encoding:content-transfer-encoding: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; bh=Qjr09KIt4KxQUiXH42QieeDqQy9RkyriPHdlbOXZhlk=; b=b44noP3gQZKemUNtRE8rlZQxFNNbMFQCq56iP1RDhEDLNHDVVpouvz8zjQTiDqm5iEcely UAjy6OUw+TzVUuus4lzZ1oWMJ6UNP5htxjO805c/rxy4ZrnHgeGtRA/A4SpNpEYccdN7b/ Ql0PMZ4ct6rOklHteNL0UWXUorLy9HikDrP/W9+CV/W56DaxjR40HurMsir6ouG8EHL9aF 5262SQSB/R3JOui590SaijdJ2fU6sBLqtMvt1zLf2dk0j74Rd/NIbFUGL8dtPsPAl+AJbe tcCPmR5Hxl0MKHo63zuZCjGm3oBhTvoIAAU0ZHmi8myPmfBIGNUkjinT8Ne/gQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=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"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1707996542; a=rsa-sha256; cv=none; b=C8TyApUfXq7K8RT1niHW6RWLMkelqdt1sv8BUTZIS78k1H2GkNjRDvDnb6pwYCLgcPibJ7 DeqWmlhE49DfoT1hI4l+A0fctmyA+hL65LfnsXD5hPI/W9GC/nTpusDLV5N4+GifwZRk/R VKc+YoGaK5HDpRUq3UQXxzS1YnJqw/sdLnLNPa/ctAksD6DBwtGmfMf6VahEVQZgKM5PPG 3xC9P2ZYPadQRdwtL+UApF3I2FnAQF43K/43jHPJYfgj2MKaQgC9po3UUKeTIogttqJNin SS2mDjFGOIbL0FcMSxl++tQHZ9lKx/xY6VUrq9aOGRurZaxBAsF/1d8MVAZDkw== 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 29129694C8 for ; Thu, 15 Feb 2024 12:29:02 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1raZv3-0001TG-Qy; Thu, 15 Feb 2024 06:28:46 -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 1raZv2-0001Sy-AI for guix-patches@gnu.org; Thu, 15 Feb 2024 06:28:44 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1raZv2-0001SJ-0L for guix-patches@gnu.org; Thu, 15 Feb 2024 06:28:44 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1raZvK-0005dQ-E6 for guix-patches@gnu.org; Thu, 15 Feb 2024 06:29:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#69062] [PATCH v2] gnu: b4: Ensure git presence. References: <20240211210754.19641-1-ngraves@ngraves.fr> In-Reply-To: <20240211210754.19641-1-ngraves@ngraves.fr> Resent-From: Nicolas Graves Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 15 Feb 2024 11:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69062 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 69062@debbugs.gnu.org Cc: ngraves@ngraves.fr Received: via spool by 69062-submit@debbugs.gnu.org id=B69062.170799648721599 (code B ref 69062); Thu, 15 Feb 2024 11:29:02 +0000 Received: (at 69062) by debbugs.gnu.org; 15 Feb 2024 11:28:07 +0000 Received: from localhost ([127.0.0.1]:54192 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1raZuR-0005cJ-EV for submit@debbugs.gnu.org; Thu, 15 Feb 2024 06:28:07 -0500 Received: from 5.mo560.mail-out.ovh.net ([87.98.181.248]:39825) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1raZuO-0005c7-3H for 69062@debbugs.gnu.org; Thu, 15 Feb 2024 06:28:05 -0500 Received: from director3.ghost.mail-out.ovh.net (unknown [10.108.9.73]) by mo560.mail-out.ovh.net (Postfix) with ESMTP id 4TbCTq511Vz1J1D for <69062@debbugs.gnu.org>; Thu, 15 Feb 2024 11:27:43 +0000 (UTC) Received: from ghost-submission-6684bf9d7b-tx7nj (unknown [10.110.96.146]) by director3.ghost.mail-out.ovh.net (Postfix) with ESMTPS id 4CE7F1FEC0; Thu, 15 Feb 2024 11:27:43 +0000 (UTC) Received: from ngraves.fr ([37.59.142.110]) by ghost-submission-6684bf9d7b-tx7nj with ESMTPSA id lncyBy/1zWU2lwAAsyVNRg (envelope-from ); Thu, 15 Feb 2024 11:27:43 +0000 X-OVh-ClientIp: 81.67.146.208 Date: Thu, 15 Feb 2024 12:27:26 +0100 Message-ID: <20240215112727.21542-1-ngraves@ngraves.fr> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Ovh-Tracer-Id: 17667339864345010914 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvledrvddtgddvkecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemucehtddtnecunecujfgurhephffvvefufffkofgggfestdekredtredttdenucfhrhhomheppfhitgholhgrshcuifhrrghvvghsuceonhhgrhgrvhgvshesnhhgrhgrvhgvshdrfhhrqeenucggtffrrghtthgvrhhnpedvhefghfevuedvhfffhffhvefgvdetvdekfefhjedvieejhfejvefhleegudffveenucffohhmrghinhepkhgvrhhnvghlrdhorhhgnecukfhppeduvdejrddtrddtrddupdekuddrieejrddugeeirddvtdekpdefjedrheelrddugedvrdduuddtnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepuddvjedrtddrtddruddpmhgrihhlfhhrohhmpeeonhhgrhgrvhgvshesnhhgrhgrvhgvshdrfhhrqedpnhgspghrtghpthhtohepuddprhgtphhtthhopeeiledtiedvseguvggssghughhsrdhgnhhurdhorhhgpdfovfetjfhoshhtpehmohehiedtpdhmohguvgepshhmthhpohhuth 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: , Reply-to: Nicolas Graves X-ACL-Warn: , Nicolas Graves via Guix-patches From: Nicolas Graves via Guix-patches via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -6.48 X-Spam-Score: -6.48 X-Migadu-Queue-Id: 29129694C8 X-Migadu-Scanner: mx11.migadu.com X-TUID: wAF8Y3+79gh+ * gnu/packages/version-control.scm (b4): Ensure git presence. [arguments](phases): Add phase hardcode-git-bin. [inputs]: Add git-minimal. Change-Id: Ib2dca06009cdacc0e5ab4ab227cd30991474404c --- gnu/packages/version-control.scm | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-control.scm index 8f9fae5ce2..0b636ac02e 100644 --- a/gnu/packages/version-control.scm +++ b/gnu/packages/version-control.scm @@ -2925,9 +2925,16 @@ (define-public b4 ;; XXX: dnspython attempts to read /etc/resolv.conf when loading ;; resolver.py, which breaks the sanity check in dependent ;; packages. This should rather be fixed in dnspython. - (delete 'sanity-check)))) + (delete 'sanity-check) + (add-after 'unpack 'harcode-git-bin + (lambda _ ; This ensures git is present when called. + (substitute* (find-files "b4" "\\.py$") + (("\\['git'") + (string-append + "['" #$(this-package-input "git-minimal") + "/bin/git'")))))))) (inputs - (list python-dkimpy python-dnspython python-requests)) + (list python-dkimpy python-dnspython python-requests git-minimal)) (propagated-inputs (list patatt)) (home-page "https://git.kernel.org/pub/scm/utils/b4/b4.git") -- 2.41.0