From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id IDipHKHuomFkVQAAgWs5BA (envelope-from ) for ; Sun, 28 Nov 2021 03:51:13 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id gIxdGKHuomEMUwAA1q6Kng (envelope-from ) for ; Sun, 28 Nov 2021 02:51:13 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 101B8298D for ; Sun, 28 Nov 2021 03:51:11 +0100 (CET) Received: from localhost ([::1]:44004 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mrAHW-0006ti-4B for larch@yhetil.org; Sat, 27 Nov 2021 21:51:10 -0500 Received: from eggs.gnu.org ([209.51.188.92]:51716) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mrAHO-0006tV-KL for bug-guix@gnu.org; Sat, 27 Nov 2021 21:51:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:51458) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mrAHO-0006Go-CA for bug-guix@gnu.org; Sat, 27 Nov 2021 21:51:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mrAHO-0000j4-4o for bug-guix@gnu.org; Sat, 27 Nov 2021 21:51:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#52152: Haskell Hackage importer can create dependency cycles Resent-From: John Kehayias Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sun, 28 Nov 2021 02:51:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 52152 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 52152@debbugs.gnu.org X-Debbugs-Original-To: "bug-guix@gnu.org" Received: via spool by submit@debbugs.gnu.org id=B.16380678312746 (code B ref -1); Sun, 28 Nov 2021 02:51:01 +0000 Received: (at submit) by debbugs.gnu.org; 28 Nov 2021 02:50:31 +0000 Received: from localhost ([127.0.0.1]:34771 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mrAGt-0000iE-H9 for submit@debbugs.gnu.org; Sat, 27 Nov 2021 21:50:31 -0500 Received: from lists.gnu.org ([209.51.188.17]:45662) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mrAGs-0000i7-Li for submit@debbugs.gnu.org; Sat, 27 Nov 2021 21:50:31 -0500 Received: from eggs.gnu.org ([209.51.188.92]:51646) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mrAGr-0006rz-FL for bug-guix@gnu.org; Sat, 27 Nov 2021 21:50:30 -0500 Received: from mail-4322.protonmail.ch ([185.70.43.22]:32753) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mrAGo-00068K-JP for bug-guix@gnu.org; Sat, 27 Nov 2021 21:50:29 -0500 Date: Sun, 28 Nov 2021 02:50:12 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1638067816; bh=DQ4bh+bfqVV3+UuvimEbAmbEmGQ2GE/66xwziDD/GJE=; h=Date:To:From:Reply-To:Subject:From; b=Wv0op5RoRrjcK2u7NGYHXZlh3zgFM8Hh9RlHOFeUoIxv3vqmxVZqXonzTXbQTGt/U tWFThMVEcBrG2/HKNHw9denKaYSlhYP4tgBl40/N+LdbcofU60fcgXqgwQMK6jkmsx FxOlvbO9abpKrPXYCUDpWofZ+Q/yq+bQiHhz6q3s= Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.70.43.22; envelope-from=john.kehayias@protonmail.com; helo=mail-4322.protonmail.ch X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" Reply-to: John Kehayias X-ACL-Warn: , John Kehayias From: John Kehayias via Bug reports for GNU Guix X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1638067871; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=DQ4bh+bfqVV3+UuvimEbAmbEmGQ2GE/66xwziDD/GJE=; b=SqyZNXmFQ352aCvic6uboNV8k48kX8oy3Hp42b7FfA0ip76chjanjM8tXNmg96cXwTunuw FhX8pKQVOiZBsGTU8Lhg7fIecULyHdgKmmDcDCyRpNVkhTrAijA9sQ8jKCbbhp8t7vLhil o22FQiS8VxM87J4vmKkXZ4D51tOI58950Zc6Y9hOJgBLnbD4VKKFB914P5fU8abMEyZ38d 4AX+reOcK+Yvn6RSEq+5icHwkSpwtcmlRl1Z+qBmFhVW4o0nuaAuqM/UtIvGvzW/g5otRJ XLGap/zBVIe8kBf3ATqwmmxbNU8TmLZ7XNHfAtmMWOMwEAfh+HjEQVcYHVAU0w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1638067871; a=rsa-sha256; cv=none; b=oDV/4luo3WkBwxDPm/dUkUY9HH0D08QtdnmIQRSgic2aU88x+rk8CZnyB2Bmr9qU2GC9uf UWpbbP8QjpcskdHwZ3FGJ3F4A6cFNroHLOUfYLD3D4EVep7uZBKjIAb6LGF1bB6imSUSNb b4iGfoJcldKYGmvi1se4iqujnl/H8hnndSJ86NLLSYe94VsRbdtJXtXpLZyY/WAk7DgBHm L5ARiVVNutukPIBQuMNuQ+2pXRV6KJH70kVmE/dNhjKBrumWIgPhlmnnjK+m18d9NciPLs N1WL078rcRQBNw9iLUduj3eV91jdk2NFAY+TJG2EvLFV6QCP2k8mLgZ/GuF62w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=protonmail.com header.s=protonmail header.b=Wv0op5Ro; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.60 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=protonmail.com header.s=protonmail header.b=Wv0op5Ro; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 101B8298D X-Spam-Score: -3.60 X-Migadu-Scanner: scn0.migadu.com X-TUID: GfZgYOraFI3p Hello, While working on importing a bunch of Haskell packages, I came across a cyc= le created by the importer (twice actually, but forgot the other one). Perh= aps this is from the metadata from Hackage, as it doesn't create the cycle = when importing from Stackage. Here are the outputs: guix import hackage tuple -r Starting download of /tmp/guix-file.emhMwD >From https://hackage.haskell.org/package/tuple/tuple-0.3.0.2.tar.gz... =E2=80=A60.2.tar.gz 19KiB 5.5MiB/s 00:00 [#############= #####] 100.0% Starting download of /tmp/guix-file.uzGEcb >From https://hackage.haskell.org/package/OneTuple/OneTuple-0.3.1.tar.gz... =E2=80=A6.3.1.tar.gz 5KiB 3.1MiB/s 00:00 [#############= #####] 100.0% (define-public ghc-onetuple (package (name "ghc-onetuple") (version "0.3.1") (source (origin (method url-fetch) (uri (string-append "https://hackage.haskell.org/package/OneTuple/OneTuple-" version ".tar.gz")) (sha256 (base32 "1vry21z449ph9k61l5zm7mfmdwkwszxqdlawlhvwrd1gsn13d1cq")))= ) (build-system haskell-build-system) (inputs (list ghc-hashable ghc-base-orphans)) (native-inputs (list ghc-onetuple ghc-onetuple)) (arguments `(#:cabal-revision ("2" "0gk0656igxl0km9kgh8v7b5vq74kla59ka9hvpzq57njr6bc0j58"))) (home-page "http://hackage.haskell.org/package/OneTuple") (synopsis "Singleton Tuple") (description "This package is a compatibility package for a singleton data type . = > data Solo a =3D Solo a . Note: it's not a @newtype@ . @Solo@ is available= in @base-4.16@ (GHC-9.2).") (license license:bsd-3))) (define-public ghc-tuple (package (name "ghc-tuple") (version "0.3.0.2") (source (origin (method url-fetch) (uri (string-append "https://hackage.haskell.org/package/tuple/tuple-" version ".tar.gz")) (sha256 (base32 "094nx29aahyrvbcn7yca9zs2a5rxz1is7510w1q43rpvza7hdjrg")))= ) (build-system haskell-build-system) (inputs (list ghc-onetuple)) (home-page "http://hackage.haskell.org/package/tuple") (synopsis "Various functions on tuples") (description "Various useful functions on tuples, overloaded on tuple size.") (license license:bsd-3))) The above has the cycle (twice!) in ghc-onetuple. Doing the same import fro= m Stackage is more sane: guix import stackage tuple -r Starting download of /tmp/guix-file.EvZM8X >From https://hackage.haskell.org/package/tuple/tuple-0.3.0.2.tar.gz... =E2=80=A60.2.tar.gz 19KiB 4.7MiB/s 00:00 [#############= #####] 100.0% Starting download of /tmp/guix-file.zMsjqd >From https://hackage.haskell.org/package/OneTuple/OneTuple-0.2.2.1.tar.gz..= . =E2=80=A62.2.1.tar.gz 3KiB 3.2MiB/s 00:00 [#############= #####] 100.0% (define-public ghc-onetuple (package (name "ghc-onetuple") (version "0.2.2.1") (source (origin (method url-fetch) (uri (string-append "https://hackage.haskell.org/package/OneTuple/OneTuple-" version ".tar.gz")) (sha256 (base32 "15ls6kkf953288q7rsc49bvw467ll4nq28hvsgbaazdn7hf75ixc")))= ) (build-system haskell-build-system) (arguments `(#:cabal-revision ("1" "03mygfz7lv6h0i30bq2grvmahbg9j7a36mc0wls2nr81dv9p19s7"))) (home-page "http://hackage.haskell.org/package/OneTuple") (synopsis "Singleton Tuple") (description "This package provides a singleton tuple data type . > data OneTuple = a =3D OneTuple a . Note: it's not a @newtype@") (license license:bsd-3))) (define-public ghc-tuple (package (name "ghc-tuple") (version "0.3.0.2") (source (origin (method url-fetch) (uri (string-append "https://hackage.haskell.org/package/tuple/tuple-" version ".tar.gz")) (sha256 (base32 "094nx29aahyrvbcn7yca9zs2a5rxz1is7510w1q43rpvza7hdjrg")))= ) (build-system haskell-build-system) (inputs (list ghc-onetuple)) (home-page "http://hackage.haskell.org/package/tuple") (synopsis "Various functions on tuples") (description "Various useful functions on tuples, overloaded on tuple size.") (license license:bsd-3))) John