From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:41527) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ii4Jz-0002xS-Qm for guix-patches@gnu.org; Thu, 19 Dec 2019 17:31:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ii4Jy-0006Dz-Ls for guix-patches@gnu.org; Thu, 19 Dec 2019 17:31:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:39711) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ii4Jy-0006CQ-El for guix-patches@gnu.org; Thu, 19 Dec 2019 17:31:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ii4Jy-000633-9a for guix-patches@gnu.org; Thu, 19 Dec 2019 17:31:02 -0500 Subject: [bug#38593] Remove invalid library directories from some haskell packages Resent-Message-ID: From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: Date: Thu, 19 Dec 2019 23:30:20 +0100 In-Reply-To: (John Soo's message of "Fri, 13 Dec 2019 14:38:01 +0000") Message-ID: <871rt0kkxv.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: John Soo Cc: 38593@debbugs.gnu.org Hi, John Soo skribis: > When compiling with ghc, I have been getting the message that the followi= ng > packages have invalid package databases. Does it hurt in practice, or are these invalid databases shadowed by the one created in the profile? > diff --git a/gnu/packages/haskell-xyz.scm b/gnu/packages/haskell-xyz.scm > index fb6833207d..1d78eb7894 100644 > --- a/gnu/packages/haskell-xyz.scm > +++ b/gnu/packages/haskell-xyz.scm > @@ -5500,6 +5500,13 @@ representations of current time.") > ("ghc-quickcheck" ,ghc-quickcheck) > ("ghc-temporary" ,ghc-temporary) > ("hspec-discover" ,hspec-discover))) > + (arguments > + `(#:phases > + (modify-phases %standard-phases > + (add-after 'install 'remove-lib > + (lambda* (#:key outputs #:allow-other-keys) > + (delete-file-recursively > + (string-append (assoc-ref outputs "out") "/lib"))))))) Should we add a phase in =E2=80=98haskell-build-system=E2=80=99 that system= atically removes package databases? Thanks, Ludo=E2=80=99.