From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id EHTSCNoS1WPrRQAAbAwnHQ (envelope-from ) for ; Sat, 28 Jan 2023 13:19:38 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id mCb9B9oS1WNtagAAG6o9tA (envelope-from ) for ; Sat, 28 Jan 2023 13:19:38 +0100 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 9A0A9399F3 for ; Sat, 28 Jan 2023 13:19:37 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pLkAn-0003x2-PV; Sat, 28 Jan 2023 07:19:09 -0500 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 1pLkAg-0003wF-Pj for bug-guix@gnu.org; Sat, 28 Jan 2023 07:19:05 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pLkAg-0007N5-HR for bug-guix@gnu.org; Sat, 28 Jan 2023 07:19:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pLkAg-0000nH-8L for bug-guix@gnu.org; Sat, 28 Jan 2023 07:19:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#61033: opam importer can't handle list field Resent-From: Julien Lepiller Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sat, 28 Jan 2023 12:19:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61033 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Csepp Cc: 61033@debbugs.gnu.org Received: via spool by 61033-submit@debbugs.gnu.org id=B61033.16749083133003 (code B ref 61033); Sat, 28 Jan 2023 12:19:02 +0000 Received: (at 61033) by debbugs.gnu.org; 28 Jan 2023 12:18:33 +0000 Received: from localhost ([127.0.0.1]:39744 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pLkAD-0000mM-94 for submit@debbugs.gnu.org; Sat, 28 Jan 2023 07:18:33 -0500 Received: from lepiller.eu ([89.234.186.109]:37382) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pLkA7-0000m7-OU for 61033@debbugs.gnu.org; Sat, 28 Jan 2023 07:18:31 -0500 Received: from lepiller.eu (localhost [127.0.0.1]) by lepiller.eu (OpenSMTPD) with ESMTP id c20519b7; Sat, 28 Jan 2023 12:18:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=lepiller.eu; h=date:from :to:cc:subject:message-id:in-reply-to:references:mime-version :content-type:content-transfer-encoding; s=dkim; bh=Xjf2o5HMxp51 iF0ES+oJcyV+WDtF/DJAdgwmwdIaCfM=; b=kXmtPzcpMS9X4zxtMuu0pgtenXPK D4FZueFmt+PUKZBrx4raDDJzpPLvu1dq8tzPujsG26JYXKuNP+rDCpraPXffmfQE qPxTCpnnWuV6ibTQN68XifVxKEwMn+IQpckKXOxId5b/PdvJb6XcWEAIa+exaZdv 2uk0RhiYYkhCy3IqjLoKU8Cbd5BsPw9IRgpncWRPa9jhnmVov6BV0pH8LFBHUaSu enVogG6co3AfrFRahaZYhQkpcfI0yyTCobEOX23SM/hH/oxxgs18yKzvwQwEsvGr 0exsA6xAsEjGQ9JsSVykZ9fwIPZpVF4DH24p2TJ5YvozPn0M0DxzFY2VYA== Received: by lepiller.eu (OpenSMTPD) with ESMTPSA id 68d2f3db (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Sat, 28 Jan 2023 12:18:18 +0000 (UTC) Date: Sat, 28 Jan 2023 13:18:11 +0100 From: Julien Lepiller Message-ID: <20230128131811.23b5806c@sybil.lepiller.eu> In-Reply-To: <86h6wg652t.fsf@riseup.net> References: <86h6wg652t.fsf@riseup.net> X-Mailer: Claws Mail 4.1.1 (GTK 3.24.30; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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-bounces+larch=yhetil.org@gnu.org 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=1674908377; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=5YO9lIROI03AVpBi9sE6gHm73j5AUMBKu9sacy7q1xs=; b=D1W62SMM9Ysc4f/g1/my/GACzRpqRJxoont2ZkuWYIAYxQOd8Lpzxqsd5eC8/Wx25GaLdS nsSozllHJhm7cxR/UVwqu/v7YHl7IW2whm2b4mrF+BpAKtOLPSjkpIUMzPN4HwA6gK+KtI EDjMYh4zczedW+rTwdtro3mDuMROvLXfpUne8lj5FnV8WPNTfR7xMjNezmNAK0H5kZAKHR Gt5VH8ltUeWi9XHYaHZ8uhg9XQIXCvNCfzLzfo5LMXMbxC+XvJL+kY67aitcIbSuSiaOBC j1bBS7NkP6oIw7mM0zAuUpVDcsA5Cnj4XxpyhXFqFNoWzNHphyLPBwfzwch1cg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lepiller.eu header.s=dkim header.b=kXmtPzcp; dmarc=fail reason="SPF not aligned (relaxed)" header.from=lepiller.eu (policy=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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1674908377; a=rsa-sha256; cv=none; b=ncdqCMYqbTv52wxI3VTkOoWb2ddMV+uVhUfrM6X+/5F9Dv1+rVfu7GvgYn89fV86g/VDcc dswS7axE/NxmMuF30uFnS6bbyof8M6YYvL8mdl9YN71nU/HOcOJue2cNZObN0vf5uCLR/v gNghDserW/wYn9xVqNLT6M2lBH3q09HU8uowbpI6dgZkbjXOrI5CuTBc2zQgIbcaMSiLPS dlEXENlhaKZHR3iFKGQVoUf1vj/OjwaefN9QmzhZAxUTnB9LAQ/KLWrgzuiIZm7Xo4AYxN SsC3Mo6R63g+6+QcgGNZirt0vnyrY874DBGchxMk5AOwPKau8LtDORq9F+VoPg== Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lepiller.eu header.s=dkim header.b=kXmtPzcp; dmarc=fail reason="SPF not aligned (relaxed)" header.from=lepiller.eu (policy=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-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -0.97 X-Spam-Score: -0.97 X-Migadu-Queue-Id: 9A0A9399F3 X-TUID: YwRUoRdkrq3a Le Tue, 24 Jan 2023 03:23:44 +0100, Csepp a =C3=A9crit : > Truncated stack trace: >=20 > ``` > ... > In guix/import/opam.scm: > 287:2 3 (opam->guix-package "mirage-crypto-pk" #:repo _ # _) > In unknown file: > 2 (filter # > =E2=80=A6) In guix/import/opam.scm: > 290:13 1 (_ ("mirage-no-solo5" "mirage-no-xen")) > In unknown file: > 0 (string-prefix? "conf-" ("mirage-no-solo5" "mirage-n=E2=80= =A6") > =E2=80=A6) >=20 > ERROR: In procedure string-prefix?: > In procedure string-prefix?: Wrong type argument in position 2 > (expecting string): ("mirage-no-solo5" "mirage-no-xen") ``` >=20 >=20 >=20 The issue is related to lines like this in the list of dependencies: (("mirage-no-solo5" & "mirage-no-xen") | "zarith-freestanding" | "mirage-runtime" {>=3D "4.0"}) This reads as a choice between three dependencies: - mirage-no-solo5 with mirage-no-xen - zarith-freestanding - mirage-runtime The importer infrastructure is not intelligent enough to really be able to solve constraints in imported packages, so I don't see an easy solution. It could silently use the first option, or put a comment instead. Ideas?