Skip to contentSkip to conversation

k3s, kubernetes, nagios-nrpe: fix Upstream-Status formatting

PATCH In review Martin Jansa 2 participants 3 messages May 4, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 k3s, kubernetes, nagios-nrpe: fix Upstream-Status formatting

---
 .../k3s/k3s/0001-Finding-host-local-in-usr-libexec.patch        | 2 +-
 .../0001-hack-lib-golang.sh-use-CC-from-environment.patch       | 2 +-
 ...1-Should-fix-235-nasty_metachars-was-not-being-returne.patch | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
recipes-containers/k3s/k3s/0001-Finding-host-local-in-usr-libexec.patch +1 -1
index 524ac2c..12f9941 100644
@@ -3,7 +3,7 @@ From: Erik Jansson <[email protected]>
 Date: Wed, 16 Oct 2019 15:07:48 +0200
 Subject: [PATCH] Finding host-local in /usr/libexec
 
-Upstream-status: Inappropriate [embedded specific]
+Upstream-Status: Inappropriate [embedded specific]
 Signed-off-by: <[email protected]>
 ---
  pkg/agent/config/config.go | 2 +-
recipes-containers/kubernetes/kubernetes/0001-hack-lib-golang.sh-use-CC-from-environment.patch +1 -1
index c81bd1a..15e8ffa 100644
@@ -5,7 +5,7 @@ Subject: [PATCH 1/2] hack/lib/golang.sh: use CC from environment
 
 Toolchain tupples differs, especially when using vendor provides ones.
 
-Upstream-status: Inappropriate [embedded specific]
+Upstream-Status: Inappropriate [embedded specific]
 Signed-off-by: Koen Kooi <[email protected]>
 ---
  hack/lib/golang.sh | 5 -----
recipes-extended/nagios/nagios-nrpe/0001-Should-fix-235-nasty_metachars-was-not-being-returne.patch +1 -1
index 7a12e73..fb34c5c 100644
@@ -5,7 +5,7 @@ Subject: [PATCH] Should fix #235 (nasty_metachars was not being returned when
  specified in cfg file
 
 CVE: CVE-2020-6581
-Upstream Status: Backport [4f7dd1199f1f3f72f9197e8565da339a4a2490b7]
+Upstream-Status: Backport [4f7dd1199f1f3f72f9197e8565da339a4a2490b7]
 
 Signed-off-by: Sakib Sajal <[email protected]>
 ---
Signature · 1 line
2.40.1
#1 lore raw

For my next presenter's gift, I want a regex that doesn't nitpick us on capitals and dashes ;)

Funny that I'm not seeing this, I haven't inhibited the check completely yet.

But my jest / complaint notwithstanding, thanks for the patch, I'll queue it shortly.

Bruce

Quoted 59 lines · Martin Jansa
---
 .../k3s/k3s/0001-Finding-host-local-in-usr-libexec.patch        | 2 +-
 .../0001-hack-lib-golang.sh-use-CC-from-environment.patch       | 2 +-
 ...1-Should-fix-235-nasty_metachars-was-not-being-returne.patch | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
recipes-containers/k3s/k3s/0001-Finding-host-local-in-usr-libexec.patch +1 -1
index 524ac2c..12f9941 100644
@@ -3,7 +3,7 @@ From: Erik Jansson <[email protected]>
 Date: Wed, 16 Oct 2019 15:07:48 +0200
 Subject: [PATCH] Finding host-local in /usr/libexec
 
-Upstream-status: Inappropriate [embedded specific]
+Upstream-Status: Inappropriate [embedded specific]
 Signed-off-by: <[email protected]>
 ---
  pkg/agent/config/config.go | 2 +-
recipes-containers/kubernetes/kubernetes/0001-hack-lib-golang.sh-use-CC-from-environment.patch +1 -1
index c81bd1a..15e8ffa 100644
@@ -5,7 +5,7 @@ Subject: [PATCH 1/2] hack/lib/golang.sh: use CC from environment
 
 Toolchain tupples differs, especially when using vendor provides ones.
 
-Upstream-status: Inappropriate [embedded specific]
+Upstream-Status: Inappropriate [embedded specific]
 Signed-off-by: Koen Kooi <[email protected]>
 ---
  hack/lib/golang.sh | 5 -----
recipes-extended/nagios/nagios-nrpe/0001-Should-fix-235-nasty_metachars-was-not-being-returne.patch +1 -2
index 7a12e73..fb34c5c 100644
@@ -5,7 +5,7 @@ Subject: [PATCH] Should fix #235 (nasty_metachars was not being returned when
  specified in cfg file
 
 CVE: CVE-2020-6581
-Upstream Status: Backport [4f7dd1199f1f3f72f9197e8565da339a4a2490b7]
+Upstream-Status: Backport [4f7dd1199f1f3f72f9197e8565da339a4a2490b7]
 
 Signed-off-by: Sakib Sajal <[email protected]>
 ---
--

2.40.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#8043): https://lists.yoctoproject.org/g/meta-virtualization/message/8043
Mute This Topic: https://lists.yoctoproject.org/mt/98679455/1050810
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Signature · 3 lines
- Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end
- "Use the force Harry" - Gandalf, Star Trek II
#2 lore raw
Quoted 3 lines · Bruce Ashfield

For my next presenter's gift, I want a regex that doesn't nitpick us on capitals and dashes ;)

I agree, but now when 99.9% of Upstream-Status have the right formatting and there is a QA check to keep or improve the percentage, it might be a step back to loosen the regexp.

Funny that I'm not seeing this, I haven't inhibited the check completely

Quoted 2 lines

yet.

I've noticed because I was building kubernetes trying to figure out why in some builds it fails with:
ERROR: QA Issue: File /usr/bin/kubelet in package lib32-kubelet doesn't have GNU_HASH (didn't pass LDFLAGS?) [ldflags]
while in some other builds this isn't triggered.

Then I've noticed that since
'make generated_files GO="go" KUBE_BUILD_PLATFORMS="${HOST_GOOS}/${BUILD_GOARCH}"' was commented out in:
https://git.yoctoproject.org/meta-virtualization/commit/?id=8fcd81741740bd4702db999923160155f26e1f25
a lot of *FLAGS* assignments in do_compile are now unnecessary as the later just overwrites the BUILD_* values set before, but that doesn't seem to be the root cause for missing GNU_HASH.

At this point I admit that I've blacklisted kubernetes in my DISTRO as I don't normally build it and it was just showing up as failure in my bitbake world builds (similarly as ceph and other fixes I've sent earlier).

And I do have patch-status-noncore in WARN_QA, but after noticing this, I've used patchreview script from oe-core to quickly check all .patch files in meta-virtualization - with small tweak from:
https://patchwork.yoctoproject.org/project/oe-core/patch/[email protected]/
to make it as strict as insane.bbclass QA check is.

Cheers,

But my jest / complaint notwithstanding, thanks for the patch, I'll

Quoted 88 lines

queue it shortly.

Bruce

Quoted 9 lines · Martin Jansa
---
 .../k3s/k3s/0001-Finding-host-local-in-usr-libexec.patch        | 2 +-
 .../0001-hack-lib-golang.sh-use-CC-from-environment.patch       | 2 +-
 ...1-Should-fix-235-nasty_metachars-was-not-being-returne.patch | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git

a/recipes-containers/k3s/k3s/0001-Finding-host-local-in-usr-libexec.patch b/recipes-containers/k3s/k3s/0001-Finding-host-local-in-usr-libexec.patch

Quoted 2 lines

index 524ac2c..12f9941 100644
---

a/recipes-containers/k3s/k3s/0001-Finding-host-local-in-usr-libexec.patch

Quoted 1 line

+++

b/recipes-containers/k3s/k3s/0001-Finding-host-local-in-usr-libexec.patch

Quoted 10 lines
recipes-containers/k3s/k3s/0001-Finding-host-local-in-usr-libexec.patch +1 -1
@@ -3,7 +3,7 @@ From: Erik Jansson <[email protected]>
 Date: Wed, 16 Oct 2019 15:07:48 +0200
 Subject: [PATCH] Finding host-local in /usr/libexec
 
-Upstream-status: Inappropriate [embedded specific]
+Upstream-Status: Inappropriate [embedded specific]
 Signed-off-by: <[email protected]>
 ---
  pkg/agent/config/config.go | 2 +-

diff --git

a/recipes-containers/kubernetes/kubernetes/0001-hack-lib-golang.sh-use-CC-from-environment.patch b/recipes-containers/kubernetes/kubernetes/0001-hack-lib-golang.sh-use-CC-from-environment.patch

Quoted 2 lines

index c81bd1a..15e8ffa 100644
---

a/recipes-containers/kubernetes/kubernetes/0001-hack-lib-golang.sh-use-CC-from-environment.patch

Quoted 1 line

+++

b/recipes-containers/kubernetes/kubernetes/0001-hack-lib-golang.sh-use-CC-from-environment.patch

Review Subject: [PATCH 1/2] hack/lib/golang.sh: use CC from

Quoted 1 line
(quoted diff) +0 -0
@@ -5,7 +5,7 @@ Subject: [PATCH 1/2] hack/lib/golang.sh: use CC from

environment

Quoted 9 lines
recipes-containers/kubernetes/kubernetes/0001-hack-lib-golang.sh-use-CC-from-environment.patch +1 -1
 Toolchain tupples differs, especially when using vendor provides ones.
 
-Upstream-status: Inappropriate [embedded specific]
+Upstream-Status: Inappropriate [embedded specific]
 Signed-off-by: Koen Kooi <[email protected]>
 ---
  hack/lib/golang.sh | 5 -----

diff --git

a/recipes-extended/nagios/nagios-nrpe/0001-Should-fix-235-nasty_metachars-was-not-being-returne.patch b/recipes-extended/nagios/nagios-nrpe/0001-Should-fix-235-nasty_metachars-was-not-being-returne.patch

Quoted 2 lines

index 7a12e73..fb34c5c 100644
---

a/recipes-extended/nagios/nagios-nrpe/0001-Should-fix-235-nasty_metachars-was-not-being-returne.patch

Quoted 1 line

+++

b/recipes-extended/nagios/nagios-nrpe/0001-Should-fix-235-nasty_metachars-was-not-being-returne.patch

Review Subject: [PATCH] Should fix #235 (nasty_metachars was

Quoted 1 line
(quoted diff) +0 -0
@@ -5,7 +5,7 @@ Subject: [PATCH] Should fix #235 (nasty_metachars was

not being returned when

Quoted 12 lines
recipes-extended/nagios/nagios-nrpe/0001-Should-fix-235-nasty_metachars-was-not-being-returne.patch +1 -2
  specified in cfg file
 
 CVE: CVE-2020-6581
-Upstream Status: Backport [4f7dd1199f1f3f72f9197e8565da339a4a2490b7]
+Upstream-Status: Backport [4f7dd1199f1f3f72f9197e8565da339a4a2490b7]
 
 Signed-off-by: Sakib Sajal <[email protected]>
 ---
--

2.40.1

Quoted 3 lines

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#8043):

https://lists.yoctoproject.org/g/meta-virtualization/message/8043

Quoted 3 lines

Mute This Topic: https://lists.yoctoproject.org/mt/98679455/1050810
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub

[[email protected]]

Quoted 2 lines

-=-=-=-=-=-=-=-=-=-=-=-

--
- Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end
- "Use the force Harry" - Gandalf, Star Trek II