From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id oAX7Dvw0/WAOBwEAgWs5BA (envelope-from ) for ; Sun, 25 Jul 2021 11:55:08 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id 7LtlCvw0/WBQaQAAbx9fmQ (envelope-from ) for ; Sun, 25 Jul 2021 09:55:08 +0000 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 EECEB2B4FB for ; Sun, 25 Jul 2021 11:55:07 +0200 (CEST) Received: from localhost ([::1]:59222 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m7aqg-00024F-TJ for larch@yhetil.org; Sun, 25 Jul 2021 05:55:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35454) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m7aqc-000246-Lu for guix-patches@gnu.org; Sun, 25 Jul 2021 05:55:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:36085) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m7aqc-0005vl-9L for guix-patches@gnu.org; Sun, 25 Jul 2021 05:55:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m7aqb-0004jH-Vc for guix-patches@gnu.org; Sun, 25 Jul 2021 05:55:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49597] [PATCH core-updates 00/15] Ajust packages to label-less input style Resent-From: Mathieu Othacehe Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 25 Jul 2021 09:55:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49597 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 49597@debbugs.gnu.org Cc: ludo@gnu.org Received: via spool by 49597-submit@debbugs.gnu.org id=B49597.162720687018138 (code B ref 49597); Sun, 25 Jul 2021 09:55:01 +0000 Received: (at 49597) by debbugs.gnu.org; 25 Jul 2021 09:54:30 +0000 Received: from localhost ([127.0.0.1]:47631 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m7aq6-0004iU-2W for submit@debbugs.gnu.org; Sun, 25 Jul 2021 05:54:30 -0400 Received: from eggs.gnu.org ([209.51.188.92]:37642) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m7aq2-0004iE-EW for 49597@debbugs.gnu.org; Sun, 25 Jul 2021 05:54:28 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:34744) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m7apw-0005Vt-8O; Sun, 25 Jul 2021 05:54:20 -0400 Received: from [2a01:e0a:19b:d9a0:45b5:a14a:5c75:5737] (port=36876 helo=meije) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m7apw-0008Nd-0C; Sun, 25 Jul 2021 05:54:20 -0400 From: Mathieu Othacehe References: <20210716155009.32118-1-ludo@gnu.org> <87o8araiph.fsf@gnu.org> Date: Sun, 25 Jul 2021 11:54:18 +0200 In-Reply-To: <87o8araiph.fsf@gnu.org> ("Ludovic =?UTF-8?Q?Court=C3=A8s?="'s message of "Sat, 24 Jul 2021 16:29:30 +0200") Message-ID: <877dhehg6t.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1627206908; h=from:from:sender:sender: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; bh=8RtSRCRLjJ8NzIRn6Fjt40cnJk9lAxMWKQCgCMFaovs=; b=k6ZmsCLQ/jPKYs4676JWAUwkMYSgcJRr5O5+NcTyrd8BD1ltqNz5iBMTfqhW5U4eaYZZZU mPc2QWnep90LOzlq6roFMj9XJDQBV8qoWDHXiJ3jOobvAu3HZlCAIT/lyqnycfHH67yijF Xyd50MWgKw/R42g+9QL3x5eK7yCnMEgVJ9YP6Zs8LrWDCgvDn5oJBSAtZkQAOLOFtIOsku 8fFzJeXQ057K6drL5MRQlaEIgo3j7Kr97YoZTokjUHgB2lqSM2hZGSY6L0Li52x/1BI7px l5ChqFTS6F/6bPXJiE1YaKMpUsIWE8HuonAoIQnGtFe4Yyo/k3Rb3vUhM2h8Gg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1627206908; a=rsa-sha256; cv=none; b=M0Pu/38ODWpOkMpdPIugldAxbWbJh0qpfwnaJpJ1IoZx28oCQZ6BTMT0GIyqTNm4yJikAc 1E4rJUuqgKCwmNnH2JB6GVq1qR1uPnNAshOPocGCejYPYSD+KuLNa2lZ4QUiTHB7MocGnM gynQtjq6koi9t6pOJeVIWED8KxDTd29ivCvXzQUFRjDwiqXVawO31BHcyT6agttgJqB+Is AtCLuQdYCmicq00E7lSULBq5L7XZVUbjLcqMrCKYLPgPrW7FmBRJxLysOIHy3Xg/orKpE4 vzBCsJ0py+dYe/2dNmjdlbHdB0hFx2SI0BZDuAm9Nl8gHcHXLvhtp8AJZtTkhw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -2.92 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: EECEB2B4FB X-Spam-Score: -2.92 X-Migadu-Scanner: scn0.migadu.com X-TUID: G1uYsFA8Grkn --=-=-= Content-Type: text/plain Hey Ludo, > I went ahead and pushed as d468a03a00738bb0742148e056f7a557aae08f2f. The CI reports that core-updates evaluation is broken. That's because "search-input-file" expects a relative FILE whereas some calls, such as the one in the glib package provide an absolute one: --8<---------------cut here---------------start------------->8--- (search-input-file (or native-inputs inputs) (string-append "/bin/python" ,(version-major+minor (package-version python)))))))) --8<---------------cut here---------------end--------------->8--- We could edit all those calls to use relative FILE arguments. Another solution would be to make sure that search-input-file treats "/bin/python" and "bin/python" the same way as proposed in the attached patch. That would be consistent with search-input-directory that already accepts both "/include/xxx" and "include/xxx". WDYT? Thanks, Mathieu --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0001-build-utils-Trim-trailing-slashes-from-search-input-.patch >From 6920b87a9cb22c0a5c2ceaf6b6ca852a8e094732 Mon Sep 17 00:00:00 2001 From: Mathieu Othacehe Date: Sun, 25 Jul 2021 11:43:05 +0200 Subject: [PATCH] build: utils: Trim trailing slashes from search-input-file input. Make sure that both: (search-input-file inputs "/bin/sh") and (search-input-file inputs "bin/sh") are supported. * guix/build/utils (search-input-file): Trim starting slash character from FILE. --- guix/build/utils.scm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/guix/build/utils.scm b/guix/build/utils.scm index e7782d3e08..3beb7da67a 100644 --- a/guix/build/utils.scm +++ b/guix/build/utils.scm @@ -631,8 +631,11 @@ FILE must be a string like \"bin/sh\". If FILE is not found, an exception is raised." (match inputs (((_ . directories) ...) - (or (search-path directories file) - (raise (condition (&search-error (path directories) (file file)))))))) + ;; Accept both "bin/sh" and "/bin/sh" as FILE argument. + (let ((file (string-trim file #\/))) + (or (search-path directories file) + (raise + (condition (&search-error (path directories) (file file))))))))) (define (search-input-directory inputs directory) "Find a sub-directory named DIRECTORY among the INPUTS and return its -- 2.32.0 --=-=-=--