From debbugs-submit-bounces@debbugs.gnu.org Thu Apr 16 17:53:44 2020 Received: (at 15284-done) by debbugs.gnu.org; 16 Apr 2020 21:53:44 +0000 Received: from localhost ([127.0.0.1]:39517 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jPCS8-0001tx-AP for submit@debbugs.gnu.org; Thu, 16 Apr 2020 17:53:44 -0400 Received: from sender4-of-o53.zoho.com ([136.143.188.53]:21362) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jPCS5-0001tp-TT for 15284-done@debbugs.gnu.org; Thu, 16 Apr 2020 17:53:42 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1587074020; cv=none; d=zohomail.com; s=zohoarc; b=MBbuyB0GFHDlW3lap6jwwJy/DDj83/jpa18i+hkxOINiN/8J2E7I37V2KV17680V0fdQHv/E0mTL6a7vhJEzef0+FXS+8VUI/6w6qNN5blskzUCCa64xrXFbNPNpNjc9z6tIqDyeMGO858RqdLOxhAIYhPZzpYPLD8RLXOwLNfc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1587074020; h=Content-Type:Content-Transfer-Encoding:Date:From:MIME-Version:Message-ID:Subject:To; bh=u7bQ9dAMKpQRGY0pXkPouIqPOkOQ03A2Ph+P9cgqTDQ=; b=O3QPiQERCwxs88myZ1zA/cpmoTjuQ7q08gfsFgagST+JJeCet38iD395N1CZ93nDu9K3AgY5J0snCRl4Gig7qb8SmmoQ2dQ5rgYVyccUOQVLkqKZOqz6ugcnAVxLRDBwxE1yvknUAkD/l4watbBmBH7tT78D5ICNu8ESa+NO8RE= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=elephly.net; spf=pass smtp.mailfrom=rekado@elephly.net; dmarc=pass header.from= header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1587074020; s=zoho; d=elephly.net; i=rekado@elephly.net; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding; bh=u7bQ9dAMKpQRGY0pXkPouIqPOkOQ03A2Ph+P9cgqTDQ=; b=TbsbFB9LPCaR/zbiQn1QCT7txRhfZabaLy4GsGNhiMj07AcgSkwasQ/Tfyo99H07 l0fbfBznxWsP9z75zwy69+NPMbQ61N2BPYABtJMosyYtJIouVr9QnjnGULnNmWMWKdW PhjpRSAzo5yLG4hLurOSbRAa+GKkiElpQm4DdAfI= Received: from localhost (p54AD4D27.dip0.t-ipconnect.de [84.173.77.39]) by mx.zohomail.com with SMTPS id 1587074018041705.3748941218179; Thu, 16 Apr 2020 14:53:38 -0700 (PDT) User-agent: mu4e 1.2.0; emacs 26.3 From: Ricardo Wurmus To: 15284-done@debbugs.gnu.org Subject: wish: make the (name) field optional X-URL: https://elephly.net X-PGP-Key: https://elephly.net/rekado.pubkey X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC Date: Thu, 16 Apr 2020 23:53:33 +0200 Message-ID: <878sivm71e.fsf@elephly.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-ZohoMailClient: External X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 15284-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) I agree with Ludo and Andreas that we better shouldn=E2=80=99t make the name field optional. That said, I just pushed a series of patches that happens to address this wishlist item in a very roundabout way. It is now possible to build packages from JSON files like this: --8<---------------cut here---------------start------------->8--- [ { "name": "myhello", "version": "2.10", "source": "mirror://gnu/hello/hello-2.10.tar.gz", "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.", "license": "GPL-3.0+", "native-inputs": ["gettext"] }, { "name": "greeter", "version": "1.0", "source": "https://example.com/greeter-1.0.tar.gz", "build-system": "gnu", "arguments": { "test-target": "foo", "parallel-build?": false, }, "home-page": "https://example.com/", "synopsis": "Greeter using GNU Hello", "description": "This is a wrapper around GNU Hello.", "license": "GPL-3.0+", "inputs": ["myhello", "hello"] } ] --8<---------------cut here---------------end--------------->8--- As you can see, there is no variable assignment, because this is JSON. The =E2=80=9Cname=E2=80=9D field is the only identifier, and its value can = be used as an input in other packages (see the reference to =E2=80=9Cmyhello=E2=80=9D in = the =E2=80=9Cgreeter=E2=80=9D package definition). It=E2=80=99s really only tangentially related to what this issue is about, = but it=E2=80=99s as close as we can get to duplication-free syntax =E2=80=94 ev= en though it=E2=80=99s JSON and not Scheme. Look, there are also no labels for input= s! Because there are no custom phases either=E2=80=A6 -- Ricardo