From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:5f26::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id 6DJGNYnLoWUDDAEAkFu2QA (envelope-from ) for ; Sat, 13 Jan 2024 00:30:17 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id oFmqLonLoWVnJAAAqHPOHw (envelope-from ) for ; Sat, 13 Jan 2024 00:30:17 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=riseup.net header.s=squak header.b=G7+jIn5V; dmarc=fail reason="SPF not aligned (relaxed)" header.from=riseup.net (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1705102217; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:list-id:list-help:list-unsubscribe:list-subscribe: list-post:dkim-signature; bh=moHOF3Nq8Oum3D2tGm72j15dodqVtXL1s4xPFtmoZu0=; b=Lb2ebbpYX8hRIBJBNavgj/pYiEh8odi+iHLViMphPZo7s6KUrVtwXCiYpdbIaetHbE2XYT CdeaetIkk4cmdD1V4nEQ2oxwum+kmVgESFq9K1SnI1aYUKD5fMP83yRTZBMvDXw8UKPx3p sj3IW62BFJER8jEQjF+CtrL9qeKrJycjIUEE3jqQm0xrXQk6XczDpu5NCna1xgDd0Kzi0i JakbqEB2oTwcrDlJDmtvW7JwT33RElBqgjbF3cImCMHaAvuOvM9lLp32GOFlqr3xdijqZG 8/coQpqc0NAPFjqPWlGbh/7Y7FK5PXZA+1uLuYkv7OKcHsChdwKkfzV96S6Kpg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=riseup.net header.s=squak header.b=G7+jIn5V; dmarc=fail reason="SPF not aligned (relaxed)" header.from=riseup.net (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1705102217; a=rsa-sha256; cv=none; b=EqkYyrHb5WCkgqU5ZnUbEt8d0W823kKi6CMb6Ehw/wg2EJMnIXjI06Pb1fZF83CCeV0ZBp g+GiF3D2GSQ6niatShP/JyMkAxwZgeFrGQgMgyme0HoOiosc8WGWP66TN0EiRauxScWqc+ VxyTY7HdYj3rUWDNoq7F1f4yvrM48p1DDCs9fxRd/g2tyELM25de6JkyCPwajJho985Cwu G2BxeJ4WCrtyxDuYX9BFbYbauzDNpVZu6dFve8KXqZ4dOAlpwkx4zKwpLA4tJCbZPQRltV jAUotHDGctXqt26MtMn9doCNQP+fkQ1GCE1CDsXaevrANPoO7N2nMpJEDx8mlw== 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 1E2A71EDAC for ; Sat, 13 Jan 2024 00:30:16 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rOQyU-0001J5-81; Fri, 12 Jan 2024 18:30:06 -0500 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 1rOQyS-0001Ix-R8 for bug-guix@gnu.org; Fri, 12 Jan 2024 18:30:04 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rOQyS-0000Pp-EL for bug-guix@gnu.org; Fri, 12 Jan 2024 18:30:04 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rOQyQ-0000my-AF for bug-guix@gnu.org; Fri, 12 Jan 2024 18:30:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#68411: Timezone not detected from /etc/localtime Resent-From: Distopico Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 12 Jan 2024 23:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 68411 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 68411@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.17051021422922 (code B ref -1); Fri, 12 Jan 2024 23:30:02 +0000 Received: (at submit) by debbugs.gnu.org; 12 Jan 2024 23:29:02 +0000 Received: from localhost ([127.0.0.1]:37964 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rOQxS-0000l4-8x for submit@debbugs.gnu.org; Fri, 12 Jan 2024 18:29:02 -0500 Received: from lists.gnu.org ([2001:470:142::17]:43366) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rOQxN-0000kX-JU for submit@debbugs.gnu.org; Fri, 12 Jan 2024 18:29:01 -0500 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 1rOQxJ-0000tX-MB for bug-guix@gnu.org; Fri, 12 Jan 2024 18:28:53 -0500 Received: from mx0.riseup.net ([198.252.153.6]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rOQxH-00086G-JW for bug-guix@gnu.org; Fri, 12 Jan 2024 18:28:53 -0500 Received: from fews02-sea.riseup.net (fews02-sea-pn.riseup.net [10.0.1.112]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx0.riseup.net (Postfix) with ESMTPS id 4TBd5V0sW9z9tqD for ; Fri, 12 Jan 2024 23:28:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1705102126; bh=54xLLgej+79w+RxatYORhE8Tjbt9kwhvv8AZ+1jQ+Q4=; h=From:To:Subject:Date:From; b=G7+jIn5V4c5kXIQcUwjn9O8uQz8R2XQxLKj9I8RzhcGYHUZ0oxkRDJCynfVcrF2HE HzGLHs73BkPH4xsBXr+Bw6cGiV6UaxuIBilf3hSN+M3ieaHy9ExoO6JMTZfI1N/d13 3EXOiKAqhh+tsjquRVGKHH0H1dOMXbkz9dj40Hns= X-Riseup-User-ID: 599983B224CC3251BF13DEAB037BA5C07B8AD817F8A68B60856628CDE54157B7 Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews02-sea.riseup.net (Postfix) with ESMTPSA id 4TBd5T3p91zFtQg for ; Fri, 12 Jan 2024 23:28:45 +0000 (UTC) From: Distopico Date: Fri, 12 Jan 2024 17:41:58 -0500 Message-ID: <874jfiku6y.fsf@riseup.net> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=198.252.153.6; envelope-from=distopico@riseup.net; helo=mx0.riseup.net 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, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: 2.79 X-Spam-Score: 2.79 X-Migadu-Queue-Id: 1E2A71EDAC X-Migadu-Scanner: mx12.migadu.com X-TUID: rwHaWn1QZlbr Apps such as Icecat or ungoogled-chromium are not able to get the correct timezone from /etc/localtime when `/etc/localtime` is a realpath maybe because it expect /etc/share/zoneinfo, with readlink partially works fine some apps, maybe related with an icu bug.[1] I just removed manually `/etc/localtime` and crate an symlink `sudo ln -s $TZDIR/$(cat /etc/timezone) /etc/localtime` and ungoogled-chromium works fine. Icecat in other hand has an additional bug related with icu[2][3] and folder policy where `/gnu` is not allowed so in order to make it work is necessary disable sandbox `MOZ_DISABLE_CONTENT_SANDBOX=1 icecat` or set manually TZ env `TZ=$(cat /etc/timezone) icecat`, btw I have `privacy.resistFingerprinting` false. The weird thing is that in almost all of those reported the error is the opposite where having a realpath solves it but in guix it is the problem, perhaps it could be because these apps have updated their code to make it work with `icu` v72 and guix has v71. Steps to reproduce it: - guix pull && guix package -u - Install last icecat or ungoogled-chromium version - Verify that you don't have $TZ set, unset it. - If it's Icecat open `about:config` and set `privacy.resistFingerprinting` to false - Open https://webbrowsertools.com/timezone/ in the browser - Check the timezone - sudo rm -r /etc/localtime && sudo ln -s $TZDIR/$(cat /etc/timezone) /etc/localtime - Open chromium or `MOZ_DISABLE_CONTENT_SANDBOX=1 icecat` - Visit https://webbrowsertools.com/timezone/ again, check the timezone. See also: - https://github.com/NixOS/nixpkgs/issues/238025 - https://github.com/NixOS/nixpkgs/pull/238700 Footnotes: [1] https://github.com/unicode-org/icu/pull/2323 [2] https://bugzilla.mozilla.org/show_bug.cgi?id=1848615 [3] https://hg.mozilla.org/releases/mozilla-esr115/rev/d7948b142f43