Skip to contentSkip to conversation

package/setserial: CPE ID for setserial

PATCH Applied Bjørn Damstedt Rasmussen 2 participants 6 messages Oct 3 – Oct 10

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 package/setserial: CPE ID for setserial

This is a valid CPE ID:
https://nvd.nist.gov/products/cpe/search/results?keyword=cpe:2.3:a:setserial_project:setserial:2.17:*

---
 package/setserial/setserial.mk | 2 ++
 1 file changed, 2 insertions(+)
package/setserial/setserial.mk +2 -0
index 9beee349c8..98b2dde2f8 100644
@@ -10,6 +10,8 @@ SETSERIAL_SITE = https://snapshot.debian.org/archive/debian/20250307T084701Z/poo
 SETSERIAL_EXTRA_DOWNLOADS = setserial_$(SETSERIAL_VERSION)-57.debian.tar.xz
 SETSERIAL_LICENSE = GPL-2.0
 SETSERIAL_LICENSE_FILES = debian/copyright
+SETSERIAL_CPE_ID_VALID = YES
+
 # make all also builds setserial.cat which needs nroff
 SETSERIAL_MAKE_OPTS = setserial
 
Signature · 6 lines
2.53.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw

PATCH 2/2 package/openjdk: CPE ID for openjdk

The CPE ID on version 21.0.2 in NVD:
https://nvd.nist.gov/products/cpe/search/results?keyword=cpe:2.3:a:oracle:openjdk:21.0.2:*:*:*:*:*:*:*

The automatically generated OPENJDK_CPE_ID_VERSION cannot be used because OPENJDK_VERSION includes a '+', e.g. "21.0.2+10". NVD will not accept a version number with '+'.

---
 package/openjdk/openjdk.mk | 7 +++++++
 1 file changed, 7 insertions(+)
package/openjdk/openjdk.mk +7 -0
index fbc860019c..95efe2ba19 100644
@@ -17,6 +17,13 @@ OPENJDK_VERSION_MAJOR = 17
 OPENJDK_VERSION_MINOR = 0.18
 OPENJDK_VERSION_BUILD = 8
 endif
+
+OPENJDK_CPE_ID_VENDOR = oracle
+OPENJDK_CPE_ID_VALID = YES
+
+# Override automatic CPE ID because '+' in $(OPENJDK_VERSION) is not alphanumeric or ._-
+OPENJDK_CPE_ID_VERSION = $(OPENJDK_VERSION_MAJOR).$(OPENJDK_VERSION_MINOR)
+
 OPENJDK_VERSION = $(OPENJDK_VERSION_MAJOR).$(OPENJDK_VERSION_MINOR)+$(OPENJDK_VERSION_BUILD)
 OPENJDK_SITE = $(call github,openjdk,jdk$(OPENJDK_VERSION_MAJOR)u,jdk-$(OPENJDK_VERSION))
 
Signature · 6 lines
2.53.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#2 lore raw

Re: [Buildroot] [PATCH 2/2] package/openjdk: CPE ID for openjdk

Hello Bjørn,

Quoted 19 lines · Bjørn Damstedt Rasmussen

The CPE ID on version 21.0.2 in NVD:
https://nvd.nist.gov/products/cpe/search/results?keyword=cpe:2.3:a:oracle:openjdk:21.0.2:*:*:*:*:*:*:*

The automatically generated OPENJDK_CPE_ID_VERSION cannot be used because OPENJDK_VERSION includes a '+', e.g. "21.0.2+10". NVD will not accept a version number with '+'.

---
 package/openjdk/openjdk.mk | 7 +++++++
 1 file changed, 7 insertions(+)
package/openjdk/openjdk.mk +0 -0
index fbc860019c..95efe2ba19 100644
@@ -17,6 +17,13 @@ OPENJDK_VERSION_MAJOR = 17
 OPENJDK_VERSION_MINOR = 0.18
 OPENJDK_VERSION_BUILD = 8

package/openjdk/openjdk.mk OPENJDK_VERSION_MAJOR = 17 · line 28

Quoted 10 lines
package/openjdk/openjdk.mk +7 -0
 endif
+
+OPENJDK_CPE_ID_VENDOR = oracle
+OPENJDK_CPE_ID_VALID = YES
+
+# Override automatic CPE ID because '+' in $(OPENJDK_VERSION) is not alphanumeric or ._-
+OPENJDK_CPE_ID_VERSION = $(OPENJDK_VERSION_MAJOR).$(OPENJDK_VERSION_MINOR)
+
 OPENJDK_VERSION = $(OPENJDK_VERSION_MAJOR).$(OPENJDK_VERSION_MINOR)+$(OPENJDK_VERSION_BUILD)
 OPENJDK_SITE = $(call github,openjdk,jdk$(OPENJDK_VERSION_MAJOR)u,jdk-$(OPENJDK_VERSION))

Thanks for the v2! However this was causing some check-package warnings, for valid reasons:

WARNING: package/openjdk/openjdk.mk:25: expecting package version to be set before CPE_ID_VERSION
WARNING: package/openjdk/openjdk.mk:22: 'YES' is implied when a non-default CPE_ID field is specified: OPENJDK_CPE_ID_VALID = YES (https://nightly.buildroot.org/#cpe-id)

<pkg>_CPE_ID_VALID = YES is only useful when no other CPE_ID_* variable is set. As soon as you set CPE_ID_VENDOR, CPE_ID_PRODUCT, CPE_ID_VERSION, etc. we assume that someone has checked the CPE identifier, and therefore we assume that the CPE identifier is valid (and we set CPE_ID_VALID = YES). Therefore, setting CPE_ID_VALID = YES is redundant in your patch.

For the CPE_ID_VERSION calculation, for consistency we like to see it defined after the package version.

I fixed that up when applying. Thanks!

Thomas

Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#3 lore raw

Re: [Buildroot] [PATCH 2/2] package/openjdk: CPE ID for openjdk

In reply to Bjørn Damstedt Rasmussen

In reply of:

Quoted 8 lines

The CPE ID on version 21.0.2 in NVD:
https://nvd.nist.gov/products/cpe/search/results?keyword=cpe:2.3:a:oracle:openjdk:21.0.2:*:*:*:*:*:*:*

The automatically generated OPENJDK_CPE_ID_VERSION cannot be used because OPENJDK_VERSION includes a '+', e.g. "21.0.2+10". NVD will not accept a version number with '+'.

Applied to 2025.02.x & 2026.08.x. Thanks

Quoted 29 lines
---
 package/openjdk/openjdk.mk | 7 +++++++
 1 file changed, 7 insertions(+)
package/openjdk/openjdk.mk +7 -0
index fbc860019c..95efe2ba19 100644
@@ -17,6 +17,13 @@ OPENJDK_VERSION_MAJOR = 17
 OPENJDK_VERSION_MINOR = 0.18
 OPENJDK_VERSION_BUILD = 8
 endif
+
+OPENJDK_CPE_ID_VENDOR = oracle
+OPENJDK_CPE_ID_VALID = YES
+
+# Override automatic CPE ID because '+' in $(OPENJDK_VERSION) is not alphanumeric or ._-
+OPENJDK_CPE_ID_VERSION = $(OPENJDK_VERSION_MAJOR).$(OPENJDK_VERSION_MINOR)
+
 OPENJDK_VERSION = $(OPENJDK_VERSION_MAJOR).$(OPENJDK_VERSION_MINOR)+$(OPENJDK_VERSION_BUILD)
 OPENJDK_SITE = $(call github,openjdk,jdk$(OPENJDK_VERSION_MAJOR)u,jdk-$(OPENJDK_VERSION))
 
Signature · 6 lines
2.53.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#4 lore raw
In reply to Bjørn Damstedt Rasmussen
Quoted 4 lines · Bjørn Damstedt Rasmussen

This is a valid CPE ID:
https://nvd.nist.gov/products/cpe/search/results?keyword=cpe:2.3:a:setserial_project:setserial:2.17:*

Applied to master, thanks!

Best regards,

Thomas Petazzoni

Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#5 lore raw
In reply to Bjørn Damstedt Rasmussen

In reply of:

Quoted 4 lines

This is a valid CPE ID:
https://nvd.nist.gov/products/cpe/search/results?keyword=cpe:2.3:a:setserial_project:setserial:2.17:*

Applied to 2025.02.x & 2026.08.x. Thanks

Quoted 24 lines
---
 package/setserial/setserial.mk | 2 ++
 1 file changed, 2 insertions(+)
package/setserial/setserial.mk +2 -0
index 9beee349c8..98b2dde2f8 100644
@@ -10,6 +10,8 @@ SETSERIAL_SITE = https://snapshot.debian.org/archive/debian/20250307T084701Z/poo
 SETSERIAL_EXTRA_DOWNLOADS = setserial_$(SETSERIAL_VERSION)-57.debian.tar.xz
 SETSERIAL_LICENSE = GPL-2.0
 SETSERIAL_LICENSE_FILES = debian/copyright
+SETSERIAL_CPE_ID_VALID = YES
+
 # make all also builds setserial.cat which needs nroff
 SETSERIAL_MAKE_OPTS = setserial
 
Signature · 6 lines
2.53.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot