Skip to contentSkip to conversation

package/runc: cleanup the CPE_ID variables

PATCH New Yann E. MORIN 3 participants 3 messages Mar 6, 2021 – Mar 19, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/runc: cleanup the CPE_ID variables

The CPE variables are derived from the package upstream values, so they must be set from the package values, not the other way around.

Cc Peter Korsgaard <[email protected]>
Cc Fabrice Fontaine <[email protected]>
Cc Christian Stewart <[email protected]>
---
 package/runc/runc.mk | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)
package/runc/runc.mk +5 -3
index c0de2783e4..14689bbde1 100644
@@ -4,13 +4,15 @@
 #
 ################################################################################
 
-RUNC_VERSION = $(RUNC_CPE_ID_VERSION)-$(RUNC_CPE_ID_UPDATE)
+RUNC_VERSION_MAJOR = 1.0.0
+RUNC_VERSION_MINOR = rc92
+RUNC_VERSION = $(RUNC_VERSION_MAJOR)-$(RUNC_VERSION_MINOR)
 RUNC_SITE = $(call github,opencontainers,runc,v$(RUNC_VERSION))
 RUNC_LICENSE = Apache-2.0
 RUNC_LICENSE_FILES = LICENSE
 RUNC_CPE_ID_VENDOR = linuxfoundation
-RUNC_CPE_ID_VERSION = 1.0.0
-RUNC_CPE_ID_UPDATE = rc92
+RUNC_CPE_ID_VERSION = $(RUNC_VERSION_MAJOR)
+RUNC_CPE_ID_UPDATE = $(RUNC_VERSION_MINOR)
 
 RUNC_LDFLAGS = -X main.version=$(RUNC_VERSION)
 RUNC_TAGS = cgo static_build
Signature · 1 line
2.25.1
#1 lore raw

PATCH 1/1 package/runc: cleanup the CPE_ID variables

Hi Yann,

Quoted 8 lines · Yann E. MORIN

The CPE variables are derived from the package upstream values, so they must be set from the package values, not the other way around.

Cc Peter Korsgaard <[email protected]>
Cc Fabrice Fontaine <[email protected]>
Cc Christian Stewart <[email protected]>

[snip]

package/runc/runc.mk line 15

Quoted 3 lines
package/runc/runc.mk +3 -0
+RUNC_VERSION = $(RUNC_VERSION_MAJOR)-$(RUNC_VERSION_MINOR)
+RUNC_CPE_ID_VERSION = $(RUNC_VERSION_MAJOR)
+RUNC_CPE_ID_UPDATE = $(RUNC_VERSION_MINOR)

Thanks, LGTM.

Best regards,
Christian

#2 lore raw

PATCH 1/1 package/runc: cleanup the CPE_ID variables

In reply to Yann E. MORIN
Quoted 9 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Yann" == Yann E MORIN <[email protected]> writes:

The CPE variables are derived from the package upstream values, so they must be set from the package values, not the other way around.

Cc Peter Korsgaard <[email protected]>
Cc Fabrice Fontaine <[email protected]>
Cc Christian Stewart <[email protected]>

Not really a fix, but safe and it probably makes it easier to backport fixes in the future, so committed to 2021.02.x, thanks.

Signature · 1 line
Bye, Peter Korsgaard