From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id iPdtJpF5ZWGDKQEAgWs5BA (envelope-from ) for ; Tue, 12 Oct 2021 14:03:29 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id UDUcIpF5ZWE0BAAAB5/wlQ (envelope-from ) for ; Tue, 12 Oct 2021 12:03:29 +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 461413433A for ; Tue, 12 Oct 2021 14:03:29 +0200 (CEST) Received: from localhost ([::1]:49716 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1maGVE-0000uY-6e for larch@yhetil.org; Tue, 12 Oct 2021 08:03:28 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43214) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1maGUq-0000rI-3j for guix-patches@gnu.org; Tue, 12 Oct 2021 08:03:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:50429) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1maGUn-00031T-TN for guix-patches@gnu.org; Tue, 12 Oct 2021 08:03:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1maGUn-0004jr-PF for guix-patches@gnu.org; Tue, 12 Oct 2021 08:03:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#50960] [PATCH v2 01/11] packages: Add 'package-development-inputs'. Resent-From: zimoun Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 12 Oct 2021 12:03:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50960 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 50960@debbugs.gnu.org Received: via spool by 50960-submit@debbugs.gnu.org id=B50960.163404012416154 (code B ref 50960); Tue, 12 Oct 2021 12:03:01 +0000 Received: (at 50960) by debbugs.gnu.org; 12 Oct 2021 12:02:04 +0000 Received: from localhost ([127.0.0.1]:33730 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1maGTr-0004Bu-3b for submit@debbugs.gnu.org; Tue, 12 Oct 2021 08:02:04 -0400 Received: from mail-wr1-f51.google.com ([209.85.221.51]:46062) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1maGTm-000443-7y for 50960@debbugs.gnu.org; Tue, 12 Oct 2021 08:02:02 -0400 Received: by mail-wr1-f51.google.com with SMTP id r10so66282098wra.12 for <50960@debbugs.gnu.org>; Tue, 12 Oct 2021 05:01:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-transfer-encoding; bh=Mx+HOmDNWcAjwBRn3yCTeCT8uPwqPxoWhSP5NHZcg0I=; b=bpFhFdCCOm8A0T7+vbj9J+JJKB7pR0L5aoDodkXc2AzHc9U+Um7lkLPCt7ySEnLtVm G7ghCXdYZuuXj6uHGQBx+bAUf0VmnJwM4/TrYpLTrBW3F68tYcWQpy6+f4p1eHxEn39m 63J2CW8kxGyY/axRv9vMWNUmTafH7pfbZcd9FaQZRgdId0No2Do+avRKX6KhOIolY1Ij z+p7FsXhFhHBFsIf8GjyrokoAqKJE/96j+9wBYwp7R7+PyFQn/gTNe/Af93a8iWXE2da bhmx9j00hoSkP1f5jBz4u97t3IKOLpH8eI5WWrMFa32qP2twIsPzRqlfWugPIL7yiX/d wzHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version:content-transfer-encoding; bh=Mx+HOmDNWcAjwBRn3yCTeCT8uPwqPxoWhSP5NHZcg0I=; b=Qpu51gdmEB5ajf6gO9R0CLilrFbfXXEbh78cyqCsYhbraI4KG5+EQ7+E/UvGxKLa/N iYLMiEHcbtr9oTY+3pS7G1ofAFytOCuROiejPWYLXmhaE6+/8s/cDKCNT2AXyYWxkPe9 ba3Kx1ZtwwgdqvlQKsegkCiOLNDFjoPBse9m3FurE57MbaYUTz8DxA37j4GeHuvQx5AF a+O3NSih2GC1Z44jpBVSZ6vLy0FbBlJTA/4d/ZTxo8ctEohBkE+RaRPE86wHSb3FbDpJ Z+VPPK5rZeQWyI7ffNHIrSRRHdQX+ndg2lyg/yzIvUUDFZ2MspmybXe4hRvt5EBKJ3RS EHhw== X-Gm-Message-State: AOAM531/hSlcW28R+rrjH2IDOg3BQl3VcaJ0bJaZodtmW8nYY/VqZ91a /IhmXmQOd7bCkSIPst/LoxYrK7EgeqOJEg== X-Google-Smtp-Source: ABdhPJzup1gFcwT7e9h7Xwlrby502dDy2F0s57eywfIUjUwaTZaVIBEilISqf9K8krUWEchByKFuPw== X-Received: by 2002:a5d:4a46:: with SMTP id v6mr30714604wrs.262.1634040112307; Tue, 12 Oct 2021 05:01:52 -0700 (PDT) Received: from lili ([2a01:e0a:59b:9120:65d2:2476:f637:db1e]) by smtp.gmail.com with ESMTPSA id j16sm2626512wms.16.2021.10.12.05.01.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Oct 2021 05:01:51 -0700 (PDT) From: zimoun In-Reply-To: <87v922va9b.fsf@gnu.org> References: <20211002102116.27726-1-ludo@gnu.org> <20211011213809.17482-1-ludo@gnu.org> <20211011213809.17482-2-ludo@gnu.org> <86czoaoigo.fsf@gmail.com> <87v922va9b.fsf@gnu.org> Date: Tue, 12 Oct 2021 13:52:45 +0200 Message-ID: <86y26ylasy.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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=1634040209; 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: 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:dkim-signature; bh=Mx+HOmDNWcAjwBRn3yCTeCT8uPwqPxoWhSP5NHZcg0I=; b=T9GYen1xyVRe+REeej5aa0SKNz/mqPifaOAKdJPjqcUKYeIkM7aHZ4zXFgQYnVuvyTz+QB b9aiKmswd+EPpNSOSR7i1VrQ32tID0H96vkPZlwHeJvfR6dEfNqEAKYpSNeyA++F97p3l2 ETtvbrp5MkqWD3Z1YSCoWwOBLfJjEoBpiGmFBW/kl9w87W5wV8AcmFLSdWRu6HnQ+p6PR+ ouFYPcQJ1tqvc8Bn4r05fWxdF6yT9GWMiOTlp8zC01wSnac1tf0I8ksRBX4iHorKEbwRyu IcrTnbSDd0gFgH7VX+wYrPbENqp+h0Cuhq3Gu9gjke1LKCSz+DiaCSbijjrEww== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1634040209; a=rsa-sha256; cv=none; b=H5pkIkWCX3KBnJIoEJEpgiuz/xN4+EK80r67ZKube4K1WiluAKDap+jKCkP9THhZrPcf3B PHFmPPJtyLVaW6E7G6eaYCykCVwSXsCTfmrpWtuQYw2iXMiXm58hGSScKEMfA/vrxBN8kc Db9mFUKZiJAZKDQYQjgUWpmE5DDEFfIZbFFiEXMu6I2VwhlfvXsk2vtmO2EunQ/CjcaoDX 1W5PDOiu+MqOeAN1EGmS6UyvdbJZJWU5YX9KNjedWJ8usA+Z7qUOK+34QnDMJKbISLxUeq IB0JyLN0QdCDWpuUKe0yunNPf/ilWG/VdDKfShR31fTY8HMPXmBxPDo0ntSl5Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=bpFhFdCC; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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: -1.71 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=bpFhFdCC; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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: 461413433A X-Spam-Score: -1.71 X-Migadu-Scanner: scn1.migadu.com X-TUID: noDgzLvNGBu8 On Tue, 12 Oct 2021 at 11:54, Ludovic Court=C3=A8s wrote: > zimoun skribis: > >>> +(define* (package-development-inputs package >>> + #:optional (system (%current-syst= em)) >>> + #:key target) >>> + "Return the list of inputs required by PACKAGE for development purpo= ses on >>> +SYSTEM. When TARGET is true, return the inputs needed to cross-compile >>> +PACKAGE from SYSTEM to TRIPLET, where TRIPLET is a triplet such as >>> +\"aarch64-linux-gnu\"." >>> + (bag-transitive-inputs (package->bag package system target))) >> >> [...] >> >>> ;; Remove non-package inputs such as origin records. >>> (filter-map input->manifest-entry >>> - (bag-transitive-inputs (package->bag package)))) >>> + (package-development-inputs package system))) >> >> Why =E2=80=99system=E2=80=99 is used here? Why is not simply? >> >> + (package-development-inputs package))) >> >> because =E2=80=99system=E2=80=99 should be not defined, or I do not know= where IIUC. > > It=E2=80=99s an optional parameter above. Sorry if I miss, to me, =E2=80=99system=E2=80=99 is not bounded when callin= g: --8<---------------cut here---------------start------------->8--- ;; Remove non-package inputs such as origin records. (filter-map input->manifest-entry - (bag-transitive-inputs (package->bag package)))) + (package-development-inputs package system))) --8<---------------cut here---------------end--------------->8--- and it seems bounded to something: ;;; (#)=E2=80=9D and I do not know from where this definition comes. Maybe I misread what optional means. From my understanding, it means: (package-development-inputs foo) will use =E2=80=99(%current-system)=E2=80=99 as default. And it also means= that: (package-development-inputs foo system) where =E2=80=99system=E2=80=99 is bounded to something and from my understa= nding this something is not necessary =E2=80=99(%current-system)=E2=80=99. Again, sorry if I misread something. Cheers, simon