Re: [OE-core] [PATCH 3/3] bind: Update to 9.9.5
On Sun, 2014-03-09 at 20:48 -0700, Saul Wold wrote: Remove CVE patches that are in bind Updated COPYRIGHT includes date changes the NetBSD Copyright Modifies the Base BSD License to 3-Clause (removes advertising clause)w Add patch to disable running tests on host bind: Add python-core for dnssec Signed-off-by: Saul Wold s...@linux.intel.com Judging from the autobuilder failures, this one could still use some work :/ Cheers, Richard -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
Re: [OE-core] [PATCH 2/3] buildhistory.bbclass: Fix dependency files creation
I succeeded to replicate this. I'll take a look at it. laurentiu On Sat, Mar 08, 2014 at 04:23:22PM +0800, Hongxu Jia wrote: On 03/07/2014 02:35 PM, Laurentiu Palcu wrote: On Thu, Mar 06, 2014 at 09:55:38PM +, Richard Purdie wrote: On Wed, 2014-03-05 at 14:39 +0200, Laurentiu Palcu wrote: Call the new python routines. [YOCTO #5904] Signed-off-by: Laurentiu Palcu laurentiu.pa...@intel.com --- meta/classes/buildhistory.bbclass |9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/meta/classes/buildhistory.bbclass b/meta/classes/buildhistory.bbclass index ef4135b..01b0082 100644 --- a/meta/classes/buildhistory.bbclass +++ b/meta/classes/buildhistory.bbclass @@ -319,6 +319,12 @@ python buildhistory_list_installed() { with open(pkgs_list_file, 'w') as pkgs_list: pkgs_list.write(list_installed_packages(d, 'file')) + +pkgs_deps_file = os.path.join(d.getVar('WORKDIR', True), + bh_installed_pkgs_deps.txt) + +with open(pkgs_deps_file, 'w') as pkgs_deps: +pkgs_deps.write(list_installed_packages(d, 'deps')) } @@ -338,7 +344,8 @@ buildhistory_get_installed() { # Produce dependency graph # First, quote each name to handle characters that cause issues for dot - rootfs_list_installed_depends | sed 's:\([^| ]*\):\1:g' $1/depends.tmp + cat ${WORKDIR}/bh_installed_pkgs_deps.txt | sed 's:\([^| ]*\):\1:g' $1/depends.tmp \ + rm ${WORKDIR}/bh_installed_pkgs_deps.txt # Change delimiter from pipe to - and set style for recommend lines sed -i -e 's:|: - :' -e 's:\[REC\]:[style=dotted]:' -e 's:$:;:' $1/depends.tmp # Add header, sorted and de-duped contents and footer and then delete the temp file With this patch, a bitbake core-image-minimal -c populate_sdk resulted No, not quite. The bug appears to be in RpmPM._pkg_translate_smart_to_oe(), which none of my patches touched. CCing Hongxu. Hi Laurentiu and Richard, The reason is pkg's arch was not found in the multilib arch list. I could not reproduce the defect on my local build with these patches applyed. The attach a patch that add some trace code to see which pkg's arch is not found in this situation. //Hongxu laurentiu in: ERROR: Error executing a python function in /media/build1/poky/meta/recipes-core/images/core-image-minimal.bb: The stack trace of python calls that resulted in this exception/failure was: File: 'buildhistory_list_installed', lineno: 18, function: module 0014:with open(pkgs_deps_file, 'w') as pkgs_deps: 0015:pkgs_deps.write(list_installed_packages(d, 'deps')) 0016: 0017: *** 0018:buildhistory_list_installed(d) 0019: File: 'buildhistory_list_installed', lineno: 9, function: buildhistory_list_installed 0005:pkgs_list_file = os.path.join(d.getVar('WORKDIR', True), 0006: bh_installed_pkgs.txt) 0007: 0008:with open(pkgs_list_file, 'w') as pkgs_list: *** 0009:pkgs_list.write(list_installed_packages(d, 'file')) 0010: 0011:pkgs_deps_file = os.path.join(d.getVar('WORKDIR', True), 0012: bh_installed_pkgs_deps.txt) 0013: File: '/media/build1/poky/meta/lib/oe/rootfs.py', lineno: 721, function: list_installed_packages 0717:if img_type == rpm: 0718:return RpmPM(d, 0719: rootfs_dir, 0720: d.getVar('TARGET_VENDOR', True) *** 0721: ).list_installed(format) 0722:elif img_type == ipk: 0723:return OpkgPM(d, 0724: rootfs_dir, 0725: d.getVar(IPKGCONF_TARGET, True), File: '/media/build1/poky/meta/lib/oe/package_manager.py', lineno: 854, function: list_installed 0850:pkg = line.split()[0] 0851:arch = line.split()[1] 0852:ver = line.split()[2] 0853:pkgorigin = line.split()[3] *** 0854:new_pkg, new_arch = self._pkg_translate_smart_to_oe(pkg, arch) 0855: 0856:if format == arch: 0857:output.append('%s %s' % (new_pkg, new_arch)) 0858:elif format == file: File: '/media/build1/poky/meta/lib/oe/package_manager.py', lineno: 476, function: _pkg_translate_smart_to_oe 0472: 0473:if found == 1 and fixed_arch == fixed_cmp_arch: 0474:break 0475:#bb.note('%s, %s - %s, %s' % (pkg, arch, new_pkg, new_arch)) *** 0476:return new_pkg, new_arch 0477: 0478:def _search_pkg_name_in_feeds(self, pkg, feed_archs): 0479:for arch in feed_archs: 0480:arch = arch.replace('-', '_') Exception: UnboundLocalError: local variable
Re: [OE-core] No versioning for existing images
On Tue, Feb 25, 2014 at 7:22 AM, Anders Darander and...@chargestorm.se wrote: Well, if you set it as a variable, you can always use it in e.g. the IMAGE_PREPROCESS_COMMAND, to store it to a suitable file in the image. Just as I'm storing the output from git describe. This makes me think that it would be nice to have a dedicated variable for this version that automatically populates a standard place, e.g. /etc/version. That could standardize this process across projects, although it could be made customizable on top of the default if one wishes to do it differently. So, how about an IMAGE_VERSION variable which would be put into the image name if specified, and the string would also be put into some place on the target, like /etc/version? If you plan on keeping multiple image versions (which you should do at least for released images), you likely should then append your version number to the image names (and possibly some more info), or at least store them in a versioned tree/repository for easy retrieval. Yes, I agree that version numbers should be put into the image name. Yes, a versioned tree makes sense, which I think we can call a mirror for instance. I think that is enough for binaries, and perhaps it is better than a separate versioned repository on top of the already existing tags. -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
[OE-core] [PATCH] classes/sstate: don't overwrite buildhistory vardepsexclude
This was stomping over the value added in buildhistory.bbclass, leading to task signatures *still* changing when buildhistory was added to INHERIT. Fixes [YOCTO #5897]. Signed-off-by: Paul Eggleton paul.eggle...@linux.intel.com --- meta/classes/sstate.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass index 9e09a73..03ee820 100644 --- a/meta/classes/sstate.bbclass +++ b/meta/classes/sstate.bbclass @@ -215,7 +215,7 @@ def sstate_install(ss, d): for lock in locks: bb.utils.unlockfile(lock) -sstate_install[vardepsexclude] = SSTATE_DUPWHITELIST STATE_MANMACH SSTATE_MANFILEPREFIX +sstate_install[vardepsexclude] += SSTATE_DUPWHITELIST STATE_MANMACH SSTATE_MANFILEPREFIX sstate_install[vardeps] += ${SSTATEPOSTINSTFUNCS} def sstate_installpkg(ss, d): -- 1.8.5.3 -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
[OE-core] [PATCH] ptest: Don't enable ptest for nativesdk and cross-canadian packages
The ptest is useful in context of deployment to the target hence we don't need ptest for nativesdk and cross-canadian packages Signed-off-by: Tudor Florea tudor.flo...@enea.com --- meta/classes/ptest.bbclass |2 ++ 1 file changed, 2 insertions(+) diff --git a/meta/classes/ptest.bbclass b/meta/classes/ptest.bbclass index c37dfac..5c5505d 100644 --- a/meta/classes/ptest.bbclass +++ b/meta/classes/ptest.bbclass @@ -8,6 +8,8 @@ SECTION_${PN}-ptest = devel ALLOW_EMPTY_${PN}-ptest = 1 PTEST_ENABLED = ${@base_contains('DISTRO_FEATURES', 'ptest', '1', '0', d)} PTEST_ENABLED_class-native = +PTEST_ENABLED_class-nativesdk = +PTEST_ENABLED_class-cross-canadian = RDEPENDS_${PN}-ptest_class-native = RDEPENDS_${PN}-ptest_class-nativesdk = -- 1.7.10.4 -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
Re: [OE-core] [PATCH 1/1] dbus: fix a hard dependency about dbus-ptest
On 7 March 2014 02:13, Chong Lu chong...@windriver.com wrote: Do you mean using PACKAGES += ${@base_contains('IMAGE_FEATURES', 'ptest-pkgs', 'dbus-ptest-ptest', 'dbus-ptest', d)} or something else? Clearly I wasn't thinking clearly last week. You can't check IMAGE_FEATURES in a non-image recipe so this isn't a good solution. Ross -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
Re: [OE-core] [PATCH 3/3] bind: Update to 9.9.5
On 03/09/2014 11:09 PM, Richard Purdie wrote: On Sun, 2014-03-09 at 20:48 -0700, Saul Wold wrote: Remove CVE patches that are in bind Updated COPYRIGHT includes date changes the NetBSD Copyright Modifies the Base BSD License to 3-Clause (removes advertising clause)w Add patch to disable running tests on host bind: Add python-core for dnssec Signed-off-by: Saul Wold s...@linux.intel.com Judging from the autobuilder failures, this one could still use some work :/ That should have been addressed with the RDEPENDS_${PN} = python-core since the new dnssec-* scripts are python based. Sau! Cheers, Richard -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
[OE-core] OE Changelog since 2014-03-02 until 2014-03-09
Changelog since 2014-03-02 until 2014-03-09. Projects included in this report: bitbake: git://git.openembedded.org/bitbake openembedded-core: git://git.openembedded.org/openembedded-core meta-openembedded: git://git.openembedded.org/meta-openembedded meta-angstrom: git://github.com/Angstrom-distribution/meta-angstrom.git meta-arago: git://arago-project.org/git/meta-arago.git meta-beagleboard: git://github.com/beagleboard/meta-beagleboard.git meta-browser: git://github.com/OSSystems/meta-browser.git meta-bug: git://github.com/buglabs/meta-bug.git meta-chicken: git://github.com/OSSystems/meta-chicken meta-efikamx: git://github.com/kraj/meta-efikamx.git meta-ettus: http://github.com/koenkooi/meta-ettus.git meta-fsl-arm: git://git.yoctoproject.org/meta-fsl-arm meta-fsl-arm-extra: git://github.com/Freescale/meta-fsl-arm-extra.git meta-fsl-ppc: git://git.yoctoproject.org/meta-fsl-ppc meta-guacamayo: git://github.com/Guacamayo/meta-guacamayo.git meta-gumstix: git://github.com/gumstix/meta-gumstix.git meta-gumstix-community: git://gitorious.org/schnitzeltony-oe-meta/meta-gumstix-community.git meta-handheld: git://git.openembedded.org/meta-handheld meta-igep: http://github.com/ebutera/meta-igep.git meta-intel: git://git.yoctoproject.org/meta-intel meta-ivi: git://git.yoctoproject.org/meta-ivi meta-java: git://github.com/woglinde/meta-java meta-kde: git://gitorious.org/openembedded-core-layers/meta-kde.git meta-micro: git://git.openembedded.org/meta-micro meta-mono: git://git.yoctoproject.org/meta-mono.git meta-netbookpro: git://github.com/tworaz/meta-netbookpro meta-nslu2: git://github.com/kraj/meta-nslu2 meta-opie: git://git.openembedded.org/meta-opie meta-qt3: git://git.yoctoproject.org/meta-qt3 meta-qt5: git://github.com/meta-qt5/meta-qt5.git meta-slugos: git://github.com/kraj/meta-slugos meta-systemd: git://git.yoctoproject.org/meta-systemd meta-raspberrypi: git://github.com/djwillis/meta-raspberrypi.git meta-smartphone: http://git.shr-project.org/repo/meta-smartphone.git meta-ti: git://git.yoctoproject.org/meta-ti meta-webos: git://github.com/openwebos/meta-webos.git meta-xilinx: git://git.yoctoproject.org/meta-xilinx meta-yocto: git://git.yoctoproject.org/meta-yocto openembedded: git://git.openembedded.org/openembedded Changelog for bitbake: Paul Eggleton (1): data: add vardepvalueexclude varflag Richard Purdie (9): fetch/git: Separate out an ls-remote function fetch/perforce: Drop usage of old style *COMMAND variable and MKTEMPDIRCMD fetch/svk: Drop usage of old style *COMMAND variable and MKTEMPDIRCMD wget: Drop usage of old style *COMMAND variables fetch/wget: Start to clean up command construction fetch/wget: Separate out download and checkstatus functions codeparser: Fix var_execs to append to execs, not references fetch2: Drop svk fetcher runqueue: Fix typo Changelog for openembedded-core: Alexandru Palalau (1): oe-selftest: add test for image manifest file creation Alexandru-Cezar Sardan (1): libgcc: make sure symlinks are created in a valid directory Belen Barros Pena (1): documentation.conf: sync with the Yocto Project reference manual Chen Qi (1): python-numpy: fix build for qemumips and qemuppc Christopher Larson (1): kernel-yocto: fix diffconfig/kernel_configme breakage Corneliu Stoicescu (2): oe-selftest: optimize code in _sstatetests_noauto.py module oe-selftest: force some values in local.conf for _sstatetests_noauto.py Cristian Iorga (1): build-appliance-image: upgraded to commit 54c2e993ec129563c7ae9f3fdee74ab60d David Nyström (2): do_rootfs: Added PACKAGE_FEED_URIS functionality do_rootfs: Add PACKAGE_FEED_URIS as a vardep Hongxu Jia (10): python-native: remove unused and duplicated sitecustomize.py bash: upgrade to 4.3 bash: update build-tests.patch ppp: upgrade to 2.4.6 ppp: drop enable-ipv6.patch ppp: drop if_pppol2tp.h patches readline: upgrade to 6.3 readline: update configure-fix.patch readline: drop readline-only-enable-meta-key-for-a-single-call-read.patch dhcp-client: fix invoke dhclient-script failed on Read-only file system Jackie Huang (2): rpcbind: add rpc user and run rpcbind daemon with rpc user nfs-utils: run rpc.statd as rpcuser:rpcuser instead of rpcuser:root Jonathan Liu (2): image.bbclass: add BAD_RECOMMENDATIONS/NO_RECOMMENDATIONS rootfs vardeps consolekit: fix console-kit-log-system-start.service startup Karl Hiramoto (2): gnutls: CVE-2014-0092 correct return codes gnutls: Fixed bug that prevented the rejection of v1 intermediate CA certifi Khem Raj (1): Upgrade to systemd-stable v208 Laurentiu Palcu (6): Revert lib/oe/package_manager.py: RpmPM: fix issue with multilib builds package_manager.py: RpmPM: don't add smart channel if already added image.py, rootfs.py, package_manager.py: redirect stderr to stdout when call package_manager.py: make list_installed() list
[OE-core] [PATCH] eglibc: Fix build for FSL ppc/fpu
The patch needs to adapt to upstream changes should fix errors on e500mc+ based SOCs This should fix [YOCTO #5871] Signed-off-by: Khem Raj raj.k...@gmail.com --- .../eglibc/eglibc-2.19/glibc.fix_sqrt2.patch | 162 - 1 file changed, 90 insertions(+), 72 deletions(-) diff --git a/meta/recipes-core/eglibc/eglibc-2.19/glibc.fix_sqrt2.patch b/meta/recipes-core/eglibc/eglibc-2.19/glibc.fix_sqrt2.patch index a669729..037feeb 100644 --- a/meta/recipes-core/eglibc/eglibc-2.19/glibc.fix_sqrt2.patch +++ b/meta/recipes-core/eglibc/eglibc-2.19/glibc.fix_sqrt2.patch @@ -1,9 +1,10 @@ Signed-of-by: Edmar Wienskoski ed...@freescale.com Upstream-Status: Pending -diff -ruN libc-orig/sysdeps/powerpc/powerpc32/603e/fpu/e_sqrt.c libc/sysdeps/powerpc/powerpc32/603e/fpu/e_sqrt.c libc-orig/sysdeps/powerpc/powerpc32/603e/fpu/e_sqrt.c 1969-12-31 18:00:00.0 -0600 -+++ libc/sysdeps/powerpc/powerpc32/603e/fpu/e_sqrt.c 2012-06-14 14:51:50.452001745 -0500 +Index: libc/sysdeps/powerpc/powerpc32/603e/fpu/e_sqrt.c +=== +--- /dev/null libc/sysdeps/powerpc/powerpc32/603e/fpu/e_sqrt.c @@ -0,0 +1,134 @@ +/* Double-precision floating point square root. + Copyright (C) 2010 Free Software Foundation, Inc. @@ -87,7 +88,7 @@ diff -ruN libc-orig/sysdeps/powerpc/powerpc32/603e/fpu/e_sqrt.c libc/sysdeps/pow + + g = b * y; + h = 0.5 * y; -+ ++ + /* Handle small numbers by scaling. */ + if (__builtin_expect ((u.parts.msw 0x7ff0) = 0x0200, 0)) +return __ieee754_sqrt (b * two108) * twom54; @@ -132,16 +133,17 @@ diff -ruN libc-orig/sysdeps/powerpc/powerpc32/603e/fpu/e_sqrt.c libc/sysdeps/pow + feraiseexcept (FE_INVALID_SQRT); + + fenv_union_t u = { .fenv = fegetenv_register () }; -+ if ((u.l[1] FE_INVALID) == 0) ++ if ((u.l FE_INVALID) == 0) +#endif + feraiseexcept (FE_INVALID); + b = a_nan.value; +} + return f_wash (b); +} -diff -ruN libc-orig/sysdeps/powerpc/powerpc32/603e/fpu/e_sqrtf.c libc/sysdeps/powerpc/powerpc32/603e/fpu/e_sqrtf.c libc-orig/sysdeps/powerpc/powerpc32/603e/fpu/e_sqrtf.c 1969-12-31 18:00:00.0 -0600 -+++ libc/sysdeps/powerpc/powerpc32/603e/fpu/e_sqrtf.c 2012-06-14 14:51:50.452001745 -0500 +Index: libc/sysdeps/powerpc/powerpc32/603e/fpu/e_sqrtf.c +=== +--- /dev/null libc/sysdeps/powerpc/powerpc32/603e/fpu/e_sqrtf.c @@ -0,0 +1,101 @@ +/* Single-precision floating point square root. + Copyright (C) 2010 Free Software Foundation, Inc. @@ -237,16 +239,17 @@ diff -ruN libc-orig/sysdeps/powerpc/powerpc32/603e/fpu/e_sqrtf.c libc/sysdeps/po + feraiseexcept (FE_INVALID_SQRT); + + fenv_union_t u = { .fenv = fegetenv_register () }; -+ if ((u.l[1] FE_INVALID) == 0) ++ if ((u.l FE_INVALID) == 0) +#endif + feraiseexcept (FE_INVALID); + b = a_nan.value; +} + return f_washf (b); +} -diff -ruN libc-orig/sysdeps/powerpc/powerpc32/e500mc/fpu/e_sqrt.c libc/sysdeps/powerpc/powerpc32/e500mc/fpu/e_sqrt.c libc-orig/sysdeps/powerpc/powerpc32/e500mc/fpu/e_sqrt.c1969-12-31 18:00:00.0 -0600 -+++ libc/sysdeps/powerpc/powerpc32/e500mc/fpu/e_sqrt.c 2012-06-14 14:55:14.749001061 -0500 +Index: libc/sysdeps/powerpc/powerpc32/e500mc/fpu/e_sqrt.c +=== +--- /dev/null libc/sysdeps/powerpc/powerpc32/e500mc/fpu/e_sqrt.c @@ -0,0 +1,134 @@ +/* Double-precision floating point square root. + Copyright (C) 2010 Free Software Foundation, Inc. @@ -330,7 +333,7 @@ diff -ruN libc-orig/sysdeps/powerpc/powerpc32/e500mc/fpu/e_sqrt.c libc/sysdeps/p + + g = b * y; + h = 0.5 * y; -+ ++ + /* Handle small numbers by scaling. */ + if (__builtin_expect ((u.parts.msw 0x7ff0) = 0x0200, 0)) +return __ieee754_sqrt (b * two108) * twom54; @@ -375,16 +378,17 @@ diff -ruN libc-orig/sysdeps/powerpc/powerpc32/e500mc/fpu/e_sqrt.c libc/sysdeps/p + feraiseexcept (FE_INVALID_SQRT); + + fenv_union_t u = { .fenv = fegetenv_register () }; -+ if ((u.l[1] FE_INVALID) == 0) ++ if ((u.l FE_INVALID) == 0) +#endif + feraiseexcept (FE_INVALID); + b = a_nan.value; +} + return f_wash (b); +} -diff -ruN libc-orig/sysdeps/powerpc/powerpc32/e500mc/fpu/e_sqrtf.c libc/sysdeps/powerpc/powerpc32/e500mc/fpu/e_sqrtf.c libc-orig/sysdeps/powerpc/powerpc32/e500mc/fpu/e_sqrtf.c 1969-12-31 18:00:00.0 -0600 -+++ libc/sysdeps/powerpc/powerpc32/e500mc/fpu/e_sqrtf.c2012-06-14 14:55:14.749001061 -0500 +Index: libc/sysdeps/powerpc/powerpc32/e500mc/fpu/e_sqrtf.c +=== +--- /dev/null libc/sysdeps/powerpc/powerpc32/e500mc/fpu/e_sqrtf.c @@ -0,0 +1,101 @@ +/*
Re: [OE-core] [PATCH] python3: Add ptest support
On 03/06/2014 04:54 PM, Paul Barker wrote: A run-ptest script written in python is added which defines a new TestRunner subclass which prints test results in the required ptest format and then executes python's built-in testsuite using this new TestRunner subclass. The built-in testsuite is included in the python standard library and we ensure we have the complete library by adding ${PN}-modules and ${PN}-misc to the RDEPENDS for the ptest package. We also require libgcc for pthread support. Tested on qemux86. Several tests fail and many skip; further investigation should be done to check that the current status is acceptable. In addition, the testsuite causes an out-of-memory crash when qemu is configured with 256 MB of RAM. The testsuite completes without crashing with 1 GB RAM. Signed-off-by: Paul Barker p...@paulbarker.me.uk --- meta/recipes-devtools/python/python3/run-ptest | 56 ++ meta/recipes-devtools/python/python3_3.3.3.bb | 12 ++ 2 files changed, 68 insertions(+) create mode 100644 meta/recipes-devtools/python/python3/run-ptest diff --git a/meta/recipes-devtools/python/python3/run-ptest b/meta/recipes-devtools/python/python3/run-ptest new file mode 100644 index 000..bd3ea11 --- /dev/null +++ b/meta/recipes-devtools/python/python3/run-ptest @@ -0,0 +1,56 @@ +#! /usr/bin/env python3 + +from test import support +from test import regrtest +import unittest +import sys + +# Define a test result class which outputs results in the desired format. +class ptestResult(unittest.TestResult): +def __init__(self, runner): +super(ptestResult, self).__init__() +self.runner = runner + +def addError(self, test, err): +super(ptestResult, self).addError(test, err) +self.runner.write(ERROR: %s: %s\n % (str(test), str(err[1]))) + +def addSuccess(self, test): +super(ptestResult, self).addSuccess(test) +self.runner.write(PASS: %s\n % str(test)) + +def addFailure(self, test, err): +super(ptestResult, self).addFailure(test, err) +self.runner.write(FAIL: %s: %s\n % (str(test), str(err[1]))) + +def addSkip(self, test, reason): +super(ptestResult, self).addSkip(test, reason) +self.runner.write(SKIP: %s: %s\n % (str(test), str(reason))) + +def addExpectedFailure(self, test, err): +super(ptestResult, self).addExpectedFailure(test, err) +self.runner.write(XFAIL: %s\n % (str(test))) + +def addUnexpectedSuccess(self, test): +super(ptestResult, self).addUnexpectedSuccess(test) +self.runner.write(XPASS: %s\n % str(test)) + +# Define a test runner which uses the above output class. +class ptestRunner: +def __init__(self, stream=sys.stderr): +self.stream = stream + +def write(self, message): +self.stream.write(message) + +def run(self, test): +result = ptestResult(self) +test(result) +return result + +# Replace the test runner in python's standard library 'test.support'. +support.BasicTestRunner = ptestRunner + +# Run the python regression test suite - the replacement test runner will be +# used. +regrtest.main() diff --git a/meta/recipes-devtools/python/python3_3.3.3.bb b/meta/recipes-devtools/python/python3_3.3.3.bb index b6f6def..e405a25 100644 --- a/meta/recipes-devtools/python/python3_3.3.3.bb +++ b/meta/recipes-devtools/python/python3_3.3.3.bb @@ -35,6 +35,7 @@ SRC_URI += \ file://sysroot-include-headers.patch \ file://unixccompiler.patch \ file://avoid-ncursesw-include-path.patch \ +file://run-ptest \ SRC_URI[md5sum] = f3ebe34d4d8695bf889279b54673e10c SRC_URI[sha256sum] = e526e9b612f623888364d30cc9f3dfc34dcef39065c713bdbcddf47df84d8dcb @@ -209,6 +210,17 @@ FILES_${PN}-dbg += ${libdir}/python${PYTHON_MAJMIN}/lib-dynload/.debug PACKAGES += ${PN}-misc FILES_${PN}-misc = ${libdir}/python${PYTHON_MAJMIN} +#inherit ptest after require python-${PYTHON_MAJMIN}-manifest.inc so PACKAGES doesn't get overwritten +inherit ptest + Seems like there is an issue with the multi-lib build. ERROR: QA Issue: lib32-python3: Files/directories were installed but not shipped /usr/lib/python3 /usr/lib/python3/ptest NOTE: recipe lib32-pulseaudio-4.0-r0: task do_package_write_rpm: Started Sau! +# This must come after inherit ptest for the override to take effect +do_install_ptest() { +install -m 0755 -d ${D}/${libdir}/python3/ptest +install -m 0755 ${S}/../run-ptest ${D}/${libdir}/${PN}/ptest +} + +RDEPENDS_${PN}-ptest = ${PN}-modules ${PN}-misc libgcc + # catch manpage PACKAGES += ${PN}-man FILES_${PN}-man = ${datadir}/man -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
Re: [OE-core] [PATCH 0/4] Add gummiboot boot manager alongside grub-efi
On 3/9/14, 9:04, Stefan Stanacar stefanx.stana...@intel.com wrote: Hello, This series adds recipes for gummiboot and a class allowing it to be used as the boot loader for live/hddimg images. Without changing EFI_PROVIDER, we have the same behaviour for EFI machines. Using EFI_PROVIDER = gummiboot an installed image will use gummiboot instead of grub-efi as it's boot manager. I've tested this on FRI2, NUC and minnow (live USB boot and install from USB and boot) with EFI_PROVIDER = gummiboot and KERNEL_FEATURES_append = cfg/efi-ext in local.conf This is a partial fix for YB#4082. Changes in V2: - split the first patch in two - used ${B} instead of ${S} in gummiboot do_deploy - change the function names in bootimg/grub-efi instead of using a prefix I've tested again the changes on top of master. This series looks much improved to me. I think it can go in as it stands. Acked-by: Darren Hart dvh...@linux.intel.com One thing I would like to see improved it the definition of the efi class interface. I don't know how we do something like an abstract base class in bb-speak, but someone wanting to add another EFI class needs to be able to learn what the required methods and arguments are. Also, efi_populate() isn't one of those interfaces, and that should probably not use the generic efi_ prefix as it is effectively a gummiboot or grub-efi private method, and should be named accordingly. But, those are nitpics that can be cleaned up over time as we polish and extend this mechanism. Time to get this in and get some broader use/testing. Ultimately, I'd like to see gummiboot as the default, but I can also just set that in meta-intel if others do not agree. Thank you for you efforts here Stefan! -- Darren Hart Yocto Project - Linux Kernel Intel Open Source Technology Center -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
Re: [OE-core] [PATCH][resend] runqemu: Add option for custom BIOS directory
On Sun, 2014-03-09 at 00:09 -0800, Saul Wold wrote: On 03/07/2014 04:30 PM, Ricardo Neri wrote: Add support to specify a directory for custom BIOS, VGA BIOS and keymaps as supported by qemu (-L option). Even though this can be done through qemuparams, having this option provides better user experience by not having to specify a long and cluttered path along other qemuparams that the user might want to specify. This new options assumes that the path provided is relative to OECORE_NATIVE_SYSROOT and will check whether it exists before proceeding. Signed-off-by: Ricardo Neri ricardo.neri-calde...@linux.intel.com --- scripts/runqemu | 14 ++ 1 file changed, 14 insertions(+) diff --git a/scripts/runqemu b/scripts/runqemu index 619ffb6..9eff90d 100755 --- a/scripts/runqemu +++ b/scripts/runqemu @@ -149,6 +149,9 @@ while true; do SCRIPT_KERNEL_OPT=$SCRIPT_KERNEL_OPT console=ttyS0 SERIALSTDIO=1 ;; + biosdir=*) +CUSTOMBIOSDIR=${arg##biosdir=} + ;; qemuparams=*) SCRIPT_QEMU_EXTRA_OPT=${arg##qemuparams=} @@ -489,5 +492,16 @@ if [ ! -f $INTERNAL_SCRIPT -o ! -r $INTERNAL_SCRIPT ]; then INTERNAL_SCRIPT=`which runqemu-internal` fi +# Specify directory for BIOS, VGA BIOS and keymaps +if [ ! -z $CUSTOMBIOSDIR ]; then +if [ -d $OECORE_NATIVE_SYSROOT/$CUSTOMBIOSDIR ]; then I don't think we should be assuming anything here, if the direcotry is passed then it should be given that it is an accurate path to the directory that contains the customer bios, don't make people second gess that it needs to be in the native sysroot. Sau! Thanks for your comments Saul! Are you saying that providing paths to items outside the build environment is a supported use case? That is the reason I made it relative to OECORE_NATIVE_SYSROOT. If absolute paths to anywhere can be provided, I could first check whether the provided absolute path exist and, if not, assume that it is relative to OECORE_NATIVE_SYSROOT. Does that make sense to you? BR, Ricardo + echo Assuming $CUSTOMBIOSDIR really means $OECORE_NATIVE_SYSROOT/$CUSTOMBIOSDIR + SCRIPT_QEMU_OPT=$SCRIPT_QEMU_OPT -L $OECORE_NATIVE_SYSROOT/$CUSTOMBIOSDIR + else + echo Custom BIOS directory $OECORE_NATIVE_SYSROOT/$CUSTOMBIOSDIR not found. + exit 1; +fi +fi + . $INTERNAL_SCRIPT exit $? -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
Re: [OE-core] [PATCH] wic: Use mke2fs to create the ext2/3/4 image
On Mon, 2014-03-10 at 19:05 -0500, Tom Zanussi wrote: On Sun, 2014-03-09 at 18:04 -0700, Richard Purdie wrote: On Sat, 2014-03-08 at 19:23 -0300, João Henrique Ferreira de Freitas wrote: OE-core commit f3a95ca6886b55e5819b068bdbd2cceb882d91a6 removed the populate-extfs.sh. So mke2fs should be used to create ext2/3/4 image. Signed-off-by: João Henrique Ferreira de Freitas joa...@gmail.com --- scripts/lib/mic/kickstart/custom_commands/partition.py | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/scripts/lib/mic/kickstart/custom_commands/partition.py b/scripts/lib/mic/kickstart/custom_commands/partition.py index 91d751e..e0a82f5 100644 --- a/scripts/lib/mic/kickstart/custom_commands/partition.py +++ b/scripts/lib/mic/kickstart/custom_commands/partition.py @@ -174,7 +174,6 @@ class Wic_PartData(Mic_PartData): Prepare content for an ext2/3/4 rootfs partition. -populate_script = %s/usr/bin/populate-extfs.sh % native_sysroot image_rootfs = rootfs_dir rootfs = %s/rootfs.%s % (cr_workdir, self.fstype) @@ -199,11 +198,10 @@ class Wic_PartData(Mic_PartData): extra_imagecmd = -i 8192 -mkfs_cmd = mkfs.%s -F %s %s % (self.fstype, extra_imagecmd, rootfs) +mkfs_cmd = mkfs.%s -F %s %s -d %s % \ +(self.fstype, extra_imagecmd, rootfs, image_rootfs) rc, out = exec_native_cmd(mkfs_cmd, native_sysroot) -populate_cmd = populate_script + + image_rootfs + + rootfs -rc, out = exec_native_cmd(pseudo + populate_cmd, native_sysroot) # get the rootfs size in the right units for kickstart (Mb) du_cmd = du -Lbms %s % rootfs Don't we need to be careful to find the binary from the native sysroot here since that is the one with the root directory option? Hmm, exec_native_cmd(mkfs_cmd, native_sysroot) is being used to do the 'mke2fs -d', which should do the right thing... Am I missing something? I hadn't realised that the exec_native_cmd took care of resolving the prefix for you. The populate_script had a prefix because its used with pseudo (I'd thought it was so it found the right command). That does raise another question though, how does this work now pseudo isn't used? Cheers, Richard -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core