[OE-core] [PATCH] initscripts: correct the runlevels for urandom

2016-03-08 Thread Zhenbo Gao
The description of urandom is: Save the random seed on shutdown and restore it on boot. So this script should be used with 'stop' at runlevel 0 and 6, and 'start' at runlevel 1 2 3 4 5. Signed-off-by: Zhenbo Gao --- meta/recipes-core/initscripts/initscripts-1.0/urandom | 2 +- meta/recipes-core

[OE-core] [PATCH v2 5/8] recipetool: create: split npm module dependencies into packages

2016-03-08 Thread Paul Eggleton
Rather than rolling all of an npm module's dependencies into the same package, split them into one module per package, setting the SUMMARY and PKGV values from the package.json file for each package. Additionally, mark each package with the appropriate license using the license scanning we already

[OE-core] [PATCH v2 8/8] recipetool: create: shrinkwrap and lockdown npm modules

2016-03-08 Thread Paul Eggleton
"npm shrinkwrap" creates a file that ensures that the exact same versions get fetched the next time the recipe is built. lockdown is similar but also includes sha1sums of the modules thus validating they haven't changed between builds. These ensure that the build is reproducible. Fixes [YOCTO #922

[OE-core] [PATCH v2 4/8] recipetool: create: add license file crunching

2016-03-08 Thread Paul Eggleton
Matching license texts directly to md5sums only goes so far. Some licenses make the copyright statement an intrinsic part of the license statement (e.g. MIT) which of course varies between projects. Also, people often seem to take standard license texts such as GPLv2 and reformat them cosmetically

[OE-core] [PATCH v2 6/8] recipetool: create: check if npm available if npm:// URL specified

2016-03-08 Thread Paul Eggleton
If the user specifies an npm:// URL then the fetcher needs npm to be available to run, so check if it's available early rather than failing later. Signed-off-by: Paul Eggleton --- scripts/lib/recipetool/create.py | 6 ++ 1 file changed, 6 insertions(+) diff --git a/scripts/lib/recipetool/cr

[OE-core] [PATCH v2 7/8] recipetool: create: support creation of additional files by plugins

2016-03-08 Thread Paul Eggleton
Allow plugins to create additional files to go alongside the recipe. The plugins don't know what the output filename is going to be, so they need to put the files in a temporary location and add them to an "extrafiles" dict within extravalues where the destination filename is the key and the tempor

[OE-core] [PATCH v2 3/8] recipetool: create: match *LICENSE* as a license file

2016-03-08 Thread Paul Eggleton
For example, this picks up a file named MIT-LICENSE.txt. Signed-off-by: Paul Eggleton --- scripts/lib/recipetool/create.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/lib/recipetool/create.py b/scripts/lib/recipetool/create.py index a77c191..def2eea 100644 --- a/s

[OE-core] [PATCH v2 1/8] recipetool: create: be more tolerant of spacing in configure.ac

2016-03-08 Thread Paul Eggleton
Allow for whitespace in appropriate places, and ensure we match all whitespace chars not just the space character. (This fixes extracting dependencies from tmux's configure.ac, for example.) Signed-off-by: Paul Eggleton --- scripts/lib/recipetool/create_buildsys.py | 16 1 file

[OE-core] [PATCH v2 0/8] recipetool create improvements

2016-03-08 Thread Paul Eggleton
Changes since v1: * Set PKGV and SUMMARY per package for split npm packages so they get the values appropriate to the module they contain. PKGV is particularly important so that the image manifests have the appropriate version for each module. * Create shrinkwrap/lockdown files next to n

[OE-core] [PATCH v2 2/8] recipetool: create: improve mapping for autotools program macros

2016-03-08 Thread Paul Eggleton
Make the following improvements to mapping items specified in AC_CHECK_PROG, AC_PATH_PROG and AX_WITH_PROG to recipes/classes: * Produce a map of native recipe -> binary for all binaries currently in STAGING_BINDIR_NATIVE and use this when mapping items * Add some more entries to the class map *

[OE-core] [PATCH] image-mklibs: handle position independent binaries

2016-03-08 Thread Tyler Hall
Executables built with -fpie have the ELF type DYN rather than EXEC which makes them difficult to distinguish from shared libraries. Currently when building the list of executables we omit these binaries so they might fail to run on the resultant rootfs due to missing symbols. One of these is syste

Re: [OE-core] [PATCH 00/15] fix python buildpaths QA issue

2016-03-08 Thread Hongxu Jia
As Richard suggested ( see [YOCTO #9169]), I will drop 'insane:add buildpaths QA ignore pattern' So please drop these, V2 incoming //Hongxu On 02/26/2016 09:44 AM, Hongxu Jia wrote: - Patch 01-06 has be sent in previous pull request. - add buildpaths QA ignore pattern, and ignore Makefile by

Re: [OE-core] [meta-oe][PATCH] nettle: The variable named p in the patch file was incorrectly named.

2016-03-08 Thread Andreas Oberritter
Hello Nathan, On 08.03.2016 22:49, ngutzmann wrote: > The variable in question should have been called ecc->p. The patch has been > updated > so that the compilation of the nettle recipe would complete successfully. > > Signed-off-by: ngutzmann > --- > meta/recipes-support/nettle/nettle-2.7.1/

Re: [OE-core] [PATCH 13/15] python-pygobject: fix buildpath QA issue

2016-03-08 Thread Hongxu Jia
On 03/08/2016 11:24 PM, Burton, Ross wrote: On 26 February 2016 at 01:45, Hongxu Jia > wrote: +do_install_append_class-target() { + sed -i -e "s:${PYTHON}:\`which python\`:g" \ + ${D}${bindir}/pygobject-codegen-2.0 +} If you're

Re: [OE-core] [PATCH 15/15] python-pycairo: fix buildpath QA issue

2016-03-08 Thread Hongxu Jia
On 03/08/2016 11:26 PM, Burton, Ross wrote: On 26 February 2016 at 01:45, Hongxu Jia > wrote: +do_unpack[postfuncs] += "unpack_waf" +do_unpack[vardeps] += "unpack_waf" +unpack_waf() { + # Just self extract tarball embedded in waf, do not c

[OE-core] [PATCH 1/6 v5] rpm: Uprev to rpm-5.4.16 (pre) and rpm-5.4+cvs to current CVS head

2016-03-08 Thread Mark Hatle
meta/lib/oe/package_manager.py was also updated. This ensures that any diagnostic messages are ignored from the output of rpmresolve. The patches have been split into bug fixes (things that belong upstream) and local changes that are OE specific. The following patches are obsolete and have been

[OE-core] [PATCH 0/6 v5] Upgrade RPM to 5.4.16 (CVE HEAD)

2016-03-08 Thread Mark Hatle
v5: * Squash patch rpm: fix races over rpmqv (from rburton) * Fix libitm linkage issue (update to the rpm-gnu-atomic.patch) * Fix nativesdk python rpm module dependency error Only patch 1 has been affected. 2-6 remain the same. Patch 7 and 8 are no longer needed. v4: * Move large patches to ext

Re: [OE-core] [PATCH 0/6] recipetool create improvements

2016-03-08 Thread Paul Eggleton
On Tue, 08 Mar 2016 18:35:59 Paul Eggleton wrote: > Improvements to the following areas of recipetool create: > * License detection > * Autotools program mapping and spacing in macro regexes > * npm module handling > > > The following changes since commit 0d02159c8d66bb136f7da2c10fda7d1a57f40cec:

[OE-core] [meta-oe][PATCH] nettle: The variable named p in the patch file was incorrectly named.

2016-03-08 Thread ngutzmann
The variable in question should have been called ecc->p. The patch has been updated so that the compilation of the nettle recipe would complete successfully. Signed-off-by: ngutzmann --- meta/recipes-support/nettle/nettle-2.7.1/CVE-2015-8803_8805.patch | 2 +- 1 file changed, 1 insertion(+), 1

Re: [OE-core] Debugging using sysroots and GDB

2016-03-08 Thread Andreas Müller
On Tue, Mar 8, 2016 at 3:06 PM, Pascal Bach wrote: > Hi Andreas >> I am using sysroot for debugging too. I have no >> >> * INHERIT += "rm_work" >> >> and added >> >> INHIBIT_SYSROOT_STRIP = "1" >> >> to my local.conf >> >> I use this approach for very long time now and from my point of view >> it

Re: [OE-core] [PATCH] dhcp: CVE-2015-8605

2016-03-08 Thread Mariano Lopez
This is for fido (that is why Joshua is copied), do I resend the patch with the correct title? On 03/08/2016 04:26 AM, mariano.lo...@linux.intel.com wrote: From: Mariano Lopez ISC DHCP allows remote attackers to cause a denial of service (application crash) via an invalid length field in a UD

[OE-core] [PATCH] dhcp: CVE-2015-8605

2016-03-08 Thread mariano . lopez
From: Mariano Lopez ISC DHCP allows remote attackers to cause a denial of service (application crash) via an invalid length field in a UDP IPv4 packet. Signed-off-by: Mariano Lopez --- .../dhcp/dhcp/CVE-2015-8605.patch | 99 .../dhcp/dhcp/CVE-2015-8605_1.patc

Re: [OE-core] [PATCH v2] no-static-libs: Ensure correct whitespace is set for _append

2016-03-08 Thread Burton, Ross
On 8 March 2016 at 16:57, Christopher Larson wrote: > Just a note that doing it this way will result in do_configure checksums > changing for everything when no-static-libs gets included, even if > DISABLE_STATIC is explicitly set to the empty string, as there'll be a > trailing space always adde

[OE-core] [PATCH] python: move ast module into python-core

2016-03-08 Thread Ross Burton
The compile() method returns objects that inherit from ast.AST so it's best that python-core contains this class. [YOCTO #8684] Signed-off-by: Ross Burton --- meta/recipes-devtools/python/python-2.7-manifest.inc | 2 +- meta/recipes-devtools/python/python-3.5-manifest.inc | 2 +- scripts/contri

Re: [OE-core] [PATCH v2] no-static-libs: Ensure correct whitespace is set for _append

2016-03-08 Thread Christopher Larson
Just a note that doing it this way will result in do_configure checksums changing for everything when no-static-libs gets included, even if DISABLE_STATIC is explicitly set to the empty string, as there'll be a trailing space always added to EXTRA_OECONF. If that's okay, so be it, but I wanted to m

Re: [OE-core] [PATCH 0/7 v4] Upgrade RPM to 5.4.16 (CVE HEAD)

2016-03-08 Thread Burton, Ross
On 8 March 2016 at 16:15, Mark Hatle wrote: > Does 'musl' work in poky yet, or do you still need an external layer? > > I've not configured musl before, so I'm not sure what steps are necessary. > Oh didn't notice that was musl. Most of oe-core builds standalone with musl now, but rpm is a know

Re: [OE-core] [PATCH 0/7 v4] Upgrade RPM to 5.4.16 (CVE HEAD)

2016-03-08 Thread Mark Hatle
The configuration I've been testing on is: recent Fedora + qemux86 or qemux86-64 and core-image-sato. I'll try to replicate this failure set, but I'm very surprised there is an issue as I have been running the oe test cases.. On 3/8/16 5:46 AM, Burton, Ross wrote: > Failed to look at the ful

Re: [OE-core] [PATCH 0/7 v4] Upgrade RPM to 5.4.16 (CVE HEAD)

2016-03-08 Thread Mark Hatle
On 3/8/16 5:18 AM, Burton, Ross wrote: > Erm, two problems. One of the runs failed to configure rpm > (http://errors.yoctoproject.org/Errors/Details/54813/). Does 'musl' work in poky yet, or do you still need an external layer? I've not configured musl before, so I'm not sure what steps are nece

[OE-core] OEDAM, April 8 in San Diego after ELC

2016-03-08 Thread Philip Balister
On the Friday after ELC in San Diego (Yocto Project Dev Day is Thursday), we will have a developer meeting near the conference venue (need to double check with Jefro about exact location). http://openembedded.org/wiki/OEDAM_2016 At these meetings we try to follow an agenda we develop before hand

Re: [OE-core] [PATCH 13/15] python-pygobject: fix buildpath QA issue

2016-03-08 Thread Alexander Kanavin
On 03/08/2016 05:24 PM, Burton, Ross wrote: +do_install_append_class-target() { + sed -i -e "s:${PYTHON}:\`which python\`:g" \ + ${D}${bindir}/pygobject-codegen-2.0 +} If you're going to expect the shell to find the right python on the target there's no need to

Re: [OE-core] [PATCH 15/15] python-pycairo: fix buildpath QA issue

2016-03-08 Thread Burton, Ross
On 26 February 2016 at 01:45, Hongxu Jia wrote: > +do_unpack[postfuncs] += "unpack_waf" > +do_unpack[vardeps] += "unpack_waf" > +unpack_waf() { > + # Just self extract tarball embedded in waf, do not care help > message. > + # Do not generate bytecode, becuase we need to patch python

Re: [OE-core] [PATCH 13/15] python-pygobject: fix buildpath QA issue

2016-03-08 Thread Burton, Ross
On 26 February 2016 at 01:45, Hongxu Jia wrote: > +do_install_append_class-target() { > + sed -i -e "s:${PYTHON}:\`which python\`:g" \ > + ${D}${bindir}/pygobject-codegen-2.0 > +} > If you're going to expect the shell to find the right python on the target there's no need to use

Re: [OE-core] [PATCH 1/1] quilt: fix ptest faildiff.test failed

2016-03-08 Thread Burton, Ross
On 8 March 2016 at 12:11, Dengke Du wrote: > So I change the file "meta/recipes-devtools/quilt/quilt/run-ptest", > when it meet the faildiff.test it skipped. I will report this bug to > quilt upstream. > We're seeing a number of tests that expect to run as a non-root user. Maybe ptest-runner sho

[OE-core] [PATCH][jethro] dhcp: CVE-2015-8605

2016-03-08 Thread mariano . lopez
From: Mariano Lopez ISC DHCP allows remote attackers to cause a denial of service (application crash) via an invalid length field in a UDP IPv4 packet. Signed-off-by: Mariano Lopez --- .../dhcp/dhcp/CVE-2015-8605.patch | 99 ++ meta/recipes-connectivity/dhc

Re: [OE-core] [PATCH 0/7 v4] Upgrade RPM to 5.4.16 (CVE HEAD)

2016-03-08 Thread Mark Hatle
On 3/8/16 5:10 AM, Burton, Ross wrote: > One problem - target rpmresolve now fails to link: Is this a world build or what target configuration is using rpmresolve? I never ran into this and I've built most of the various configurations. (see below) > | rpmresolve.c: In function 'getPackageStr':

Re: [OE-core] Debugging using sysroots and GDB

2016-03-08 Thread Pascal Bach
> > The only way I could get this to work is to extract both the rootfs and the > > rootfs-dbg into the same place and then set sysroot to that location. > > Is this the way it is supposed to be? > > Yes > Ok I was hoping to keep them seperate. This because I'm using the rootfs for NFS and by hav

Re: [OE-core] Debugging using sysroots and GDB

2016-03-08 Thread Pascal Bach
Hi Andreas > I am using sysroot for debugging too. I have no > > * INHERIT += "rm_work" > > and added > > INHIBIT_SYSROOT_STRIP = "1" > > to my local.conf > > I use this approach for very long time now and from my point of view > it has one BIG advantage: I can use these settings for productive > i

[OE-core] [PATCH 1/1] quilt: fix ptest faildiff.test failed

2016-03-08 Thread Dengke Du
When run the quilt ptest on the target, the faildiff.test failed, because the user is root. The faildiff.test had the following: $ chmod -r test.txt $ quilt refresh when we drop the read permission of the file test.txt, we can't "quilt refresh" as normal user, so we got the followin

[OE-core] [PATCH 0/1] quilt: fix ptest faildiff.test failed

2016-03-08 Thread Dengke Du
The following changes since commit 7d409ffb1e0a26b196e5ab7e69fec87f7467d5f6: pTest-tcl fail fixed (2016-03-02 23:28:51 -0500) are available in the git repository at: git://git.openembedded.org/openembedded-core-contrib dengke/pTest-quilt-fail-fixed http://cgit.openembedded.org/cgit.cgi/

Re: [OE-core] [PATCH][master] Add tune for 32-bit ARMv8-a

2016-03-08 Thread Otavio Salvador
On Tue, Mar 8, 2016 at 8:37 AM, Dragomir Daniel wrote: > I'll update also the arch-arm64.inc file to have 64bit support for armv8a > in a new version for the patch. Please do. > On 03/08/2016 04:26 AM, Otavio Salvador wrote: >> On Mon, Mar 7, 2016 at 9:55 PM, Otavio Salvador >> wrote: >>> >>> O

Re: [OE-core] [PATCH 0/7 v4] Upgrade RPM to 5.4.16 (CVE HEAD)

2016-03-08 Thread Burton, Ross
Failed to look at the full list of failures. SMART is failing in selftest on many systems: AssertionError: 1 != 0 : smart info python-smartpm error: 'rpm' python module is not available (http://errors.yoctoproject.org/Errors/Details/54843/) Again the Python support appears to be flakey at image

Re: [OE-core] [PATCH][master] Add tune for 32-bit ARMv8-a

2016-03-08 Thread Dragomir Daniel
Thanks, Otavio! I'll update also the arch-arm64.inc file to have 64bit support for armv8a in a new version for the patch. On 03/08/2016 04:26 AM, Otavio Salvador wrote: Hello Daniel, On Mon, Mar 7, 2016 at 9:55 PM, Otavio Salvador wrote: On Mon, Mar 7, 2016 at 11:34 AM, Daniel Dragomir wrot

[OE-core] [PATCH] xmlto: tell xmlto where cp is

2016-03-08 Thread Ross Burton
xmlto looks for a cp binary, and on e.g. Fedora 23 will find it at /usr/bin/cp but most other distros have it at /bin/cp. This causing problems with sharing sstate between distributions, but as /bin is a symlink on F23 we can safely force the path to /bin/cp. Signed-off-by: Ross Burton --- meta

[OE-core] [PATCH] toaster.bbclass: improve how we gather buildstats for Toaster

2016-03-08 Thread Michael Wood
From: Elliot Smith Clean up the code which gathers buildstats for Toaster, and modify the field names so that the correct parts of the buildstats files are used to derive the CPU usage values. Also derive elapsed time for the build here, rather than in Toaster, as we have ready access to the dat

Re: [OE-core] Debugging using sysroots and GDB

2016-03-08 Thread Khem Raj
On Mar 8, 2016 3:54 PM, "Pascal Bach" wrote: > > Hi Richard > > Using this method is a supported approach. I'm a little surprised > > .debug directories don't work. Have you tried just setting: > > > > set sysroot /home/projects/rootfs-dbg > > set substitute-path /usr/src/debug /home/projects/root

Re: [OE-core] [PATCH 0/7 v4] Upgrade RPM to 5.4.16 (CVE HEAD)

2016-03-08 Thread Burton, Ross
Erm, two problems. One of the runs failed to configure rpm ( http://errors.yoctoproject.org/Errors/Details/54813/). Ross On 8 March 2016 at 11:10, Burton, Ross wrote: > One problem - target rpmresolve now fails to link: > > | rpmresolve.c: In function 'getPackageStr': > | > /data/poky-master/t

Re: [OE-core] [PATCH 0/7 v4] Upgrade RPM to 5.4.16 (CVE HEAD)

2016-03-08 Thread Burton, Ross
One problem - target rpmresolve now fails to link: | rpmresolve.c: In function 'getPackageStr': | /data/poky-master/tmp-glibc/sysroots/qemux86/usr/include/rpm/rpmdb.h:1427:13: warning: implicit declaration of function 'rpmioFreePoolItem' [-Wimplicit-function-declaration] | ((rpmmi)rpmioFreePo

[OE-core] [PATCH 2/2] avahi-ui: add dbus to PACKAGECONFIG

2016-03-08 Thread Ross Burton
Now that avahi has a dbus PACKAGECONFIG we need to ensure it's enabled as otherwise the avahi-ui module won't build. Signed-off-by: Ross Burton --- meta/recipes-connectivity/avahi/avahi-ui_0.6.32.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes-connectivity/ava

[OE-core] [PATCH 1/2] avahi: add missing intltool-native build dependency

2016-03-08 Thread Ross Burton
Signed-off-by: Ross Burton --- meta/recipes-connectivity/avahi/avahi.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes-connectivity/avahi/avahi.inc b/meta/recipes-connectivity/avahi/avahi.inc index a054c24..81aad79 100644 --- a/meta/recipes-connectivity/avahi/a

Re: [OE-core] Debugging using sysroots and GDB

2016-03-08 Thread Burton, Ross
On 8 March 2016 at 10:01, Andreas Müller wrote: > How much time is really saved by stripping sysroot? > It was more about reducing the size of the sstate than build performance. It's a toggle for precisely this reason: some users may not care about the space saving but want to use the sysroot fo

Re: [OE-core] Debugging using sysroots and GDB

2016-03-08 Thread Andreas Müller
On Fri, Mar 4, 2016 at 12:20 PM, Richard Purdie wrote: > On Tue, 2016-02-23 at 15:09 +0100, Pascal Bach wrote: >> Currently debugging using sysroots seems to work as long as the work >> folder containing the original source is available. I am using sysroot for debugging too. I have no * INHERIT

Re: [OE-core] Debugging using sysroots and GDB

2016-03-08 Thread Pascal Bach
Hi Richard > Using this method is a supported approach. I'm a little surprised > .debug directories don't work. Have you tried just setting: > > set sysroot /home/projects/rootfs-dbg > set substitute-path /usr/src/debug /home/projects/rootfs > -bbg/usr/src/debug This doesn't seem to work (tried onl

Re: [OE-core] Status of M3

2016-03-08 Thread Hongxu Jia
On 03/04/2016 06:18 PM, Richard Purdie wrote: On Fri, 2016-03-04 at 09:41 +, Zhenhua Luo wrote: * meta-fsl-ppc breaks on eudev change (patch pending) * meta-fsl-ppc breakage blocks AB artefact publishing [Luo Zhenhua-B19537] The eudev patch is merged, http://git.yoctoproje ct.org/cgit/cgit.