From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id yKOKE8ZBBGcbeAEAqHPOHw:P1 (envelope-from ) for ; Mon, 07 Oct 2024 20:17:10 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id yKOKE8ZBBGcbeAEAqHPOHw (envelope-from ) for ; Mon, 07 Oct 2024 22:17:10 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=TvUaB+jl; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=LJS6lAV+; dmarc=fail reason="SPF not aligned (relaxed), DKIM 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1728332230; a=rsa-sha256; cv=none; b=n8IMRUCf504rxcFxWx2ST6m968Wswg8grooH8yVw5rELmpdjvbeGo5K9NghBDrXK/phmHp In9JA9u0yJuXYVBdEY9+JSaqwEvCEfR0aVfdK4MpujRRXJSaBWe1gzMk+GsLF29Yx6TIU1 ypbzB16FIjgk1v6Wzeg8LeDaVQrvGcolvZlen03gkuvOSkSLf3w8fAgh8FYTTRKohvcBHa BOcIr+FpBdNhdq40h7d4whrVpo1bFv9tekdaHnEVP4hrt7FvV0HWWeDmXnOJLiEOyYmvBC llLPxzWo5n/WcnJCtUSx/czHfsiRZHBA4/N4tvUadp/jk2mmb9brMgXDmIKeSg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=TvUaB+jl; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=LJS6lAV+; dmarc=fail reason="SPF not aligned (relaxed), DKIM 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1728332230; 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: dkim-signature; bh=M2YLUSfzLDhpluav2op2E7UgJD6wmnaYau9KjNOYsF8=; b=H+MZ9wC8m75QW8Ukb/W0kkizi19aGX0yke3o9lL1fY2uD/OHbGzrI06iQgOMxwVERCDd86 NJDFN221n7vjI3RJXcIVNVVXBe6nBRnvWJBcVHxWQxKBs9Xqv/Gamix+GK/Ou57BoEkfq3 D960+Iyd/cKD/BVRlTKIlu07QQbDlokpopLKydhPmPYltC4/p1MhgBEgo887dA6d7vNLuC M3Ih82eCXJEN15MLNeLo9ix0t7MIEa2wBfK2erWufht4a30naMp3GR7Kx4IkiYtEJU//yt N8gq/sKLMXFupJ2SuDiZ6+vT/mzgH9HtqSZxpnw7svReUy28fkwr0ZOhv6DGzg== 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 5910685D8C for ; Mon, 07 Oct 2024 22:17:09 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sxuA4-0000I2-W3; Mon, 07 Oct 2024 16:16:57 -0400 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 1sxuA2-0000HS-S1 for guix-patches@gnu.org; Mon, 07 Oct 2024 16:16:54 -0400 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 1sxuA2-0002Rc-KC for guix-patches@gnu.org; Mon, 07 Oct 2024 16:16:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=M2YLUSfzLDhpluav2op2E7UgJD6wmnaYau9KjNOYsF8=; b=TvUaB+jlCGEPqKDrv+NDs1StkGfRPp1GWooFhHwlimJOqNp3KjbFGmvaBKS6yfjMcSk2Cz8hgQk/XxBmYwWbl/ZwnAoZ7RGRkV1zypVv/URI07g5F4tDup/7ZxhaS6C9bpOkjZyTG34ikafGeXV78X30gcgyCVrH3aNtZdSG6EyNRGkcpoPyEN9Ty9pZX7BH3I0DUAkT1vyeX4ljShzldgQenJZVK+FIndN98R0eOBKF5QBP44RlKfbSiPX/3JhQPUdlu31p5488Zh60tvYERPHMZo2m9GcyXeeILPcbT7DB5ncH1l3AU50Lw7btCw6vNYdYAN5IQymhrjAYycgswg==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sxuA9-0001g9-T5; Mon, 07 Oct 2024 16:17:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#72925] [PATCH v10] gnu: Add jpm. Resent-From: Suhail Singh Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org, "Suhail Singh" Resent-Date: Mon, 07 Oct 2024 20:17:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72925 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: Omar Bassam Cc: 72925@debbugs.gnu.org, Suhail Singh Received: via spool by 72925-submit@debbugs.gnu.org id=B72925.17283322056423 (code B ref 72925); Mon, 07 Oct 2024 20:17:01 +0000 Received: (at 72925) by debbugs.gnu.org; 7 Oct 2024 20:16:45 +0000 Received: from localhost ([127.0.0.1]:48355 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sxu9s-0001fX-Ku for submit@debbugs.gnu.org; Mon, 07 Oct 2024 16:16:44 -0400 Received: from mail-qv1-f68.google.com ([209.85.219.68]:50392) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sxu9p-0001fO-Eb for 72925@debbugs.gnu.org; Mon, 07 Oct 2024 16:16:42 -0400 Received: by mail-qv1-f68.google.com with SMTP id 6a1803df08f44-6cb2f271043so54614516d6.0 for <72925@debbugs.gnu.org>; Mon, 07 Oct 2024 13:16:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1728332133; x=1728936933; darn=debbugs.gnu.org; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=M2YLUSfzLDhpluav2op2E7UgJD6wmnaYau9KjNOYsF8=; b=LJS6lAV+eeFdj1JFF8K5mAHmWmz7S2fgC+TSblBDB/XOqluKglOmr/VO0IWwg6gcXY kl1QzvwESbLryB9h4AZrJ3cXoD7+ypdBxIY5z7ukJ89N1KCcM/pQB4vxpn0tWyhbUJLA RU9m4zNJFv6zSsmkc3mQNt2v9cKSBP1dDP+A05d1yJJpmyn98mV8qc/1/AZBAq0OybCL dbl71xpl006oQZ37PbUZ2PczXd6FWdXZdl+tNeX/T2mm6IhfkWK9WcoMhkRl3Q0DgAXE 2p1RCNngNcppXebXMTQ8uUvsrFtSw8ChocqLkBWMeARpV6MO/98cvibmQPUckwgDufOo IMzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728332133; x=1728936933; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=M2YLUSfzLDhpluav2op2E7UgJD6wmnaYau9KjNOYsF8=; b=X/FMQCIjFVFcbR/XbRdwf+NSvdRnC43+G1CxAjSpL9Wa3W9j+D7YdE/ZWjMvEQeWNY DVAg/TwCw29FpmERzVLv7qLtuWYkqke1gzhW1MuiPHqPRAlko4itBWf8wU+qnr473E4m xBJQqhh6ctNQr4sYpjJP7DtU1dB0f5jqbxPzROGYLUjGJmsUgBkFkTImiu2izMDn3tPF ELrjF0ElQ8IM0AuU7Kigcj2EXIbjtTnSJq1y708ZUYs4k4507tuLcxcwkcN3axE7fEk+ lf0a4sYSduNiWWvpwySGkhwG9EpTSOwf8C1z9wIvLUwYUDoCDg+b2KVjn27NV1V7D1+1 0gTg== X-Forwarded-Encrypted: i=1; AJvYcCWWXfENOsuNpZQ6ylwkI6/6W74HNyU473Dp8B3apq8DBUNE4lFkpdNRUCkMCtCTCPmoaLpmgg==@debbugs.gnu.org X-Gm-Message-State: AOJu0YzpDtgq4nOwQfP96vNi1IGbkzRfQF1zdLAnwb8Qq6AsLCQJD6es Ak6yg4mH2ms7BGzpkgGRyvan32XL9yYzvGxDNlZ5fS+3cmuWJ/o9qngPV+/I X-Google-Smtp-Source: AGHT+IE4XGxCn1/bMlTN8eYR5oOM7DflnLMDUZ/4h0GGOw2hH/1TDq1GemVkR6yepunKGnN6ioOJKA== X-Received: by 2002:a05:6214:311b:b0:6cb:830f:3541 with SMTP id 6a1803df08f44-6cb9a308ca6mr212115376d6.13.1728332132718; Mon, 07 Oct 2024 13:15:32 -0700 (PDT) Received: from gnus ([65.94.70.53]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-6cba475ffefsm28718086d6.120.2024.10.07.13.15.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Oct 2024 13:15:32 -0700 (PDT) From: Suhail Singh In-Reply-To: <87ttdng1u1.fsf@omar-Latitude-5540.mail-host-address-is-not-set> (Omar Bassam's message of "Mon, 07 Oct 2024 22:17:10 +0300") References: <6e198e7dc1f64bea3a2b1498fb69e597e4d03360.1728148557.git.suhail@bayesians.ca> <87o73xgyf2.fsf@omar-Latitude-5540.mail-host-address-is-not-set> <87msjh5j5f.fsf@gmail.com> <87bjzxgggw.fsf@omar-Latitude-5540.mail-host-address-is-not-set> <8734l86h4l.fsf@gmail.com> <871q0rhiu6.fsf@omar-Latitude-5540.mail-host-address-is-not-set> <877cajiw5x.fsf@gmail.com> <87ttdng1u1.fsf@omar-Latitude-5540.mail-host-address-is-not-set> Date: Mon, 07 Oct 2024 16:15:21 -0400 Message-ID: <875xq3k6ue.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -1.13 X-Spam-Score: -1.13 X-Migadu-Queue-Id: 5910685D8C X-Migadu-Scanner: mx10.migadu.com X-TUID: Ud31CE6Odtf6 Omar Bassam writes: >> When gcc-toolchain is excluded from propagated-inputs, and neither gcc >> nor g++ is in propagated-inputs (i.e., propagated-inputs only contains >> janet), you *don't* observe a build failure in a _pure_ container where >> nss-certs is available while evaluating "jpm install -l sh"? >> >> If so, please let me know and I shall try and reproduce the error I >> experienced. > > Sorry, I didn't fully explain. I meant that instead of doing this > module-ref expression to include "gcc-toolchain", I simply included > "gcc" (which is already imported in lisp.scm) in the propagated-inputs > and it worked fine (in a pure container) for both the "jpm install" and > the "jpm build" command. That not surprising. As I mentioned in my last: >> If not, and you are simply stating that things work by propagating gcc >> and g++, then we are talking about different things. Specifically, I >> was considering what would be needed for eliminating gcc and g++ from >> propagated-inputs. And as I mentioned in a still older message: >>>>>> What we need is _some_ mechanism to ensure that when jpm invokes gcc (or >>>>>> g++), the compiler is able to locate the appropriate header files. >>>>>> >>>>>> This should be doable without propagating any other inputs. For example >>>>>> by ensuring that jpm sets appropriate environment variables (such as >>>>>> $CPATH , $C_INCLUDE_PATH , $CPLUS_INCLUDE_PATH etc.) or flags when >>>>>> invoking the compiler. If so, that would be the preferred approach. We >>>>>> only want to propagate those inputs that are strictly necessary. >>>>>> >>>>>> ... >>>>>> >>>>>> I look forward to seeing what you come up with in v11 :) I.e., it's not clear to me that propagating gcc and g++ is necessary. And if the same can be achieved by passing appropriate environment variables, why not? Could you please answer? Regardless, we are in agreement that the propagation of gcc-toolchain is not necessary and should be removed. > So you think the following would make sense as a sane default for the > "SSL_CERT_DIR" env variables as an example? > > #+begin_src scheme > (native-search-paths > (list (search-path-specification > (variable "SSL_CERT_DIR") > (files (list "/etc/ssl/certs/"))))) > #+end_src I am quite confused. In the v10 I shared, native-search-paths already includes $SSL_CERT_DIR, whicb if you look at the source is defined as: #+begin_src scheme (define $SSL_CERT_DIR (search-path-specification (variable "SSL_CERT_DIR") (separator #f) ;single entry (files '("etc/ssl/certs")))) #+end_src I am no longer sure what problem you are trying to solve. -- Suhail