From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id GHURIChTAmMPEgAAbAwnHQ (envelope-from ) for ; Sun, 21 Aug 2022 17:45:44 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id eKTIHyhTAmPQDgAAauVa8A (envelope-from ) for ; Sun, 21 Aug 2022 17:45:44 +0200 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 585AF25161 for ; Sun, 21 Aug 2022 17:45:44 +0200 (CEST) Received: from localhost ([::1]:55412 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oPn8x-0007Uh-7D for larch@yhetil.org; Sun, 21 Aug 2022 11:45:43 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39060) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oPn8J-0007U5-0M for guix-patches@gnu.org; Sun, 21 Aug 2022 11:45:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:46858) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oPn8I-0004Ed-Mr for guix-patches@gnu.org; Sun, 21 Aug 2022 11:45:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oPn8I-0004ep-Gk for guix-patches@gnu.org; Sun, 21 Aug 2022 11:45:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#57317] [PATCH v2 1/2] build: profiles: Implicitly set GUIX_EXTENSIONS_PATH. References: <20220821131222.12411-1-paren@disroot.org> In-Reply-To: <20220821131222.12411-1-paren@disroot.org> Resent-From: "(" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 21 Aug 2022 15:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57317 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 57317@debbugs.gnu.org Cc: "\(" Received: via spool by 57317-submit@debbugs.gnu.org id=B57317.166109664817806 (code B ref 57317); Sun, 21 Aug 2022 15:45:02 +0000 Received: (at 57317) by debbugs.gnu.org; 21 Aug 2022 15:44:08 +0000 Received: from localhost ([127.0.0.1]:36606 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oPn7Q-0004d8-39 for submit@debbugs.gnu.org; Sun, 21 Aug 2022 11:44:08 -0400 Received: from knopi.disroot.org ([178.21.23.139]:46270) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oPn7L-0004cX-55 for 57317@debbugs.gnu.org; Sun, 21 Aug 2022 11:44:05 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id A7DF640078; Sun, 21 Aug 2022 17:44:01 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id A0n7h969ayGV; Sun, 21 Aug 2022 17:44:00 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1661096638; bh=80i6CoqDLY4n76IiImXME1nEIjO0k18vrYUJ8hwQ2R8=; h=From:To:Cc:Subject:Date; b=SBAEzCzpziatcqSScYucJUtbMoAAsytCqUigWc5X2xL+QKBMCX5/UF0IszRJppo/R f4C1FQDHAHz+CAtdKWb0UiD/ETPMX3XbcIrZByrt59zL2zcEhEZv6N0RCfRd04kt6p GCs3r6kqbrFqY+rbbbFD+GE4bA46lJzViyVwCsBGpwti52zH6E9qQpEPNPPcxjYKDc lEi2nC4DxpEy5lrBcoUPLAMc7at3R2OJFhgNr6W/s1RC5YfGe/EoTx+MyrD6oOJrvd 6YYoLlxzdfcSKo6Y9M/LXvbmckG0A7Td5UTqJo6+lHGHSAUN+l01DvVRODkkGudGeZ wXqVszzaLj/ww== Date: Sun, 21 Aug 2022 16:43:48 +0100 Message-Id: <20220821154349.22575-1-paren@disroot.org> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit 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" Reply-to: "\(" X-ACL-Warn: , "\( via Guix-patches" From: "\( via Guix-patches" via X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1661096744; 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:dkim-signature; bh=LyLJpcL0y3fEp+R2+/qChRLDvi1lWrbVUjPUQG3ho6g=; b=hIluySqsCnUlzzCWCH3KP/ukejP9tD4Tp10YJAxoh47JyBBLOk2xKP0aW/oI67hBt/90DY +buy+4HwD2MFITOBzUtK6j9w5XXQMPhfgkrRVPAM2atXoCi5qM8z258nHCeRZG5ypm4uHd uD4QkiafmZ3k0Ilb75S7XlqTJogxbP0W2eSik6qu3hFEYWm6dIH5IWtubAZwzoV2cc5KYO kVoHkzN3+Um4vwKbO5bQgTMz/OJOEvYbe0Omccn+FdSLc2D8yQPVAP07raf50lTPbHwvIE wF+ScMm0tUEX0IzBwG24hdPR0HtbMzBhR/Gx0aRZmVpp9vDHP9VxixpJ2ujSKA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1661096744; a=rsa-sha256; cv=none; b=qvg3dBsZZLaaZU7k6Y0JYF3lWUxsWM8inFSxkMY5dbqMmTb4klIKH3D+WOj3ggtC6uJJ9R y70XFxBagogfLlUUCxFgXqCHdrj/IpGLE7r9eEwqRkgs6H3Z/8gVforv9UySCSEqrSPERq t4PZKOCoFo7hId+xhHzGpa1oMDw8wRMAKwBFXR241BmAJBety/zep/Sbal2cZx13zcSNzC Z2sQkKIQCmDCGeOS8RkqhkYHsqQ0bG1+zRTvJxAJcM/YKei3EOeLppF4VB/hZkibwnAzzD S9OaTsv9YIb7j7EOe1EJSCkyAaHUTOvyDu116DbMh+yqh7AEIM4/JR3A3Pw9HA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=SBAEzCzp; dmarc=pass (policy=none) header.from=gnu.org; 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" X-Migadu-Spam-Score: -1.63 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=SBAEzCzp; dmarc=pass (policy=none) header.from=gnu.org; 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" X-Migadu-Queue-Id: 585AF25161 X-Spam-Score: -1.63 X-Migadu-Scanner: scn0.migadu.com X-TUID: hXikdPAYdFsa * guix/build/profiles.scm (manifest-sexp->inputs+search-paths): Always return a search path for GUIX_EXTENSIONS_PATH. * guix/search-paths.scm ($GUIX_EXTENSIONS_PATH): New variable. This allows Guix to find extensions without any need for users to set GUIX_EXTENSIONS_PATH manually. --- guix/build/profiles.scm | 7 ++++--- guix/search-paths.scm | 11 +++++++++++ 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/guix/build/profiles.scm b/guix/build/profiles.scm index 0c92f222b4..b19d93f971 100644 --- a/guix/build/profiles.scm +++ b/guix/build/profiles.scm @@ -179,9 +179,10 @@ (define-syntax let-fields (() (values (reverse inputs) (delete-duplicates - (cons $PATH - (map sexp->search-path-specification - (reverse search-paths))))))))))) + (cons* $PATH + $GUIX_EXTENSIONS_PATH + (map sexp->search-path-specification + (reverse search-paths))))))))))) (define* (build-profile output manifest #:key (extra-inputs '()) (symlink symlink)) diff --git a/guix/search-paths.scm b/guix/search-paths.scm index 6b13a98946..5a0cddac8f 100644 --- a/guix/search-paths.scm +++ b/guix/search-paths.scm @@ -33,6 +33,7 @@ (define-module (guix search-paths) search-path-specification-file-pattern $PATH + $GUIX_EXTENSIONS_PATH $SSL_CERT_DIR $SSL_CERT_FILE @@ -73,6 +74,16 @@ (define $PATH (variable "PATH") (files '("bin" "sbin")))) +(define-public $GUIX_EXTENSIONS_PATH + ;; 'GUIX_EXTENSIONS_PATH' is used by Guix to locate extension commands. + ;; Like 'PATH', it's not attached to any package, so that users don't have + ;; to install the 'guix' package (which is not supposed to be installed, + ;; as it will mess up the 'guix pull' installation) or set the variable + ;; manually. + (search-path-specification + (variable "GUIX_EXTENSIONS_PATH") + (files '("share/guix/extensions")))) + ;; Two variables for certificates (see (guix)X.509 Certificates), ;; respected by 'openssl', possibly GnuTLS in the future ;; (https://gitlab.com/gnutls/gnutls/-/merge_requests/1541) -- 2.37.2