From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Subject: bug#31319: ghc-case-insensitive: Duplicate 'inputs' field. Date: Thu, 10 May 2018 00:34:28 +0200 Message-ID: <878t8swj9n.fsf@gnu.org> References: <87a7tka8ko.fsf@netris.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]:55710) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fGXfq-0000rg-GV for bug-guix@gnu.org; Wed, 09 May 2018 18:35:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fGXfp-00057R-RV for bug-guix@gnu.org; Wed, 09 May 2018 18:35:02 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:47792) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fGXfp-00057N-OR for bug-guix@gnu.org; Wed, 09 May 2018 18:35:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fGXfp-0001Xb-IT for bug-guix@gnu.org; Wed, 09 May 2018 18:35:01 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <87a7tka8ko.fsf@netris.org> (Mark H. Weaver's message of "Mon, 30 Apr 2018 13:49:11 -0400") 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: Mark H Weaver Cc: 31319@debbugs.gnu.org Hi Mark, Mark H Weaver 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=E2=80=99t change the deriva= tions produced for the faulty packages. Ludo=E2=80=99.