toolchain: assign PKG_CPE_ID
authorAlexander Couzens <lynxis@fe80.eu>
Mon, 18 Sep 2023 22:23:40 +0000 (00:23 +0200)
committerArne Zachlod <arne@nerdkeller.org>
Wed, 27 Sep 2023 15:31:53 +0000 (17:31 +0200)
The PKG_CPE_ID links to NIST CPE version 2.2.
Assign PKG_CPE_ID to all remaining package which have a CPE ID.
Not every package has a CPE id.

Related: https://github.com/openwrt/packages/issues/8534
Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
toolchain/binutils/Makefile
toolchain/gcc/common.mk
toolchain/gdb/Makefile
toolchain/glibc/common.mk
toolchain/kernel-headers/Makefile
toolchain/nasm/Makefile

index d1961603c4ab4e3e2e5b67cd48c29e9769d40d80..336cf06bc382a6fc8724af65b642f1491794d819 100644 (file)
@@ -12,6 +12,7 @@ BIN_VERSION:=$(PKG_VERSION)
 
 PKG_SOURCE_URL:=@GNU/binutils/
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
+PKG_CPE_ID:=cpe:/a:gnu:binutils
 
 TAR_OPTIONS += --exclude='*.rej'
 
index bef4fa37f8f90466c304c4a3c836d4912ea5025f..e7b8a176b37eae87de414c823d5b17e831652dfd 100644 (file)
@@ -27,6 +27,7 @@ GCC_DIR:=$(PKG_NAME)-$(PKG_VERSION)
 
 PKG_SOURCE_URL:=@GNU/gcc/gcc-$(PKG_VERSION)
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
+PKG_CPE_ID:=cpe:/a:gnu:gcc
 
 ifeq ($(PKG_VERSION),8.4.0)
   PKG_HASH:=e30a6e52d10e1f27ed55104ad233c30bd1e99cfb5ff98ab022dc941edd1b2dd4
index 6ed3b190ce584e6b099a4857e38da03cd1689ae8..a9b6f24be2c6d97f900ff91077295defd1e21d9d 100644 (file)
@@ -13,6 +13,7 @@ PKG_RELEASE:=1
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
 PKG_SOURCE_URL:=@GNU/gdb
 PKG_HASH:=1497c36a71881b8671a9a84a0ee40faab788ca30d7ba19d8463c3cc787152e32
+PKG_CPE_ID:=cpe:/a:gnu:gdb
 GDB_DIR:=$(PKG_NAME)-$(PKG_VERSION)
 
 HOST_BUILD_DIR:=$(BUILD_DIR_TOOLCHAIN)/$(GDB_DIR)
index 256eda043596404f8ce143e79676c5cd1efa4f4c..06fd531b3dae039412b79a716e155fd70c747fbe 100644 (file)
@@ -16,6 +16,7 @@ PKG_SOURCE_VERSION:=a4217408a3d6050a7f42ac23adb6ac7218dca85f
 PKG_MIRROR_HASH:=3c8b0a515587a5d92d242f63355fed4e92a4fbcabdea213c62282e7d364ec485
 PKG_SOURCE_URL:=https://sourceware.org/git/glibc.git
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.xz
+PKG_CPE_ID:=cpe:/a:gnu:glibc
 
 HOST_BUILD_DIR:=$(BUILD_DIR_TOOLCHAIN)/$(PKG_SOURCE_SUBDIR)
 CUR_BUILD_DIR:=$(HOST_BUILD_DIR)-$(VARIANT)
index eea0ffbde0713c2175bbc5954ff029942fd2e938..cd25f8a6def877b14f6215fbc5cc925d703c9321 100644 (file)
@@ -17,6 +17,7 @@ include $(INCLUDE_DIR)/kernel.mk
 PKG_NAME:=linux
 PKG_VERSION:=$(LINUX_VERSION)
 PKG_SOURCE:=$(LINUX_SOURCE)
+PKG_CPE_ID:=cpe:/o:linux:linux_kernel
 ifneq ($(call qstrip,$(CONFIG_KERNEL_GIT_CLONE_URI)),)
   PKG_SOURCE_PROTO:=git
   PKG_SOURCE_URL:=$(call qstrip,$(CONFIG_KERNEL_GIT_CLONE_URI))
index f733c52912e9c4d05ddb732dcddeac3c67e8dbff..5cef7bde83d46764d4379c78cbb522f4787239b4 100644 (file)
@@ -11,6 +11,7 @@ PKG_SOURCE_URL:=https://www.nasm.us/pub/nasm/releasebuilds/$(PKG_VERSION)/
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
 
 PKG_HASH:=3caf6729c1073bf96629b57cee31eeb54f4f8129b01902c73428836550b30a3f
+PKG_CPE_ID:=cpe:/a:nasm:nasm
 
 HOST_BUILD_PARALLEL:=1