From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id WK6oFEQTCGFnAQEAgWs5BA (envelope-from ) for ; Mon, 02 Aug 2021 17:46:12 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id UPVoEEQTCGH9GAAA1q6Kng (envelope-from ) for ; Mon, 02 Aug 2021 15:46:12 +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 9E2E34D17 for ; Mon, 2 Aug 2021 17:46:11 +0200 (CEST) Received: from localhost ([::1]:40026 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mAa8o-0008B3-M5 for larch@yhetil.org; Mon, 02 Aug 2021 11:46:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44068) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mAa7k-00078S-BV for bug-guix@gnu.org; Mon, 02 Aug 2021 11:45:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:55687) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mAa7k-0001Hl-2S for bug-guix@gnu.org; Mon, 02 Aug 2021 11:45:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mAa7k-0004nb-22 for bug-guix@gnu.org; Mon, 02 Aug 2021 11:45:04 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#49827: Error message for missing synopsis in opam importer Resent-From: Alice BRENON Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 02 Aug 2021 15:45:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 49827 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 49827@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.162791909218369 (code B ref -1); Mon, 02 Aug 2021 15:45:03 +0000 Received: (at submit) by debbugs.gnu.org; 2 Aug 2021 15:44:52 +0000 Received: from localhost ([127.0.0.1]:38994 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mAa7X-0004m8-8U for submit@debbugs.gnu.org; Mon, 02 Aug 2021 11:44:52 -0400 Received: from lists.gnu.org ([209.51.188.17]:60812) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mAZRU-0003ex-Hy for submit@debbugs.gnu.org; Mon, 02 Aug 2021 11:01:24 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58384) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mAZRU-0005KU-9f for bug-guix@gnu.org; Mon, 02 Aug 2021 11:01:24 -0400 Received: from lxc-smtp2.ens-lyon.fr ([140.77.167.81]:51840) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mAZRR-0002h3-Sq for bug-guix@gnu.org; Mon, 02 Aug 2021 11:01:23 -0400 Received: from localhost (localhost [127.0.0.1]) by lxc-smtp2.ens-lyon.fr (Postfix) with ESMTP id 92AC1E49B0 for ; Mon, 2 Aug 2021 17:01:16 +0200 (CEST) X-Virus-Scanned: by amavisd-new-2.11.0 (20160426) (Debian) at ens-lyon.fr Received: from lxc-smtp2.ens-lyon.fr ([127.0.0.1]) by localhost (lxc-smtp2.ens-lyon.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4bAwGByioGFe for ; Mon, 2 Aug 2021 17:01:16 +0200 (CEST) Received: from localhost (unknown [78.194.167.103]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (Client did not present a certificate) by lxc-smtp2.ens-lyon.fr (Postfix) with ESMTPSA id 7FBC0E49AF for ; Mon, 2 Aug 2021 17:01:16 +0200 (CEST) Date: Mon, 2 Aug 2021 17:01:15 +0200 From: Alice BRENON Message-ID: <20210802170115.696ac103@ens-lyon.fr> Organization: ENS de Lyon X-Mailer: Claws Mail 4.0.0 (GTK+ 3.24.24; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=140.77.167.81; envelope-from=alice.brenon@ens-lyon.fr; helo=lxc-smtp2.ens-lyon.fr X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Mon, 02 Aug 2021 11:44:48 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Mailman-Approved-At: Mon, 02 Aug 2021 11:46:01 -0400 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1627919171; 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: 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; bh=RRQKO4mAD84m6xAu8Lipw3sYY7iyPmWihujbRuRguVo=; b=AUTrJdI1v2WFyO2x3a7VHCutgW0H+5jzgZtY+xL8teL2OQ6e+f94XAo2NWscfv3Yi7/0JB dK04RRk460OV/bhcFxTzus3GdGT/77hAv1a040iO+scPCufwmzXsGYQ7hhNlAsx82mylED JfeFBW1LTek8dRsJeJuI3mSXkBAisERs/3ea6+2UUtnv+dmlSZgLf1ijD6S7W4NeswwQmE T347SsV8++WCpwV+tY1I45ji2TFPmg1Mavt9DlEWO0P/ttnruCrpc6nKgeInaGlJt/OjK8 1DDsY7gdEtbPxQ42xXmI0vtgSfvtv+NQ+gO+4hYtuvRZlR8ybu4lzBV7zys5mw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1627919171; a=rsa-sha256; cv=none; b=KZG0PMaBwtmxHlQa2hCUybQwp5m6THuDYk5nvWoN4X3qyvQgpmU3+XlXtNDD2P1khPLOpD a3N2693c6vE9pCMcz6K+4DfzRDiO6Sw3uqazSrVlobE5nieymJv6DCePM5uYFSl8LDD0uI unbTwWSX+OeGDQa7nFRMkjJWAN07gDeMs2FZ8ZVWfuvIyFdzA1B63cX7xeV0yZa78oTsZU SfVKGC1BRERoWCPnbRsNEzcD914kyRhS+UXnG9NIF0s9KkAWutQ2oyBG30T2qPWsv+yopb I9QX0nsCGb0m5DiADawUAzM6EaL7XAM0IFo/JcaHqm1lVFkfHcGO9RP045WC/g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Spam-Score: -2.42 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: 9E2E34D17 X-Spam-Score: -2.42 X-Migadu-Scanner: scn0.migadu.com X-TUID: oQxKDI2IOmPC Hello, I triggered a confusing behaviour from the opam importer trying to import package iter 1.2.1 today on a Guix System install. The package iter is missing a "synopsis" field as can be seen on https://opam.ocaml.org/packages/iter/ , which when I tried guix import opam iter yielded the following backtrace: Backtrace: 8 (primitive-load "/home/alice/.config/guix/current/bin/g=E2=80= =A6") In guix/ui.scm: 2185:7 7 (run-guix . _) 2148:10 6 (run-guix-command _ . _) In guix/scripts/import.scm: 120:11 5 (guix-import . _) In guix/scripts/import/opam.scm: 104:23 4 (guix-import-opam . _) In guix/utils.scm: 752:8 3 (call-with-temporary-output-file _) In guix/import/opam.scm: 337:34 2 (_ _ _) In srfi/srfi-1.scm: 460:18 1 (fold # =E2=80=A6) In guix/import/opam.scm: 193:15 0 (_ _ _) guix/import/opam.scm:193:15: Throw to key `match-error' with args `("match" "no matching pattern" string-pat)'. the final error is raised l.193 of guix/import/opam.scm because metadata-ref supports various types for a metadata field, but not the lack of it. As discussed with Maxime Devos on the IRC channel, it would be helpful to either allow the import of a package with a missing field (possibly filling it in the output scheme code for the imported package with some bad value requiring the user to fill it and causing any build to crash until replaced properly) or at least to handle that missing field with a more explicit error message than the above backtrace (something like "Can't import that package because it's missing such or such field"). Thanks, Alice BRENON