From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id OKJhHnQ7TWb2WAEAe85BDQ:P1 (envelope-from ) for ; Wed, 22 May 2024 02:25:24 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id OKJhHnQ7TWb2WAEAe85BDQ (envelope-from ) for ; Wed, 22 May 2024 02:25:24 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=PhG+31Bs; 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"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1716337524; 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=0jcIdBee1R2rZTljm33wefbwO8181SGEyosUpIEfbdI=; b=CXlJ+HGvUTq3I6ghKlHC8km3UtwhC6lPQ+CJyuBE09eEF7GpEEKFEpjw5iG3yj1VreQAsa fHiOJOlHGvtFf9H43Ktzm6QNx2g1S0ByO03xY47Cibv4JFAf7X9K7dUlOqULvPhVaGiFbL mV8TGXpGoAND6iuX1z3qk6E1T4xbk6J/Xr9jE9cIY8g3AZ5VmX2ZWZoQfQY5lZlhZ5pYXh SkhOiyOWSl9KzbXA0qimY+XGXBJlMRhkCMD+EGJSRs3qE1oAvWnMkwL4hW/BTXXrKB5rqO WnDxDPsxYQn5Ov8PSsaOV31zUVhnUeM3fm0yBCGCfDZNGljDRFm4dZ1xeQSEqw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=PhG+31Bs; 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"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1716337524; a=rsa-sha256; cv=none; b=tAFKSgTjaT0YluhjuU5JHCGWfjTw0t/3jnyp8i0kNHAfKkZDAdmK3QlWxzCfOu4f1unMT8 0/9beAD3Bm+uxYcBB+fG1KSNnyhHyEpdiVEjmggBwymm5bNP1suB5hAznKHxpGCfkKB2O6 SjQcohR4TX8zlRycxX6PJ8NUcHs3AfY4GRRCTOowx61PqeX0WUsasoZ7wio39V4nXVDw02 N+EiwW16iYlvlD1k5opHSsvBXx7a40SdWbQ4dBKtP7fLP5/9velTys7T5dXJFDjezr40uu HVHGDjwxRvC3rDAWEsPU0L7peX2DtUU1doCrmqArXb2eROPjLroSZ7nU7K731A== 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 2E4376F44E for ; Wed, 22 May 2024 02:25:24 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s9Zmv-0005D6-AK; Tue, 21 May 2024 20:25:01 -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 1s9Zms-0005CU-7c for guix-patches@gnu.org; Tue, 21 May 2024 20:24:59 -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 1s9Zmq-0001KH-Mb for guix-patches@gnu.org; Tue, 21 May 2024 20:24:57 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1s9Zmw-0008Py-3z for guix-patches@gnu.org; Tue, 21 May 2024 20:25:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#71022] [PATCH] configure.ac: Set default value for the 'prefix' variable. Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 22 May 2024 00:25:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71022 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 71022@debbugs.gnu.org Cc: Simon Tournier , Vagrant Cascadian , ludo@gnu.org, Efraim Flashner , Ricardo Wurmus , Andreas Enge , Attila Lendvai , Richard Sent , Janneke Nieuwenhuizen X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.171633745932339 (code B ref -1); Wed, 22 May 2024 00:25:02 +0000 Received: (at submit) by debbugs.gnu.org; 22 May 2024 00:24:19 +0000 Received: from localhost ([127.0.0.1]:52060 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s9ZmE-0008PX-NA for submit@debbugs.gnu.org; Tue, 21 May 2024 20:24:19 -0400 Received: from lists.gnu.org ([209.51.188.17]:39762) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s9Zm9-0008PR-IN for submit@debbugs.gnu.org; Tue, 21 May 2024 20:24:17 -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 1s9Zm2-00053X-Rk for guix-patches@gnu.org; Tue, 21 May 2024 20:24:06 -0400 Received: from mail-yw1-x1131.google.com ([2607:f8b0:4864:20::1131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s9Zm1-0001As-1o; Tue, 21 May 2024 20:24:06 -0400 Received: by mail-yw1-x1131.google.com with SMTP id 00721157ae682-62036051972so47370127b3.1; Tue, 21 May 2024 17:24:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1716337442; x=1716942242; darn=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=0jcIdBee1R2rZTljm33wefbwO8181SGEyosUpIEfbdI=; b=PhG+31BsV+UdeiPptZYNxxSPSw4PH2/fqTDx079eUIajKCz/xgzBH4SEGnAnzwOh/J Lhaqz1Nh9WHpx8WCXzQcIpnuTRVDC5xykMab0j+E5cT3r6REpjz9DBo1/3sFiFVrCa9s +ggL8uEm3IonOH5OD+8xfJWbbDPUIkM8Flf1ogDHFKjLzLquetthAa1LmvMGj1TGAnXZ EOguGHP2mJP1ef046i0+qT0kx20wdKtfEGRFpErX+5Mrb2TkcnM1jAUi4cdSpAwza+Dj hc1YdhPeMSCthCWMsfHjhjzDa129uLVcxvMAB2FJkwLzTiqiWqwJS2vA6L/z01Y080YF ulOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716337442; x=1716942242; 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=0jcIdBee1R2rZTljm33wefbwO8181SGEyosUpIEfbdI=; b=EsqcHHgGs9hsYvg9H8sgycY9YENnb6jccyaThNxvS+mMXitC2blJqVlmhzo7h1UOf4 xRwsT4y9sD/Ve3+MBrtYyzEX7Y+VScYyY3e3GUPNRNzRqQto8b5xKKlwEXiaa7ttWP3U yYMQM6IOJRS6GYvhXYqSje5B2VIA0LjpsLR9v8WAUPQKEGYWbWknmisAwJiuvjWhcbiS kbl+bu2owbUqN/jDi5jX9XiqJ0dHzoEdnXkkUy8mGP5aWIutg7W0QhpYCm18yfIhWkug tHiL2Pf2cNX5LFbTEbPi7R69QYsBNxS2FZ2BkMOJlLoA9z1Yj/2F2K5QdYXRHE/aGlFy FRig== X-Forwarded-Encrypted: i=1; AJvYcCU6saXX7BMzY1Xxxt8zVKbgNGljV/wR3WhmH77pAHNxVwUmthvOQeDJQ5MjJnlS41wRyvosbMu3PWQ2ncbdPp8= X-Gm-Message-State: AOJu0Ywbd4tDCTWhZv5el/DNMPxlS1p865c4vVa8FU4E5nTduvqMdKnL ab8QGCJ2r+nPW+EYOeke9+bkbkaRXUjHXYLHnqswCDiTnYOmll63 X-Google-Smtp-Source: AGHT+IF5+EuxM+kjYMoESdlU6MbKOmusdnchNNN4mONSAmjyFpdYdZ6SPJdk/DamIDdrRmkri3oTnQ== X-Received: by 2002:a81:4c53:0:b0:618:79f5:8d32 with SMTP id 00721157ae682-627e4896f89mr6045417b3.48.1716337442202; Tue, 21 May 2024 17:24:02 -0700 (PDT) Received: from hurd (dsl-205-233-124-234.b2b2c.ca. [205.233.124.234]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-6ab8231dc95sm999186d6.69.2024.05.21.17.24.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 May 2024 17:24:01 -0700 (PDT) From: Maxim Cournoyer In-Reply-To: <9ac2df37867548ae5e15e4c262458d8fc63ba9a1.1715989953.git.maxim.cournoyer@gmail.com> (Maxim Cournoyer's message of "Fri, 17 May 2024 19:52:33 -0400") References: <9ac2df37867548ae5e15e4c262458d8fc63ba9a1.1715989953.git.maxim.cournoyer@gmail.com> Date: Tue, 21 May 2024 20:24:00 -0400 Message-ID: <87jzjm4rtr.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::1131; envelope-from=maxim.cournoyer@gmail.com; helo=mail-yw1-x1131.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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-Spam-Score: 3.94 X-Migadu-Queue-Id: 2E4376F44E X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: 3.94 X-TUID: jkp3bjERTLo5 Hi, Maxim Cournoyer writes: > The Guix standard configuration uses a localstatedir of /var and a sysconfdir > of /etc. To ease things for everyone, make the default values match that > standard expected configuration. See > for a > related discussion. > > * configure.ac: Default $prefix to '' unless already set. > * doc/contributing.texi (Building from Git): Streamline doc. > * doc/guix-cookbook.texi (Guix environment via direnv): Likewise. > > Change-Id: I23cd12b58a842d246fbc9fdc740311c573eb0212 While authoring the above, I got thinking about *why* we can't default to the default GNU /usr/local prefix, since Guix *should* handle this correctly, via paths registered in the (guix config). I guess the only reason is that /var is the hard-coded $localstatedir value we chose for any Guix package and can't meaningfully be changed (without rewritting the graft), so if it must exists anyway, we might as well use it for Guix itself by default. In other words, I believe this change does the right thing (the other idea I was musing with defaulting '--prefix=' or '--localstatedir' to the value of any installed guix, unless the user had provided one explicitly). -- Thanks, Maxim