From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marius Bakke Subject: Re: core-updates freeze Date: Tue, 16 Jul 2019 18:36:52 +0200 Message-ID: <87r26q542j.fsf@devup.no> References: <87blybrqjn.fsf@devup.no> <87ftncvbgs.fsf@gnu.org> <877e8oo08n.fsf@posteo.net> <874l3rmg8j.fsf@devup.no> <87ftna9gkg.fsf@posteo.net> <87o91udpty.fsf@ngyro.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:55002) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hnQRl-0006Mu-9d for guix-devel@gnu.org; Tue, 16 Jul 2019 12:36:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hnQRk-0006OM-33 for guix-devel@gnu.org; Tue, 16 Jul 2019 12:36:57 -0400 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:44407) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hnQRj-0006Nl-R1 for guix-devel@gnu.org; Tue, 16 Jul 2019 12:36:56 -0400 In-Reply-To: <87o91udpty.fsf@ngyro.com> 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+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Timothy Sample , Kei Kebreau Cc: guix-devel@gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Timothy Sample writes: > Hi, > > Kei Kebreau writes: > >> Marius Bakke writes: >> >>> I'm not sure what we should do about it. Thoughts? >>> >>> Kei: Does it work if you 'echo Your/Timezone > /etc/timezone' ? >>> Alternatively, you could make /etc/localtime a symbolic link to >>> $tzdata/share/zoneinfo/Your/Timezone, though that will not persist a >>> reboot. >> >> I can confirm that both of these methods work, so crude work-arounds >> include >> >> 1. Setting the system's configured time zone in /etc/timezone > > This is my vote for two reasons. First, it seems more elegant. If I > want to know the timezone name, I should look it up directly, and not > chase symlinks around looking for some canonical timezone file. I think > this is the closest thing to a =E2=80=9Cstandard way to get the name of t= he > system timezone=E2=80=9D (her= e, > =E2=80=9Cstandard=E2=80=9D means =E2=80=9Cwell, I guess at least Gentoo d= oes it=E2=80=9D). Second, it > is a one-liner for us: > > From ad931895edae97e2d6d77542fcbe8dc793f193f0 Mon Sep 17 00:00:00 2001 > From: Timothy Sample > Date: Tue, 16 Jul 2019 10:04:58 -0400 > Subject: [PATCH] system: Write the timezone to /etc/timezone. > > * gnu/system.scm (operating-system-etc-service): Write the operating > system timezone to /etc/timezone. > > Fixes . > --- > gnu/system.scm | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/gnu/system.scm b/gnu/system.scm > index 01be1243fe..75ac0632bb 100644 > --- a/gnu/system.scm > +++ b/gnu/system.scm > @@ -716,6 +716,7 @@ fi\n"))) > ;; to certain networks. Some discussion at > ;; https://lists.gnu.org/archive/html/help-guix/2017-09/msg00037.= html > ("hostname" ,(plain-file "hostname" (operating-system-host-name o= s))) > + ("timezone" ,(plain-file "timezone" (operating-system-timezone os= ))) > ("localtime" ,(file-append tzdata "/share/zoneinfo/" > (operating-system-timezone os))) > ("sudoers" ,(operating-system-sudoers-file os)))))) > --=20 > 2.22.0 > > > Thoughts? Looks good to me. Perhaps leave a comment that Glib uses this file to figure out the current timezone? Though I notice Debian 10 creates /etc/timezone too, so maybe we just missed a FHS update somewhere. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAl0t/SQACgkQoqBt8qM6 VPqWfgf/e+sJStekZwaIAZfpncHVGfVDc+qjspt+tE7iMWkOnQmdhd5Z3bDtmeIO DZT+xiKhF0bcLphvp3cxYbdfgJy5dw8ZZDmdQyc2DrabpxNwT3wPVeH1BJmUx18Y CFV8r80vcg63DO7K5v1LQgHeobc9jFXbuDu0SCc8uo+Nuo8hq+44GLfG9Kv7e7mF OtNONNebc0BxgJCCnNCWlS/ZzcdZq8xCUqKQpgivVKeNbieI9YvRqgtb0T5mNI16 p/r3wSTjhRvjNnByOz8xPRL+3jJwJij2DRJ0+PNG9Ct2M486BVR8eSRQiHHCHYa+ 4oMB9tznpAG+zahfCg82eV8rz2s6vg== =uV+S -----END PGP SIGNATURE----- --=-=-=--