GNU bug report logs - #45991
[PATCH core-updates] Move 'mkdir-p/perms' to gnu/build/utils.scm

Previous Next

Package: guix-patches;

Reported by: Maxime Devos <maximedevos <at> telenet.be>

Date: Tue, 19 Jan 2021 18:43:02 UTC

Severity: normal

Tags: patch, wontfix

Done: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 45991 in the body.
You can then email your comments to 45991 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#45991; Package guix-patches. (Tue, 19 Jan 2021 18:43:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Maxime Devos <maximedevos <at> telenet.be>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Tue, 19 Jan 2021 18:43:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Maxime Devos <maximedevos <at> telenet.be>
To: guix-patches <at> gnu.org
Subject: [PATCH core-updates] Move 'mkdir-p/perms' to gnu/build/utils.scm
Date: Tue, 19 Jan 2021 19:42:11 +0100
[Message part 1 (text/plain, inline)]
Hi Guix,

This is the patch I talked about on IRC. It moves the various inline
definitions of 'mkdir-p/perms' from gnu/services/... to gnu/build/utils.scm.
I've also written a few tests. As this change entails a world rebuild,
this should be applied to core-updates instead of master (as civodul
pointed out).

`make check TESTS=tests/build-utils.scm` succeeds. Building a few packages
for testing will take some time though (due to the world rebuild).

Plenty of parentheses,
Maxime
-- 
Maxime Devos <maximedevos <at> telenet.be>
PGP Key: C1F3 3EE2 0C52 8FDB 7DD7  011F 49E3 EE22 1917 25EE
Freenode handle: mdevos
[0001-utils-Add-mkdir-p-perms.patch (text/x-patch, attachment)]
[0002-gnu-remove-inline-mkdir-p-perms-definitions.patch (text/x-patch, attachment)]
[signature.asc (application/pgp-signature, inline)]

Information forwarded to guix-patches <at> gnu.org:
bug#45991; Package guix-patches. (Tue, 19 Jan 2021 18:53:02 GMT) Full text and rfc822 format available.

Message #8 received at 45991 <at> debbugs.gnu.org (full text, mbox):

From: Maxime Devos <maximedevos <at> telenet.be>
To: 45991 <at> debbugs.gnu.org
Subject: Re: [PATCH core-updates] Move 'mkdir-p/perms' to gnu/build/utils.scm
Date: Tue, 19 Jan 2021 19:52:07 +0100
[Message part 1 (text/plain, inline)]
I forgot to mention some atomicity issues the
current mkdir-p/perms has. Excerpt from IRC:

(15:17:25) mdevos: I see ‘mkdir-p/perms’ doesn't create the directory
and set the permissions atomically; there's a tiny window where a
freshly-created directory has the permissions that would be expected
from the umask. Is this something to be concerned about (and to be
fixed in the patch)?
(15:40:46) civodul: mdevos: it's a good idea to be concerned about
this, yes :-)
(15:41:27) civodul: in general, given that changes in (guix build utils)
take time to trickle in, we should be extra cautious about interfaces and
implementation details

This patch doesn't address these potential issues.
Also, %dovecot-activation has an anomalous mkdir-p/perms.
[signature.asc (application/pgp-signature, inline)]

Information forwarded to guix-patches <at> gnu.org:
bug#45991; Package guix-patches. (Thu, 22 Apr 2021 08:57:01 GMT) Full text and rfc822 format available.

Message #11 received at 45991 <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Maxime Devos <maximedevos <at> telenet.be>
Cc: 45991 <at> debbugs.gnu.org
Subject: Re: bug#45991: [PATCH core-updates] Move 'mkdir-p/perms' to
 gnu/build/utils.scm
Date: Thu, 22 Apr 2021 10:56:29 +0200
Hi Maxime,

Maxime Devos <maximedevos <at> telenet.be> skribis:

> This is the patch I talked about on IRC. It moves the various inline
> definitions of 'mkdir-p/perms' from gnu/services/... to gnu/build/utils.scm.
> I've also written a few tests. As this change entails a world rebuild,
> this should be applied to core-updates instead of master (as civodul
> pointed out).

Since (gnu build activation) now has a variant of ‘mkdir-p/perms’ that
verifies that directory components are not symlinks, should we still
include this one in (guix build utils)?

Thanks for all the parens!  :-)

Ludo’.




Added tag(s) wontfix. Request was from Maxim Cournoyer <maxim.cournoyer <at> gmail.com> to control <at> debbugs.gnu.org. (Fri, 20 Oct 2023 02:40:01 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 45991 <at> debbugs.gnu.org and Maxime Devos <maximedevos <at> telenet.be> Request was from Maxim Cournoyer <maxim.cournoyer <at> gmail.com> to control <at> debbugs.gnu.org. (Fri, 20 Oct 2023 02:40:01 GMT) Full text and rfc822 format available.

Information forwarded to guix-patches <at> gnu.org:
bug#45991; Package guix-patches. (Fri, 20 Oct 2023 02:40:02 GMT) Full text and rfc822 format available.

Message #18 received at 45991-done <at> debbugs.gnu.org (full text, mbox):

From: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: Maxime Devos <maximedevos <at> telenet.be>, 45991-done <at> debbugs.gnu.org
Subject: Re: bug#45991: [PATCH core-updates] Move 'mkdir-p/perms' to
 gnu/build/utils.scm
Date: Thu, 19 Oct 2023 22:38:37 -0400
Hi,

Ludovic Courtès <ludo <at> gnu.org> writes:

> Hi Maxime,
>
> Maxime Devos <maximedevos <at> telenet.be> skribis:
>
>> This is the patch I talked about on IRC. It moves the various inline
>> definitions of 'mkdir-p/perms' from gnu/services/... to gnu/build/utils.scm.
>> I've also written a few tests. As this change entails a world rebuild,
>> this should be applied to core-updates instead of master (as civodul
>> pointed out).
>
> Since (gnu build activation) now has a variant of ‘mkdir-p/perms’ that
> verifies that directory components are not symlinks, should we still
> include this one in (guix build utils)?
>
> Thanks for all the parens!  :-)

I guess (gnu build activation) is an appropriate home, given configuring
permissions is not typically useful for packaging purposes.

-- 
Thanks,
Maxim




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 17 Nov 2023 12:24:12 GMT) Full text and rfc822 format available.

This bug report was last modified 154 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.