mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-08-08 08:30:47 -09:00
package/go: fix CPE id
This patch fixes the CPE ID for both go-bin and go-src packages.
The go-src package did had a CPE ID because GO_SRC_CPE_ID_VENDOR is
defined but the generated CPE ID would be the following:
cpe:2.3:a:golang:go-src:*:*:*:*:*:*:*:*
The CPE product go-src doesn't match to anything and should be 'go'
instead.
For go-bin no CPE_ID variable were defined so no CPE ID would be
generated if using a pre-build toolchain.
This patch duplicate the definition of the CPE_ID variables, I didn't
put the definition in the 'package/go/go.mk' file to avoid generate a
CPE for the go virtual package.
Signed-off-by: Thomas Perale <thomas.perale@mind.be>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
(cherry picked from commit 1869b4065c)
Signed-off-by: Titouan Christophe <titouan.christophe@mind.be>
This commit is contained in:
committed by
Titouan Christophe
parent
427fbd3af6
commit
2ec463fa2f
@@ -4,12 +4,15 @@
|
||||
#
|
||||
################################################################################
|
||||
|
||||
GO_BIN_VERSION = $(GO_VERSION)
|
||||
GO_BIN_SITE = https://go.dev/dl
|
||||
GO_BIN_SOURCE = go$(GO_VERSION).linux-$(call qstrip, $(BR2_PACKAGE_HOST_GO_BIN_HOST_ARCH)).tar.gz
|
||||
GO_BIN_DL_SUBDIR = go
|
||||
HOST_GO_BIN_ACTUAL_SOURCE_TARBALL = go$(GO_VERSION).src.tar.gz
|
||||
GO_BIN_LICENSE = BSD-3-Clause
|
||||
GO_BIN_LICENSE_FILES = LICENSE
|
||||
GO_BIN_CPE_ID_VENDOR = golang
|
||||
GO_BIN_CPE_ID_PRODUCT = go
|
||||
|
||||
HOST_GO_BIN_PROVIDES = host-go
|
||||
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
#
|
||||
################################################################################
|
||||
|
||||
GO_SRC_VERSION = $(GO_VERSION)
|
||||
GO_SRC_SITE = https://storage.googleapis.com/golang
|
||||
GO_SRC_SOURCE = go$(GO_VERSION).src.tar.gz
|
||||
GO_SRC_DL_SUBDIR = go
|
||||
@@ -11,6 +12,7 @@ GO_SRC_DL_SUBDIR = go
|
||||
GO_SRC_LICENSE = BSD-3-Clause
|
||||
GO_SRC_LICENSE_FILES = LICENSE
|
||||
GO_SRC_CPE_ID_VENDOR = golang
|
||||
GO_SRC_CPE_ID_PRODUCT = go
|
||||
|
||||
HOST_GO_SRC_PROVIDES = host-go
|
||||
HOST_GO_SRC_DEPENDENCIES = \
|
||||
|
||||
Reference in New Issue
Block a user