From mboxrd@z Thu Jan 1 00:00:00 1970 From: Troy Sankey Subject: Re: updating many haskell packages Date: Wed, 15 Feb 2017 14:31:30 -0500 Message-ID: <148718709098.32672.6688568200387118544@what> References: <148639459210.5455.4004512896538726304@what> <148641482905.2874.1459989202091260937@what> Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="pgp-sha256"; boundary="===============1005926895==" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36281) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ce5Ii-0005oM-EQ for guix-devel@gnu.org; Wed, 15 Feb 2017 14:31:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ce5Ih-0008Pw-8x for guix-devel@gnu.org; Wed, 15 Feb 2017 14:31:40 -0500 Received: from mail-qt0-x22e.google.com ([2607:f8b0:400d:c0d::22e]:36465) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ce5Ih-0008Pm-4M for guix-devel@gnu.org; Wed, 15 Feb 2017 14:31:39 -0500 Received: by mail-qt0-x22e.google.com with SMTP id k15so146629092qtg.3 for ; Wed, 15 Feb 2017 11:31:39 -0800 (PST) Content-Disposition: inline In-Reply-To: <148641482905.2874.1459989202091260937@what> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Federico Beffa Cc: Guix-devel --===============1005926895== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Quoting Troy Sankey (2017-02-06 16:00:29) > Quoting Federico Beffa (2017-02-06 15:34:47) > > I would consider a discrepancy between a cabal file on Hackage and the > > actual cabal file included in a tar archive a bug. It may be helpful > > to report it to the author. > = > I found this issue on the hackage github: > = > https://github.com/haskell/hackage-server/issues/503 > = > It looks like it's a feature of hackage and/or cabal to allow multiple > revisions of cabal files per tarball release. IIUC, the `cabal get` > utility takes care of automatically updating the cabal file to the > latest revision. > = > I'll have to look more into this later. Indeed the .cabal files can be revised between releases. Somehow the new revisions get pushed to the all-cabal-files repository [0] with an additional "x-revision" key [1], and Hackage picks up the new cabal file. The `cabal` and `stack` utilities substitute the .cabal file from the release tarball with the revised .cabal file from Hackage if it is newer. In theory, anything in the .cabal file could be modified, not just dependency bounds. I think guix should use the updated .cabal files for better consistency with the rest of the haskell ecosystem, and also for less per-package maintenance cost. How can guix adapt? Should we somehow incorporate the all-cabal-files repository in the haskell build system, adding a post-unpack phase to substitute the entire .cabal file? Troy [0] https://github.com/commercialhaskell/all-cabal-files [1] https://github.com/commercialhaskell/all-cabal-files/blob/hackage/old-t= ime/1.1.0.3/old-time.cabal#L3 --===============1005926895== MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Description: signature Content-Type: application/pgp-signature; name="signature.asc"; charset="us-ascii" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEE0zLJ6STd4Cp+CgbIgs677ofYV8IFAlikrIsACgkQgs677ofY V8JDow//VxkiaNLTaZm72oK3d3/YZ+QbXmLlnC4NT1x2YFccMperaiR3JMjlotFD 1t9QWzppy2URRjJ8UcsbcuuVH5OVMpJZ8t4iybpJRlu3eqg/2W89rD/b6FtCIIkT 0ot78TL/HoLlzyY2gkW0/zHIAcMuEYNZvPmdUMteneqF6K8GuViMedxgMZ0TuMRT QTkR6R7lOfNcYf670BU+giFsKMC1q+zqfEHtu16d+M3p970q6PjcwUFO1XdGoeZ8 BrSsBK5lYIFUBHBT85gZFePAi2hUchb2sPAg8peMkWkFiQbUi+C8yy92iWUUcgT2 lLhkAncty0VV4zToQtyTA+j1nKa/CnzYHSkV/n+hTA/yRXqsR1GZqa7dxnANAPQ6 M406A5K/Ntr6d0cbXRvBjbR0Bpr1kKSDQ5Y8fIsLHFnSk9pPXNqKamF4yBH/ROy5 aj/YOMVZ/PxUR57P4bbR8Ciaxx9KPvJS8UwO5RjszvSEzh+NLYKvC6Xa2OAHq8xs cFHs71vG3giHpeX9rm4nRPcDyitfCEISOXtZPEQ6hc8RYVur/aqBd1wTgjAG8BXQ 0Alq9dbjnkvfouXZkheWRxx/r4NJx5ypImQ0RAoGpnrKFFGR/LVNckSZgXMQQykR uMEyFm3AcuejO02yE94UXhqxXauSZwhnyFGe85NezHxZBnsD7ss= =BsnY -----END PGP SIGNATURE----- --===============1005926895==--