From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id GJ+rGuIP1WWMggAAqHPOHw:P1 (envelope-from ) for ; Tue, 20 Feb 2024 21:47:30 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id GJ+rGuIP1WWMggAAqHPOHw (envelope-from ) for ; Tue, 20 Feb 2024 21:47:30 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=rimm.ee header.s=herman header.b=P8FyrwPj; 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=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1708462050; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: 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=sDpFI8xRmqX/KdgKWYY7UxHkW7LEikGKZE83VRXpYOM=; b=pJ7DeD7/DjsVj5twe04Dw72SvJ8FDydKVqQdDZC785Wmi0VPTAmYCOJoxVVWem/r9uWRum 5Q6yGuiiY2E4p0us9iv4al0X7rutXH+XZysNuiEzGrJVVYfkdAJXN2CF6SixewHe28D/r+ sAMjkH/IeL5/TtTwuBJv7+hbAXrOKo9aBbJODe676k1ot1lgCe3kpT9nqHezeh4+1Mtc8O 3gTtGNZ7LZnRU7EP8rjI0ltPy/S7FkBZhQiFM3g+P2Tj8vNRHUfBSt+v2wFtbeern4+PsB sas7vxCKzEtQBXFxLPAAVGgILyb9vPy2OpkEERUthQgLCpn5KWTvLb1Zl8A28A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=rimm.ee header.s=herman header.b=P8FyrwPj; 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=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1708462050; a=rsa-sha256; cv=none; b=a/QqbAPal7wFR/vmtRV141LaXG8bk3jTlsWEfOIGtujCuFJGN2sv99p/yqRsBWmds3RLlL prHPWf4TY0g0y7IEOtVgkSJiwxrwhPT64c1Q9H9LS8ICG1NNV51gnq6zjNKDSLRmBJGPeR jHMwd3kR+HA2+31LYiu+7OpuO8yVeEv/9ggqoHrlp326r7TlJjZxHvlK3uZhI9A7M42XxN ///knnqbpHZH9fqzdGU0to1VJNgHdxBnr0G42EWBKFixlrMFoF36IbpgIPc+hnEJJ78Ych 8OgzdhWWBHIWOWMG1SZWduH7MAHn0bEBjtmFIMjXzMOKhaq+LSNdnkrYFetyLA== 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 2135A694A8 for ; Tue, 20 Feb 2024 21:47:30 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rcX0n-00054j-Ai; Tue, 20 Feb 2024 15:46:45 -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 1rcX0l-00054Y-Vr for guix-patches@gnu.org; Tue, 20 Feb 2024 15:46:44 -0500 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 1rcX0l-0004GH-O9 for guix-patches@gnu.org; Tue, 20 Feb 2024 15:46:43 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rcX17-0004He-Jj for guix-patches@gnu.org; Tue, 20 Feb 2024 15:47:05 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#68935] [PATCH v3 7/7] import: Do not return package name with json importer. Resent-From: Herman Rimm Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 20 Feb 2024 20:47:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68935 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 68935@debbugs.gnu.org Cc: ludo@gnu.org, Herman Rimm Received: via spool by 68935-submit@debbugs.gnu.org id=B68935.170846199316370 (code B ref 68935); Tue, 20 Feb 2024 20:47:05 +0000 Received: (at 68935) by debbugs.gnu.org; 20 Feb 2024 20:46:33 +0000 Received: from localhost ([127.0.0.1]:46819 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rcX0a-0004Fx-KR for submit@debbugs.gnu.org; Tue, 20 Feb 2024 15:46:33 -0500 Received: from 81-205-150-117.fixed.kpn.net ([81.205.150.117]:53857 helo=email.rimm.ee) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rcX0L-0004Do-N7 for 68935@debbugs.gnu.org; Tue, 20 Feb 2024 15:46:18 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rimm.ee; s=herman; t=1708461944; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=sDpFI8xRmqX/KdgKWYY7UxHkW7LEikGKZE83VRXpYOM=; b=P8FyrwPjAgnavUMX0MyZBeRnj9Cf+XXsSmP4+JNKb5+ctjV6mPhQT9vLqviMfSTT3N0PT4 wGky/BffF0s1BJyx/kvJtbxB5U6PXwdX9hBPWICs2OhJsfoW8OFpD3bao8pYkuo51Epo5x o8f53fwS1oIlYD7ERpBJqsIFTBvvxkspwlIqNJHkZFT9VYxyiobs0pjwR0mni0iDKuGaKp 0VrDmC7FuCBkd++M4FtjNW2WwlAJcb+awaA5NdGjPt54/P9OrWA/1R6I1Ufw59bDxrADTJ K0e8U37j5K7PH7hZONqZlvH3NahuJH7fwP5jh7KczctzmfIktPaoWo36SjVxxQ== Received: by 81-205-150-117.fixed.kpn.net (OpenSMTPD) with ESMTPSA id 6d8c3a0b (TLSv1.3:TLS_CHACHA20_POLY1305_SHA256:256:NO); Tue, 20 Feb 2024 20:45:44 +0000 (UTC) Date: Tue, 20 Feb 2024 21:45:15 +0100 Message-ID: X-Mailer: git-send-email 2.41.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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: List-Help: List-Subscribe: , Reply-to: Herman Rimm X-ACL-Warn: , Herman Rimm via Guix-patches From: Herman Rimm via Guix-patches via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -6.48 X-Spam-Score: -6.48 X-Migadu-Queue-Id: 2135A694A8 X-Migadu-Scanner: mx11.migadu.com X-TUID: Juu1TomEEK1D * guix/import/json.scm (json->code): Do not return package names after package expressions. * doc/package-hello.json: Fix comma errors and use valid greeter URL. Change-Id: Id71924e72f690a9bda5fbfdb65a443029adfd158 --- doc/package-hello.json | 6 +++--- guix/import/json.scm | 13 ++++++------- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/doc/package-hello.json b/doc/package-hello.json index a47e266e4b..60193e97e6 100644 --- a/doc/package-hello.json +++ b/doc/package-hello.json @@ -6,7 +6,7 @@ "build-system": "gnu", "arguments": { "tests?": false - } + }, "home-page": "https://www.gnu.org/software/hello/", "synopsis": "Hello, GNU world: An example GNU package", "description": "GNU Hello prints a greeting.", @@ -16,11 +16,11 @@ { "name": "greeter", "version": "1.0", - "source": "https://example.com/greeter-1.0.tar.gz", + "source": "mirror://gnu/hello/hello-2.10.tar.gz", "build-system": "gnu", "arguments": { "test-target": "foo", - "parallel-build?": false, + "parallel-build?": false }, "home-page": "https://example.com/", "synopsis": "Greeter using GNU Hello", diff --git a/guix/import/json.scm b/guix/import/json.scm index b87e9918c5..bf346a1bef 100644 --- a/guix/import/json.scm +++ b/guix/import/json.scm @@ -78,14 +78,13 @@ (define (json->code file-name) #:result (append result (list - (package->code (alist->package pkg names)) - (string->symbol (assoc-ref pkg "name")))))))) - (list #:names '() - #:result '()) - packages)))) + (package->code + (alist->package pkg names)))))))) + (list #:names '() + #:result '()) + packages)))) (package - (list (package->code (alist->package json)) - (string->symbol (assoc-ref json "name"))))))) + (list (package->code (alist->package json))))))) (const #f))) (define (json->scheme-file file) -- 2.41.0