From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id IJMIHHRPBGd/gwAAqHPOHw:P1 (envelope-from ) for ; Mon, 07 Oct 2024 21:15:32 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id IJMIHHRPBGd/gwAAqHPOHw (envelope-from ) for ; Mon, 07 Oct 2024 23:15:32 +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=HxxtxCET; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=MvgsDLrk; 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=1728335732; a=rsa-sha256; cv=none; b=Kgbd16GlW5JBJbUNBmDw6TwC+Ttb5T9rGCRwihpQOR2cwcDtQQ5lY21HHOckT8u1mMoNm0 CQYX3j3cxwXYCDczG1QjsSyH9JwCQSvFLsfMpQ3FA97c4yPUHF4tGD24NQVu2hDKhKQ5qI 6gDUXabqAuwsw7wskZoUIxzWwJItD3cKlMnAqsB//W7HVyHQqSZpFWlw0x8BsjaCESlAE0 Ere5jiw2EQSOfx7sx2Lga1WtV0kCSxrmfC+N3XsyqlQc2CLfq+QlcCqZqPeOa/bjizMCQn t9mp11Gda56LWsR/0+wHS1HijU6NJQCBXm6R9rTbZ/B5UYPIBv9Y3cvf28cG/w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=HxxtxCET; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=MvgsDLrk; 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=1728335732; 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=uocr73kivctEdOCZ7dAn+PjTd8Ad8IJTFM8UmjPtwFY=; b=M5UQOBVSSf+Q8VPYpad3FuR4Yy8M8yqMBK8QUn5zUg8S5ZD881v4FVY2ItzcVkxmNqYjK4 c/hPjUEIiNu1rQCIubODAoUZ4QlOOj6vVyTCKgZU1mSUm7DevK3lttz/MdfkMdlJJiNTiC PCHivB54MqgeUndf4KIXa0GyZHedxU/fiKwk+e3mqfzjoOntAa22mk+foKCLMBDarQAmdD KSB6TMPik0N74AD5/vGrCz41vRJgg8xfHhFGhA+rlpjeQujU0Qw/Lo7EBbJpjqHGG0Axtk o7CmuWK7CfHApQu2jOFbcrRqQBgyeACzRbq6eKxS7aHa/t13lk65yIUy/W3gaA== 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 31B7C1C09E for ; Mon, 07 Oct 2024 23:15:32 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sxv4V-0005jw-6F; Mon, 07 Oct 2024 17:15:16 -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 1sxv4B-0005dL-Hf for guix-patches@gnu.org; Mon, 07 Oct 2024 17:14:56 -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 1sxv4B-0000am-8Y for guix-patches@gnu.org; Mon, 07 Oct 2024 17:14:55 -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=uocr73kivctEdOCZ7dAn+PjTd8Ad8IJTFM8UmjPtwFY=; b=HxxtxCETniKuBE86dhcxGUTI47eljzifDc7c2JtGLR4oioJ380c4XfX6GJ7aQAYBo8XVYIWK9krbmPCuy51KrnRQxJezbqxI1irhZvKFDSdceAcCne6uL1e33H3f3ByPYXwzPjySgma9cF3QlbplLvVJVRsW0FNoa87tkZegWKjNh22uToKw6KQB9wGLkemOB2wehIpuxMXwlKUe2MVRClXFlPRC5hn5BsuDZVpRnYpWecR39aUjc08kLna3enl3OaFDJ24rfFgX9NEm9dKoMWu7JGHOVYwrO4ywJEnhEC0n36okOTiX7VQCApZZCdJZH9c76NtBfap1lDpYnNSV9Q==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sxv4H-0004kb-Na; Mon, 07 Oct 2024 17:15:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#72925] [PATCH v10] gnu: Add jpm. Resent-From: Omar Bassam Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org, "Suhail Singh" Resent-Date: Mon, 07 Oct 2024 21:15: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: Suhail Singh Cc: 72925@debbugs.gnu.org, Omar Bassam Received: via spool by 72925-submit@debbugs.gnu.org id=B72925.172833566218195 (code B ref 72925); Mon, 07 Oct 2024 21:15:01 +0000 Received: (at 72925) by debbugs.gnu.org; 7 Oct 2024 21:14:22 +0000 Received: from localhost ([127.0.0.1]:48572 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sxv3d-0004jP-JF for submit@debbugs.gnu.org; Mon, 07 Oct 2024 17:14:21 -0400 Received: from mail-ej1-f41.google.com ([209.85.218.41]:42141) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sxv3b-0004j9-36 for 72925@debbugs.gnu.org; Mon, 07 Oct 2024 17:14:20 -0400 Received: by mail-ej1-f41.google.com with SMTP id a640c23a62f3a-a8a7596b7dfso846144366b.0 for <72925@debbugs.gnu.org>; Mon, 07 Oct 2024 14:14:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1728335585; x=1728940385; 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=uocr73kivctEdOCZ7dAn+PjTd8Ad8IJTFM8UmjPtwFY=; b=MvgsDLrkT/3e8N/o5USxud0k5qZxqbtRiTneNEXy9MIvSJLiALlkhx2/6PzauADdUN bj5qVGrztxDaM8/hJXFBtSZjrwvzJ9bHjz7vvQWbTR+LQde+/rPs1+Oc4oBPNtc2sSKd 8tyLY9eMdg0VMo1XtTvTobiu+eoL6zxRfJ/7Gp8kQGkRRAfQG40ROTbGzpvPplFsMiTV VvbgYnldWIBCWCYMgqYDAQj4TwR+Ie6/oY7EtTPbC2OIWcpKTYyf8Sneu7bkdOhNJvxJ F7uDBkokJYeQaf/+ticIiM8YGZSzct6UVqPBRPETF81Pu2XiJIO7SQ9Bwk+DqYu2FK7n LRUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728335585; x=1728940385; 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=uocr73kivctEdOCZ7dAn+PjTd8Ad8IJTFM8UmjPtwFY=; b=lMdJoJT7PC8ryfdhFpSaGDhCSKkrbAl+TKpluGEwRZppuVYwjzHF9e1unRC90UP5OU aOknyJjtInNZbwrWp8SkQzB2mtk3U8w4H4il36cBDao/JOySR2WAKzjkrL94ZseUQRIp 7/uNyklFgDNvPBDEW3zA6BjMPT7nqIYNrBHw653nNVVegf7aFIqBKHp35ovVeG0D+e0j CDxNiXYGV53dBexX+1bGAuLzj5vY/oxR+M5SBScNcLMmkkcVQ0I7PjUj60YgOUBz65GV wS30BCgCyiXJo/UA+oKYeiTwhShxML3QambadnKijxqIyxYVpat0q76lP0/TZ2lHzqT6 kxAQ== X-Forwarded-Encrypted: i=1; AJvYcCXvb8/HRxG0VP5iLXvf5XS7zY8iugnRQpiDxHn+fZjMwIaUwDUlvfClKO62GJy0nXF1JXj9dA==@debbugs.gnu.org X-Gm-Message-State: AOJu0YyZvK8cSL0HcmVuMOvnjVEBq7KxguVrsUw8c8KNrfK2qs6MSFuK GihrHul0QdQl0tgDoiNgRfCx3L2TxjuUNhHYvQLTsd9uu4S4rsREAAU1Ebr6 X-Google-Smtp-Source: AGHT+IHeLt2LD7MNxEibTmk1lAuNXauId8oH22DJuvD8abT7M8IVCmRKofJ3jM4QP/+SIVAYWf+pgw== X-Received: by 2002:a17:907:7e8e:b0:a99:5f45:cb69 with SMTP id a640c23a62f3a-a996785ef29mr117790166b.4.1728335584639; Mon, 07 Oct 2024 14:13:04 -0700 (PDT) Received: from omar-Latitude-5540 ([46.232.152.32]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a994ce357b2sm255246866b.144.2024.10.07.14.13.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Oct 2024 14:13:04 -0700 (PDT) From: Omar Bassam X-Google-Original-From: Omar Bassam In-Reply-To: <875xq3k6ue.fsf@gmail.com> (Suhail Singh's message of "Mon, 07 Oct 2024 16:15:21 -0400") 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> <875xq3k6ue.fsf@gmail.com> Date: Tue, 08 Oct 2024 00:13:03 +0300 Message-ID: <87ed4rfwgw.fsf@omar-Latitude-5540.mail-host-address-is-not-set> 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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -1.88 X-Spam-Score: -1.88 X-Migadu-Queue-Id: 31B7C1C09E X-Migadu-Scanner: mx12.migadu.com X-TUID: m05jaQyz3m25 Hi Suhail, I just sent v11 addressing your comments. > 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. > I've now removed gcc from the propagated-inputs I've tested passing the gcc to jpm using the --cc flag as follows "jpm build --cc=/path/to/gcc". I hope I understood your concern correctly this time. If not, please feel free to add to the patch whatever you think is needed as I'm not a C compiling expert. >> 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. Sorry, I now looked at the code and understand what it's doing. Thanks again, Omar