Skip to contentSkip to conversation

package/libqmi: add _CPE_ID_VENDOR

PATCH New Matt Weber 4 participants 5 messages Apr 21, 2021 – Apr 26, 2021

lore
Share & tools
lore

Matt Weber

author
#0 lore raw

PATCH v2 1/2 package/libqmi: add _CPE_ID_VENDOR

cpe:2.3:a:libqmi_project:libqmi:* is a valid CPE identifier for this package:

https://nvd.nist.gov/products/cpe/search/results?namingFormat=2.3&keyword=cpe:2.3:a:libqmi_project:libqmi

---
v2 - added SOB and moved variable assignment under license files

---
 package/libqmi/libqmi.mk | 1 +
 1 file changed, 1 insertion(+)
package/libqmi/libqmi.mk +1 -0
index 4b430d11f8..6fc6d4a50d 100644
@@ -9,6 +9,7 @@ LIBQMI_SITE = http://www.freedesktop.org/software/libqmi
 LIBQMI_SOURCE = libqmi-$(LIBQMI_VERSION).tar.xz
 LIBQMI_LICENSE = LGPL-2.0+ (library), GPL-2.0+ (programs)
 LIBQMI_LICENSE_FILES = COPYING COPYING.LIB
+LIBQMI_CPE_ID_VENDOR = libqmi_project
 LIBQMI_INSTALL_STAGING = YES
 
 LIBQMI_DEPENDENCIES = libglib2
Signature · 1 line
2.17.1
author
#1 lore raw

PATCH v2 2/2 support/scripts/pkg-stats: add CPE searching links

For cases of a CPE having a unknown version or when there hasn't been a CPE verified, proposed a search criteria to help the user research an update.

(libcurl has NIST dict entries but not this version)
cpe:2.3:a:haxx:libcurl:7.76.1:*:*:*:*:*:*:* CPE identifier unknown in CPE database (Search)

(jitterentropy-library package doesn't have any NIST dict entries)
no verified CPE identifier (Search)

---
v2 - new patch

---
 support/scripts/pkg-stats | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
support/scripts/pkg-stats +7 -1
index 6f3ddc561f..bc83ca5888 100755
@@ -921,7 +921,13 @@ def dump_html_pkg(f, pkg):
     if pkg.cpeid:
         f.write("  <code>%s</code>\n" % pkg.cpeid)
     if not pkg.is_status_ok("cpe"):
-        f.write("  %s%s\n" % ("<br/>" if pkg.cpeid else "", pkg.status['cpe'][1]))
+        if pkg.cpeid:
+            f.write("  <br/>%s <a href=\"https://nvd.nist.gov/products/cpe/search/results?namingFormat=2.3&keyword=%s\">(Search)</a>\n" % \
+                (pkg.status['cpe'][1], ":".join(pkg.cpeid.split(":")[0:4])))
+        else:
+            f.write("  %s <a href=\"https://nvd.nist.gov/products/cpe/search/results?namingFormat=2.3&keyword=%s\">(Search)</a>\n" % \
+                (pkg.status['cpe'][1], pkg.name))
+
     f.write("  </td>\n")
 
     f.write(" </tr>\n")
Signature · 1 line
2.17.1
#2 lore raw

PATCH v2 2/2 support/scripts/pkg-stats: add CPE searching links

Quoted 24 lines · Matt Weber

For cases of a CPE having a unknown version or when there hasn't been a CPE verified, proposed a search criteria to help the user research an update.

(libcurl has NIST dict entries but not this version)
cpe:2.3:a:haxx:libcurl:7.76.1:*:*:*:*:*:*:* CPE identifier unknown in CPE database (Search)

(jitterentropy-library package doesn't have any NIST dict entries)
no verified CPE identifier (Search)

---
v2 - new patch

---
 support/scripts/pkg-stats | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
support/scripts/pkg-stats +0 -0
index 6f3ddc561f..bc83ca5888 100755

support/scripts/pkg-stats def dump_html_pkg(f, pkg): · line 926

Quoted 7 lines
support/scripts/pkg-stats +3 -1
@@ -921,7 +921,13 @@ def dump_html_pkg(f, pkg):
     if pkg.cpeid:
         f.write("  <code>%s</code>\n" % pkg.cpeid)
     if not pkg.is_status_ok("cpe"):
-        f.write("  %s%s\n" % ("<br/>" if pkg.cpeid else "", pkg.status['cpe'][1]))
+        if pkg.cpeid:
+            f.write("  <br/>%s <a href=\"https://nvd.nist.gov/products/cpe/search/results?namingFormat=2.3&keyword=%s\">(Search)</a>\n" % \
+                (pkg.status['cpe'][1], ":".join(pkg.cpeid.split(":")[0:4])))

Got a bug. this should be 0:5 not 0:4

Regards,
Matt

#3 lore raw

PATCH v2 1/2 package/libqmi: add _CPE_ID_VENDOR

In reply to Matt Weber

Matt, All,

On 2021-04-20 20:20 -0500, Matt Weber spake thusly:

Quoted 5 lines

cpe:2.3:a:libqmi_project:libqmi:* is a valid CPE identifier for this package:

https://nvd.nist.gov/products/cpe/search/results?namingFormat=2.3&keyword=cpe:2.3:a:libqmi_project:libqmi

Applied to master, thanks.

Regards,
Yann E. MORIN.

Quoted 25 lines

---
v2 - added SOB and moved variable assignment under license files

---
 package/libqmi/libqmi.mk | 1 +
 1 file changed, 1 insertion(+)
package/libqmi/libqmi.mk +1 -0
index 4b430d11f8..6fc6d4a50d 100644
@@ -9,6 +9,7 @@ LIBQMI_SITE = http://www.freedesktop.org/software/libqmi
 LIBQMI_SOURCE = libqmi-$(LIBQMI_VERSION).tar.xz
 LIBQMI_LICENSE = LGPL-2.0+ (library), GPL-2.0+ (programs)
 LIBQMI_LICENSE_FILES = COPYING COPYING.LIB
+LIBQMI_CPE_ID_VENDOR = libqmi_project
 LIBQMI_INSTALL_STAGING = YES
 
 LIBQMI_DEPENDENCIES = libglib2
Signature · 6 lines
2.17.1

_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
#4 lore raw

PATCH v2 1/2 package/libqmi: add _CPE_ID_VENDOR

In reply to Matt Weber
Quoted 9 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Matt" == Matt Weber <[email protected]> writes:

cpe:2.3:a:libqmi_project:libqmi:* is a valid CPE identifier for this package:
https://nvd.nist.gov/products/cpe/search/results?namingFormat=2.3&keyword=cpe:2.3:a:libqmi_project:libqmi

---
v2 - added SOB and moved variable assignment under license files

Committed to 2021.02.x, thanks.

Signature · 1 line
Bye, Peter Korsgaard