From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id MDyyGPdDuGRMzgAASxT56A (envelope-from ) for ; Wed, 19 Jul 2023 22:13:43 +0200 Received: from aspmx1.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id SLCeGPdDuGTO8AAAauVa8A (envelope-from ) for ; Wed, 19 Jul 2023 22:13:43 +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 13F2B4A073 for ; Wed, 19 Jul 2023 22:13:43 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=laesvuori.fi header.s=mail header.b="Q/EffJi9"; 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"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1689797623; 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:resent-cc:resent-from:resent-sender: resent-message-id:list-id:list-help:list-unsubscribe:list-subscribe: list-post:dkim-signature; bh=RCCp/W3zN/xv2ZRIa7ZkONTohh0Xj8claQqfxtl4VXM=; b=nr4Z40GpjjfbZNI2xwHh1/4mWnCDCaCYR4m7ieTLLAwB9alaPsj0aP5eIRFJoShtmMzmmZ U/v4+JqTGOLh/Q7e1K7kDayn03SpmBVeYsM2igLuyjguYHpzHskyw2at2VR/PGpLG++C7l /yt2iMZ6Yyk9BXSpK0Pm3ub2LXCbpoV6fbSD/bn2z8t32otYtPBaulWT5A0zTjlceDzB6M ZZ4J+TmsCrD/p8mbIZLcjnGe3YL6uKDXm62114oDIQthAxrc9d8ahfbeCYbSCUgp508AzS uJJ69x/ppYf7hvbcqO4OlhyJKselWR79y0fpgFTskt+cFmTm3E0FHYlGPyfHRg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1689797623; a=rsa-sha256; cv=none; b=DarGll/4/J+7STpH7qP11K7iZS6EwSNnHXx+EJ0I6lnUwxcQPLDos70/5mJCxwUgnaVuia yWygcOlinlT3PhvlHchnMIrE82XaBGdJwj+V9fiQ1O0FGZTzkBHppWw5V/pLZiYcGa6iKR XcZhhEADs0+4zKR6VyCsbO2heMp+mcUnfDJnMQRGrlynDz7MEM2rEm7wWzUh4EITkxyr09 +hE3rngU3QqUo0pKTj92cqJs5YhI6eXSERZVse48/QjMuYxvP3hauInRTJZMdiJGNyIHWg G6BUwwxLjTFihPJJq6i3VPN0AesJgRt2q5mnSzpwC4AFSUTh1bC29z5IiC0sKg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=laesvuori.fi header.s=mail header.b="Q/EffJi9"; 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"; dmarc=pass (policy=none) header.from=gnu.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qMDXl-0001WX-Dp; Wed, 19 Jul 2023 16:13:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qMDXj-0001WP-3R for bug-guix@gnu.org; Wed, 19 Jul 2023 16:13:03 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qMDXi-0001cG-NF for bug-guix@gnu.org; Wed, 19 Jul 2023 16:13:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qMDXi-0002WD-DZ for bug-guix@gnu.org; Wed, 19 Jul 2023 16:13:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#64734: Recursive hackage import fails Resent-From: Saku Laesvuori Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 19 Jul 2023 20:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 64734 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 64734@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16897975419615 (code B ref -1); Wed, 19 Jul 2023 20:13:02 +0000 Received: (at submit) by debbugs.gnu.org; 19 Jul 2023 20:12:21 +0000 Received: from localhost ([127.0.0.1]:57164 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qMDX3-0002Uz-0r for submit@debbugs.gnu.org; Wed, 19 Jul 2023 16:12:21 -0400 Received: from lists.gnu.org ([2001:470:142::17]:51778) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qMDWz-0002Uh-1v for submit@debbugs.gnu.org; Wed, 19 Jul 2023 16:12:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qMDWt-0001L2-K7 for bug-guix@gnu.org; Wed, 19 Jul 2023 16:12:11 -0400 Received: from vmi571514.contaboserver.net ([75.119.130.101] helo=mail.laesvuori.fi) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qMDWr-0001Of-Nb for bug-guix@gnu.org; Wed, 19 Jul 2023 16:12:11 -0400 Received: from X-kone (88-113-24-127.elisa-laajakaista.fi [88.113.24.127]) by mail.laesvuori.fi (Postfix) with ESMTPSA id 31AFB34012E for ; Wed, 19 Jul 2023 22:12:06 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=laesvuori.fi; s=mail; t=1689797526; bh=nHU2qzAaOTRXy5EF5LDR66cZq3MeVOiQJxE205CidPg=; h=Date:From:To:Subject; b=Q/EffJi90FbaPRHbVec5MN/HcIAu1co67cdSqqLWbPQnmOba6cD3FWqRZUqeGGofO ngkzwNp5G5wT/iqpBbilM56tgf+xw1BbuHSSiHVJ26jGgsTOKOXTln5spb6Kyey1km Wk8VtoFnTyER/s7QjAUK+LMY/seIXvBfdjCLJNx0= Date: Wed, 19 Jul 2023 23:12:03 +0300 Message-ID: <20230719201203.kg55b7mao4iwwy4o@X-kone> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="dgzccsv4avzvbqwy" Content-Disposition: inline Received-SPF: pass client-ip=75.119.130.101; envelope-from=saku@laesvuori.fi; helo=mail.laesvuori.fi 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, 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: , Reply-to: Saku Laesvuori From: Saku Laesvuori via Bug reports for GNU Guix Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx2.migadu.com X-Migadu-Spam-Score: -8.24 X-Spam-Score: -8.24 X-Migadu-Queue-Id: 13F2B4A073 X-TUID: GZpeIK3zmHHt --dgzccsv4avzvbqwy Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Importing hackage packages recursively fails with similar error to this: ``` $ guix import hackage linear-generics --recursive Backtrace: 11 (primitive-load "/home/saku/.config/guix/current/bin/gu=E2=80= =A6") In guix/ui.scm: 2309:7 10 (run-guix . _) 2272:10 9 (run-guix-command _ . _) In guix/scripts/import.scm: 90:11 8 (guix-import . _) In guix/scripts/import/hackage.scm: 129:26 7 (guix-import-hackage . _) In guix/import/utils.scm: 651:3 6 (recursive-import _ #:repo->guix-package _ #:guix-name . #) 613:31 5 (topological-sort _ # =E2=80=A6) 655:29 4 (_ _) In unknown file: 3 (remove # =E2=80=A6) In guix/import/utils.scm: 635:39 2 (exists? #< name: "th-abstraction" dow=E2=80= =A6> =E2=80=A6) In guix/import/hackage.scm: 128:6 1 (hackage-name->package-name #< name: "t=E2=80= =A6>) In unknown file: 0 (string-prefix? "ghc-" #< name: "th-ab=E2=80= =A6> =E2=80=A6) ERROR: In procedure string-prefix?: In procedure string-prefix?: Wrong type argument in position 2 (expecting s= tring): #< name: "th-abstraction" downstream-name: "ghc-th-= abstraction" type: regular min-version: any max-version: any> ``` I tried to find out what passes the `upstream-input` to `hackage-name->package-name`, but only found out with `pk` that it seems to only happen with the recursed dependencies and not with the root package. I also tried to make `hackage-name->package-name` accept `upstream-input` records but that a new error, so I assume the issue is that something in the importer is returning `upstream-input` records when it should return package names. I could try to debug this further but I don't feel like I know enough about debugging with guile nor about debugging scheme. --dgzccsv4avzvbqwy Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEoMkZR3NPB29fCOn/JX0oSiodOjIFAmS4Q5MACgkQJX0oSiod OjKIgQ//Xaa8ejoZ9I2nkDs0/0I4/3U4yCWTxoNxsKGoZCC2e4DqmUriJiBPexvf tE0vfcwEnoW1uZjcB+0/f9ZSwnfX6TEhs7Z1iHyuOw5ccpawMHJnQApHQ5rNFbzX fqa5Ihu8UwNewFiHWbOFwJCOsNX3jCE79jZG7jyYlanCT9qaLhh8/3MVsr1jOL7Q Kt2Eh5cfgGGGtOEmUeW2qj28UPFoUcABJNtdUfEd6/45HL31VOxJCL6i2RUOhjAP cBgr0ypYlatrzFxNEbLBlx+TNYnhwTCavh/3p/a3lWkoEUOykGsQim/pQtJWc6KR RmLchV6NY/xrggScvLtHNHhNXiSS52t9mqTtuDDYRGEy7mjeCz8tMm9ZBYRygvPM slhCzgeUD4n48+XG/3dj/KrVUbIcV78Xo2xd0vc2A5hpmRn1gntg4A5e3ORtx+aX 9yKQHmDGeBLCy4ZKe/Ct58zQps4nIzVxEAiMUMWwYTi0UsfMNZfOniunca28Rjr9 hubixCX28O1lJE3+SqGm2eW0Uhy4o+dAQETbp74MDQDhzHyOxUDxwkFiKB0sIAFD Op7JaNfNc0flHmAhXsjYE2zNRb9ozsPbIWK8V7wPLTPBT6YqGyDKwuE/Dz5b2Jih Vy70lbbMmWPN+k8/iZUJUdSHrgSLzk5yYDM/q98RBLRxg3Z25y4= =22ce -----END PGP SIGNATURE----- --dgzccsv4avzvbqwy--