From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 6FK5GqGeTmJUegEAgWs5BA (envelope-from ) for ; Thu, 07 Apr 2022 10:19:45 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id SHQrGKGeTmIZTwAA9RJhRA (envelope-from ) for ; Thu, 07 Apr 2022 10:19:45 +0200 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 097A314A08 for ; Thu, 7 Apr 2022 10:19:45 +0200 (CEST) Received: from localhost ([::1]:43936 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ncNMm-0003w5-45 for larch@yhetil.org; Thu, 07 Apr 2022 04:19:44 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36286) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ncNM6-0003tv-OI for bug-guix@gnu.org; Thu, 07 Apr 2022 04:19:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:37549) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ncNM6-0001ip-FM for bug-guix@gnu.org; Thu, 07 Apr 2022 04:19:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ncNM6-00064T-Bp for bug-guix@gnu.org; Thu, 07 Apr 2022 04:19:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#54760: import: hackage: Internal libraries are not filtered out of dependency list Resent-From: "Philip Munksgaard" Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 07 Apr 2022 08:19:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 54760 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 54760@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.164931953423320 (code B ref -1); Thu, 07 Apr 2022 08:19:02 +0000 Received: (at submit) by debbugs.gnu.org; 7 Apr 2022 08:18:54 +0000 Received: from localhost ([127.0.0.1]:59679 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ncNLx-000644-Sz for submit@debbugs.gnu.org; Thu, 07 Apr 2022 04:18:54 -0400 Received: from lists.gnu.org ([209.51.188.17]:59630) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ncNLv-00063w-Ev for submit@debbugs.gnu.org; Thu, 07 Apr 2022 04:18:51 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36134) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ncNLm-0003rK-Sk for bug-guix@gnu.org; Thu, 07 Apr 2022 04:18:46 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:52335) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ncNLk-0001fY-CB for bug-guix@gnu.org; Thu, 07 Apr 2022 04:18:41 -0400 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 6A1D05C021B for ; Thu, 7 Apr 2022 04:18:39 -0400 (EDT) Received: from imap43 ([10.202.2.93]) by compute2.internal (MEProxy); Thu, 07 Apr 2022 04:18:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=munksgaard.me; h=cc:content-type:date:date:from:from:in-reply-to:message-id :mime-version:reply-to:sender:subject:subject:to:to; s=fm1; bh=X rzN2P5VWzS5tsIKsuEadxl7PRpfbl1ofKjzTC2F2+0=; b=RmEJFRWkmOw2KSYNB nCcMXZR0C058b8VlmaCg4N/+9toFB8oanKnaGOhzZ6tByiRFmqj1ti0aREE6PlzU eAtFBrRpzWCbHebE2FTCFVOyxUEtO+6lUS2qBSubs6VrfrZMl4UmTaE0QzQikQBV ghWRuv9Cy+8e6a19mjj6yIXqKV11k+FJ1VWzO4j4v8GjYVNFXnpEofZ4Vw83faID 7oaP+Ibm6g/hkwKBMJjiuu6xiQBK57NY47oTd4ljH74lPn3gS5anYpZNeI6ACmZ3 VHfbZnon6cD4wFPNC7WXFR/0RqkPe8oXAh7OhKIs9ECHfCIPuCBdW7VS3yAxnxE7 c15QA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:date:from:from :in-reply-to:message-id:mime-version:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=XrzN2P5VWzS5tsIKsuEadxl7PRpfbl1ofKjzTC2F2 +0=; b=nyeWcen1ViG4KJ7ConzR2NlzGEusYYMNdpXb+ChNPW2SOIYXirAWS32EV aMqKLA3FDInnranEso6+2h65SIYyVl9l1sTbWBRTHCBkDm00rpJ2fFDnzmUE4MXJ oS3p4rqFxzuTjkODrD9lY+j8rr3YwVBJD7dh7Cy6S8ma3O6kfeVfD/yWXyNili+7 1dLl50xmfDO4i8lQghyklIPSIX4+vDcCh6Yc9GzkPh+miaNsEiv8Ef8QmxlJIZpV qzVSCuJhW6pJUfMiYm2AKpyXVZTCOkxs5mXH+BYximan+yIT8mQTqlwMicIUCrRz W6EOfoJoymKgavxsqSuyMc5EuEd6A== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrudejkedgtdefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefofgggkfffhffvufgtsehttdertd erredtnecuhfhrohhmpedfrfhhihhlihhpucfouhhnkhhsghgrrghrugdfuceophhhihhl ihhpsehmuhhnkhhsghgrrghrugdrmhgvqeenucggtffrrghtthgvrhhnpedugeelffeltd dvleetgeeikeeigeeitdfgieevteevieelgedtleehhfelueduveenucffohhmrghinhep ghhithhhuhgsrdgtohhmnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrg hilhhfrhhomhepphhhihhlihhpsehmuhhnkhhsghgrrghrugdrmhgv X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id 36856AC0EAD; Thu, 7 Apr 2022 04:18:39 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.7.0-alpha0-386-g4174665229-fm-20220406.001-g41746652 Mime-Version: 1.0 Message-Id: <842828ff-b80b-4488-aa5b-5e6189e0a607@www.fastmail.com> Date: Thu, 07 Apr 2022 10:18:15 +0200 From: "Philip Munksgaard" Content-Type: text/plain Received-SPF: pass client-ip=66.111.4.25; envelope-from=philip@munksgaard.me; helo=out1-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1649319585; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:list-id:list-help:list-unsubscribe:list-subscribe: list-post:dkim-signature; bh=XrzN2P5VWzS5tsIKsuEadxl7PRpfbl1ofKjzTC2F2+0=; b=sHDJRRtVIYWoJWicseVQiAr3C2ohShVGaWOzXw85vp+xuQ7xS92JRzaugdu+riYQKAhXIx 0LBt90g6PoGEqU+eTznnxvmHMxJrKKN/+tkLeC0NaGIF5RjzKy2QI3sQQLERbBpYBe0q0q Go4lLIM9A2CP5np/i+uYdF9iGwpIM456cu78Ltgtp6UkCZWkyHyXAIlutoUbhgcsRf9MiV 6A7D+7p7iFQ40iTC7upSSkhG9iY2SpyYXXT2joTzPXoKvJRjI6Dygnj+6wAV5veuHvWmpq UnAcskW0gop97HxVka6+3cYSlQIj6ztfxw6PjJendFCWCvV2P6qjmPwJgNqh5A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1649319585; a=rsa-sha256; cv=none; b=YDDkIIbtH4L8i6c82m2OHyZgTgXmQ/R2RTG7yD7wme0/MdGwGphNmTeTyfCcKUxX7rVBiS 57IIVhKJS/bpTQVNYX+zP4MqhIMslHubuDPhyubNJEtsE9U9qrX0Cqi7ftj/cnSDSEK6fP FqmMAEqAyctuMbEqWp1aZA+Hz/cPAlqpwIbxQNCzDfq+S6lBZPQDBVg6c/+SSl30KrPaxo Gq3FWdYpRUOD6zxglvtgLWS+k+FF6fXdyE6iq5P404qAV/we6LVhv3RTN+hlbLDCI3wrXv c0dFNDbmcGBhwDeuIvD5BHCw+rEE0lmVxEzrj/l0S6bg2wo12GzSbgOAy0DlZw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=munksgaard.me header.s=fm1 header.b=RmEJFRWk; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm3 header.b=nyeWcen1; dmarc=none; 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: 1.64 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=munksgaard.me header.s=fm1 header.b=RmEJFRWk; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm3 header.b=nyeWcen1; dmarc=none; 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: 097A314A08 X-Spam-Score: 1.64 X-Migadu-Scanner: scn1.migadu.com X-TUID: jSNZGOi/VJrQ The attoparsec package on hackage defines multiple internal libraries inside one package, named "attoparsec" and "attoparsec-internal", with the first depending on the latter. Importing attoparsec using `guix import hackage attoparsec` therefore yields the following erroneous package definition: (define-public ghc-attoparsec (package (name "ghc-attoparsec") (version "0.14.4") (source (origin (method url-fetch) (uri (hackage-uri "attoparsec" version)) (sha256 (base32 "0v4yjz4qi8bwhbyavqxlhsfb1iv07v10gxi64khmsmi4hvjpycrz")))) (build-system haskell-build-system) (inputs (list ghc-scientific ghc-attoparsec-internal)) (native-inputs (list ghc-quickcheck ghc-quickcheck-unicode ghc-tasty ghc-tasty-quickcheck ghc-vector)) (arguments `(#:cabal-revision ("1" "149ihklmwnl13mmixq6iq5gzggkgqwsqrjlg2fshqwwbvbd4nn3r"))) (home-page "https://github.com/bgamari/attoparsec") (synopsis "Fast combinator parsing for bytestrings and text") (description "This package provides a fast parser combinator library, aimed particularly at dealing efficiently with network protocols and complicated text/binary file formats.") (license license:bsd-3))) Note that `ghc-attoparsec-internal` is listed as a dependency of `ghc-attoparsec`. I believe that is incorrect, and that we should filter out the internal dependencies from `inputs`, just like we filter out `ghc-attoparsec` from the list of `native-inputs`.