From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([209.51.188.92]:37320) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gmCqP-0004Kc-MM for guix-patches@gnu.org; Wed, 23 Jan 2019 02:21:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gmCqN-0005LN-PH for guix-patches@gnu.org; Wed, 23 Jan 2019 02:21:05 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:42659) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gmCqM-0005Kv-8e for guix-patches@gnu.org; Wed, 23 Jan 2019 02:21:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gmCqM-0003pY-0Y for guix-patches@gnu.org; Wed, 23 Jan 2019 02:21:02 -0500 Subject: [bug#34154] [PATCH] /etc/os-release Resent-Message-ID: Date: Wed, 23 Jan 2019 09:20:18 +0200 From: Efraim Flashner Message-ID: <20190123072017.GA6135@macbook41> References: <20190121101740.GB11658@macbook41> <87y37cjruq.fsf@gnu.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="J2SCkAp4GZ/dPZZf" Content-Disposition: inline In-Reply-To: <87y37cjruq.fsf@gnu.org> 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 --J2SCkAp4GZ/dPZZf Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jan 22, 2019 at 10:38:05PM +0100, Ludovic Court=C3=A8s wrote: > Hello! >=20 > Efraim Flashner skribis: >=20 > > Currently GuixSD ships without an '/etc/os-release' file. This simple > > service aims to correct this. >=20 > I=E2=80=99m not very enthusiastic. :-) >=20 > I think /etc/os-release is a hack and the primary motivation behind it > was (I believe) to allow proprietary programs to make assumptions on the > file system layout, available services, etc. based on the distribution > running. >=20 > WDYT? Did you encounter situations where lack of this file was causing > problems? >=20 I found a man page online from freedesktop.org=C2=B9, it seems that it's be= en aborbed by systemd at some point. It looks like some build systems can try to get information from it during building if they have distro-specific things to do. The only software that I know of that we have that would use it would be inxi. guix environment --ad-hoc inxi-minimal -- inxi -S "Distro: Unknown" isn't that big of a deal, and we could just submit a patch upstream if we really wanted it fixed. That said, I'm happy enough to plop it in my own os-config and drop the patch. =C2=B9https://www.freedesktop.org/software/systemd/man/os-release.html --=20 Efraim Flashner =D7=90=D7=A4=D7=A8=D7=99=D7=9D = =D7=A4=D7=9C=D7=A9=D7=A0=D7=A8 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --J2SCkAp4GZ/dPZZf Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAlxIFa4ACgkQQarn3Mo9 g1HSCxAAu/xa49dXm2NaSMIpRcnjHL7w3LF0SVVJFVYUpasa9wmiOiqdFAMZ93pg mpMAdSkaEc6LON4ksjNeFSKwcLd8lkRrtu1Kj5D/+kIA5j5XLK4b0JQdk27WMnte croqcDBBn6g1zjfcrCdVdxjKkKvVz/uDgK/iaXQ+ASYojOtmHDjsgDETaVn9plLs ytHR6T6KsqXqsbgI7ifVjrSGngWwHoJR9b91Pjpf/Lw3EBiT1NaQUwLB6fnU5TJ7 OBXTbH+5/goGgxd1vESNb/qPF1FP48GuQgzxYM1hOhW3Lhnd2auNE0N/IbvTQCdg 6alM/WNVFvUTpjzYs5GlfGAjxlTb2RrW5nZfyQ3Vvfvq0x7WIxJgXpsA8PhSwjaB C49cuR0rwdamcW6AjardQ+jvfgXdAkfD3Hec08N5oHNeyCFZZJDSghZenZ/uo8g1 rkJkUU9IZgyyMfG9PLyw+Nc6cE7PrEITkvpg1PYU9gsW7znMShSEH+mmJrXgafKz 6gKEPDCSLRWVK2kZz0hiRixt+wxyrTgkm+SWIwb4Ns6NyrtT+LajLhdhkOEVJFjz Q4S1fFRSxF+2+9IdVteqmzzQzRsQSARz8rrrLW8WQPTxTty2dyq0z/vE8vEbOc9q X7VPlbamOMs/arKRR5cEe92vcEbpA/Op5crR/7WV5Y/DbI6XoWw= =a83l -----END PGP SIGNATURE----- --J2SCkAp4GZ/dPZZf--