Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
To: buildroot@busybox.net
Subject: [Buildroot] [NEXT 06/26] boa: add CPE id
Date: Tue, 27 Feb 2018 23:17:18 +0100	[thread overview]
Message-ID: <20180227231718.090c22ef@windsurf.lan> (raw)
In-Reply-To: <1519697441-54194-7-git-send-email-matthew.weber@rockwellcollins.com>

Hello,

On Mon, 26 Feb 2018 20:10:21 -0600, Matt Weber wrote:
> Signed-off-by: Matthew Weber <matthew.weber@rockwellcollins.com>
> ---
>  package/boa/boa.mk | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/package/boa/boa.mk b/package/boa/boa.mk
> index d8bcaa1..1ded702 100644
> --- a/package/boa/boa.mk
> +++ b/package/boa/boa.mk
> @@ -8,7 +8,7 @@ BOA_VERSION = 0.94.14rc21
>  BOA_SITE = http://www.boa.org
>  BOA_LICENSE = GPL-2.0+
>  BOA_LICENSE_FILES = COPYING
> -
> +BOA_CPE_ID = $(BOE_NAME):$(BOE_NAME):$(BOE_VERSION)

Typo: BOE -> BOA

Also, please keep an empty line before BOA_INSTALL_TARGET_CMDS.

Now, a more general discussion about <pkg>_CPE_ID. Here is the list of
CPE_ID you have added:

BASH_CPE_ID = gnu:$(BASH_NAME):$(BASH_VERSION)
BOA_CPE_ID = $(BOE_NAME):$(BOE_NAME):$(BOE_VERSION)
BOOST_CPE_ID = $(BOOST_NAME):$(BOOST_NAME):$(BOOST_VERSION)
BUSYBOX_CPE_ID = $(BUSYBOX_NAME):$(BUSYBOX_NAME):$(BUSYBOX_VERSION)
BZIP2_CPE_ID=bzip:$(BZIP2_NAME):$(BZIP2_VERSION)
DHCP_CPE_ID = isc:$(DHCP_NAME):$(DHCP_VERSION)
E2FSPROGS_CPE_ID = e2fsprogs_project:$(E2FSPROGS_NAME):$(E2FSPROGS_VERSION)
GDB_CPE_ID = gnu:$(GDB_NAME):$(GDB_VERSION)
GLIBC_CPE_ID = gnu:$(GLIBC_NAME):$(GLIBC_VERSION)
GNUPG_CPE_ID = $(GNUPG_NAME):$(GNUPG_NAME):$(GNUPG_VERSION)
GZIP_CPE_ID = gnu:$(GZIP_NAME):$(GZIP_VERSION)
IPROUTE2_CPE_ID = iproute2_project:$(IPROUTE2_NAME):$(IPROUTE2_VERSION)
LIBGCRYPT_CPE_ID = gnupg:$(LIBGCRYPT_NAME):$(LIBGCRYPT_VERSION)
LIBOPENSSL_CPE_ID = openssl:openssl:$(LIBOPENSSL_VERSION)
LIBZLIB_CPE_ID = gnu:zlib:$(LIBZLIB_VERSION)
LINUX_CPE_ID = $(LINUX_NAME):$(LINUX_NAME)_kernel:$(LINUX_VERSION)
LINUX_HEADERS_CPE_ID = linux:linux_kernel:$(LINUX_HEADERS_VERSION)
OPENSSH_CPE_ID = openbsd:$(OPENSSH_NAME):$(OPENSSH_VERSION)
RSYSLOG_CPE_ID = $(RSYSLOG_NAME):$(RSYSLOG_NAME):$(RSYSLOG_VERSION)
TCPDUMP_CPE_ID = $(TCPDUMP_NAME):$(TCPDUMP_NAME):$(TCPDUMP_VERSION)
UTIL_LINUX_CPE_ID = util-linux_project:$(UTIL_LINUX_NAME):$(UTIL_LINUX_VERSION)
XERCES_CPE_ID = apache:$(XERCES_NAME)-c\+\+:$(XERCES_VERSION)

There is clearly a pattern, no?

Does it make sense to define in the infra:

$(2)_CPE_ID_VENDOR ?= $$($(2)_NAME)
$(2)_CPE_ID_NAME ?= $$($(2)_NAME)
$(2)_CPE_ID_VERSION ?= $$($(2)_VERSION)
$(2)_CPE_ID ?= $($(2)_CPE_ID_VENDOR):$($(2)_CPE_ID_NAME):$($(2)_CPE_ID_VERSION)

With this, in many packages, you can avoid <pkg>_CPE_ID completely. In
a few other packages you'll have to do:

LIBZLIB_CPE_ID_VENDOR = gnu
LIBZLIB_CPE_ID_NAME = zlib

The drawback is obviously that all packages will suddenly have a
<pkg>_CPE_ID value, even if this value may potentially be incorrect
because it hasn't been checked. And this may be a real problem, so
probably your solution is better, I just wanted to point out the
(admittedly limited) duplication.

Best regards,

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
http://bootlin.com

  reply	other threads:[~2018-02-27 22:17 UTC|newest]

Thread overview: 52+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-27  2:10 [Buildroot] [NEXT 00/26] Package CVE Reporting Matt Weber
2018-02-27  2:10 ` [Buildroot] [NEXT 01/26] cpe-info: new make target Matt Weber
2018-02-27 21:40   ` Thomas Petazzoni
2018-02-28  4:30     ` Matthew Weber
2018-03-01 20:21       ` Arnout Vandecappelle
2018-02-27  2:10 ` [Buildroot] [NEXT 02/26] cpe-info: update manual for new pkg vars Matt Weber
2018-02-27 21:43   ` Thomas Petazzoni
2018-02-28  4:22     ` Matthew Weber
2018-02-27  2:10 ` [Buildroot] [NEXT 03/26] cpe-info: id prefix/suffix Matt Weber
2018-02-27 21:45   ` Thomas Petazzoni
2018-02-28  4:14     ` Matthew Weber
2018-03-01 20:34       ` Arnout Vandecappelle
2018-03-03  3:01         ` Matthew Weber
2018-03-01 20:32   ` Arnout Vandecappelle
2018-02-27  2:10 ` [Buildroot] [NEXT 04/26] cpe-info: only report target pkgs Matt Weber
2018-02-27 21:45   ` Thomas Petazzoni
2018-02-28  4:13     ` Matthew Weber
2018-02-27  2:10 ` [Buildroot] [NEXT 05/26] bash: add CPE id Matt Weber
2018-02-27  2:10 ` [Buildroot] [NEXT 06/26] boa: " Matt Weber
2018-02-27 22:17   ` Thomas Petazzoni [this message]
2018-02-28  4:00     ` Matthew Weber
2018-02-28  6:38       ` Thomas Petazzoni
2018-03-01 20:47         ` Arnout Vandecappelle
2018-03-01 22:55           ` Matthew Weber
2018-03-02  8:19             ` Arnout Vandecappelle
2018-03-02  9:49               ` Thomas Petazzoni
2018-03-02 16:14                 ` Matthew Weber
2018-02-27  2:10 ` [Buildroot] [NEXT 07/26] boost: " Matt Weber
2018-02-27  2:10 ` [Buildroot] [NEXT 08/26] busybox: " Matt Weber
2018-02-27  2:10 ` [Buildroot] [NEXT 09/26] bzip2: " Matt Weber
2018-02-27  2:10 ` [Buildroot] [NEXT 10/26] dhcp: " Matt Weber
2018-02-27  2:10 ` [Buildroot] [NEXT 11/26] e2fsprogs: " Matt Weber
2018-02-27  2:10 ` [Buildroot] [NEXT 12/26] gdb: " Matt Weber
2018-02-27  2:10 ` [Buildroot] [NEXT 13/26] glibc: " Matt Weber
2018-02-27  2:10 ` [Buildroot] [NEXT 14/26] gnupg: " Matt Weber
2018-02-27  2:10 ` [Buildroot] [NEXT 15/26] gzip: " Matt Weber
2018-02-27  2:10 ` [Buildroot] [NEXT 16/26] iproute2: " Matt Weber
2018-02-27  2:10 ` [Buildroot] [NEXT 17/26] libgcrypt: " Matt Weber
2018-02-27  2:10 ` [Buildroot] [NEXT 18/26] libopenssl: " Matt Weber
2018-02-27  2:10 ` [Buildroot] [NEXT 19/26] libzlib: " Matt Weber
2018-02-27  2:10 ` [Buildroot] [NEXT 20/26] linux: " Matt Weber
2018-02-27 22:18   ` Thomas Petazzoni
2018-02-28  4:12     ` Matthew Weber
2018-03-02  9:55       ` Thomas Petazzoni
2018-02-27  2:10 ` [Buildroot] [NEXT 21/26] linux-headers: " Matt Weber
2018-02-27  2:10 ` [Buildroot] [NEXT 22/26] openssh: " Matt Weber
2018-02-27  2:10 ` [Buildroot] [NEXT 23/26] rsyslog: " Matt Weber
2018-02-27  2:10 ` [Buildroot] [NEXT 24/26] tcpdump: " Matt Weber
2018-02-27  2:10 ` [Buildroot] [NEXT 25/26] util-linux: " Matt Weber
2018-02-27  2:10 ` [Buildroot] [NEXT 26/26] xerces: " Matt Weber
2018-02-27 21:37 ` [Buildroot] [NEXT 00/26] Package CVE Reporting Thomas Petazzoni
2018-02-28  4:42   ` Matthew Weber

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180227231718.090c22ef@windsurf.lan \
    --to=thomas.petazzoni@bootlin.com \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox