From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id mGCNHyOKOmYHcgEA62LTzQ:P1 (envelope-from ) for ; Tue, 07 May 2024 22:08:03 +0200 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id mGCNHyOKOmYHcgEA62LTzQ (envelope-from ) for ; Tue, 07 May 2024 22:08:03 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=fcL4hLNF; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1715112483; a=rsa-sha256; cv=none; b=lXBLwYQtNbmGWOy4J6w1eBAuYQMVMP94qFhw8TDKLUlXySv+V3hBh5ABtUr3ZbVFDjmmpe rWYirwnHpZBnlt64kK1Rnvr1mymp/37VLFEeIT4kwot/TXdOErRlg/D40M7t0tRyLWta9C D2lZbasIp/TDFzqNHH1P9l1KgttXk0WL04OPXg9LSdb94QbMWfat7ZF1+Rq+bPl+DXFyvu +7UbIdKxzPaNDJlLrzNbZtGoq7pknUmXE3bFB4lyxWdZxfUlz+5ZwLeiqUwd0SgWqu1qpB 7wbO6qu+QJuX7ZYFaJPpLb2GEx8pbEK2B663FVOvcIqCvpsIJ9W8WiaFheUTNQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=fcL4hLNF; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1715112483; 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: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=LjMWwIi1BKi2i6DUIjw7/3Imxt/QX8Vdb00q7Fc2+BQ=; b=u+NK2P3e2ewpKnF3D8sUtFJ7pqAlrE8hlNeEy/UfTi7vnGthjmZSCc1wmKx1iCZRZVKH/B SeYurtLBncal80+/RopaoFK3551hejSs0ymXacAEXZTAkL7LzgGQB4R1U02su5ewBqGRd2 bo0A8Ey01qkw/PL/xyV8qmAZhBCFihO7VD184C2os9xMToYQYW10NRnLmiftrnbOcTm0uG tHXp5kxprWHvpsWVhbnLUQq07CnK8iU7iRtA1V1HiA08MprSzfWKbWtVKIASkzDnPbU6g9 YqNjPBON6JXM5Z0wyZRX7yjZfbKHoOtW+xQnmfQNKi741K0nbCSqfOQQ0xPPzg== 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 63C1130936 for ; Tue, 7 May 2024 22:08:03 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s4R62-00038S-Bo; Tue, 07 May 2024 16:07:30 -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 1s4R60-000382-Dw for guix-devel@gnu.org; Tue, 07 May 2024 16:07:28 -0400 Received: from mail-wr1-x42e.google.com ([2a00:1450:4864:20::42e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s4R5y-00006D-3r; Tue, 07 May 2024 16:07:27 -0400 Received: by mail-wr1-x42e.google.com with SMTP id ffacd0b85a97d-34cb2bf85easo373855f8f.3; Tue, 07 May 2024 13:07:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715112441; x=1715717241; darn=gnu.org; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id :reply-to; bh=LjMWwIi1BKi2i6DUIjw7/3Imxt/QX8Vdb00q7Fc2+BQ=; b=fcL4hLNFV6NHi4QqvlZ33HvYeCJEl6LqPP3Qy0c1fx2cSwNk6M8pcJfGK2I5QmTRPZ u++eWJq1XIjc48vj7kr4tfeRa5R+hWIxIEoFgKG49w/cqrsfMrgLHT5dLVk1FV2o4yaX uGNSRQ93FgA73rsuh1o3rq9WF4QCr8I6+Lqk83aD2gWv+CT+6h51Vt7YslB9moyDfBbw hlb/ftiixax/2t/1qO3cCeWDjNphOUU3pE9hWtpGXczPmw1rMfMxegumLaUFUjWV6iDW nRCgg9Oi/GqWhC7qUOGpAMGkJKmh4qlf7yFlV27ZL1sPpNhaOK6cu9707XlgxsS3pPI4 Rz/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715112441; x=1715717241; h=content-transfer-encoding:mime-version: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=LjMWwIi1BKi2i6DUIjw7/3Imxt/QX8Vdb00q7Fc2+BQ=; b=h/j+1qFBAlWSIkmmG1QuqESukBI/4XF/VNpAouNI82NSGnRyB1/9mbEzey8BT1Cah2 7auxIVKOxOJmoA6sOiGKI8y8Qz8daOAKpmy6McIKcBMKxseFU93TxL1bxte2/m9KfXlt 7gqSKWigeXhyZBoxJq+6uGvrV4PiIeMo1WVgqseXTWasKp6QDj+NFtI07Hge38Pcx/Va B/BfbZk+ALqW9Xz8in+Kf0n8NCjLxVM0QMCLswrRU4OdPocrt/DZaUfhniqLOPW7hGgq G+8HBj1PqUr0HNq0Rezq5MmoDv2iPQ8muHMO26OdW3/X4SkI8OfE7cbUDGYkJfUOi7aW /7wA== X-Gm-Message-State: AOJu0Yw7drrI2qKoyYfssu6wwUz9T88KeK0sL01aAHvK5ZVf6bgX/+3W iY6Fy8NESsUnIuL+CHYs/TeMiCrGr+ESxURvjEsojnIRpblOK6O3R2nEGw== X-Google-Smtp-Source: AGHT+IH/V9W+jpCQcVZsBcvpRkEy8JiMghVhEnNKypv3DyqO5b7RXrKnxzzywEJPafudt6qU+5qang== X-Received: by 2002:a05:600c:1ca0:b0:41a:c4fe:b0a5 with SMTP id 5b1f17b1804b1-41f71cc15c9mr5730435e9.4.1715112440626; Tue, 07 May 2024 13:07:20 -0700 (PDT) Received: from lili (roam-nat-fw-prg-194-254-61-45.net.univ-paris-diderot.fr. [194.254.61.45]) by smtp.gmail.com with ESMTPSA id d18-20020adfef92000000b0034c71090653sm13586604wro.57.2024.05.07.13.07.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 13:07:19 -0700 (PDT) From: Simon Tournier To: Ludovic =?utf-8?Q?Court=C3=A8s?= , Richard Sent Cc: guix-devel@gnu.org Subject: Re: Changing the defaults for --localstatedir and --sysconfdir? In-Reply-To: <87sez0zizk.fsf@gnu.org> References: <87sez19s1o.fsf@freakingpenguin.com> <87sez0zizk.fsf@gnu.org> Date: Tue, 07 May 2024 22:07:14 +0200 Message-ID: <877cg51j4d.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::42e; envelope-from=zimon.toutoune@gmail.com; helo=mail-wr1-x42e.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: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Queue-Id: 63C1130936 X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -8.71 X-Spam-Score: -8.71 X-TUID: GQGc1NjDqyah Hi, On jeu., 02 mai 2024 at 11:00, Ludovic Court=C3=A8s wrote: > Richard Sent skribis: > >> As everyone who's built Guix from source knows, when running ./configure >> on a system with an existing Guix installation you must remember to >> specify --localstatedir=3D/var and --sysconfdir=3D/etc. I think we should >> consider whether those variables should default to those values. > > I think it would make sense. I have always been for changing the defaults but GNU standards=E2=80=A6 > Before I advocated that we should preferably stick to the GNU standards > and have users make informed choices (that=E2=80=99s how we ended up with= the > =E2=80=98GUIX_CHECK_LOCALSTATEDIR=E2=80=99 macro that warns users but let= s them > explicitly pass =E2=80=98--localstatedir=E2=80=99.) =E2=80=A6and I have never understood this argument. :-) Well, these GNU Standards read: =E2=80=98sysconfdir=E2=80=99 [...] This directory should normally be /usr/local/etc, but write it as $(prefix)/etc. (If you are using Autoconf, write it as =E2=80=98@sysconfdir@=E2=80=99.) =E2=80=98localstatedir=E2=80=99 [...] $(localstatedir) should normally be /usr/local/var, but write it as $(prefix)/var. (If you are using Autoconf, write it as =E2=80=98@localstatedir@=E2=80=99.) https://www.gnu.org/prep/standards/standards.html#Directory-Variables As Ricardo pointed, it could be confusing to have some defaults as GNU Standards recommend and only 2 different. Especially, $(prefix) might appear elsewhere as recommendation: =E2=80=99exec_prefix=E2=80=99 so then = =E2=80=99bindir=E2=80=99, =E2=80=99sbindir=E2=80=99 etc., =E2=80=98datarootdir=E2=80=99 so =E2=80=99d= atadir=E2=80=99, =E2=80=98sharedstatedir=E2=80=99, =E2=80=98includedir=E2=80=99, etc. Therefore, setting also by default =E2=80=99prefix=E2=80=99 as /. would mea= n =E2=80=99bindir=E2=80=99 equals to /bin. That=E2=80=99s fine=E2=80=A6 we need to adjust accordingly guix-install.sh, to my knowledge. Well, this =E2=80=99prefix=E2=80=99 default matters only in one case: other= distro packaging Guix, right? And I guess these distro do not run =E2=80=9Cmake install=E2=80=9D with the= default GNU Standards =E2=80=99prefix=E2=80=99 recommendation (/usr/local/bin/) and mod= ifies it to /usr/, I guess. On foreign distro: $ ls -a /usr/local/bin/ . .. guix This =E2=80=99guix=E2=80=99 comes from guix-install.sh. All in all, the surprise when defaulting =E2=80=99prefix=E2=80=99, =E2=80= =99localstatedir=E2=80=99 and =E2=80=99sysconfdir=E2=80=99 should be very limited, no? Cheers, simon