poky: subtree update:f468a73523..a35bf0e5d3
Adrian Bunk (3):
apt: Remove workarounds for host gcc < 5
apt: The C.UTF-8 locale is not portable
gcc: Remove mudflap remnants
Alexander Kanavin (5):
devtool: do not write md5sums into upgraded recipes
testresults.json: add duration of the tests as well
bitbake.conf: propagate 'opengl' DISTRO_FEATURE to native/nativesdk from target
libsdl2: enable opengl option for native/nativesdk, subject to 'opengl' in DISTRO_FEATURES
qemu: enable virglrenderer and glx options subject to 'opengl' DISTRO_FEATURE
Anuj Mittal (3):
mtools: upgrade 4.0.23 -> 4.0.24
gsettings-desktop-schemas: upgrade 3.36.0 -> 3.36.1
libsoup-2.4: upgrade 2.68.4 -> 2.70.0
Aníbal Limón (3):
recipes-kernel/linux-firmware: Add wlanmdsp.mbn to qcom-modem package
recipes-kernel/linux-firmware: Add adreno-a630 firmware package
linux-firmware: Update to 20200122 -> 20200421
Bruce Ashfield (3):
linux-yocto/5.4: update to v5.4.38
linux-yocto/5.4: update to v5.4.40
kernel/reproducibility: kernel modules need SOURCE_DATE_EPOCH export
Daniel Díaz (1):
ltp: Add net-tools as rdependency
Denys Dmytriyenko (1):
xz: upgrade 5.2.4 -> 5.2.5
Diego (2):
image_types: declare support for wic.zst
bmap-tools: update development snapshot revision
Gregor Zatko (1):
sanity.bbclass: Detect and fail if 'inherit' is used in conf file
Jacob Kroon (2):
squashfs-tools: Backport fix for compiling with gcc 10
bitbake: doc: Clarify how task dependencies relate to RDEPENDS
Jan-Simon Moeller (1):
file: add bzip2-replacement-native to DEPENDS to fix sstate issue
Joe Slater (2):
acpica: Upgrade 20200214 -> 20200430 for gcc-10 fixes
terminal.py: do not stop searching for auto
Joshua Watt (7):
pycryptodome: Import from meta-python
pyelftools: Import from meta-python
python3-pycryptodome(x): Upgrade 3.9.4 -> 3.9.7
python3-pyelftools: Upgrade 0.25 -> 0.26
diffoscope: upgrade 143 -> 144
python3-magic: upgrade 0.4.15 -> 0.4.18
checklayer: Skip layers without a collection
Kai Kang (3):
gcr: depends on gnupg-native
libsecret: add meson option introspection
Revert "webkitgtk, pinentry: require gobject-introspection-data in DISTRO_FEATURES when libsecret PACKAGECONFIG is enabled"
Khem Raj (20):
tune-cortexa55.inc: crc and crypto extentions are default on cortex-a55
tune-cortexa57.inc: Add new tune file
gcc: Do not set -march for arm64 for libatomic
aarch64: Adjust big.LITTLE tune files to use -mcpu
armv8/tunes: Define TUNE_PKGARCH
valgrind: Do not use outline-atomics on aarch64
gcc: Drop reverting __getauxval patch
qemuarm64.conf: Use cortext-a57 as default tune
glibc: Unify wordsize.h for arm and aarch64
glibc: Do not synthesize wordsize.h for arm multilibs
multilib_header_wrapper.h: Remove pragma once
multilib_header: Fall back to worsize form libc for bpf target
multilib_header_wrapper: Drop using __MHWORDSIZE
syslinux: Fix build with gcc10
valgrind: Backport upstream patch to fix __getauxval needs
re2c: Upgrade to 1.3
libxcrypt: Upgrade to 4.4.16
ltp: Fix format security warnings with gcc10
musl: Update to tip of master
cve-check: Run it after do_fetch
Konrad Weihmann (1):
lib/oe/recipeutils.py: passthrough of FETCHCMD
Lee Chee Yang (1):
qemu: fix CVE-2020-11869
Li Wang (1):
linux-modules.tgz: fix file permissions to root
Marek Vasut (1):
libubootenv: Depend on zlib
Martin Jansa (2):
libsecret: inherit features_check
webkitgtk, pinentry: require gobject-introspection-data in DISTRO_FEATURES when libsecret PACKAGECONFIG is enabled
Michael Ho (6):
package_rpm.bbclass: respect package overrides for the main package
package.bbclass: add PACKAGE_ADD_METADATA to sstate variables
package_ipk.bbclass: add PACKAGE_ADD_METADATA_IPK to sstate variables
package_deb.bbclass: add PACKAGE_ADD_METADATA_DEB to sstate variables
package_rpm.bbclass: add PACKAGE_ADD_METADATA_RPM to sstate variables
ref-manual: add PACKAGE_ADD_METADATA documentation
Ming Liu (1):
at-spi2-atk: dont inherit features_check
Mingli Yu (2):
bison: fix the parallel build
python3-setuptools: add the missing rdepends
Naveen Saini (2):
libva: upgrade 2.6.1 -> 2.7.1
libva-utils: upgrade 2.6.0 -> 2.7.1
Otavio Salvador (4):
go-mod.bbclass: Add class for `go mod` support
glide: Avoid use of 'go mod' support
go-dep: Avoid use of 'go mod' support
go.bbclass: Add `-trimpath` to default build flags
Ovidiu Panait (4):
lttng-modules: upgrade to 2.12.0
lttng-ust: upgrade to 2.12.0
lttng-modules: Fix "LTTng: vmalloc_sync_all symbol lookup failed" warnings
lttng-tools: upgrade to 2.12.0
Paul Barker (2):
archiver.bbclass: Make do_deploy_archives a recursive dependency
avahi: Don't advertise example services by default
Petr Vorel (1):
ltp: Update to 20200515
Quentin Schulz (2):
base/insane: Check pkgs lics are subset of recipe lics only once
ref-manual: document new unlisted-pkg-lics insane-skip qa check
Ricardo Ribalda (1):
classes/image_types_wic: Reorder do_flush_pseudodb
Richard Purdie (10):
ghostscript: Remove leftover file
layer.conf: Move to gatesgarth naming
meta-poky/meta-yocto-bsp layer.conf: Move to depend on gatesgarth release codename
ltp: Add missing dependencies on coreutils, bc, e2fsprogs and gdb
resulttool/report: Remove leftover debugging
resulttool/log: Add ability to dump ltp logs as well as ptest
ltp: Exclude the memcg_stress tests due to timeout problems
bitbake: event/ast: Add RecipePostKeyExpansion event
multilib/recipes: Use new RecipePostKeyExpansion event
poky.conf: Add Fedora 32, remove Ubuntu 19.04 and poky-2.7
Robert P. J. Day (3):
common-licenses: add "Unlicense" license file
ref-manual: delete long-unused comments in variable glossary
bitbake: user manual: properly tag content as <replaceable>
Robert Yang (1):
archiver.bbclass: Fix duplicated SRC_URIs for do_ar_original
Steve Sakoman (2):
oeqa/concurrencytest: don't delete build directory for failed tests
poky: Add Ubuntu 20.04 as a supported distro
Vyacheslav Yurkov (1):
bitbake: fetch2/cvs: Fix CVS fetcher clean method
Wang Mingyu (6):
freetype: upgrade 2.10.1 -> 2.10.2
watchdog: upgrade 5.15 -> 5.16
gnu-efi: upgrade 3.0.11 -> 3.0.12
boost: upgrade 1.72.0 -> 1.73.0
iso-codes: upgrade 4.4 -> 4.5.0
iproute2: upgrade 5.5.0 -> 5.6.0
zhengruoqin (3):
make-mod-scripts: Fix dependence error.
ruby: upgrade 2.7.0 -> 2.7.1
sysstat: upgrade 12.2.1 -> 12.2.2
Change-Id: I47d6a587b6f57ffd2da338f45cee51dfba471365
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
diff --git a/poky/meta/lib/oe/classextend.py b/poky/meta/lib/oe/classextend.py
index f02fbe9..e1049ce 100644
--- a/poky/meta/lib/oe/classextend.py
+++ b/poky/meta/lib/oe/classextend.py
@@ -4,11 +4,21 @@
import collections
+def get_packages(d):
+ pkgs = d.getVar("PACKAGES_NONML")
+ extcls = d.getVar("EXTENDERCLASS")
+ return extcls.rename_packages_internal(pkgs)
+
+def get_depends(varprefix, d):
+ extcls = d.getVar("EXTENDERCLASS")
+ return extcls.map_depends_variable(varprefix + "_NONML")
+
class ClassExtender(object):
def __init__(self, extname, d):
self.extname = extname
self.d = d
self.pkgs_mapping = []
+ self.d.setVar("EXTENDERCLASS", self)
def extend_name(self, name):
if name.startswith("kernel-") or name == "virtual/kernel":
@@ -24,7 +34,7 @@
if not subs.startswith(self.extname):
return "virtual/" + self.extname + "-" + subs
return name
- if name.startswith("/"):
+ if name.startswith("/") or (name.startswith("${") and name.endswith("}")):
return name
if not name.startswith(self.extname):
return self.extname + "-" + name
@@ -89,8 +99,14 @@
for dep in deps:
newdeps[self.map_depends(dep)] = deps[dep]
- self.d.setVar(varname, bb.utils.join_deps(newdeps, False).replace("EXTENDPKGV", "${EXTENDPKGV}"))
+ if not varname.endswith("_NONML"):
+ #if varname == "DEPENDS":
+ self.d.renameVar(varname, varname + "_NONML")
+ self.d.setVar(varname, "${@oe.classextend.get_depends('%s', d)}" % varname)
+ self.d.appendVarFlag(varname, "vardeps", " " + varname + "_NONML")
+ ret = bb.utils.join_deps(newdeps, False).replace("EXTENDPKGV", "${EXTENDPKGV}")
self.d.setVar("EXTENDPKGV", orig)
+ return ret
def map_packagevars(self):
for pkg in (self.d.getVar("PACKAGES").split() + [""]):
@@ -109,10 +125,23 @@
continue
self.pkgs_mapping.append([pkg, self.extend_name(pkg)])
- self.d.setVar("PACKAGES", " ".join([row[1] for row in self.pkgs_mapping]))
+ self.d.renameVar("PACKAGES", "PACKAGES_NONML")
+ self.d.setVar("PACKAGES", "${@oe.classextend.get_packages(d)}")
+
+ def rename_packages_internal(self, pkgs):
+ self.pkgs_mapping = []
+ for pkg in (self.d.expand(pkgs) or "").split():
+ if pkg.startswith(self.extname):
+ self.pkgs_mapping.append([pkg.split(self.extname + "-")[1], pkg])
+ continue
+ self.pkgs_mapping.append([pkg, self.extend_name(pkg)])
+
+ return " ".join([row[1] for row in self.pkgs_mapping])
def rename_package_variables(self, variables):
for pkg_mapping in self.pkgs_mapping:
+ if pkg_mapping[0].startswith("${") and pkg_mapping[0].endswith("}"):
+ continue
for subs in variables:
self.d.renameVar("%s_%s" % (subs, pkg_mapping[0]), "%s_%s" % (subs, pkg_mapping[1]))
diff --git a/poky/meta/lib/oe/recipeutils.py b/poky/meta/lib/oe/recipeutils.py
index 732420e..29473a9 100644
--- a/poky/meta/lib/oe/recipeutils.py
+++ b/poky/meta/lib/oe/recipeutils.py
@@ -1076,6 +1076,18 @@
'RECIPE_UPSTREAM_VERSION',
'RECIPE_UPSTREAM_DATE',
'CHECK_DATE',
+ 'FETCHCMD_bzr',
+ 'FETCHCMD_ccrc',
+ 'FETCHCMD_cvs',
+ 'FETCHCMD_git',
+ 'FETCHCMD_hg',
+ 'FETCHCMD_npm',
+ 'FETCHCMD_osc',
+ 'FETCHCMD_p4',
+ 'FETCHCMD_repo',
+ 'FETCHCMD_s3',
+ 'FETCHCMD_svn',
+ 'FETCHCMD_wget',
)
with bb.tinfoil.Tinfoil() as tinfoil:
diff --git a/poky/meta/lib/oe/terminal.py b/poky/meta/lib/oe/terminal.py
index a1daa2b..eb10a6e 100644
--- a/poky/meta/lib/oe/terminal.py
+++ b/poky/meta/lib/oe/terminal.py
@@ -207,7 +207,10 @@
spawn(terminal.name, sh_cmd, title, env, d)
break
except UnsupportedTerminal:
- continue
+ pass
+ except:
+ bb.warn("Terminal %s is supported but did not start" % (terminal.name))
+ # when we've run out of options
else:
raise NoSupportedTerminals(get_cmd_list())
diff --git a/poky/meta/lib/oeqa/core/runner.py b/poky/meta/lib/oeqa/core/runner.py
index 1284295..00b7d0b 100644
--- a/poky/meta/lib/oeqa/core/runner.py
+++ b/poky/meta/lib/oeqa/core/runner.py
@@ -182,8 +182,10 @@
(status, log) = self._getTestResultDetails(case)
t = ""
+ duration = 0
if case.id() in self.starttime and case.id() in self.endtime:
- t = " (" + "{0:.2f}".format(self.endtime[case.id()] - self.starttime[case.id()]) + "s)"
+ duration = self.endtime[case.id()] - self.starttime[case.id()]
+ t = " (" + "{0:.2f}".format(duration) + "s)"
if status not in logs:
logs[status] = []
@@ -191,6 +193,8 @@
report = {'status': status}
if log:
report['log'] = log
+ if duration:
+ report['duration'] = duration
if dump_streams and case.id() in self.logged_output:
(stdout, stderr) = self.logged_output[case.id()]
report['stdout'] = stdout
diff --git a/poky/meta/lib/oeqa/core/utils/concurrencytest.py b/poky/meta/lib/oeqa/core/utils/concurrencytest.py
index fac59f7..01c3983 100644
--- a/poky/meta/lib/oeqa/core/utils/concurrencytest.py
+++ b/poky/meta/lib/oeqa/core/utils/concurrencytest.py
@@ -77,14 +77,17 @@
# a very basic TestResult proxy, in order to modify add* calls
def __init__(self, target):
self.result = target
+ self.failed_tests = 0
def _addResult(self, method, test, *args, exception = False, **kwargs):
return method(test, *args, **kwargs)
def addError(self, test, err = None, **kwargs):
+ self.failed_tests += 1
self._addResult(self.result.addError, test, err, exception = True, **kwargs)
def addFailure(self, test, err = None, **kwargs):
+ self.failed_tests += 1
self._addResult(self.result.addFailure, test, err, exception = True, **kwargs)
def addSuccess(self, test, **kwargs):
@@ -96,6 +99,9 @@
def addUnexpectedSuccess(self, test, **kwargs):
self._addResult(self.result.addUnexpectedSuccess, test, **kwargs)
+ def wasSuccessful(self):
+ return self.failed_tests == 0
+
def __getattr__(self, attr):
return getattr(self.result, attr)
@@ -287,10 +293,10 @@
# as per default in parent code
subunit_client.buffer = True
subunit_result = AutoTimingTestResultDecorator(subunit_client)
- process_suite.run(ExtraResultsEncoderTestResult(subunit_result))
+ unittest_result = process_suite.run(ExtraResultsEncoderTestResult(subunit_result))
if ourpid != os.getpid():
os._exit(0)
- if newbuilddir:
+ if newbuilddir and unittest_result.wasSuccessful():
removebuilddir(newbuilddir)
except:
# Don't do anything with process children
diff --git a/poky/meta/lib/oeqa/selftest/cases/imagefeatures.py b/poky/meta/lib/oeqa/selftest/cases/imagefeatures.py
index 2b9c499..dea519e 100644
--- a/poky/meta/lib/oeqa/selftest/cases/imagefeatures.py
+++ b/poky/meta/lib/oeqa/selftest/cases/imagefeatures.py
@@ -209,7 +209,7 @@
image_name = 'core-image-minimal'
all_image_types = set(get_bb_var("IMAGE_TYPES", image_name).split())
- blacklist = set(('container', 'elf', 'f2fs', 'multiubi', 'tar.zst'))
+ blacklist = set(('container', 'elf', 'f2fs', 'multiubi', 'tar.zst', 'wic.zst'))
img_types = all_image_types - blacklist
config = 'IMAGE_FSTYPES += "%s"\n'\
diff --git a/poky/meta/lib/oeqa/selftest/cases/runtime_test.py b/poky/meta/lib/oeqa/selftest/cases/runtime_test.py
index 09d3de7..793c98a 100644
--- a/poky/meta/lib/oeqa/selftest/cases/runtime_test.py
+++ b/poky/meta/lib/oeqa/selftest/cases/runtime_test.py
@@ -188,18 +188,14 @@
self.skipTest('virgl isn\'t working with Opensuse 15.0')
qemu_packageconfig = get_bb_var('PACKAGECONFIG', 'qemu-system-native')
- sdl_packageconfig = get_bb_var('PACKAGECONFIG', 'libsdl2-native')
+ qemu_distrofeatures = get_bb_var('DISTRO_FEATURES', 'qemu-system-native')
features = 'INHERIT += "testimage"\n'
if 'gtk+' not in qemu_packageconfig:
features += 'PACKAGECONFIG_append_pn-qemu-system-native = " gtk+"\n'
if 'sdl' not in qemu_packageconfig:
features += 'PACKAGECONFIG_append_pn-qemu-system-native = " sdl"\n'
- if 'virglrenderer' not in qemu_packageconfig:
- features += 'PACKAGECONFIG_append_pn-qemu-system-native = " virglrenderer"\n'
- if 'glx' not in qemu_packageconfig:
- features += 'PACKAGECONFIG_append_pn-qemu-system-native = " glx"\n'
- if 'opengl' not in sdl_packageconfig:
- features += 'PACKAGECONFIG_append_pn-libsdl2-native = " opengl"\n'
+ if 'opengl' not in qemu_distrofeatures:
+ features += 'DISTRO_FEATURES_append = " opengl"\n'
features += 'TEST_SUITES = "ping ssh virgl"\n'
features += 'IMAGE_FEATURES_append = " ssh-server-dropbear"\n'
features += 'IMAGE_INSTALL_append = " kmscube"\n'
@@ -231,12 +227,10 @@
dripath = subprocess.check_output("pkg-config --variable=dridriverdir dri", shell=True)
except subprocess.CalledProcessError as e:
self.skipTest("Could not determine the path to dri drivers on the host via pkg-config.\nPlease install Mesa development files (particularly, dri.pc) on the host machine.")
- qemu_packageconfig = get_bb_var('PACKAGECONFIG', 'qemu-system-native')
+ qemu_distrofeatures = get_bb_var('DISTRO_FEATURES', 'qemu-system-native')
features = 'INHERIT += "testimage"\n'
- if 'virglrenderer' not in qemu_packageconfig:
- features += 'PACKAGECONFIG_append_pn-qemu-system-native = " virglrenderer"\n'
- if 'glx' not in qemu_packageconfig:
- features += 'PACKAGECONFIG_append_pn-qemu-system-native = " glx"\n'
+ if 'opengl' not in qemu_distrofeatures:
+ features += 'DISTRO_FEATURES_append = " opengl"\n'
features += 'TEST_SUITES = "ping ssh virgl"\n'
features += 'IMAGE_FEATURES_append = " ssh-server-dropbear"\n'
features += 'IMAGE_INSTALL_append = " kmscube"\n'