unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#31319: ghc-case-insensitive: Duplicate 'inputs' field.
@ 2018-04-30 17:49 Mark H Weaver
  2018-05-09 22:34 ` Ludovic Courtès
  2019-01-22 22:06 ` Ludovic Courtès
  0 siblings, 2 replies; 8+ messages in thread
From: Mark H Weaver @ 2018-04-30 17:49 UTC (permalink / raw)
  To: 31319

Our 'ghc-case-insensitive' package contains two 'inputs' field
initializers.  If I'm not mistaken, the first one is being effectively
ignored, so 'ghc-hunit' is not actually an input.

It would be good to clean this up so that we can start raising errors
when duplicate field initializers are present.

      Mark

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

* bug#31319: ghc-case-insensitive: Duplicate 'inputs' field.
  2018-04-30 17:49 bug#31319: ghc-case-insensitive: Duplicate 'inputs' field Mark H Weaver
@ 2018-05-09 22:34 ` Ludovic Courtès
  2018-05-10 17:59   ` Mark H Weaver
  2019-01-22 22:06 ` Ludovic Courtès
  1 sibling, 1 reply; 8+ messages in thread
From: Ludovic Courtès @ 2018-05-09 22:34 UTC (permalink / raw)
  To: Mark H Weaver; +Cc: 31319

Hi Mark,

Mark H Weaver <mhw@netris.org> skribis:

> Our 'ghc-case-insensitive' package contains two 'inputs' field
> initializers.  If I'm not mistaken, the first one is being effectively
> ignored, so 'ghc-hunit' is not actually an input.
>
> It would be good to clean this up so that we can start raising errors
> when duplicate field initializers are present.

What about applying your patch that detects duplicate fields, rebuilding
all the .go files, and then resolving any such case by keeping only the
last occurrence of the field?

This is what happens currently anyway so it won’t change the derivations
produced for the faulty packages.

Ludo’.

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

* bug#31319: ghc-case-insensitive: Duplicate 'inputs' field.
  2018-05-09 22:34 ` Ludovic Courtès
@ 2018-05-10 17:59   ` Mark H Weaver
  2018-05-10 20:30     ` Ludovic Courtès
  2018-07-02 13:05     ` Ludovic Courtès
  0 siblings, 2 replies; 8+ messages in thread
From: Mark H Weaver @ 2018-05-10 17:59 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 31319

Hi Ludovic,

ludo@gnu.org (Ludovic Courtès) writes:

> Mark H Weaver <mhw@netris.org> skribis:
>
>> Our 'ghc-case-insensitive' package contains two 'inputs' field
>> initializers.  If I'm not mistaken, the first one is being effectively
>> ignored, so 'ghc-hunit' is not actually an input.
>>
>> It would be good to clean this up so that we can start raising errors
>> when duplicate field initializers are present.
>
> What about applying your patch that detects duplicate fields, rebuilding
> all the .go files, and then resolving any such case by keeping only the
> last occurrence of the field?
>
> This is what happens currently anyway so it won’t change the derivations
> produced for the faulty packages.

It's true that it wouldn't change anything to simply remove those
ignored duplicate field initializers.  However, I thought it would be
better to give people familiar with these packages an opportunity to
investigate.  Someone may have had a good reason for adding those
inputs, even if they are not strictly needed for a successful build.

Of course, at some point we should timeout on this.  I would advocate
commenting out the redundant duplicates instead of simply deleting them,
along with a FIXME comment asking someone to investigate.  We could also
look in the commit history to find out who added those redundant inputs,
and ask them directly.

If you're impatient to get the duplicate field detection patch committed
soon, I could implement these "timeout" measures in the next couple of
days.

What do you think?

      Mark

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

* bug#31319: ghc-case-insensitive: Duplicate 'inputs' field.
  2018-05-10 17:59   ` Mark H Weaver
@ 2018-05-10 20:30     ` Ludovic Courtès
  2018-07-02 13:05     ` Ludovic Courtès
  1 sibling, 0 replies; 8+ messages in thread
From: Ludovic Courtès @ 2018-05-10 20:30 UTC (permalink / raw)
  To: Mark H Weaver; +Cc: 31319

Hi Mark,

Mark H Weaver <mhw@netris.org> skribis:

> If you're impatient to get the duplicate field detection patch committed
> soon, I could implement these "timeout" measures in the next couple of
> days.
>
> What do you think?

A timeout of a few days would be perfect.  :-)

Thank you!

Ludo’.

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

* bug#31319: ghc-case-insensitive: Duplicate 'inputs' field.
  2018-05-10 17:59   ` Mark H Weaver
  2018-05-10 20:30     ` Ludovic Courtès
@ 2018-07-02 13:05     ` Ludovic Courtès
  2018-07-19 10:02       ` Ludovic Courtès
  1 sibling, 1 reply; 8+ messages in thread
From: Ludovic Courtès @ 2018-07-02 13:05 UTC (permalink / raw)
  To: Mark H Weaver; +Cc: 31319

Hello Mark,

Mark H Weaver <mhw@netris.org> skribis:

> It's true that it wouldn't change anything to simply remove those
> ignored duplicate field initializers.  However, I thought it would be
> better to give people familiar with these packages an opportunity to
> investigate.  Someone may have had a good reason for adding those
> inputs, even if they are not strictly needed for a successful build.
>
> Of course, at some point we should timeout on this.  I would advocate
> commenting out the redundant duplicates instead of simply deleting them,
> along with a FIXME comment asking someone to investigate.  We could also
> look in the commit history to find out who added those redundant inputs,
> and ask them directly.
>
> If you're impatient to get the duplicate field detection patch committed
> soon, I could implement these "timeout" measures in the next couple of
> days.

I think we should go ahead now and mechanically fix packages with
duplicate fields, and apply the duplicate detection patch.

Would you like to do that?

Thanks,
Ludo’.

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

* bug#31319: ghc-case-insensitive: Duplicate 'inputs' field.
  2018-07-02 13:05     ` Ludovic Courtès
@ 2018-07-19 10:02       ` Ludovic Courtès
  2018-07-20 21:23         ` Mark H Weaver
  0 siblings, 1 reply; 8+ messages in thread
From: Ludovic Courtès @ 2018-07-19 10:02 UTC (permalink / raw)
  To: Mark H Weaver; +Cc: 31319

Ping!

I’d really like to apply the patch you posted in
<https://lists.gnu.org/archive/html/guix-devel/2018-04/msg00201.html>
along with the corresponding package fixes.

I can do that if you want.

Ludo’.

ludo@gnu.org (Ludovic Courtès) skribis:

> Hello Mark,
>
> Mark H Weaver <mhw@netris.org> skribis:
>
>> It's true that it wouldn't change anything to simply remove those
>> ignored duplicate field initializers.  However, I thought it would be
>> better to give people familiar with these packages an opportunity to
>> investigate.  Someone may have had a good reason for adding those
>> inputs, even if they are not strictly needed for a successful build.
>>
>> Of course, at some point we should timeout on this.  I would advocate
>> commenting out the redundant duplicates instead of simply deleting them,
>> along with a FIXME comment asking someone to investigate.  We could also
>> look in the commit history to find out who added those redundant inputs,
>> and ask them directly.
>>
>> If you're impatient to get the duplicate field detection patch committed
>> soon, I could implement these "timeout" measures in the next couple of
>> days.
>
> I think we should go ahead now and mechanically fix packages with
> duplicate fields, and apply the duplicate detection patch.
>
> Would you like to do that?
>
> Thanks,
> Ludo’.

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

* bug#31319: ghc-case-insensitive: Duplicate 'inputs' field.
  2018-07-19 10:02       ` Ludovic Courtès
@ 2018-07-20 21:23         ` Mark H Weaver
  0 siblings, 0 replies; 8+ messages in thread
From: Mark H Weaver @ 2018-07-20 21:23 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 31319

Hi Ludovic,

ludo@gnu.org (Ludovic Courtès) writes:

> Ping!
>
> I’d really like to apply the patch you posted in
> <https://lists.gnu.org/archive/html/guix-devel/2018-04/msg00201.html>
> along with the corresponding package fixes.

Yes, sorry for the long delay on this.  I've been nervous about
<https://bugs.gnu.org/29774>, which I encountered after applying my
patch to detect duplicate fields, and which has not yet been explained
as far as I know.  The problem seems to be sensitive to seemingly
unrelated changes in the source tree.  Since I run Guix from my own
private branch, I'm not confident what will happen if I apply this patch
to master.

> I can do that if you want.

Please do.

     Thanks!
       Mark

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

* bug#31319: ghc-case-insensitive: Duplicate 'inputs' field.
  2018-04-30 17:49 bug#31319: ghc-case-insensitive: Duplicate 'inputs' field Mark H Weaver
  2018-05-09 22:34 ` Ludovic Courtès
@ 2019-01-22 22:06 ` Ludovic Courtès
  1 sibling, 0 replies; 8+ messages in thread
From: Ludovic Courtès @ 2019-01-22 22:06 UTC (permalink / raw)
  To: Mark H Weaver; +Cc: 31319-done

Mark H Weaver <mhw@netris.org> skribis:

> Our 'ghc-case-insensitive' package contains two 'inputs' field
> initializers.  If I'm not mistaken, the first one is being effectively
> ignored, so 'ghc-hunit' is not actually an input.

Fixed in b2e46ac5318dd790530659a459bd1e714287ff37.

Ludo’.

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

end of thread, other threads:[~2019-01-22 22:07 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-30 17:49 bug#31319: ghc-case-insensitive: Duplicate 'inputs' field Mark H Weaver
2018-05-09 22:34 ` Ludovic Courtès
2018-05-10 17:59   ` Mark H Weaver
2018-05-10 20:30     ` Ludovic Courtès
2018-07-02 13:05     ` Ludovic Courtès
2018-07-19 10:02       ` Ludovic Courtès
2018-07-20 21:23         ` Mark H Weaver
2019-01-22 22:06 ` Ludovic Courtès

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).