From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([209.51.188.92]:60788) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gmGs3-0004e9-QK for guix-patches@gnu.org; Wed, 23 Jan 2019 06:39:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gmGs2-0001Vy-SY for guix-patches@gnu.org; Wed, 23 Jan 2019 06:39:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:42803) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gmGs2-0001S1-BY for guix-patches@gnu.org; Wed, 23 Jan 2019 06:39:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gmGs1-0003dc-TN for guix-patches@gnu.org; Wed, 23 Jan 2019 06:39:01 -0500 Subject: [bug#34154] [PATCH] /etc/os-release Resent-Message-ID: References: <20190121101740.GB11658@macbook41> <87y37cjruq.fsf@gnu.org> <20190123072017.GA6135@macbook41> <87h8dzheyp.fsf@gnu.org> From: Ricardo Wurmus In-reply-to: <87h8dzheyp.fsf@gnu.org> Date: Wed, 23 Jan 2019 12:37:30 +0100 Message-ID: <87h8dz7gg5.fsf@elephly.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 34154@debbugs.gnu.org Ludovic Court=C3=A8s writes: >> It looks like some build systems can try to get information from it >> during building if they have distro-specific things to do. > > That is precisely the kind of bad practice that I=E2=80=99d rather not > encourage. :-) Build systems doing this is bad, of course, but if this was a script that tried to be helpful by telling the user what commands to run to install dependencies I think it could be helpful. (I have a vague memory of a project that tried to figure out how to detect if the script is running on a Guix system by checking for /run/current-system and the like.) /etc/os-release would be a friendlier indicator than /run/current-system. -- Ricardo