[OE-core] [PATCH] systemd.bbclass: don't block on service restart

2016-11-24 Thread Mark Asselstine
The current class works fine when a recipe uses SYSTEMD_AUTO_ENABLE 'enable' and has no on device pkg_postinst(), ie when the postinst is run as part of rootfs creation. However, when there is a component of pkg_postinst() that is run on device the 'systemctl restart' is run as part of the

[OE-core] [PATCH 3/4] insane: add QAPKGTEST, a package-wide equivilant to QAPATHTEST

2016-11-24 Thread Ross Burton
QAPATHTEST defines a function that is executed for every file in every package. For tests which just need to look at the datastore this is massive overkill. Add QAPKGTEST, which is invoked for each package in the recipe. Signed-off-by: Ross Burton ---

[OE-core] [PATCH 4/4] insane: rewrite the expanded-d test as a QAPKGTEST

2016-11-24 Thread Ross Burton
Instead of being executed for every file in every package, this is now just called for each package. It is also now correctly called for packages which don't have any content but do have postinst scripts. [ YOCTO #10711 ] Signed-off-by: Ross Burton ---

[OE-core] [PATCH 2/4] insane: factor out the test matrix processing

2016-11-24 Thread Ross Burton
Pull the test matrix processing out as a function so it can be reused. Signed-off-by: Ross Burton --- meta/classes/insane.bbclass | 46 - 1 file changed, 25 insertions(+), 21 deletions(-) diff --git

[OE-core] [PATCH 1/4] insane: fix expanded-d test

2016-11-24 Thread Ross Burton
This test should be looking for the expanded value of ${D} in the expanded value of pkg_postinst and so on, but one of the getVar() calls was passing expand=False so the test would never be true. Signed-off-by: Ross Burton --- meta/classes/insane.bbclass | 3 +-- 1 file

[OE-core] [PATCH][morty] weston: Add no-input-device patch to 1.11.0.

2016-11-24 Thread Daniel Díaz
The included patch, backported from Weston master (and OE-Core master since Weston 1.11.1, b6864b1), allows it to run without any input device at launch. An ini option is introduced for this purpose, so there is no behavioral change. Related change in weston.ini: [core] require-input=true

[OE-core] [PATCH v2][krogoth] weston: Add no-input-device patch to 1.9.0.

2016-11-24 Thread Daniel Díaz
The included patch, backported from Weston master (and OE-Core master since Weston 1.11.1, b6864b1), allows it to run without any input device at launch. An ini option is introduced for this purpose, so there is no behavioral change. Related change in weston.ini: [core] require-input=true

[OE-core] [PATCH v2] selftest: Test needed to verify postinst order

2016-11-24 Thread Francisco Pedraza
It verifies the following: 1. Compile a minimal image. 2. The compiled image will add the layer with the recipe postinst, previously created at: "meta-selftest/recipes-test" 3. Run QEMU. 4. Validate the task execution order. [YOCTO #5319] Signed-off-by: Francisco Pedraza

[OE-core] [PATCH 2/2] perl: Upgrade to 5.24.0

2016-11-24 Thread Aníbal Limón
Configuration changes, Simple changes was made to bump version and api version, related to floating point handling now the configuration needs the inf, mantisa and nan bytes. The new version comes with the support of API calls like memmem and {new,free,use}locale also

[OE-core] [PATCH 1/2] perl: Fix ptest update hash of ExtUtils/Liblist/Kid.pm in customized.dat

2016-11-24 Thread Aníbal Limón
The perl ptest is failing due to a patch changes the file ExtUtils/Liblist/Kid.pm and the customized.dat file wasn't updated. [YOCTO #8656] Signed-off-by: Aníbal Limón --- meta/recipes-devtools/perl/perl/perl-test-customized.patch | 2 +- 1 file changed, 1

[OE-core] [PATCH v2 11/13] selftest: sstatetests: skip methods in case of poky-tiny or opengl is missing

2016-11-24 Thread leonardo . sandoval . gonzalez
From: Leonardo Sandoval Some tests defines images that poky-tiny cannot build so skip them. Also, bitbake world fails if distro does not contain opengl, so skip also those. Signed-off-by: Leonardo Sandoval

[OE-core] [PATCH v2 13/13] selftest: bblayers: remove linux kernel checks for show-recipes check

2016-11-24 Thread leonardo . sandoval . gonzalez
From: Leonardo Sandoval Preferred kernel recipes depends on the distro, so remove the kernel checks to avoid failures on non-poky distros and make the test distro agnostic. Signed-off-by: Leonardo Sandoval

[OE-core] [PATCH v2 04/13] selftest: buildoptions: skip read-only-image test depending on distro

2016-11-24 Thread leonardo . sandoval . gonzalez
From: Leonardo Sandoval Poky-tiny cannot build core-image-sato, so skip test (read-only-image) in this case. Signed-off-by: Leonardo Sandoval --- meta/lib/oeqa/selftest/buildoptions.py | 2 ++ 1 file

[OE-core] [PATCH v2 08/13] selftest: imagefeatures: skip bmap test in case of poky-tiny

2016-11-24 Thread leonardo . sandoval . gonzalez
From: Leonardo Sandoval Poky-tiny distro cannot execute bmap test because ext4 filesystem is used, so skip test in this is the case. Signed-off-by: Leonardo Sandoval ---

[OE-core] [PATCH v2 05/13] selftest: buildoptions: skip test in case features are missing

2016-11-24 Thread leonardo . sandoval . gonzalez
From: Leonardo Sandoval The sato image needs opengl and x11 as distro features, so skip test if this is not the case. Signed-off-by: Leonardo Sandoval --- meta/lib/oeqa/selftest/buildoptions.py | 5 +++--

[OE-core] [PATCH v2 07/13] selftest: imagefeatures: skip tests in case distro feature is missing

2016-11-24 Thread leonardo . sandoval . gonzalez
From: Leonardo Sandoval core-image-clutter and core-image-weston, both required opengl in distro features, skip relevant tests if this is not the case. Signed-off-by: Leonardo Sandoval ---

[OE-core] [PATCH v2 10/13] selftest: runtime-test: skip image-install test for poky-tiny

2016-11-24 Thread leonardo . sandoval . gonzalez
From: Leonardo Sandoval poky-tiny cannot build full-cmdline image, so skip this test in this case. Signed-off-by: Leonardo Sandoval --- meta/lib/oeqa/selftest/runtime-test.py | 2 ++ 1 file changed, 2

[OE-core] [PATCH v2 09/13] selftest: recipetool: use mraa instead of libmatchbox to lessen distro requirements

2016-11-24 Thread leonardo . sandoval . gonzalez
From: Leonardo Sandoval libmatchbox requires x11 distro feature to be present, so use another recipe (mraa) with no extra requirements, allowing test execution of all supported distros. Signed-off-by: Leonardo Sandoval

[OE-core] [PATCH v2 12/13] selftest: wic: skip tests for poky-tiny distro policy

2016-11-24 Thread leonardo . sandoval . gonzalez
From: Leonardo Sandoval Poky-tiny just supports cpio.gz as filesystem type so wic tests must be skipped. Signed-off-by: Leonardo Sandoval --- meta/lib/oeqa/selftest/wic.py | 9 + 1 file changed, 9

[OE-core] [PATCH v2 03/13] selftest: bbtests: run non-gplv3 test only on relevant distros

2016-11-24 Thread leonardo . sandoval . gonzalez
From: Leonardo Sandoval The non-gplv3 test makes sense just for poky and poky-tiny distros which include only non-gplv3 packages, thus skip other distros. Signed-off-by: Leonardo Sandoval ---

[OE-core] [PATCH v2 06/13] selftest: devtool: use mraa instead of libmatchbox to lessen distro requirements

2016-11-24 Thread leonardo . sandoval . gonzalez
From: Leonardo Sandoval libmatchbox requires x11 distro feature to be present, so use another recipe (mraa) with no extra requirements, allowing test execution of all supported distros. Signed-off-by: Leonardo Sandoval

[OE-core] [PATCH v2 01/13] selftest: base: new object member to store the DISTRO value

2016-11-24 Thread leonardo . sandoval . gonzalez
From: Leonardo Sandoval Instead of quering it multiple times, query once and use it on test method skip checks. Also, rename current distro sstate object member to a more meaninful name. Signed-off-by: Leonardo Sandoval

[OE-core] [PATCH v2 02/13] selftest: bbtests: use minimal image so all distros can execute it

2016-11-24 Thread leonardo . sandoval . gonzalez
From: Leonardo Sandoval poky-tiny distro cannot build full-cmdline image, so use an image (core-image-minimal) that can be built in all distros. Signed-off-by: Leonardo Sandoval ---

[OE-core] [PATCH v2 00/13] Skip selftests depending on distro and its features

2016-11-24 Thread leonardo . sandoval . gonzalez
From: Leonardo Sandoval Originally, the selftests were defined for the 'poky' distro. However, there are more supported distros, including nodistro, poky-lsb and poky-tiny. These series takes into consideration the distro name and its features to skip

Re: [OE-core] [PATCH 2/2] base-passwd: set root's default password to 'root'

2016-11-24 Thread Paul Eggleton
On Thu, 24 Nov 2016 08:46:29 Patrick Ohly wrote: > On Thu, 2016-11-24 at 11:38 +0800, Robert Yang wrote: > > Currently, debug-tweaks is in EXTRA_IMAGE_FEATURES by default for poky, > > and > > there is no passwd, so that user can login easily without a passwd, I > > think > > that current status

[OE-core] [PATCH] runtime: Update test cases numbers for runtime tests

2016-11-24 Thread jose . perez . carranza
From: Jose Perez Carranza Update test case numbers on runtime tests to do match with templates defined on Testopia for 2.3 release Signed-off-by: Jose Perez Carranza --- meta/lib/oeqa/runtime/buildgalculator.py | 1 +

Re: [OE-core] migrating simple tarballs over to OE recipes?

2016-11-24 Thread Burton, Ross
On 23 November 2016 at 16:52, Robert P. J. Day wrote: > what is the relationship between bin_package_do_install() and the > EXPORTed do_install()? seems like an overriding/inheritance thing, > yes? > Pretty much, that says that bin_package_do_install is this classes

Re: [OE-core] Contents of non-rootfs partitions

2016-11-24 Thread Kristian Amlie
On 24/11/16 17:21, Patrick Ohly wrote: > On Thu, 2016-11-24 at 16:51 +0100, Kristian Amlie wrote: >> On 24/11/16 16:28, Andreas Oberritter wrote: >>> Note that in a shell, "data/*" doesn't include "data/.*". So this syntax >>> avoids the confusing rsync syntax in trade for another one. I'd prefer

Re: [OE-core] Contents of non-rootfs partitions

2016-11-24 Thread Patrick Ohly
On Thu, 2016-11-24 at 16:51 +0100, Kristian Amlie wrote: > On 24/11/16 16:28, Andreas Oberritter wrote: > > Note that in a shell, "data/*" doesn't include "data/.*". So this syntax > > avoids the confusing rsync syntax in trade for another one. I'd prefer > > the rsync flavour, because "behaves

Re: [OE-core] [PATCH] meta/conf/layer.conf: Add recommended download layer

2016-11-24 Thread Burton, Ross
On 24 November 2016 at 14:03, Philip Balister wrote: > It is useful for the larger community to see what vendors have to do. > Possibly we could decide vendor specific patches code benefit the larer > community. I'd much rather vendors over publish then under publish. >

Re: [OE-core] Contents of non-rootfs partitions

2016-11-24 Thread Kristian Amlie
On 24/11/16 16:28, Andreas Oberritter wrote: > Note that in a shell, "data/*" doesn't include "data/.*". So this syntax > avoids the confusing rsync syntax in trade for another one. I'd prefer > the rsync flavour, because "behaves like rsync" is easier to remember > than "behaves like a shell

Re: [OE-core] Contents of non-rootfs partitions

2016-11-24 Thread Kristian Amlie
On 24/11/16 16:24, Patrick Ohly wrote: > On Thu, 2016-11-24 at 16:51 +0200, Ed Bartosh wrote: >> On Thu, Nov 24, 2016 at 03:43:18PM +0100, Kristian Amlie wrote: >>> On 24/11/16 14:23, Ed Bartosh wrote: Would this way be less intuitive? --exclude-path data/* --exclude-path data

Re: [OE-core] Contents of non-rootfs partitions

2016-11-24 Thread Andreas Oberritter
On 24.11.2016 15:51, Ed Bartosh wrote: > On Thu, Nov 24, 2016 at 03:43:18PM +0100, Kristian Amlie wrote: >> On 24/11/16 14:23, Ed Bartosh wrote: >>> On Thu, Nov 24, 2016 at 08:38:46AM +0100, Kristian Amlie wrote: On 24/11/16 07:15, Ulrich Ölmann wrote: > Hi, > > On Wed, Nov 23,

Re: [OE-core] Contents of non-rootfs partitions

2016-11-24 Thread Patrick Ohly
On Thu, 2016-11-24 at 16:51 +0200, Ed Bartosh wrote: > On Thu, Nov 24, 2016 at 03:43:18PM +0100, Kristian Amlie wrote: > > On 24/11/16 14:23, Ed Bartosh wrote: > > > Would this way be less intuitive? > > > --exclude-path data/* > > > --exclude-path data > > > > > > We can go even further with it

Re: [OE-core] [PATCH 2/2] base-passwd: set root's default password to 'root'

2016-11-24 Thread Patrick Ohly
On Thu, 2016-11-24 at 09:09 -0500, Philip Balister wrote: > On 11/24/2016 02:46 AM, Patrick Ohly wrote: > > On Thu, 2016-11-24 at 11:38 +0800, Robert Yang wrote: > >> Currently, debug-tweaks is in EXTRA_IMAGE_FEATURES by default for poky, and > >> there is no passwd, so that user can login easily

Re: [OE-core] Contents of non-rootfs partitions

2016-11-24 Thread Ed Bartosh
On Thu, Nov 24, 2016 at 03:43:18PM +0100, Kristian Amlie wrote: > On 24/11/16 14:23, Ed Bartosh wrote: > > On Thu, Nov 24, 2016 at 08:38:46AM +0100, Kristian Amlie wrote: > >> On 24/11/16 07:15, Ulrich Ölmann wrote: > >>> Hi, > >>> > >>> On Wed, Nov 23, 2016 at 04:56:56PM +0100, Patrick Ohly

Re: [OE-core] Contents of non-rootfs partitions

2016-11-24 Thread Kristian Amlie
On 24/11/16 14:23, Ed Bartosh wrote: > On Thu, Nov 24, 2016 at 08:38:46AM +0100, Kristian Amlie wrote: >> On 24/11/16 07:15, Ulrich Ölmann wrote: >>> Hi, >>> >>> On Wed, Nov 23, 2016 at 04:56:56PM +0100, Patrick Ohly wrote: On Wed, 2016-11-23 at 15:22 +0200, Ed Bartosh wrote: > On Wed,

[OE-core] [wic][PATCH] qemux86*.conf: set wic-related parameters

2016-11-24 Thread Ed Bartosh
Set directdisk.wks as default wks to use for qemux86 machines. Set requried dependeincies to build directdisk image. This should simplify building wic images for qemux86* machines. It should be enough to add wic to the list of IMAGE_FSTYPES to get the images built. [YOCTO #10637, YOCTO #8719]

Re: [OE-core] [PATCH 2/2] base-passwd: set root's default password to 'root'

2016-11-24 Thread Philip Balister
On 11/24/2016 02:46 AM, Patrick Ohly wrote: > On Thu, 2016-11-24 at 11:38 +0800, Robert Yang wrote: >> Currently, debug-tweaks is in EXTRA_IMAGE_FEATURES by default for poky, and >> there is no passwd, so that user can login easily without a passwd, I think >> that current status is more unsafe ?

Re: [OE-core] [PATCH] meta/conf/layer.conf: Add recommended download layer

2016-11-24 Thread Philip Balister
On 11/23/2016 01:56 PM, Martin Jansa wrote: > On Wed, Nov 23, 2016 at 12:38:42PM -0600, Mark Hatle wrote: >> On 11/23/16 12:10 PM, Martin Jansa wrote: >>> On Wed, Nov 23, 2016 at 11:42:09AM -0600, Mark Hatle wrote: This is a Wind River specific patch and not generally applicable. >>> >>> Then

Re: [OE-core] Kernel: Builds use old version of defconfig

2016-11-24 Thread Bruce Ashfield
On Thu, Nov 24, 2016 at 5:32 AM, Mike Looijmans wrote: > On 24-11-16 11:10, Mike Looijmans wrote: > >> I'm currently experiencing a problem with "defconfig" files and the >> kernel. >> >> In short, when I make a change to the "defconfig" file, the kernel is >> rebuilt >>

[OE-core] [PATCH 1/2] conf: add C++ flags for uninative interoperatility

2016-11-24 Thread Ross Burton
Create a common include file for compiler flags which allow native binaries to be interoperable on a wide range of hosts. In particular the C++ ABI is problematic so choose the CXX11 version to allow interoperation between gcc4 and gcc5 based hosts. Moving this to a common include instead of

[OE-core] [PATCH 2/2] Revert "classes/populate_sdk_ext: require uninative"

2016-11-24 Thread Ross Burton
The change to move C++ ABI tweaks to bitbake.conf should make this redundant, so revert it. This reverts commit c56cd49a12645e82d0a16bb94be16ac509f8813c. Signed-off-by: Ross Burton --- meta/classes/populate_sdk_ext.bbclass | 7 --- 1 file changed, 4 insertions(+), 3

Re: [OE-core] Contents of non-rootfs partitions

2016-11-24 Thread Ed Bartosh
On Thu, Nov 24, 2016 at 08:38:46AM +0100, Kristian Amlie wrote: > On 24/11/16 07:15, Ulrich Ölmann wrote: > > Hi, > > > > On Wed, Nov 23, 2016 at 04:56:56PM +0100, Patrick Ohly wrote: > >> On Wed, 2016-11-23 at 15:22 +0200, Ed Bartosh wrote: > >>> On Wed, Nov 23, 2016 at 02:08:28PM +0100,

Re: [OE-core] [PATCH 2/2] base-passwd: set root's default password to 'root'

2016-11-24 Thread Mike Looijmans
On 24-11-16 03:01, Robert Yang wrote: On 11/23/2016 07:16 PM, Patrick Ohly wrote: On Tue, 2016-11-22 at 23:49 -0800, Robert Yang wrote: [YOCTO #10710] Otherwise, we can't login as root when debug-tweaks is not in IMAGE_FEATURES, and there is no other users to login by default, so there is

Re: [OE-core] [PATCH] slang: Disable parallel make install

2016-11-24 Thread Burton, Ross
On 24 November 2016 at 09:46, David Vincent wrote: > Installation task fails if run in parallel. This case happens if we > define PARALLEL_MAKEINST to a different value of PARALLEL_MAKE. > Do you still have the logs of this failure? Ross --

[OE-core] file paths in the production code

2016-11-24 Thread Umut Tezduyar Lindskog
Hello, Some open source softwares are one way or another including the file paths in the binaries which reside in non debug sectors. They won't get stripped out and shipped in the production code. It is quite a waste when the storage is scarce. Do you guys handle this problem? Umut --

Re: [OE-core] [PATCH] meta/conf/layer.conf: Add recommended download layer

2016-11-24 Thread Patrick Ohly
On Wed, 2016-11-23 at 13:42 -0600, Mark Hatle wrote: > On 11/23/16 12:56 PM, Martin Jansa wrote: > > "Have all patches applied to BitBake and OpenEmbedded-Core (if present) > > been submitted to the open source community?" > > > > Shouldn't the wording be change to something like "all applicable

[OE-core] [PATCH v3] rootfs: Modify RPM installation

2016-11-24 Thread David Vincent
When using a custom RPM data directory instead of the default dir '/var/lib/rpm', the final image did not contain any of the database files in the expected location. This commit takes into account the 'rpmlibdir' variable set into 'rootfs_rpm.bbclass'. Signed-off-by: David Vincent

Re: [OE-core] [PATCH 1/1] runqemu: add user mode (SLIRP) support to x86 QEMU targets

2016-11-24 Thread Robert Yang
Hi Todor, On 10/27/2016 01:05 AM, Todor Minchev wrote: Using 'slirp' as a command line option to runqemu will start QEMU with user mode networking instead of creating tun/tap devices. SLIRP does not require root access. By default port on the host will be mapped to port 22 in the guest.

[OE-core] [PATCH v2] pseudo: include fix for xattr corruption

2016-11-24 Thread Patrick Ohly
pseudo_1.8.1.bb gets the backported patch and pseudo_git.bb gets updated to include the commit. Signed-off-by: Patrick Ohly --- Notes: Change since V1: Updated the commit message. It was still the one written for the initial, broken upstream patch for the

Re: [OE-core] Kernel: Builds use old version of defconfig

2016-11-24 Thread Mike Looijmans
On 24-11-16 11:10, Mike Looijmans wrote: I'm currently experiencing a problem with "defconfig" files and the kernel. In short, when I make a change to the "defconfig" file, the kernel is rebuilt (which is correct), but the resulting kernel has been built using the old defconfig from a previous

[OE-core] Kernel: Builds use old version of defconfig

2016-11-24 Thread Mike Looijmans
I'm currently experiencing a problem with "defconfig" files and the kernel. In short, when I make a change to the "defconfig" file, the kernel is rebuilt (which is correct), but the resulting kernel has been built using the old defconfig from a previous build, instead of the new one. The

Re: [OE-core] [PATCH v3] classes: Fix alternatives and rc.d ordering

2016-11-24 Thread Markus Lehtonen
On Thu, 2016-11-24 at 10:26 +0100, David Vincent wrote: > When using an alternative as an initscript, the ordering between > update-rc.d and update-alternatives tasks during prerm and postinst > tasks must always be the following in order to work: > * prerm: > - stop daemon > - remove

[OE-core] [PATCH] slang: Disable parallel make install

2016-11-24 Thread David Vincent
Installation task fails if run in parallel. This case happens if we define PARALLEL_MAKEINST to a different value of PARALLEL_MAKE. Signed-off-by: David Vincent --- meta/recipes-extended/slang/slang_2.3.0.bb | 1 + 1 file changed, 1 insertion(+) diff --git

[OE-core] [PATCH] pseudo: include fix for xattr corruption

2016-11-24 Thread Patrick Ohly
pseudo_1.8.1.bb gets the backported patch and pseudo_git.bb gets updated to include the commit, which currently is the most recent commit on the pseudo master branch. There's just one problem - it breaks other cases: foo: security.SMACK64: No such attribute Signed-off-by: Patrick Ohly

[OE-core] [PATCH] qemuboot.bbclass: do not hook into do_rootfs

2016-11-24 Thread Patrick Ohly
Writing qemuboot.conf in write_qemuboot_conf() does not modify the rootfs and thus conceptually shouldn't be executed as part of rootfs creation. Running it as separate task is cleaner and fixes the problem of missing qemuboot.conf files for meta-swupd virtual images; those images replace

[OE-core] [PATCH v3] rootfs: Modify RPM installation

2016-11-24 Thread David Vincent
When using a custom RPM data directory instead of the default dir '/var/lib/rpm', the final image did not contain any of the database files in the expected location. This commit takes into account the 'rpmlibdir' variable set into 'rootfs_rpm.bbclass'. Signed-off-by: David Vincent

[OE-core] [PATCH v3] classes: Fix alternatives and rc.d ordering

2016-11-24 Thread David Vincent
When using an alternative as an initscript, the ordering between update-rc.d and update-alternatives tasks during prerm and postinst tasks must always be the following in order to work: * prerm: - stop daemon - remove alternative * postinst: - add alternative - start daemon

Re: [OE-core] [PATCH 2/2] base-passwd: set root's default password to 'root'

2016-11-24 Thread Robert Yang
On 11/24/2016 03:46 PM, Patrick Ohly wrote: On Thu, 2016-11-24 at 11:38 +0800, Robert Yang wrote: Currently, debug-tweaks is in EXTRA_IMAGE_FEATURES by default for poky, and there is no passwd, so that user can login easily without a passwd, I think that current status is more unsafe ? Both

[OE-core] [PATCH v2] classes: Fix alternatives and rc.d ordering

2016-11-24 Thread David Vincent
When using an alternative as an initscript, the ordering between update-rc.d and update-alternatives tasks during prerm and postinst tasks must always be the following in order to work: * prerm: - stop daemon - remove alternative * postinst: - add alternative - start daemon

Re: [OE-core] [PATCH 2/2] base-passwd: set root's default password to 'root'

2016-11-24 Thread Patrick Ohly
On Thu, 2016-11-24 at 11:38 +0800, Robert Yang wrote: > Currently, debug-tweaks is in EXTRA_IMAGE_FEATURES by default for poky, and > there is no passwd, so that user can login easily without a passwd, I think > that current status is more unsafe ? Both well-known password and no password are