unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#48284: Dovecot <namespace-configuration> has two ‘location’ fields
@ 2021-05-08 13:02 Ludovic Courtès
  2021-05-18 12:35 ` Maxim Cournoyer
  0 siblings, 1 reply; 2+ messages in thread
From: Ludovic Courtès @ 2021-05-08 13:02 UTC (permalink / raw)
  To: 48284

I just noticed this compiler warning:

--8<---------------cut here---------------start------------->8---
gnu/services/mail.scm:431:0: warning: shadows previous definition of `%namespace-configuration-location-procedure' at gnu/services/mail.scm:431:0
<unknown-location>: warning: shadows previous definition of `namespace-configuration-location' at <unknown-location>
--8<---------------cut here---------------end--------------->8---

I believe this comes from the fact that ‘define-configuration’
automatically introduces a ‘location’ field (for the source code
location of <namespace-configuration> instantiations), which clashes
with this one:

--8<---------------cut here---------------start------------->8---
  (location
   (string "")
   "Physical location of the mailbox. This is in same format as
mail_location, which is also the default for it.")
--8<---------------cut here---------------end--------------->8---

I think this was revealed by the fix in commit
dd0826fbf345dfe7289cf943ed2d29edc51d543f.

Probably the only sane way to address it is by renaming the field above.

Thoughts?

Ludo’.




^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#48284: Dovecot <namespace-configuration> has two ‘location’ fields
  2021-05-08 13:02 bug#48284: Dovecot <namespace-configuration> has two ‘location’ fields Ludovic Courtès
@ 2021-05-18 12:35 ` Maxim Cournoyer
  0 siblings, 0 replies; 2+ messages in thread
From: Maxim Cournoyer @ 2021-05-18 12:35 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 48284

Hi Ludo,

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

> I just noticed this compiler warning:
>
> gnu/services/mail.scm:431:0: warning: shadows previous definition of `%namespace-configuration-location-procedure' at gnu/services/mail.scm:431:0
> <unknown-location>: warning: shadows previous definition of `namespace-configuration-location' at <unknown-location>
>
>
> I believe this comes from the fact that ‘define-configuration’
> automatically introduces a ‘location’ field (for the source code
> location of <namespace-configuration> instantiations), which clashes
> with this one:
>
>   (location
>    (string "")
>    "Physical location of the mailbox. This is in same format as
> mail_location, which is also the default for it.")
>
> I think this was revealed by the fix in commit
> dd0826fbf345dfe7289cf943ed2d29edc51d543f.
>
> Probably the only sane way to address it is by renaming the field above.

We could also rename the define-configuration produced %location field
accessor to something more explicit such as $name-source-location
instead of $name-location, no?

I don't think that field is being used much at all, given it was
effectively broken prior to the above commit, so renaming it should go
mostly unnoticed.

Maxim




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-05-18 12:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-08 13:02 bug#48284: Dovecot <namespace-configuration> has two ‘location’ fields Ludovic Courtès
2021-05-18 12:35 ` Maxim Cournoyer

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).