linux, package: do not use <pkg>_NAME when defining CPE ID variables
authorThomas Petazzoni <thomas.petazzoni@bootlin.com>
Thu, 14 Jan 2021 22:34:30 +0000 (23:34 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Fri, 15 Jan 2021 07:02:08 +0000 (08:02 +0100)
As we discussed on the mailing list, using $(<pkg>_NAME) when defining
CPE ID variables feels a bit odd and needlessly complicated. Just use
the package name directly.

Cc: Peter Korsgaard <peter@korsgaard.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
27 files changed:
linux/linux.mk
package/boost/boost.mk
package/busybox/busybox.mk
package/collectd/collectd.mk
package/dropbear/dropbear.mk
package/gnupg/gnupg.mk
package/iperf/iperf.mk
package/libarchive/libarchive.mk
package/libssh2/libssh2.mk
package/lighttpd/lighttpd.mk
package/linux-pam/linux-pam.mk
package/llvm/llvm.mk
package/openvpn/openvpn.mk
package/pcre/pcre.mk
package/pixman/pixman.mk
package/proftpd/proftpd.mk
package/python/python.mk
package/qemu/qemu.mk
package/rsyslog/rsyslog.mk
package/sqlite/sqlite.mk
package/strongswan/strongswan.mk
package/tcl/tcl.mk
package/tcpdump/tcpdump.mk
package/tftpd/tftpd.mk
package/valgrind/valgrind.mk
package/vim/vim.mk
package/xerces/xerces.mk

index 50d2ae3ff8d871d30a34bdbb72cd34a38efe848c..e53d548484b3668d93e8efe4da6c967d5641ab20 100644 (file)
@@ -12,8 +12,8 @@ LINUX_LICENSE_FILES = \
        LICENSES/preferred/GPL-2.0 \
        LICENSES/exceptions/Linux-syscall-note
 endif
-LINUX_CPE_ID_VENDOR = $(LINUX_NAME)
-LINUX_CPE_ID_NAME = $(LINUX_NAME)_kernel
+LINUX_CPE_ID_VENDOR = linux
+LINUX_CPE_ID_NAME = linux_kernel
 LINUX_CPE_ID_PREFIX = cpe:2.3:o
 
 define LINUX_HELP_CMDS
index cb488c86a7e49fc06a6f59879dbdb911c257d4e9..b8f90bb83659b5e7fac5e00d52e82e074cb19ca9 100644 (file)
@@ -10,7 +10,7 @@ BOOST_SITE = https://dl.bintray.com/boostorg/release/$(BOOST_VERSION)/source
 BOOST_INSTALL_STAGING = YES
 BOOST_LICENSE = BSL-1.0
 BOOST_LICENSE_FILES = LICENSE_1_0.txt
-BOOST_CPE_ID_VENDOR = $(BOOST_NAME)
+BOOST_CPE_ID_VENDOR = boost
 
 # keep host variant as minimal as possible
 HOST_BOOST_FLAGS = --without-icu --with-toolset=gcc \
index 67d2713669edf022afe8e52a0ae3fd897dbab28a..032e4872675cbedc4cd0eaf1d34cb38fbf4cc5df 100644 (file)
@@ -9,7 +9,7 @@ BUSYBOX_SITE = https://www.busybox.net/downloads
 BUSYBOX_SOURCE = busybox-$(BUSYBOX_VERSION).tar.bz2
 BUSYBOX_LICENSE = GPL-2.0, bzip2-1.0.4
 BUSYBOX_LICENSE_FILES = LICENSE archival/libarchive/bz/LICENSE
-BUSYBOX_CPE_ID_VENDOR = $(BUSYBOX_NAME)
+BUSYBOX_CPE_ID_VENDOR = busybox
 
 define BUSYBOX_HELP_CMDS
        @echo '  busybox-menuconfig     - Run BusyBox menuconfig'
index 83bf01109ab198280a7a86751e7486e821d7d41a..8fa278df7e77d95e029011f0467dfe58e603237f 100644 (file)
@@ -12,7 +12,7 @@ COLLECTD_CONF_ENV = ac_cv_lib_yajl_yajl_alloc=yes
 COLLECTD_INSTALL_STAGING = YES
 COLLECTD_LICENSE = MIT (daemon, plugins), GPL-2.0 (plugins), LGPL-2.1 (plugins)
 COLLECTD_LICENSE_FILES = COPYING
-COLLECTD_CPE_ID_VENDOR = $(COLLECTD_NAME)
+COLLECTD_CPE_ID_VENDOR = collectd
 
 # These require unmet dependencies, are fringe, pointless or deprecated
 COLLECTD_PLUGINS_DISABLE = \
index 87c161f704c4bc8dda0f5140b62134be91b9db95..dc2818f350f06dca934777539e41d3f55008ab60 100644 (file)
@@ -11,8 +11,8 @@ DROPBEAR_LICENSE = MIT, BSD-2-Clause, Public domain
 DROPBEAR_LICENSE_FILES = LICENSE
 DROPBEAR_TARGET_BINS = dropbearkey dropbearconvert scp
 DROPBEAR_PROGRAMS = dropbear $(DROPBEAR_TARGET_BINS)
-DROPBEAR_CPE_ID_VENDOR = $(DROPBEAR_NAME)_ssh_project
-DROPBEAR_CPE_ID_NAME = $(DROPBEAR_NAME)_ssh
+DROPBEAR_CPE_ID_VENDOR = dropbear_ssh_project
+DROPBEAR_CPE_ID_NAME = dropbear_ssh
 
 # Disable hardening flags added by dropbear configure.ac, and let
 # Buildroot add them when the relevant options are enabled. This
index ba424fed9622265473877914d836a52cac95701c..9729441bd2654045df8bff8385860b5704e11a8a 100644 (file)
@@ -10,7 +10,7 @@ GNUPG_SITE = https://gnupg.org/ftp/gcrypt/gnupg
 GNUPG_LICENSE = GPL-3.0+
 GNUPG_LICENSE_FILES = COPYING
 GNUPG_DEPENDENCIES = zlib $(if $(BR2_PACKAGE_LIBICONV),libiconv)
-GNUPG_CPE_ID_VENDOR = $(GNUPG_NAME)
+GNUPG_CPE_ID_VENDOR = gnupg
 GNUPG_CONF_ENV = ac_cv_sys_symbol_underscore=no
 GNUPG_CONF_OPTS = \
        --disable-rpath \
index f1e65e7545bc9f64d3e242204bae86be856bf7b7..f9000d3ba9a55c70a9a1a106db242c9d44437297 100644 (file)
@@ -8,8 +8,8 @@ IPERF_VERSION = 2.0.13
 IPERF_SITE = http://downloads.sourceforge.net/project/iperf2
 IPERF_LICENSE = MIT-like
 IPERF_LICENSE_FILES = COPYING
-IPERF_CPE_ID_VENDOR = $(IPERF_NAME)2_project
-IPERF_CPE_ID_NAME = $(IPERF_NAME)2
+IPERF_CPE_ID_VENDOR = iperf2_project
+IPERF_CPE_ID_NAME = iperf2
 
 IPERF_CONF_OPTS = \
        --disable-web100
index 0905eac26dd413c28b8f49cb4d7304c239962b09..9cc69fd45a91d8338d7154c0072799a2712a5f83 100644 (file)
@@ -9,7 +9,7 @@ LIBARCHIVE_SITE = https://www.libarchive.de/downloads
 LIBARCHIVE_INSTALL_STAGING = YES
 LIBARCHIVE_LICENSE = BSD-2-Clause, BSD-3-Clause, CC0-1.0, OpenSSL, Apache-2.0
 LIBARCHIVE_LICENSE_FILES = COPYING
-LIBARCHIVE_CPE_ID_VENDOR = $(LIBARCHIVE_NAME)
+LIBARCHIVE_CPE_ID_VENDOR = libarchive
 
 ifeq ($(BR2_PACKAGE_LIBARCHIVE_BSDTAR),y)
 ifeq ($(BR2_STATIC_LIBS),y)
index eb66ab564373586e84012f7abd8caefb764ca192..6147583a9ec7b360385a6739e79d74b4fb77b4f1 100644 (file)
@@ -8,7 +8,7 @@ LIBSSH2_VERSION = 1.9.0
 LIBSSH2_SITE = https://www.libssh2.org/download
 LIBSSH2_LICENSE = BSD
 LIBSSH2_LICENSE_FILES = COPYING
-LIBSSH2_CPE_ID_VENDOR = $(LIBSSH2_NAME)
+LIBSSH2_CPE_ID_VENDOR = libssh2
 LIBSSH2_INSTALL_STAGING = YES
 LIBSSH2_CONF_OPTS = --disable-examples-build
 
index df05227211ba957c09135885688051f78bb85d39..028ff17aa63af0e87bbf6ecf0057c081d7d2fa42 100644 (file)
@@ -10,7 +10,7 @@ LIGHTTPD_SOURCE = lighttpd-$(LIGHTTPD_VERSION).tar.xz
 LIGHTTPD_SITE = http://download.lighttpd.net/lighttpd/releases-$(LIGHTTPD_VERSION_MAJOR).x
 LIGHTTPD_LICENSE = BSD-3-Clause
 LIGHTTPD_LICENSE_FILES = COPYING
-LIGHTTPD_CPE_ID_VENDOR = $(LIGHTTPD_NAME)
+LIGHTTPD_CPE_ID_VENDOR = lighttpd
 LIGHTTPD_DEPENDENCIES = host-pkgconf
 LIGHTTPD_CONF_OPTS = \
        --without-wolfssl \
index 22ee258e7eaf55a43d12ce4866ec1d69ef35baa3..be4d11bb105e5befba4fd6e1efe3c9b21a69c880 100644 (file)
@@ -21,8 +21,8 @@ LINUX_PAM_DEPENDENCIES = flex host-flex host-pkgconf \
 LINUX_PAM_LICENSE = BSD-3-Clause
 LINUX_PAM_LICENSE_FILES = Copyright
 LINUX_PAM_MAKE_OPTS += LIBS=$(TARGET_NLS_LIBS)
-LINUX_PAM_CPE_ID_VENDOR = $(LINUX_PAM_NAME)
-LINUX_PAM_CPE_ID_NAME = $(LINUX_PAM_NAME)
+LINUX_PAM_CPE_ID_VENDOR = linux-pam
+LINUX_PAM_CPE_ID_NAME = linux-pam
 
 ifeq ($(BR2_PACKAGE_LIBSELINUX),y)
 LINUX_PAM_CONF_OPTS += --enable-selinux
index 177fff71bb9534bbe4a88cc32223f9dfa8df08f5..7d60fe7f8c05fe07b76ff86b7cc07369caba73e7 100644 (file)
@@ -10,7 +10,7 @@ LLVM_SITE = https://github.com/llvm/llvm-project/releases/download/llvmorg-$(LLV
 LLVM_SOURCE = llvm-$(LLVM_VERSION).src.tar.xz
 LLVM_LICENSE = Apache-2.0 with exceptions
 LLVM_LICENSE_FILES = LICENSE.TXT
-LLVM_CPE_ID_VENDOR = $(LLVM_NAME)
+LLVM_CPE_ID_VENDOR = llvm
 LLVM_SUPPORTS_IN_SOURCE_BUILD = NO
 LLVM_INSTALL_STAGING = YES
 
index 913235679aec4bad5739bcb2f85765a0ca6f1d38..7c67e9507493dbd90c854237df0d19e122995527 100644 (file)
@@ -10,7 +10,7 @@ OPENVPN_SITE = http://swupdate.openvpn.net/community/releases
 OPENVPN_DEPENDENCIES = host-pkgconf
 OPENVPN_LICENSE = GPL-2.0
 OPENVPN_LICENSE_FILES = COPYRIGHT.GPL
-OPENVPN_CPE_ID_VENDOR = $(OPENVPN_NAME)
+OPENVPN_CPE_ID_VENDOR = openvpn
 OPENVPN_CONF_OPTS = \
        --disable-unit-tests \
        $(if $(BR2_STATIC_LIBS),--disable-plugins)
index b37a2ca9b7528b1272d0f8d827543d9b6120c7f3..c8498b7acf7993fb41e18478fb4242ebe4850f56 100644 (file)
@@ -9,7 +9,7 @@ PCRE_SITE = https://ftp.pcre.org/pub/pcre
 PCRE_SOURCE = pcre-$(PCRE_VERSION).tar.bz2
 PCRE_LICENSE = BSD-3-Clause
 PCRE_LICENSE_FILES = LICENCE
-PCRE_CPE_ID_VENDOR = $(PCRE_NAME)
+PCRE_CPE_ID_VENDOR = pcre
 PCRE_INSTALL_STAGING = YES
 PCRE_CONFIG_SCRIPTS = pcre-config
 
index 52d4e36f2e49cba3d523e016beec8ee61a9f66de..d99005ecb7293a921eaa536be3d5e6f1b7b8364e 100644 (file)
@@ -9,7 +9,7 @@ PIXMAN_SOURCE = pixman-$(PIXMAN_VERSION).tar.xz
 PIXMAN_SITE = https://xorg.freedesktop.org/releases/individual/lib
 PIXMAN_LICENSE = MIT
 PIXMAN_LICENSE_FILES = COPYING
-PIXMAN_CPE_ID_VENDOR = $(PIXMAN_NAME)
+PIXMAN_CPE_ID_VENDOR = pixman
 
 PIXMAN_INSTALL_STAGING = YES
 PIXMAN_DEPENDENCIES = host-pkgconf
index 7bae876a38057cbda170e6dc297e0cfd5541cc8a..7dc3f267e01673835dcd328e20ddecc8d952147e 100644 (file)
@@ -8,7 +8,7 @@ PROFTPD_VERSION = 1.3.6e
 PROFTPD_SITE = $(call github,proftpd,proftpd,v$(PROFTPD_VERSION))
 PROFTPD_LICENSE = GPL-2.0+
 PROFTPD_LICENSE_FILES = COPYING
-PROFTPD_CPE_ID_VENDOR = $(PROFTPD_NAME)
+PROFTPD_CPE_ID_VENDOR = proftpd
 
 PROFTPD_CONF_ENV = \
        ac_cv_func_setpgrp_void=yes \
index 6240cb6c2fe6ac8cfc28004eeb7aceb5f7086490..f4f9f8563b3d46fe76c3b02091f92dd1bf341921 100644 (file)
@@ -10,7 +10,7 @@ PYTHON_SOURCE = Python-$(PYTHON_VERSION).tar.xz
 PYTHON_SITE = https://python.org/ftp/python/$(PYTHON_VERSION)
 PYTHON_LICENSE = Python-2.0, others
 PYTHON_LICENSE_FILES = LICENSE
-PYTHON_CPE_ID_VENDOR = $(PYTHON_NAME)
+PYTHON_CPE_ID_VENDOR = python
 PYTHON_LIBTOOL_PATCH = NO
 
 # Python needs itself to be built, so in order to cross-compile
index 9d932ee860f9bde50b67987f70e29ff996a9aa62..323ae01283f4bfc0af445a2059dc0c5bec6d8162 100644 (file)
@@ -12,7 +12,7 @@ QEMU_LICENSE_FILES = COPYING COPYING.LIB
 # NOTE: there is no top-level license file for non-(L)GPL licenses;
 #       the non-(L)GPL license texts are specified in the affected
 #       individual source files.
-QEMU_CPE_ID_VENDOR = $(QEMU_NAME)
+QEMU_CPE_ID_VENDOR = qemu
 
 #-------------------------------------------------------------
 
index 9f5f5b0d7ca1f6a4651b3802ef95677177eb9f74..d20a13dbdd8f96c325c9104dc481e4852bd23627 100644 (file)
@@ -8,7 +8,7 @@ RSYSLOG_VERSION = 8.2010.0
 RSYSLOG_SITE = http://rsyslog.com/files/download/rsyslog
 RSYSLOG_LICENSE = GPL-3.0, LGPL-3.0, Apache-2.0
 RSYSLOG_LICENSE_FILES = COPYING COPYING.LESSER COPYING.ASL20
-RSYSLOG_CPE_ID_VENDOR = $(RSYSLOG_NAME)
+RSYSLOG_CPE_ID_VENDOR = rsyslog
 RSYSLOG_DEPENDENCIES = zlib libestr liblogging libfastjson host-pkgconf
 RSYSLOG_CONF_ENV = ac_cv_prog_cc_c99='-std=c99'
 RSYSLOG_PLUGINS = imdiag imfile impstats imptcp \
index d1b519a19b642329062be581ac7abc1ead4d6259..fd0d84a023775e5eef216f40ab664b20c5def417 100644 (file)
@@ -10,7 +10,7 @@ SQLITE_SOURCE = sqlite-autoconf-$(SQLITE_VERSION).tar.gz
 SQLITE_SITE = https://www.sqlite.org/2020
 SQLITE_LICENSE = Public domain
 SQLITE_LICENSE_FILES = tea/license.terms
-SQLITE_CPE_ID_VENDOR = $(SQLITE_NAME)
+SQLITE_CPE_ID_VENDOR = sqlite
 SQLITE_INSTALL_STAGING = YES
 
 ifeq ($(BR2_PACKAGE_SQLITE_STAT4),y)
index e0e8bb0ce80d5f782b951857db821aead51e9cd5..03aa9e185ea2e20597851ad74782d37890aabf23 100644 (file)
@@ -9,7 +9,7 @@ STRONGSWAN_SOURCE = strongswan-$(STRONGSWAN_VERSION).tar.bz2
 STRONGSWAN_SITE = http://download.strongswan.org
 STRONGSWAN_LICENSE = GPL-2.0+
 STRONGSWAN_LICENSE_FILES = COPYING LICENSE
-STRONGSWAN_CPE_ID_VENDOR = $(STRONGSWAN_NAME)
+STRONGSWAN_CPE_ID_VENDOR = strongswan
 STRONGSWAN_DEPENDENCIES = host-pkgconf
 STRONGSWAN_INSTALL_STAGING = YES
 STRONGSWAN_CONF_OPTS += \
index 913891e8971f26f01046ed6754d76bbddd4049e9..7c456e89b330e85674b1ced698b86d37c65c133c 100644 (file)
@@ -10,7 +10,7 @@ TCL_SOURCE = tcl$(TCL_VERSION)-src.tar.gz
 TCL_SITE = http://downloads.sourceforge.net/project/tcl/Tcl/$(TCL_VERSION)
 TCL_LICENSE = TCL
 TCL_LICENSE_FILES = license.terms
-TCL_CPE_ID_VENDOR = $(TCL_NAME)
+TCL_CPE_ID_VENDOR = tcl
 TCL_SUBDIR = unix
 TCL_INSTALL_STAGING = YES
 TCL_AUTORECONF = YES
index 3f524281203d7a0cfce21054d06661bc39ca5fc0..63991163ab8fbaa2ecb19ecf72124a8d4d499cec 100644 (file)
@@ -8,7 +8,7 @@ TCPDUMP_VERSION = 4.9.3
 TCPDUMP_SITE = http://www.tcpdump.org/release
 TCPDUMP_LICENSE = BSD-3-Clause
 TCPDUMP_LICENSE_FILES = LICENSE
-TCPDUMP_CPE_ID_VENDOR = $(TCPDUMP_NAME)
+TCPDUMP_CPE_ID_VENDOR = tcpdump
 TCPDUMP_CONF_ENV = \
        ac_cv_linux_vers=2 \
        td_cv_buggygetaddrinfo=no \
index 301a222e393c783af60786633f746809884aae3a..45023b43422c4ba5b8839f02b95b95d35a8da1dd 100644 (file)
@@ -10,8 +10,8 @@ TFTPD_SITE = $(BR2_KERNEL_MIRROR)/software/network/tftp/tftp-hpa
 TFTPD_CONF_OPTS = --without-tcpwrappers
 TFTPD_LICENSE = BSD-4-Clause
 TFTPD_LICENSE_FILES = tftpd/tftpd.c
-TFTPD_CPE_ID_VENDOR = $(TFTPD_NAME)-hpa_project
-TFTPD_CPE_ID_NAME = $(TFTPD_NAME)-hpa
+TFTPD_CPE_ID_VENDOR = tftpd-hpa_project
+TFTPD_CPE_ID_NAME = tftpd-hpa
 
 define TFTPD_INSTALL_TARGET_CMDS
        $(INSTALL) -D $(@D)/tftp/tftp $(TARGET_DIR)/usr/bin/tftp
index 7d0070a9748824e332b5700fd9dc1cfc7230e898..a1b4d97ee6445e7d7d2e6c802f737ba867ddc4a8 100644 (file)
@@ -9,7 +9,7 @@ VALGRIND_SITE = https://sourceware.org/pub/valgrind
 VALGRIND_SOURCE = valgrind-$(VALGRIND_VERSION).tar.bz2
 VALGRIND_LICENSE = GPL-2.0, GFDL-1.2
 VALGRIND_LICENSE_FILES = COPYING COPYING.DOCS
-VALGRIND_CPE_ID_VENDOR = $(VALGRIND_NAME)
+VALGRIND_CPE_ID_VENDOR = valgrind
 VALGRIND_CONF_OPTS = \
        --disable-ubsan \
        --without-mpicc
index 2bd3d437e445f14c118eb63650069012e7601410..36cb59331afbeeea1d3ff553d69927da16020a15 100644 (file)
@@ -23,7 +23,7 @@ VIM_CONF_ENV = \
 VIM_CONF_OPTS = --with-tlib=ncurses --enable-gui=no --without-x
 VIM_LICENSE = Charityware
 VIM_LICENSE_FILES = README.txt
-VIM_CPE_ID_VENDOR = $(VIM_NAME)
+VIM_CPE_ID_VENDOR = vim
 
 ifeq ($(BR2_PACKAGE_ACL),y)
 VIM_CONF_OPTS += --enable-acl
index a1ddcb5cb674e34708907fa213c44017a06b93bc..abfd4d6a30fb9cea296f179088df7fe7bec3606a 100644 (file)
@@ -10,7 +10,7 @@ XERCES_SITE = http://archive.apache.org/dist/xerces/c/3/sources
 XERCES_LICENSE = Apache-2.0
 XERCES_LICENSE_FILES = LICENSE
 XERCES_CPE_ID_VENDOR = apache
-XERCES_CPE_ID_NAME = $(XERCES_NAME)-c\+\+
+XERCES_CPE_ID_NAME = xerces-c\+\+
 XERCES_INSTALL_STAGING = YES
 
 define XERCES_DISABLE_SAMPLES