From unknown Sun Aug 17 01:59:08 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#36653] [PATCH] guix import stackage: default to a LTS release compatible with GHC 8.4 Resent-From: Robert Vollmert Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 14 Jul 2019 19:40:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 36653 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 36653@debbugs.gnu.org Cc: Robert Vollmert X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.156313314721500 (code B ref -1); Sun, 14 Jul 2019 19:40:04 +0000 Received: (at submit) by debbugs.gnu.org; 14 Jul 2019 19:39:07 +0000 Received: from localhost ([127.0.0.1]:45998 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hmkKx-0005ae-AY for submit@debbugs.gnu.org; Sun, 14 Jul 2019 15:39:07 -0400 Received: from lists.gnu.org ([209.51.188.17]:36609) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hmkKu-0005aI-Bx for submit@debbugs.gnu.org; Sun, 14 Jul 2019 15:39:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40810) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hmkKt-0006vI-3H for guix-patches@gnu.org; Sun, 14 Jul 2019 15:39:04 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.1 required=5.0 tests=BAYES_50,RCVD_IN_DNSWL_LOW, URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hmkKr-0002wh-TT for guix-patches@gnu.org; Sun, 14 Jul 2019 15:39:03 -0400 Received: from mx1.mailbox.org ([80.241.60.212]:10598) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hmkKr-0002vT-N8 for guix-patches@gnu.org; Sun, 14 Jul 2019 15:39:01 -0400 Received: from smtp2.mailbox.org (smtp2.mailbox.org [80.241.60.241]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by mx1.mailbox.org (Postfix) with ESMTPS id 437EF4EC43; Sun, 14 Jul 2019 21:38:58 +0200 (CEST) X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from smtp2.mailbox.org ([80.241.60.241]) by spamfilter03.heinlein-hosting.de (spamfilter03.heinlein-hosting.de [80.241.56.117]) (amavisd-new, port 10030) with ESMTP id p-M5N2K1ZmeI; Sun, 14 Jul 2019 21:38:48 +0200 (CEST) From: Robert Vollmert Date: Sun, 14 Jul 2019 21:38:43 +0200 Message-Id: <20190714193843.23405-1-rob@vllmrt.net> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 80.241.60.212 X-Spam-Score: -1.6 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.6 (--) In particular, this means that guix lint won't warn to update to versions that won't necessarily fit our package set well. Also some minor clean-up tweaks. * guix/import/stackage.scm (%stackage-url): Change to https, avoiding redirect log messages. (%default-lts-version): New field. (stackage->guix-package, latest-lts-release): Use it. (lts-info-ghc-version): Remove unused function. (lts-info-packages, latest-lts-release): Fix documentation typos. --- guix/import/stackage.scm | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/guix/import/stackage.scm b/guix/import/stackage.scm index 1c1e73a723..de12ae4cb9 100644 --- a/guix/import/stackage.scm +++ b/guix/import/stackage.scm @@ -39,15 +39,13 @@ ;;; Stackage info fetcher and access functions ;;; =20 -(define %stackage-url "http://www.stackage.org") +(define %stackage-url "https://www.stackage.org") =20 -(define (lts-info-ghc-version lts-info) - "Retruns the version of the GHC compiler contained in LTS-INFO." - (and=3D> (assoc-ref lts-info "snapshot") - (cut assoc-ref <> "ghc"))) +;;; Latest LTS version compatible with bundled ghc version. +(define %default-lts-version "12.26") =20 (define (lts-info-packages lts-info) - "Retruns the alist of packages contained in LTS-INFO." + "Returns the alist of packages contained in LTS-INFO." (or (assoc-ref lts-info "packages") '())) =20 (define (leave-with-message fmt . args) @@ -90,7 +88,7 @@ (lambda* (package-name ; upstream name #:key (include-test-dependencies? #t) - (lts-version "") + (lts-version %default-lts-version) (packages-info (lts-info-packages (stackage-lts-info-fetch lts-version)))) @@ -119,10 +117,12 @@ included in the Stackage LTS release." ;;; =20 (define latest-lts-release - (let ((pkgs-info (mlambda () (lts-info-packages (stackage-lts-info-fet= ch))))) + (let ((pkgs-info + (mlambda () (lts-info-packages + (stackage-lts-info-fetch %default-lts-version))))) (lambda* (package) "Return an for the latest Stackage LTS release o= f -PACKAGE or #f it the package is not inlucded in the Stackage LTS release= ." +PACKAGE or #f it the package is not included in the Stackage LTS release= ." (let* ((hackage-name (guix-package->hackage-name package)) (version (lts-package-version (pkgs-info) hackage-name)) (name-version (hackage-name-version hackage-name version))) --=20 2.20.1 (Apple Git-117) From unknown Sun Aug 17 01:59:08 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#36653] [PATCH v2] guix import stackage: default to a LTS release compatible with GHC 8.4 References: <20190714193843.23405-1-rob@vllmrt.net> In-Reply-To: <20190714193843.23405-1-rob@vllmrt.net> Resent-From: Robert Vollmert Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 16 Jul 2019 13:43:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36653 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 36653@debbugs.gnu.org Cc: Robert Vollmert Received: via spool by 36653-submit@debbugs.gnu.org id=B36653.15632845492530 (code B ref 36653); Tue, 16 Jul 2019 13:43:01 +0000 Received: (at 36653) by debbugs.gnu.org; 16 Jul 2019 13:42:29 +0000 Received: from localhost ([127.0.0.1]:49752 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hnNiu-0000ej-GC for submit@debbugs.gnu.org; Tue, 16 Jul 2019 09:42:28 -0400 Received: from mx2.mailbox.org ([80.241.60.215]:36238) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hnNis-0000eS-7s for 36653@debbugs.gnu.org; Tue, 16 Jul 2019 09:42:27 -0400 Received: from smtp1.mailbox.org (smtp1.mailbox.org [80.241.60.240]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by mx2.mailbox.org (Postfix) with ESMTPS id 545D3A10F4; Tue, 16 Jul 2019 15:42:18 +0200 (CEST) X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from smtp1.mailbox.org ([80.241.60.240]) by spamfilter03.heinlein-hosting.de (spamfilter03.heinlein-hosting.de [80.241.56.117]) (amavisd-new, port 10030) with ESMTP id ic_YHW4vNtku; Tue, 16 Jul 2019 15:41:59 +0200 (CEST) From: Robert Vollmert Date: Tue, 16 Jul 2019 15:41:23 +0200 Message-Id: <20190716134122.21947-1-rob@vllmrt.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) In particular, this means that guix lint won't warn to update to versions that won't necessarily fit our package set well. Also some minor clean-up tweaks. * guix/import/stackage.scm (%stackage-url): Change to https, avoiding redirect log messages. (%default-lts-version): New field. (stackage-lts-info-fetch, stackage->guix-package, latest-lts-release): Use it. (lts-info-ghc-version): Remove unused function. (lts-info-packages, latest-lts-release): Fix documentation typos. --- This fixes the patch to *also* apply to normal use of `guix import stackage`, as originally intended. guix/import/stackage.scm | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/guix/import/stackage.scm b/guix/import/stackage.scm index 1c1e73a723..f845da4b27 100644 --- a/guix/import/stackage.scm +++ b/guix/import/stackage.scm @@ -39,15 +39,13 @@ ;;; Stackage info fetcher and access functions ;;; -(define %stackage-url "http://www.stackage.org") +(define %stackage-url "https://www.stackage.org") -(define (lts-info-ghc-version lts-info) - "Retruns the version of the GHC compiler contained in LTS-INFO." - (and=> (assoc-ref lts-info "snapshot") - (cut assoc-ref <> "ghc"))) +;;; Latest LTS version compatible with bundled ghc version. +(define %default-lts-version "12.26") (define (lts-info-packages lts-info) - "Retruns the alist of packages contained in LTS-INFO." + "Returns the alist of packages contained in LTS-INFO." (or (assoc-ref lts-info "packages") '())) (define (leave-with-message fmt . args) @@ -57,9 +55,11 @@ ;; "Retrieve the information about the LTS Stackage release VERSION." (memoize (lambda* (#:optional (version "")) - (let* ((url (if (string=? "" version) - (string-append %stackage-url "/lts") - (string-append %stackage-url "/lts-" version))) + (let* ((url (string-append %stackage-url + "/lts-" + (if (string=? "" version) + %default-lts-version + version))) (lts-info (json-fetch-alist url))) (if lts-info (reverse lts-info) @@ -90,7 +90,7 @@ (lambda* (package-name ; upstream name #:key (include-test-dependencies? #t) - (lts-version "") + (lts-version %default-lts-version) (packages-info (lts-info-packages (stackage-lts-info-fetch lts-version)))) @@ -119,10 +119,12 @@ included in the Stackage LTS release." ;;; (define latest-lts-release - (let ((pkgs-info (mlambda () (lts-info-packages (stackage-lts-info-fetch))))) + (let ((pkgs-info + (mlambda () (lts-info-packages + (stackage-lts-info-fetch %default-lts-version))))) (lambda* (package) "Return an for the latest Stackage LTS release of -PACKAGE or #f it the package is not inlucded in the Stackage LTS release." +PACKAGE or #f it the package is not included in the Stackage LTS release." (let* ((hackage-name (guix-package->hackage-name package)) (version (lts-package-version (pkgs-info) hackage-name)) (name-version (hackage-name-version hackage-name version))) -- 2.20.1 (Apple Git-117) From unknown Sun Aug 17 01:59:08 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#36653] [PATCH v2] guix import stackage: default to a LTS release compatible with GHC 8.4 Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 17 Aug 2019 13:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36653 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Robert Vollmert Cc: 36653@debbugs.gnu.org Received: via spool by 36653-submit@debbugs.gnu.org id=B36653.15660499857613 (code B ref 36653); Sat, 17 Aug 2019 13:54:02 +0000 Received: (at 36653) by debbugs.gnu.org; 17 Aug 2019 13:53:05 +0000 Received: from localhost ([127.0.0.1]:55433 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hyz8j-0001yY-0I for submit@debbugs.gnu.org; Sat, 17 Aug 2019 09:53:05 -0400 Received: from eggs.gnu.org ([209.51.188.92]:38574) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hyz8g-0001xe-AC for 36653@debbugs.gnu.org; Sat, 17 Aug 2019 09:53:03 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:41492) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hyz8a-0000Ph-81; Sat, 17 Aug 2019 09:52:56 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=57936 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hyz8Z-00055y-S1; Sat, 17 Aug 2019 09:52:56 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <20190714193843.23405-1-rob@vllmrt.net> <20190716134122.21947-1-rob@vllmrt.net> Date: Sat, 17 Aug 2019 15:52:53 +0200 In-Reply-To: <20190716134122.21947-1-rob@vllmrt.net> (Robert Vollmert's message of "Tue, 16 Jul 2019 15:41:23 +0200") Message-ID: <87lfvrew5m.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi Robert, Too bad this patch is still in the queue! I=E2=80=99m not familiar with Stackage but I trust your judgment. One minor comment: Robert Vollmert skribis: > In particular, this means that guix lint won't warn to update to > versions that won't necessarily fit our package set well. > > Also some minor clean-up tweaks. > > * guix/import/stackage.scm (%stackage-url): Change to https, avoiding > redirect log messages. > (%default-lts-version): New field. > (stackage-lts-info-fetch, stackage->guix-package, latest-lts-release): Us= e it. > (lts-info-ghc-version): Remove unused function. > (lts-info-packages, latest-lts-release): Fix documentation typos. [...] > +;;; Latest LTS version compatible with bundled ghc version. > +(define %default-lts-version "12.26") What about storing this elsewhere? Perhaps in the =E2=80=98properties=E2= =80=99 field of the =E2=80=98ghc=E2=80=99 package? That should make it easier to keep thes= e numbers in sync. Besides, it=E2=80=99s usually clearer to separate unrelated cleanups, but i= t=E2=80=99s no big deal in this case. Thanks, Ludo=E2=80=99. From unknown Sun Aug 17 01:59:08 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#36653] Stackage LTS 14 Resent-From: John Soo Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 14 Nov 2019 19:04:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36653 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Marius Bakke Cc: guix-devel , Timothy Sample , 36653@debbugs.gnu.org Received: via spool by 36653-submit@debbugs.gnu.org id=B36653.157375820632333 (code B ref 36653); Thu, 14 Nov 2019 19:04:01 +0000 Received: (at 36653) by debbugs.gnu.org; 14 Nov 2019 19:03:26 +0000 Received: from localhost ([127.0.0.1]:35233 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iVKOr-0008PQ-Jr for submit@debbugs.gnu.org; Thu, 14 Nov 2019 14:03:25 -0500 Received: from mail-pl1-f178.google.com ([209.85.214.178]:39369) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iVKOn-0008PB-IO for 36653@debbugs.gnu.org; Thu, 14 Nov 2019 14:03:23 -0500 Received: by mail-pl1-f178.google.com with SMTP id o9so3051712plk.6 for <36653@debbugs.gnu.org>; Thu, 14 Nov 2019 11:03:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=asu-edu.20150623.gappssmtp.com; s=20150623; h=content-transfer-encoding:from:mime-version:subject:date:message-id :references:cc:in-reply-to:to; bh=u/BaW9klprzNLp993gOvRkI+U8IbhzBzmJRzAgUwKkU=; b=jm7U4Xci4KralhDpcozUVFGFfWfKR+NC06JcfnneOBjdiFO8ZMtd4/cbBDfHbwbBiF epWd9PwjdfIgRFNmny/wDSEkGqq9/6zCszbhQLJHZDC4lfxf7gU3j34ZP4I1m9U8LXSk Pk2XdEKSTMrTYa0XDAKGKpJcgULADOsXDUR8scge61Eq2vFrRobB2XNSmj1V+CeRQTFR mKUBmqqq/uibWfwtKbnifEaZp01kh6Kw0njoRwhTM+QfMN4LPpQgqobZ+6gpGOgDRrNN IBKodRGeTc+1gNomqCQ2ukdstS/8TcEDzh87dJrHnKSPwlu/YE1146+PLDvFRrsjyd3T DgPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:content-transfer-encoding:from:mime-version :subject:date:message-id:references:cc:in-reply-to:to; bh=u/BaW9klprzNLp993gOvRkI+U8IbhzBzmJRzAgUwKkU=; b=sL/K0zNO+ruGDVg2s5tY5Aop0kzuyGYigAPrM7HzrDljZ2gO1prmjp8uzW8l3dhBSa XC9GdzWlRSvLRR1qTUK8DRBe3nglsw9rU2cy7fZ8x25WycCzA9ExBHzK5vBW/RiDOYqR QXwYLhon5zKEtWmr75e0A+QBe/1sZCItc2ftrKaY48u2F8zkxSWZdrdrnNNYJwLdWEh9 EwM01uZRr+bARrD0WlZhto+6etYeSf/B+Zo+xtjQfPQpChh1cnRJM4yxayBN/R6zM2I9 ps/R8nODDqrF+mVxkJwhJQXZfNIjgg29SXgndVxkQ7btkpOxMhdOFptQhohb36qHQIkl 4UYg== X-Gm-Message-State: APjAAAXKrTxr+C8xPn7VrQTcUBFKIfN3dMsOwXFTcAFebYGB0123r4WY NKx/3ckbTXnItruY/u9c8e4FPhv4wvvVzw== X-Google-Smtp-Source: APXvYqz8lTpQRF1u055tnL9pqEW2z57pQactJZHEnrymsDv9hZa9NR42H9QD0iljkCatUvyRb6s/tA== X-Received: by 2002:a17:902:7892:: with SMTP id q18mr11231976pll.171.1573758195386; Thu, 14 Nov 2019 11:03:15 -0800 (PST) Received: from [192.168.1.23] (wsip-174-66-85-188.oc.oc.cox.net. [174.66.85.188]) by smtp.gmail.com with ESMTPSA id u7sm6225231pjx.19.2019.11.14.11.03.13 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 14 Nov 2019 11:03:14 -0800 (PST) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit From: John Soo Mime-Version: 1.0 (1.0) Date: Thu, 14 Nov 2019 11:03:13 -0800 Message-Id: <0F9FEE41-6A34-45A4-8A23-4FF2C86F8F58@asu.edu> References: <87k182h4fb.fsf@devup.no> In-Reply-To: <87k182h4fb.fsf@devup.no> X-Mailer: iPhone Mail (17A878) X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hey everyone, When we bump to Stackage 14 can issue 36653 be closed? - John From unknown Sun Aug 17 01:59:08 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#36653] Stackage LTS 14 Resent-From: Timothy Sample Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 14 Nov 2019 20:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36653 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: John Soo Cc: guix-devel , 36653@debbugs.gnu.org, Marius Bakke Received: via spool by 36653-submit@debbugs.gnu.org id=B36653.157376344015474 (code B ref 36653); Thu, 14 Nov 2019 20:31:02 +0000 Received: (at 36653) by debbugs.gnu.org; 14 Nov 2019 20:30:40 +0000 Received: from localhost ([127.0.0.1]:35312 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iVLlH-00041W-UE for submit@debbugs.gnu.org; Thu, 14 Nov 2019 15:30:40 -0500 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]:54325) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iVLlF-00041J-Dp for 36653@debbugs.gnu.org; Thu, 14 Nov 2019 15:30:37 -0500 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 8A3F55B9; Thu, 14 Nov 2019 15:30:31 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Thu, 14 Nov 2019 15:30:31 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=11FpGvfJfZO7hgbfyAocgYQ+qI7cgvqR4fndM/AYb ZQ=; b=RgjxSW57XTmHa2RHfTVdS63YjhouqHNdQ0TN1a+Z0Sjf4vikBRZ26IQWm /b1Rr9u8Oq9nyv91JMh18GNc6GYsMBiAY/xCchLT5WTYOof467SAUQo0IqxSfpOd 37i8zdZR26JgnaM88Yv3L2tDnxK/CLU8ywpVfrTWf2DmQptxVkNLXkILF/9Ouu2z uPuYh8YWhN490ALKMKgpogeuxDvrf28x5Nf5vHHPxoxIPoKaAawSEfZDmMBNdWCv WRRJmaOSE1+zTjdur4kvrudVpMcdBTjr5VX8xRbGkrmphvbE2VBUJuJT4dAo/mvF 4jKZpxn6jpskn6Mg+yaQ1+OxexRCw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrudeffedgudefjecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefhvffufhffjgfkfgggtgfgsehtqhertddtreejnecuhfhrohhmpefvihhm ohhthhihucfurghmphhlvgcuoehsrghmphhlvghtsehnghihrhhordgtohhmqeenucfkph epjeegrdduudeirddukeeirdeggeenucfrrghrrghmpehmrghilhhfrhhomhepshgrmhhp lhgvthesnhhghihrohdrtghomhenucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from mrblack (74-116-186-44.qc.dsl.ebox.net [74.116.186.44]) by mail.messagingengine.com (Postfix) with ESMTPA id A30DC306005F; Thu, 14 Nov 2019 15:30:30 -0500 (EST) From: Timothy Sample References: <87k182h4fb.fsf@devup.no> <0F9FEE41-6A34-45A4-8A23-4FF2C86F8F58@asu.edu> Date: Thu, 14 Nov 2019 15:30:30 -0500 In-Reply-To: <0F9FEE41-6A34-45A4-8A23-4FF2C86F8F58@asu.edu> (John Soo's message of "Thu, 14 Nov 2019 11:03:13 -0800") Message-ID: <87h836p5eh.fsf@ngyro.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Hi John, John Soo writes: > When we bump to Stackage 14 can issue 36653 be closed? I think these changes should still be merged (with review and fixes). Eventually Stackage LTS 15 will come out while we=E2=80=99re still on LTS 1= 4. At that point, we will have the same issue with the importer and linter giving us information about LTS 15 when we only want LTS 14. -- Tim From unknown Sun Aug 17 01:59:08 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#36653] Stackage LTS 14 Resent-From: John Soo Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 14 Nov 2019 21:11:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36653 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Timothy Sample Cc: guix-devel , 36653@debbugs.gnu.org, Marius Bakke Received: via spool by 36653-submit@debbugs.gnu.org id=B36653.157376580918935 (code B ref 36653); Thu, 14 Nov 2019 21:11:01 +0000 Received: (at 36653) by debbugs.gnu.org; 14 Nov 2019 21:10:09 +0000 Received: from localhost ([127.0.0.1]:35324 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iVMNU-0004vL-U3 for submit@debbugs.gnu.org; Thu, 14 Nov 2019 16:10:09 -0500 Received: from mail-pf1-f177.google.com ([209.85.210.177]:43926) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iVMNS-0004uc-Ad for 36653@debbugs.gnu.org; Thu, 14 Nov 2019 16:10:07 -0500 Received: by mail-pf1-f177.google.com with SMTP id 3so5123483pfb.10 for <36653@debbugs.gnu.org>; Thu, 14 Nov 2019 13:10:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=asu-edu.20150623.gappssmtp.com; s=20150623; h=content-transfer-encoding:from:mime-version:subject:date:message-id :references:cc:in-reply-to:to; bh=kMD4RB9J2IRRzpzFOXSmfm+FzUfHHl7UsfbUTAg2x3k=; b=f2scO335xqczvkklSOZ0zNoitTBjbhkZ9TvukqfvepkRBVzD42l2NewpGDtjx66Cpu HzlJ3uK8HS2z2lhSWPh8QPTKeyAhsX1xhzP877x/02I0kmVih0O/tDRQVOGaF1sntny2 yWZkJkaGa/snDg+tYyNTv0K9BolGHfkbUUcLthUjpZtHQCwBeBKklUvD05f0hQ0JYtOW FvZDR2f6HBbxz7TooiDs98SHrRbzvDX1qwnCmdXIa//PviRFNqxwmCV7Mnbr+q2X6bxH sE+BwigmZ6Iruw8ULKo5HJU64SCmljx77/RBAKjjcvDQL57bcvGlat7RsyHKWxSZPYE5 VecQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:content-transfer-encoding:from:mime-version :subject:date:message-id:references:cc:in-reply-to:to; bh=kMD4RB9J2IRRzpzFOXSmfm+FzUfHHl7UsfbUTAg2x3k=; b=G9luSepk0KQdfgcQVgAlV3dvdXJPGNDirAVxmCCenQB5OtT91r0l6ZFjpbNWGcJAG4 4xfB2f9QbH0UUr4jXV4pv4IyjIm948njCotX2QFsArtwWeKuwB+LxRdsQd/NXHKL+YWL CDpnGgLU3BUUAwxQwEoMmHMjEea6KptNi26C1ZZ8q0W53n+J3VyOk2o7mxjgjNTzt1Ww DRcK2gpD8o8cs12MLS3ShUyfq9vfh4X9uf3ra7WPA9c33QN0WwcZaY75JS/xAH82mzGz q100y26MdN6l8HBsQ2q4GxOon0cMxGoLGxIsB/Z8UGnD94DNvCo26eMiUsVM5MDzSVwp w4mw== X-Gm-Message-State: APjAAAWeD2j3zhL09gIqRzM6O1N7uKvHUN6NXTNB8fwGYIbRyoFfNID3 op+WYf14C2ClisiXDaGxJNC5yaGAm4/VNw== X-Google-Smtp-Source: APXvYqxK0j91fxA6xHekowGO9dfh49Y5wzOlU6J2GC5j47X8x9tkAWWDxyPVFoRTsHiJckg88c8vwg== X-Received: by 2002:a63:d047:: with SMTP id s7mr12533459pgi.355.1573765800186; Thu, 14 Nov 2019 13:10:00 -0800 (PST) Received: from [192.168.1.23] (wsip-174-66-85-188.oc.oc.cox.net. [174.66.85.188]) by smtp.gmail.com with ESMTPSA id o15sm12276116pgf.2.2019.11.14.13.09.59 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 14 Nov 2019 13:09:59 -0800 (PST) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit From: John Soo Mime-Version: 1.0 (1.0) Date: Thu, 14 Nov 2019 13:09:58 -0800 Message-Id: References: <87h836p5eh.fsf@ngyro.com> In-Reply-To: <87h836p5eh.fsf@ngyro.com> X-Mailer: iPhone Mail (17A878) X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Ah, ok makes sense! From unknown Sun Aug 17 01:59:08 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Robert Vollmert Subject: bug#36653: closed (Re: [bug#36653] [PATCH v2] guix import stackage: default to a LTS release compatible with GHC 8.4) Message-ID: References: <87tuu6not7.fsf@ngyro.com> <20190714193843.23405-1-rob@vllmrt.net> X-Gnu-PR-Message: they-closed 36653 X-Gnu-PR-Package: guix-patches X-Gnu-PR-Keywords: patch Reply-To: 36653@debbugs.gnu.org Date: Tue, 03 Nov 2020 20:56:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1604436962-29633-1" This is a multi-part message in MIME format... ------------=_1604436962-29633-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #36653: [PATCH] guix import stackage: default to a LTS release compatible w= ith GHC 8.4 which was filed against the guix-patches package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 36653@debbugs.gnu.org. --=20 36653: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D36653 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1604436962-29633-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 36653-done) by debbugs.gnu.org; 3 Nov 2020 20:55:09 +0000 Received: from localhost ([127.0.0.1]:46542 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ka3Ke-0007gT-VS for submit@debbugs.gnu.org; Tue, 03 Nov 2020 15:55:09 -0500 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]:43173) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ka3Kd-0007g6-L7 for 36653-done@debbugs.gnu.org; Tue, 03 Nov 2020 15:55:08 -0500 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id C81EAE17; Tue, 3 Nov 2020 15:55:01 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Tue, 03 Nov 2020 15:55:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=4tQo4SCqWXyfa5D5/nOCS6kAcTSqsQ7xw5L0+calj Z8=; b=OzhPFNKTMQot+hvCEqG/nrMaWtLIJQ+UQE2ItR+Qmyfl8YpsHLePQQuyJ FeReLaC6Ef9SbkCOD9QZa/UxiyEPMwPf8G93xtdgEPxKWH/faJoUUeL0QwN9McrJ 2ZvYqr8N3K2xFOxVOLeXuA0T0pURDkcjo1T+5wmtkMT4MSLAY3LWnyh6IvtyOa3e VrRxbexhnEVEzsHJd3t8eH+ueeK5p/krA3eObqhIoH/ZLc5YbVxQ+H4XRf/+vgMV fF3Nfw78dgwMqxQ/l/nlXXXU/pWH1HFGLnx598toB5uau/eibFhxwAfqO1GxdSgQ 2CzO3MSDa9q1n9DM5x65ouAPxe6Ew== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedruddtfedgudegudcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefhvffufhffjgfkfgggtgfgsehtqhertddtreejnecuhfhrohhmpefvihhm ohhthhihucfurghmphhlvgcuoehsrghmphhlvghtsehnghihrhhordgtohhmqeenucggtf frrghtthgvrhhnpeeiudeuhfeggeelleevheegudfguefhieekffdtveeilefglefhvddt gfeiheetgfenucfkphepjeegrdduudeirddukeeirdeggeenucevlhhushhtvghrufhiii gvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehsrghmphhlvghtsehnghihrhhordgt ohhm X-ME-Proxy: Received: from mrblack (74-116-186-44.qc.dsl.ebox.net [74.116.186.44]) by mail.messagingengine.com (Postfix) with ESMTPA id CD20E3064674; Tue, 3 Nov 2020 15:55:00 -0500 (EST) From: Timothy Sample To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: [bug#36653] [PATCH v2] guix import stackage: default to a LTS release compatible with GHC 8.4 References: <20190714193843.23405-1-rob@vllmrt.net> <20190716134122.21947-1-rob@vllmrt.net> <87lfvrew5m.fsf@gnu.org> Date: Tue, 03 Nov 2020 15:55:00 -0500 In-Reply-To: <87lfvrew5m.fsf@gnu.org> ("Ludovic =?utf-8?Q?Court=C3=A8s=22'?= =?utf-8?Q?s?= message of "Sat, 17 Aug 2019 15:52:53 +0200") Message-ID: <87tuu6not7.fsf@ngyro.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 36653-done Cc: 36653-done@debbugs.gnu.org, Robert Vollmert X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Hello, Over a year later, and I finally went ahead and pushed this! See commit f0bb2662bb05625042094e124521197c5f43505e. Ludovic Court=C3=A8s writes: > Robert Vollmert skribis: > >> +;;; Latest LTS version compatible with bundled ghc version. >> +(define %default-lts-version "12.26") > > What about storing this elsewhere? Perhaps in the =E2=80=98properties=E2= =80=99 field of > the =E2=80=98ghc=E2=80=99 package? That should make it easier to keep th= ese numbers in > sync. That=E2=80=99s true, but we already have this problem with the Hackage impo= rter. It has a version-specific list of packages included with GHC. It=E2=80=99s= true that two wrongs don=E2=80=99t make a right, but having this patch in place = =E2=80=93 even with shortcomings =E2=80=93 will prevent real problems. Besides, we c= an always fix it later. > Besides, it=E2=80=99s usually clearer to separate unrelated cleanups, but= it=E2=80=99s > no big deal in this case. Agreed. (The typos were fixed in the interim, but I let the =E2=80=9Chttps= =E2=80=9D change hitch a ride along with the LTS version stuff.) Anyway, this will pave the way for a lint check and then we can finally put an end to the Haskell package roll-backs. :) -- Tim ------------=_1604436962-29633-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 14 Jul 2019 19:39:07 +0000 Received: from localhost ([127.0.0.1]:45998 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hmkKx-0005ae-AY for submit@debbugs.gnu.org; Sun, 14 Jul 2019 15:39:07 -0400 Received: from lists.gnu.org ([209.51.188.17]:36609) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hmkKu-0005aI-Bx for submit@debbugs.gnu.org; Sun, 14 Jul 2019 15:39:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40810) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hmkKt-0006vI-3H for guix-patches@gnu.org; Sun, 14 Jul 2019 15:39:04 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.1 required=5.0 tests=BAYES_50,RCVD_IN_DNSWL_LOW, URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hmkKr-0002wh-TT for guix-patches@gnu.org; Sun, 14 Jul 2019 15:39:03 -0400 Received: from mx1.mailbox.org ([80.241.60.212]:10598) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hmkKr-0002vT-N8 for guix-patches@gnu.org; Sun, 14 Jul 2019 15:39:01 -0400 Received: from smtp2.mailbox.org (smtp2.mailbox.org [80.241.60.241]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by mx1.mailbox.org (Postfix) with ESMTPS id 437EF4EC43; Sun, 14 Jul 2019 21:38:58 +0200 (CEST) X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from smtp2.mailbox.org ([80.241.60.241]) by spamfilter03.heinlein-hosting.de (spamfilter03.heinlein-hosting.de [80.241.56.117]) (amavisd-new, port 10030) with ESMTP id p-M5N2K1ZmeI; Sun, 14 Jul 2019 21:38:48 +0200 (CEST) From: Robert Vollmert To: guix-patches@gnu.org Subject: [PATCH] guix import stackage: default to a LTS release compatible with GHC 8.4 Date: Sun, 14 Jul 2019 21:38:43 +0200 Message-Id: <20190714193843.23405-1-rob@vllmrt.net> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 80.241.60.212 X-Spam-Score: -1.6 (-) X-Debbugs-Envelope-To: submit Cc: Robert Vollmert X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.6 (--) In particular, this means that guix lint won't warn to update to versions that won't necessarily fit our package set well. Also some minor clean-up tweaks. * guix/import/stackage.scm (%stackage-url): Change to https, avoiding redirect log messages. (%default-lts-version): New field. (stackage->guix-package, latest-lts-release): Use it. (lts-info-ghc-version): Remove unused function. (lts-info-packages, latest-lts-release): Fix documentation typos. --- guix/import/stackage.scm | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/guix/import/stackage.scm b/guix/import/stackage.scm index 1c1e73a723..de12ae4cb9 100644 --- a/guix/import/stackage.scm +++ b/guix/import/stackage.scm @@ -39,15 +39,13 @@ ;;; Stackage info fetcher and access functions ;;; =20 -(define %stackage-url "http://www.stackage.org") +(define %stackage-url "https://www.stackage.org") =20 -(define (lts-info-ghc-version lts-info) - "Retruns the version of the GHC compiler contained in LTS-INFO." - (and=3D> (assoc-ref lts-info "snapshot") - (cut assoc-ref <> "ghc"))) +;;; Latest LTS version compatible with bundled ghc version. +(define %default-lts-version "12.26") =20 (define (lts-info-packages lts-info) - "Retruns the alist of packages contained in LTS-INFO." + "Returns the alist of packages contained in LTS-INFO." (or (assoc-ref lts-info "packages") '())) =20 (define (leave-with-message fmt . args) @@ -90,7 +88,7 @@ (lambda* (package-name ; upstream name #:key (include-test-dependencies? #t) - (lts-version "") + (lts-version %default-lts-version) (packages-info (lts-info-packages (stackage-lts-info-fetch lts-version)))) @@ -119,10 +117,12 @@ included in the Stackage LTS release." ;;; =20 (define latest-lts-release - (let ((pkgs-info (mlambda () (lts-info-packages (stackage-lts-info-fet= ch))))) + (let ((pkgs-info + (mlambda () (lts-info-packages + (stackage-lts-info-fetch %default-lts-version))))) (lambda* (package) "Return an for the latest Stackage LTS release o= f -PACKAGE or #f it the package is not inlucded in the Stackage LTS release= ." +PACKAGE or #f it the package is not included in the Stackage LTS release= ." (let* ((hackage-name (guix-package->hackage-name package)) (version (lts-package-version (pkgs-info) hackage-name)) (name-version (hackage-name-version hackage-name version))) --=20 2.20.1 (Apple Git-117) ------------=_1604436962-29633-1--