From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Subject: bug#33361: Directories in the store get non-zero timestamps Date: Tue, 13 Nov 2018 15:17:46 +0100 Message-ID: <87r2fpnjsl.fsf@gnu.org> References: <877ehhkgd2.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47163) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gMZX9-0004tD-W6 for bug-guix@gnu.org; Tue, 13 Nov 2018 09:19:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gMZWy-0002J7-Bq for bug-guix@gnu.org; Tue, 13 Nov 2018 09:19:10 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:44439) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gMZWw-0002IN-2l for bug-guix@gnu.org; Tue, 13 Nov 2018 09:19:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gMZWv-00082u-Ub for bug-guix@gnu.org; Tue, 13 Nov 2018 09:19:01 -0500 Sender: "Debbugs-submit" Resent-To: bug-guix@gnu.org Resent-Message-ID: In-Reply-To: <877ehhkgd2.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Tue, 13 Nov 2018 00:47:53 +0100") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: 33361-done@debbugs.gnu.org ludo@gnu.org (Ludovic Court=C3=A8s) skribis: > On berlin, I see that timestamps on directories are not reset: > > ludo@berlin ~$ find /gnu/store/yn7dx3jkb18mc7dwnsn2izix2f62riw8-python-ta= bles-3.4.4 -exec stat -c '%y %n' {} \; > 1970-01-01 01:00:01.000000000 +0100 /gnu/store/yn7dx3jkb18mc7dwnsn2izix2f= 62riw8-python-tables-3.4.4 > 1970-01-01 01:00:01.000000000 +0100 /gnu/store/yn7dx3jkb18mc7dwnsn2izix2f= 62riw8-python-tables-3.4.4/lib > 1970-01-01 01:00:01.000000000 +0100 /gnu/store/yn7dx3jkb18mc7dwnsn2izix2f= 62riw8-python-tables-3.4.4/lib/python3.7 > 1970-01-01 01:00:01.000000000 +0100 /gnu/store/yn7dx3jkb18mc7dwnsn2izix2f= 62riw8-python-tables-3.4.4/lib/python3.7/site-packages > 2018-11-13 00:32:27.631418400 +0100 /gnu/store/yn7dx3jkb18mc7dwnsn2izix2f= 62riw8-python-tables-3.4.4/lib/python3.7/site-packages/tables-3.4.4-py3.7.e= gg-info > 1970-01-01 01:00:01.000000000 +0100 /gnu/store/yn7dx3jkb18mc7dwnsn2izix2f= 62riw8-python-tables-3.4.4/lib/python3.7/site-packages/tables-3.4.4-py3.7.e= gg-info/SOURCES.txt > 1970-01-01 01:00:01.000000000 +0100 /gnu/store/yn7dx3jkb18mc7dwnsn2izix2f= 62riw8-python-tables-3.4.4/lib/python3.7/site-packages/tables-3.4.4-py3.7.e= gg-info/requires.txt > 1970-01-01 01:00:00.000000000 +0100 /gnu/store/yn7dx3jkb18mc7dwnsn2izix2f= 62riw8-python-tables-3.4.4/lib/python3.7/site-packages/tables-3.4.4-py3.7.e= gg-info/dependency_links.txt > 1970-01-01 01:00:01.000000000 +0100 /gnu/store/yn7dx3jkb18mc7dwnsn2izix2f= 62riw8-python-tables-3.4.4/lib/python3.7/site-packages/tables-3.4.4-py3.7.e= gg-info/entry_points.txt > 1970-01-01 01:00:00.000000000 +0100 /gnu/store/yn7dx3jkb18mc7dwnsn2izix2f= 62riw8-python-tables-3.4.4/lib/python3.7/site-packages/tables-3.4.4-py3.7.e= gg-info/not-zip-safe=20 > 1970-01-01 01:00:01.000000000 +0100 /gnu/store/yn7dx3jkb18mc7dwnsn2izix2f= 62riw8-python-tables-3.4.4/lib/python3.7/site-packages/tables-3.4.4-py3.7.e= gg-info/top_level.txt > 1970-01-01 01:00:01.000000000 +0100 /gnu/store/yn7dx3jkb18mc7dwnsn2izix2f= 62riw8-python-tables-3.4.4/lib/python3.7/site-packages/tables-3.4.4-py3.7.e= gg-info/PKG-INFO > 2018-11-13 00:32:27.627418400 +0100 /gnu/store/yn7dx3jkb18mc7dwnsn2izix2f= 62riw8-python-tables-3.4.4/lib/python3.7/site-packages/tables > 1970-01-01 01:00:01.000000000 +0100 /gnu/store/yn7dx3jkb18mc7dwnsn2izix2f= 62riw8-python-tables-3.4.4/lib/python3.7/site-packages/tables/utils.py > 1970-01-01 01:00:01.000000000 +0100 /gnu/store/yn7dx3jkb18mc7dwnsn2izix2f= 62riw8-python-tables-3.4.4/lib/python3.7/site-packages/tables/index.py > 2018-11-13 00:32:27.623418400 +0100 /gnu/store/yn7dx3jkb18mc7dwnsn2izix2f= 62riw8-python-tables-3.4.4/lib/python3.7/site-packages/tables/tests > [...] > > This is probably a bug in (guix store database) as used by =E2=80=98guix > offload=E2=80=99. Fixes in commit f5a2724ae453f4a4b55ff848f4ad7e30efb6eef8. For the record, the bug also impacted permissions on these directories, which were not set to read-only for the owner (it was still read-only for everyone else, fortunately): --8<---------------cut here---------------start------------->8--- $ ls -ld /gnu/store/yn7dx3jkb18mc7dwnsn2izix2f62riw8-python-tables-3.4.4/li= b/python3.7/site-packages/tables-3.4.4-py3.7.egg-info drwxr-xr-x 2 root root 4096 Nov 13 00:32 /gnu/store/yn7dx3jkb18mc7dwnsn2izi= x2f62riw8-python-tables-3.4.4/lib/python3.7/site-packages/tables-3.4.4-py3.= 7.egg-info/ --8<---------------cut here---------------end--------------->8--- The bug occurred only on directories containing files that were deduplicated. (Remember that you=E2=80=99re not exposed at all if you do not use offloadi= ng.) I=E2=80=99ll update the =E2=80=98guix=E2=80=99 package so everyone can depl= oy the fix. Ludo=E2=80=99.