From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id YJLfADEaHGG9OQEAgWs5BA (envelope-from ) for ; Tue, 17 Aug 2021 22:21:05 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id 0Ik7ODAaHGFYLAAA1q6Kng (envelope-from ) for ; Tue, 17 Aug 2021 20:21:04 +0000 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 0103EC58C for ; Tue, 17 Aug 2021 22:21:04 +0200 (CEST) Received: from localhost ([::1]:40806 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mG5a2-00048s-3p for larch@yhetil.org; Tue, 17 Aug 2021 16:21:02 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59874) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mG5Zp-00048X-6U for help-guix@gnu.org; Tue, 17 Aug 2021 16:20:49 -0400 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]:36977) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mG5Zn-000337-5y for help-guix@gnu.org; Tue, 17 Aug 2021 16:20:48 -0400 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id EF2E73200962; Tue, 17 Aug 2021 16:20:44 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Tue, 17 Aug 2021 16:20:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=famulari.name; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=mesmtp; bh=rRWqgpfwA3rDlK2YHdyTmJpi 8F8gQpxhjs/7gMhAXQ4=; b=LUkfzzXKgBRMw1ebnci4GD+JMfOikjG3c8RbWPXH uDtvemsLiqgwRDlBWbRsahFLSU+aGe497pNPW40h3LndyQtXpzYxZ1jV9nIFKjaA vqY1aNHUOgnlb4p75nwveLz8Vymt/97xhJ6kuMgbwdbCGISZFZZIeJJ3gR2fw2f9 Phk= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=rRWqgp fwA3rDlK2YHdyTmJpi8F8gQpxhjs/7gMhAXQ4=; b=BfG5SkxD8it7PwoPNDdrQD Xgce9Ojz1cWy8e1jbVoiZMXiI/CZMN2rGrohRABJ853T3zjpR2nIbXHQlCmGgHel GWuXgRa2W8Q8SbDjf0y8C+aciWBB1UrvFpDmWYU0aaFZ0Dts2q17pP0omdgpB1DR 181OGrxghXnxXgE2UBYt4kgnoUMngvpsqfjn8dzQU9RuAQuA72V32wrnjSDNjJWN dSyL/bzhdEAEFDc9JRKOw483QDkWU9ApgDHsCEzV3uQNJlFIkmEiHYvdrR5sGD+9 8irPpKq/yBMa0NL99STOudyXiVsISyiUzwrnmP9gDlvUhgVgwPVh8NLywKTOR63w == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrleefgddugeekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfhfgggtuggjsehttdertddttddvnecuhfhrohhmpefnvghoucfh rghmuhhlrghrihcuoehlvghosehfrghmuhhlrghrihdrnhgrmhgvqeenucggtffrrghtth gvrhhnpeeukeektdffvddtudegjeegtdevhfeufeeivdejiedtieegtdevjedvjeehffev gfenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehlvg hosehfrghmuhhlrghrihdrnhgrmhgv X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 17 Aug 2021 16:20:42 -0400 (EDT) Date: Tue, 17 Aug 2021 16:20:35 -0400 From: Leo Famulari To: Edouard Klein Subject: Re: Setting TZDIR (was Re: A single reference to installed non-binaries) Message-ID: References: <87v9442ms4.fsf@rdklein.fr> <87mtpf3o08.fsf@rdklein.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87mtpf3o08.fsf@rdklein.fr> Received-SPF: pass client-ip=64.147.123.21; envelope-from=leo@famulari.name; helo=wout5-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: help-guix@gnu.org Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1629231664; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=rRWqgpfwA3rDlK2YHdyTmJpi8F8gQpxhjs/7gMhAXQ4=; b=Wkn+aqfJg6yh7aE5YGtMIrIvPUPfc2vqqRK3c401cv50v4LTOvag1njfOhObxT+AvFja60 seZip/hIvEB+keXh+q+BSpdq+y/g+6tSxCbZXnKhNHf4qedq3q/5NN3NBrtn/kUS8bog1h 7T+g0CVySQTeGmEj5LTPYYGemtZihthl46RemSZcIhgO9x9NulxEaYWwbpl8AxwdThQrdV N7NzVi1Caa6UD3rx8u8ZHTdUPE+sEirsxiV+KM1gPI4qqlCfUtWpVB3YT2i6LNrvhvi5nu su7RL8iTrzRPX7xIL+H8GXsFpaM9mVs6AepBIUaDWV1PMpBv18XfyELner1o7g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1629231664; a=rsa-sha256; cv=none; b=kMsaXv3vkKTDfnpWqHK7Y2cvrMS4vpyBfEdwGJOjOxZ8aB1frRTtf8v4EEH5X08QIlQZGZ zhWUrSB4s6OLSdpNV77yLeTUzx4re7QghTHEIyfLLqpH78oT/+Znaa7k2CqlIgd915ug8r vY/VfC7utwi57s2jXO3rkP6OvpgwUaUMxO2CLU6UmjhMnr6Cfst8FbIFC234K9dc9vz9RY 2lpmSH9oC4NltP2WN3D9wFv+gpihdCT9gwBidlvb206nARv5hUB7H8i63garbxP9i5A+gW gra3aDBlA/YLfz1m4ZrKW8rs7r0hqba+aj+LR8ovNUXUwXfaQTIAMWPxbsAxVQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=famulari.name header.s=mesmtp header.b=LUkfzzXK; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm3 header.b=BfG5SkxD; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Spam-Score: -1.42 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=famulari.name header.s=mesmtp header.b=LUkfzzXK; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm3 header.b=BfG5SkxD; dmarc=none; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Queue-Id: 0103EC58C X-Spam-Score: -1.42 X-Migadu-Scanner: scn1.migadu.com X-TUID: IApWOgUq6P0G On Tue, Aug 17, 2021 at 08:49:27PM +0200, Edouard Klein wrote: > It does, thanks, but I'm in a bit of a pickle there because this > packagge needs, for reasons outside of my control, to be deployable on > a multitude of host (non-GuixSD) linux distributions, and as a docker > container. In those cases, I can't expect the timezone data to be up to > date or to be there at all. > > Even if I list tzdata as a dependency, the host system's TZDIR will not > point to it. You wouldn't list tzdata as a dependency at all. It's the responsibility of the host operating system to provide the correct and current time zone database, and applications should look it up at run-time via TZDIR. If you are deploying to systems without a time zone database, then you could indeed consider "baking" the reference into your package while building, or consider if you need to care about having correct local time at all. > I understand that if I regularly guix pull and guix package -u, then the > tzdata package will be kept up to date. Is that correct ? Yes. But, installed packages should not need to be rebuilt to display the correct time. To elaborate, if you hardcode a store reference to tzdata in your package definitions, then old generations of installed packages will eventually display incorrect local time, because time zones are frequently changed by local governments. And that failure mode is not okay for packages included in GNU Guix. This is one of the rare cases in Guix packaging where dynamic lookup of dependencies is preferred.