GNU bug report logs

#15284 wish: make the (name) field optional

PackageSource(s)Maintainer(s)
guix PTS Buildd Popcon
Full log

Message #21 received at 15284-done@debbugs.gnu.org (full text, mbox, reply):

Received: (at 15284-done) by debbugs.gnu.org; 16 Apr 2020 21:53:44 +0000
From debbugs-submit-bounces@debbugs.gnu.org Thu Apr 16 17:53:44 2020
Received: from localhost ([127.0.0.1]:39517 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces@debbugs.gnu.org>)
	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 <rekado@elephly.net>) 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=<rekado@elephly.net> header.from=<rekado@elephly.net>
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 <rekado@elephly.net>
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: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request@debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit@debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request@debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request@debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces@debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org>
X-Spam-Score: -1.0 (-)
I agree with Ludo and Andreas that we better shouldn’t 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 “name” field is the only identifier, and its value can be used as an
input in other packages (see the reference to “myhello” in the “greeter”
package definition).

It’s really only tangentially related to what this issue is about, but
it’s as close as we can get to duplication-free syntax — even though
it’s JSON and not Scheme.  Look, there are also no labels for inputs!
Because there are no custom phases either…

--
Ricardo




Send a report that this bug log contains spam.


debbugs.gnu.org maintainers <help-debbugs@gnu.org>. Last modified: Mon Sep 8 11:21:49 2025; Machine Name: wallace-server

GNU bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.