From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6721684426774806528 X-Received: by 2002:a19:5f46:: with SMTP id a6mr5351322lfj.142.1565166120084; Wed, 07 Aug 2019 01:22:00 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a19:5053:: with SMTP id z19ls477484lfj.7.gmail; Wed, 07 Aug 2019 01:21:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqzCQ/ADs5AQ3ndW0UQ8d1RK1pLJZ9b28VaIST2/3bIBy3c09fVOJ4XtDcI2WJcU/Okhvtiz X-Received: by 2002:ac2:5dfb:: with SMTP id z27mr5189409lfq.128.1565166119555; Wed, 07 Aug 2019 01:21:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565166119; cv=none; d=google.com; s=arc-20160816; b=Wt+imaKhQCJMiu4TmnSmWDzYKpJuPdRrcdpX2MnivFKx3z1pSUgiwU5RG9oST/LJQF c5p85FaY+m6pgBRHj7RmrEy4sghiwGrgxHG1YBztfHVVIZlCzlIXQoCSPAzp+MI/XW4o 33oXwHoGjA38DS8iu3jdDhTLT/lewi9lKc6+ziWyz1UtPEGYQEbJUjp3fLm/4Wx+F2fr FBzt1Hhy/Pa7zuldwTnP1mVrDC4Y+w1shnwuDcu2h7B4SX53+K1PonuW3eqHzem33Ahl 8aG59S54Cqcs3m1G+9mxDugdxBt31Vrix/RlimccBAkfwCZ+FcQb+EKjAoJh1umj1Qac QUCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:references:cc:to:subject; bh=92ybRknTbkXdd97Juaaiqst/mFkiQ8rCluVzqsN9x9k=; b=Au4jWGQAv0ZyuyHnESM8abgWXiwBIIHE1NoqkDLEX/DL7vlgeYwVBa+Jfmmkac1OOE vp0JpKySadNIjLqM6gtQVHxArt2M1kv49Do1MyDfgZ0NGbpFWWIBYxzKGYlN2srcKVR2 1zxEaA6ZT33yUPa2G7+BIw5XxZnWy5osKexrzQ0YY0angUKKDCt8WOJXyUywgbg+g8SA s6p/WkVGiSNhFOYcY++zYZRowRDDc8PikR3Vzl43Wvs8L2svj2aOtKK9okdUMJ6nSB/O l6eB3deNk1phSpy0XCccCQSVuL92h94/M0y3f+gbdbhPd/Eli2zu2oe2al8jwg45LS7D Zlbw== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of claudius.heine.ext@siemens.com designates 192.35.17.14 as permitted sender) smtp.mailfrom=claudius.heine.ext@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Return-Path: Received: from david.siemens.de (david.siemens.de. [192.35.17.14]) by gmr-mx.google.com with ESMTPS id t23si628057lfk.2.2019.08.07.01.21.59 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 07 Aug 2019 01:21:59 -0700 (PDT) Received-SPF: pass (google.com: domain of claudius.heine.ext@siemens.com designates 192.35.17.14 as permitted sender) client-ip=192.35.17.14; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of claudius.heine.ext@siemens.com designates 192.35.17.14 as permitted sender) smtp.mailfrom=claudius.heine.ext@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Received: from mail1.sbs.de (mail1.sbs.de [192.129.41.35]) by david.siemens.de (8.15.2/8.15.2) with ESMTPS id x778Lw55018815 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 7 Aug 2019 10:21:58 +0200 Received: from [139.25.69.208] (linux-ses-ext02.ppmd.siemens.net [139.25.69.208]) by mail1.sbs.de (8.15.2/8.15.2) with ESMTP id x778LwU3027397; Wed, 7 Aug 2019 10:21:58 +0200 Subject: Re: [PATCH v2] meta/classes: generate bill of material from image To: Gernot Hillier , Quirin Gylstorff , isar-users@googlegroups.com Cc: Claudius Heine References: <20190805140742.11479-1-Quirin.Gylstorff@siemens.com> <20190806135539.1826-1-Quirin.Gylstorff@siemens.com> <217fe8c3-9dfb-41cf-b95a-fa793b05d9a6@siemens.com> <3bc2de85-2bfd-e6a3-0a78-47890b673f47@siemens.com> <40f1532f-d989-cb1f-992b-d8c843e45499@siemens.com> From: Claudius Heine Message-ID: <2d098930-f919-47fb-44e3-3429f9be04ca@siemens.com> Date: Wed, 7 Aug 2019 10:21:57 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-TUID: kvFjZ8Dz1zGP On 07/08/2019 10.08, Gernot Hillier wrote: > > > Am 07.08.19 um 10:01 schrieb Claudius Heine: >> Hi Gernot, >> >> On 07/08/2019 09.56, [ext] Gernot Hillier wrote: >>> Hi! >>> >>> Am 07.08.19 um 09:52 schrieb Quirin Gylstorff: >>>> >>>> >>>> On 8/6/19 3:55 PM, Q. Gylstorff wrote: >>>>> From: Quirin Gylstorff >>>>> >>>>> To create products it is necessary to have a list >>>>> of used packages for clearance and to security monitoring. >>>>> To get a simple list of packages use dpkg-query and generate >>>>> a list with the following pattern: >>>>> >>> [...] >>>> I am thinking about adding json as alternative output format. The yocto >>> >>> Why? Is this some established standard somewhere else? >> >> I don't know any standard format for manifest files? Do you? I >> suggested JSON because its very easy machine readable and expandable >> without breaking other tools. > > Well, if there's no established standard, I'd prefer to go with > something which is easy to consume in shell scripts. > > If we don't have clear advantages for JSON, I prefer Well IMO, we do have a clear advantage being JSON is sort of a standard format and this is not. But we could go with CSV perhaps? > > cut -d "|" -f 1 > > over > > python3 -c "import sys, json; print(json.load(sys.stdin)['name'])" > > - or adding another dependency to "jq". We don't need an additional dependency in isar. But if you like to use json in a shell script, jq might be the way to go. Otherwise we could also use the debian format and print out the installed packages in deb822 [1] format. regards, Claudius [1] http://man7.org/linux/man-pages/man5/deb822.5.html -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-54 Fax: (+49)-8142-66989-80 Email: ch@denx.de