Skip to contentSkip to conversation

oeqa/commands: Ensure sync can be found regardless of PATH

PATCH New Richard Purdie 1 participant 2 messages Dec 20, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 oeqa/commands: Ensure sync can be found regardless of PATH

Avoid command not found errors shown in selftest logs due to changes to PATH settings which also risks intermittent problems due to IO load.

---
 meta/lib/oeqa/utils/commands.py | 3 +++
 1 file changed, 3 insertions(+)
meta/lib/oeqa/utils/commands.py +3 -0
index 6c1535ddfbf..a71c16ab149 100644
@@ -188,7 +188,10 @@ def runCmd(command, ignore_status=False, timeout=None, assert_error=True, sync=T
     # call sync around the tests to ensure the IO queue doesn't get too large, taking any IO
     # hit here rather than in bitbake shutdown.
     if sync:
+        p = os.environ['PATH']
+        os.environ['PATH'] = "/usr/bin:/bin:/usr/sbin:/sbin:" + p
         os.system("sync")
+        os.environ['PATH'] = p
 
     result.command = command
     result.status = cmd.status
Signature · 1 line
2.25.1
#1 lore raw

PATCH 2/2 cups: Mark CVE-2009-0032 as a non-issue

The CVE was against a cups plugin which is obsolete and we don't include.

---
 meta/recipes-extended/cups/cups.inc | 2 ++
 1 file changed, 2 insertions(+)
meta/recipes-extended/cups/cups.inc +2 -0
index df8d4d284a9..91e73d75e43 100644
@@ -20,6 +20,8 @@ SRC_URI = "https://github.com/apple/cups/releases/download/v${PV}/${BP}-source.t
 UPSTREAM_CHECK_URI = "https://github.com/apple/cups/releases"
 UPSTREAM_CHECK_REGEX = "cups-(?P<pver>\d+\.\d+(\.\d+)?)-source.tar"
 
+# Issue affects pdfdistiller plugin used with but not part of cups
+CVE_CHECK_WHITELIST += "CVE-2009-0032"
 # This is an Ubuntu only issue.
 CVE_CHECK_WHITELIST += "CVE-2018-6553"
 
Signature · 1 line
2.25.1