From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id YHNEM+sX9GPdyQAAbAwnHQ (envelope-from ) for ; Tue, 21 Feb 2023 02:01:31 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id mPk6M+sX9GM4IgEAauVa8A (envelope-from ) for ; Tue, 21 Feb 2023 02:01:31 +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 67D603DDB9 for ; Tue, 21 Feb 2023 02:01:31 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=KfdAZQaH; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1676941291; a=rsa-sha256; cv=none; b=q2GII3TAvs2px/u/VhUlx7RZiKTg1pFTEg5pgFU0WYHQ7NNezbBT3F1SAf1fueJICNDT53 VPDFREjJ4+wh34+foAhgvfVUgInvkH4WgqJL5RFfSbgYMum+4HUGWl32HywgYl5v7nL8/5 Vz6OjuT/nYAbcCbVzt521+7bm6paQUTGCcgCSy4RTsJzJKHuwtWXBbmwnA5ywOfObayLgN wC2iWxl7L6PQgjN5lDXG/6V9dV49d6wH6uQxl7Qh3QqfgbR+cmDwq7OVKnOzHJiELNDftC 10lhkd8885ohK+q7pM3OS0dMFx2y8OSEEPC/rly1M3u1bvnYoUTjtyPHcC1s+w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=KfdAZQaH; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1676941291; 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:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=dwe9o8WgOkDDkL9V5hgJpQuz7AdYllL6A3c1e9cTTC4=; b=T9u8VsGoAZHCXgoDdf/d5600scNEA1wuvcuvKtlYV2RBtYVtdYXqBMzb0UBZ8hmr6MSysd cD3yi7G+Wwn17hj9NVgiLJSQDMa9i/J7L3k4bQzXL+Skl8w2V82qyGj6fxz7RijmvDp7DO OUlxkS680TDlAjP7CdaK7TSH5MErrBq7BxIp2nUVSdv7+AylOHsPDbU7YsNxCqdvNT8dYk IWVBjGCREMGYprUv/CQgyesoYqaDt2bQsiYvUXMqzGKNid3vAlY+ZtOTSmbcxOUHmDjKhF +uWwagaibn7RdoXlaMKtyCSNis/5Bo7GUWLYFgVJxK4wlPpU4/pGBBLSI5tICg== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pUH1s-0006vg-M5; Mon, 20 Feb 2023 20:01:15 -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 1pUH1j-0006tD-CP for guix-patches@gnu.org; Mon, 20 Feb 2023 20:01:04 -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 1pUH1i-0002Fw-IF for guix-patches@gnu.org; Mon, 20 Feb 2023 20:01:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pUH1i-0003fc-8J; Mon, 20 Feb 2023 20:01:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#61665] [PATCH] gnu: python-clingo: Fix invalid G-expression input. Resent-From: Simon Tournier Original-Sender: "Debbugs-submit" Resent-CC: liliana.prikler@gmail.com, guix-patches@gnu.org Resent-Date: Tue, 21 Feb 2023 01:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 61665 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 61665@debbugs.gnu.org Cc: Simon Tournier , liliana.prikler@gmail.com X-Debbugs-Original-To: guix-patches@gnu.org X-Debbugs-Original-Xcc: liliana.prikler@gmail.com Received: via spool by submit@debbugs.gnu.org id=B.167694123514063 (code B ref -1); Tue, 21 Feb 2023 01:01:02 +0000 Received: (at submit) by debbugs.gnu.org; 21 Feb 2023 01:00:35 +0000 Received: from localhost ([127.0.0.1]:53984 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pUH1G-0003el-Q9 for submit@debbugs.gnu.org; Mon, 20 Feb 2023 20:00:35 -0500 Received: from lists.gnu.org ([209.51.188.17]:41568) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pUH1E-0003ec-U2 for submit@debbugs.gnu.org; Mon, 20 Feb 2023 20:00:34 -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 1pUH1A-0006ju-QP for guix-patches@gnu.org; Mon, 20 Feb 2023 20:00:30 -0500 Received: from mail-wm1-x32d.google.com ([2a00:1450:4864:20::32d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pUH19-0002BA-2K for guix-patches@gnu.org; Mon, 20 Feb 2023 20:00:28 -0500 Received: by mail-wm1-x32d.google.com with SMTP id j3so147706wms.2 for ; Mon, 20 Feb 2023 17:00:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=dwe9o8WgOkDDkL9V5hgJpQuz7AdYllL6A3c1e9cTTC4=; b=KfdAZQaHqM0foCiKYS173U2KJYjbXcuHwc9CmbnvTy7CCxk8Ex/W6gQI6JcvPJjUfc cvfJAxEAv9la50WapJgMoszkbQ+6FCQLvwcS1MBT+PUaXC3ltrR0V3KpBwCIjCJVg/EL EDJ65L24mucSRZqn/agb6FSJR5rYZ4W4abmnapTILGfqOvEK3XmOA4Tlkc/315vcxoJd FOx5eodGBx3ltXCtQa9/ZIpUn/585LCpXApTqZy+hRLRDEoHi9e4HYy88txsouFTKIhI Bpl5E3KiLWeo+hkrde+O7KWb3LA5wwDG9wHgNPRvvGVN0VrDBscitE7U8VGiGw9mT1jx LV2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=dwe9o8WgOkDDkL9V5hgJpQuz7AdYllL6A3c1e9cTTC4=; b=2N0YuWiL39CNzl9V5zOtw+Eo+b8NNYMhUx4c2+AyhTJvMqxmkyu137mwY5ScKLDdPj w4kTQa0PNA24NrlkGJHez9TYDTGH42jrOBkX9reEoarsFFvZcvULX97ig7xIqVs+FDZL VXj1+pxQ8hpaLiTcUjTo7pCuMxzCe0sSv0wZidlr1mhGfIdRsm918nqqay/3uFoI/yvN rzl0i8Eajkwx9GVeOXv/hFPHVuSO4Y3IVxNyC6owF1t9fmx8M6YEeC99mJYuHNiOPRQk 8F+6fERxQfuVz+j2i+r1usaYFIxGYaVvAB5gnRyldkyfww+vLckqn6bKdEb9RLnA/F8E 7aqw== X-Gm-Message-State: AO0yUKUkbULoY9K41UZK4qvAzXLltR7cpsjIYH+4W1e22ZWjSEtiiqM0 5kYz4WZ2WL36yjjZHFNEADEhbtcIiVg= X-Google-Smtp-Source: AK7set+8Jdt6j45/8vmzuvoEYuGZTghZ31nU9bRxy36/fV9XZhPuC52HhMj5photUOVk9I5/KORThg== X-Received: by 2002:a05:600c:1c9c:b0:3dc:5ae4:c13d with SMTP id k28-20020a05600c1c9c00b003dc5ae4c13dmr3196476wms.4.1676941225353; Mon, 20 Feb 2023 17:00:25 -0800 (PST) Received: from localhost.localdomain ([193.48.40.117]) by smtp.gmail.com with ESMTPSA id x15-20020adff64f000000b002c406b357cfsm3843564wrp.86.2023.02.20.17.00.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Feb 2023 17:00:25 -0800 (PST) From: Simon Tournier Date: Tue, 21 Feb 2023 02:00:18 +0100 Message-Id: <20230221010018.2689405-1-zimon.toutoune@gmail.com> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::32d; envelope-from=zimon.toutoune@gmail.com; helo=mail-wm1-x32d.google.com 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_DNSWL_NONE=-0.0001, SPF_HELO_NONE=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: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: X-Migadu-Queue-Id: 67D603DDB9 X-Spam-Score: -1.55 X-Migadu-Spam-Score: -1.55 X-Migadu-Scanner: scn0.migadu.com List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-TUID: EAhg8xuEJK98 * gnu/packages/maths.scm (python-clingo)[arguments]: Add 'imported-modules' and 'modules' in order to access to 'python:site-packages'. [version]: Explicitly reuse from the package 'clingo'. --- Hi, This package seems broken: --8<---------------cut here---------------start------------->8--- $ guix time-machine --commit=e8fcf1e424 -- build python-clingo guix build: erreur : # : entrée G-expression invalide --8<---------------cut here---------------end--------------->8--- The issue seems coming from the field 'version'. Then, commit 8285093cee000d6e28c040f721ddf0be18d32c42 introduces #$version which introduces the failure. Well, I have not found the correct G-exp syntax for #:imported-modules. Cheers, simon gnu/packages/maths.scm | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 1e40be8722..67634990ae 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -2703,12 +2703,20 @@ (define-public python-clingo (package (inherit clingo) (name "python-clingo") + (version (package-version clingo)) ;Fix error: invalid G-expression #$version (arguments (substitute-keyword-arguments (package-arguments clingo) ((#:configure-flags flags #~'()) #~(cons* "-DCLINGO_BUILD_WITH_PYTHON=pip" "-DCLINGO_USE_LIB=yes" #$flags)) + ((#:imported-modules _ '()) + `(,@%cmake-build-system-modules + (guix build python-build-system))) + ((#:modules _ '()) + '((guix build cmake-build-system) + ((guix build python-build-system) #:prefix python:) + (guix build utils))) ((#:phases phases #~%standard-phases) #~(modify-phases #$phases (add-after 'unpack 'fix-failing-tests base-commit: e8fcf1e42438113d7e4be82dc5a06de45eaceb76 -- 2.38.1