[OE-core] [PATCH] oeqa.buildperf: use oe.path.remove()

2016-08-11 Thread Markus Lehtonen
Drop the self-baked force_rm() method. Signed-off-by: Markus Lehtonen <markus.lehto...@linux.intel.com> --- meta/lib/oeqa/buildperf/base.py| 15 --- meta/lib/oeqa/buildperf/basic_tests.py | 5 +++-- 2 files changed, 7 insertions(+), 13 deletions(-) diff --git a/me

Re: [OE-core] [PATCH v2] license: improve handling of license files with identical basenames

2016-08-08 Thread Markus Lehtonen
On Fri, 2016-08-05 at 19:24 +0300, Markus Lehtonen wrote: > Previously, find_license_files() in license.bbclass just blindly > assumed > that all different licenses specified in LIC_FILES_CHKSUM have unique > filenames. As a consequence, only the last one of these similarly > named

Re: [OE-core] [PATCH 2/3] hdparm: update LICENSE info

2016-08-08 Thread Markus Lehtonen
On Mon, 2016-08-08 at 12:23 +0100, Burton, Ross wrote: > > On 8 August 2016 at 12:13, Maxin B. John > wrote: > > -LICENSE = "BSD" > > +LICENSE = "BSD & GPLv2" > > LICENSE_wiper = "GPLv2" > > > I sent a patch for this one last week but forgot to update the bug, > sorry. >

[OE-core] [PATCH v2] license: improve handling of license files with identical basenames

2016-08-05 Thread Markus Lehtonen
ot; LIC_FILES_CHKSUM = "file://src/LICENCE;md5=d41d8cd98f00b204e9800998ecf8427e" you must specify: NO_GENERIC_LICENSE[my-custom-license] = "src/LICENCE" Signed-off-by: Markus Lehtonen <markus.lehto...@linux.intel.com> --- meta/classes/license.bbclass | 30 +++

Re: [OE-core] [PATCH] license: improve handling of license files with identical basenames

2016-08-05 Thread Markus Lehtonen
/deploy/licenses/util-linux-native: COPYING.1 Only in build2/tmp-glibc/deploy/licenses/util-linux-native: COPYING.2 On 05/08/16 19:04, "Markus Lehtonen" <openembedded-core-boun...@lists.openembedded.org on behalf of markus.lehto...@linux.intel.com> wrote: >Previously,

[OE-core] [PATCH] license: improve handling of license files with identical basenames

2016-08-05 Thread Markus Lehtonen
ot; LIC_FILES_CHKSUM = "file://src/LICENCE;md5=d41d8cd98f00b204e9800998ecf8427e" you must specify: NO_GENERIC_LICENSE[my-custom-license] = "src/LICENCE" Signed-off-by: Markus Lehtonen <markus.lehto...@linux.intel.com> --- meta/classes/license.bbclass | 30 +

[OE-core] [PATCH 2/2] package.bbclass: warn about files under symlinked directories

2016-08-04 Thread Markus Lehtonen
[YOCTO #9827] Signed-off-by: Markus Lehtonen <markus.lehto...@linux.intel.com> --- meta/classes/package.bbclass | 3 +++ 1 file changed, 3 insertions(+) diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass index df010e1..a9709ad 100644 --- a/meta/classes/package.b

[OE-core] [PATCH 1/2] package.bbclass: better handling of middle-path dir symlinks

2016-08-04 Thread Markus Lehtonen
ath. For example, defining FILES_{PN} = "symlink/file" causes a build failure because symlinks target 'foo/bar' is not included at all. [YOCTO #9827] Signed-off-by: Markus Lehtonen <markus.lehto...@linux.intel.com> --- meta/classes/package.bbclass | 30 ++-

[OE-core] [PATCH 0/2] package.bbclass: better handling of directory symlinks

2016-08-04 Thread Markus Lehtonen
: foomatic-filters: Security fixes CVE-2015-8327 (2016-08-01 12:11:09 +0100) are available in the git repository at: git://git.openembedded.org/openembedded-core-contrib marquiz/fixes-9827 http://git.openembedded.org/openembedded-core-contrib/log/?h=marquiz/fixes-9827 Markus Lehtonen (2

[OE-core] [PATCH v2 1/2] license.bbclass: do not process LICENSE_pn variables

2016-08-03 Thread Markus Lehtonen
The loop iterating over LICENSE_pn variables has never worked. In addition, the LICENSE variable is supposed to contain all licenses defined in LICENSE_pn variables. Thus, it is simpler just to use LICENSE as the data we get is essentially the same. [YOCTO #9499] Signed-off-by: Markus Lehtonen

[OE-core] [PATCH v2 2/2] license: simple verification of LICENSE_ values

2016-08-03 Thread Markus Lehtonen
SE_ values. It does do not do advanced parsing/matching of license expressions, but, checks that all licenses mentioned in LICENSE_ are also specified in LICENSE. A warning is printed if problems are found. Signed-off-by: Markus Lehtonen <markus.lehto...@linux.intel.com> --- meta/classes/b

[OE-core] [PATCH v2 0/2] Improved handling of LICENSE_ variables

2016-08-03 Thread Markus Lehtonen
: Security fixes CVE-2015-8327 (2016-08-01 12:11:09 +0100) are available in the git repository at: git://git.openembedded.org/openembedded-core-contrib marquiz/fixes-9499 http://git.openembedded.org/openembedded-core-contrib/log/?h=marquiz/fixes-9499 Markus Lehtonen (2): license.bbclass: do

[OE-core] [PATCH v3] Add ${S} to do_unpack[cleandirs]

2016-08-03 Thread Markus Lehtonen
of this patch. Version 3 of the patch fixes the issue by moving Python code outside the value assignment. Markus Lehtonen (1): base.bbclass wipe ${S} before unpacking source meta/classes/base.bbclass | 19 +-- 1 file changed, 9 insertions(+), 10 deletions(-) -- 2.6.6

[OE-core] [PATCH v3] base.bbclass wipe ${S} before unpacking source

2016-08-03 Thread Markus Lehtonen
Make sure that we have a pristine source tree after do_unpack. [YOCTO #9064] Signed-off-by: Markus Lehtonen <markus.lehto...@linux.intel.com> --- meta/classes/base.bbclass | 19 +-- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/meta/classes/base.bbclass

Re: [OE-core] [PATCH 09/28] oeqa.buildperf: add BuildPerfTest class

2016-06-30 Thread Markus Lehtonen
On Mon, 2016-06-27 at 13:12 +0100, Joshua G Lock wrote: > On Fri, 2016-06-24 at 13:37 +0300, Markus Lehtonen wrote: [...SNIP...] > > + > > +@staticmethod > > +def force_rm(path): > > +"""Equivalent of 'rm -rf'""" > >

[OE-core] [PATCH v2 00/28] Implement build performance test script in Python

2016-06-30 Thread Markus Lehtonen
erf-python-rewrite http://git.openembedded.org/openembedded-core-contrib/log/?h=marquiz/ build-perf-python-rewrite Markus Lehtonen (28): oeqa.utils.commands: Introduce get_bb_vars() oeqa.utils.commands: use get_bb_vars() in get_bb_var() oeqa.utils.commands: runCmd: gracefully han

[OE-core] [PATCH 27/28] oe-build-perf-test: add --out-dir command line argument

2016-06-24 Thread Markus Lehtonen
The new option defines the output directory for the test result data. Signed-off-by: Markus Lehtonen <markus.lehto...@linux.intel.com> --- scripts/oe-build-perf-test | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/oe-build-perf-test b/scripts/oe-build-per

[OE-core] [PATCH 26/28] oe-build-perf-test: enable locking

2016-06-24 Thread Markus Lehtonen
Makes it possible to guard that multiple tests are not run in parallel. Signed-off-by: Markus Lehtonen <markus.lehto...@linux.intel.com> --- scripts/oe-build-perf-test | 23 +++ 1 file changed, 23 insertions(+) diff --git a/scripts/oe-build-perf-test b/scripts/oe-buil

[OE-core] [PATCH 28/28] scripts/contrib: introduce build-perf-test-wrapper.sh

2016-06-24 Thread Markus Lehtonen
-by: Markus Lehtonen <markus.lehto...@linux.intel.com> --- scripts/contrib/build-perf-test-wrapper.sh | 102 + 1 file changed, 102 insertions(+) create mode 100755 scripts/contrib/build-perf-test-wrapper.sh diff --git a/scripts/contrib/build-perf-test-wrapper.sh b/s

[OE-core] [PATCH 21/28] oeqa.buildperf: archive build/conf into test results

2016-06-24 Thread Markus Lehtonen
Have the build/conf directory as part of test results. Signed-off-by: Markus Lehtonen <markus.lehto...@linux.intel.com> --- meta/lib/oeqa/buildperf/base.py | 8 1 file changed, 8 insertions(+) diff --git a/meta/lib/oeqa/buildperf/base.py b/meta/lib/oeqa/buildperf/base.py index 1

[OE-core] [PATCH 25/28] oe-build-perf-test: implement --globalres-file option

2016-06-24 Thread Markus Lehtonen
Using this option the script appends test results into a 'global results file'. A CSV-formatted output of the results. This option is to provide compatibility with the old build-perf-test.sh. Signed-off-by: Markus Lehtonen <markus.lehto...@linux.intel.com> --- meta/lib/oeqa/buildperf/b

[OE-core] [PATCH 18/28] oeqa.buildperf: add test Test2

2016-06-24 Thread Markus Lehtonen
Re-implement "test2" from build-perf-test.sh which measures 'bitbake core-image-sato -c rootfs'. Signed-off-by: Markus Lehtonen <markus.lehto...@linux.intel.com> --- meta/lib/oeqa/buildperf/basic_tests.py | 14 ++ 1 file changed, 14 insertions(+) diff --git a/meta/li

[OE-core] [PATCH 24/28] oeqa.buildperf: add git revision and branch to result data

2016-06-24 Thread Markus Lehtonen
it possible to run the build performance test script even if the top directory is not a git repository clone, for example. Signed-off-by: Markus Lehtonen <markus.lehto...@linux.intel.com> --- meta/lib/oeqa/buildperf/base.py | 32 1 file changed, 32 insertions(+)

[OE-core] [PATCH 23/28] oeqa.utils: add git module

2016-06-24 Thread Markus Lehtonen
operations can be added later. Signed-off-by: Markus Lehtonen <markus.lehto...@linux.intel.com> --- meta/lib/oeqa/utils/git.py | 38 ++ 1 file changed, 38 insertions(+) create mode 100644 meta/lib/oeqa/utils/git.py diff --git a/meta/lib/oeqa/utils/gi

[OE-core] [PATCH 16/28] oeqa.buildperf: add test Test1P2

2016-06-24 Thread Markus Lehtonen
Re-implement "test1_p2" from build-perf-test.sh which measures 'bitbake virtual/kernel'. Signed-off-by: Markus Lehtonen <markus.lehto...@linux.intel.com> --- meta/lib/oeqa/buildperf/basic_tests.py | 14 ++ 1 file changed, 14 insertions(+) diff --git a/meta/li

[OE-core] [PATCH 22/28] oe-build-perf-test: enable logging into file

2016-06-24 Thread Markus Lehtonen
Signed-off-by: Markus Lehtonen <markus.lehto...@linux.intel.com> --- scripts/oe-build-perf-test | 16 +++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/scripts/oe-build-perf-test b/scripts/oe-build-perf-test index 0a9fc9e..ca90f69 100755 --- a/scripts/oe-buil

[OE-core] [PATCH 20/28] oeqa.buildperf: add test Test4

2016-06-24 Thread Markus Lehtonen
Re-implement "test4" from build-perf-test.sh which measures eSDK metrics. Signed-off-by: Markus Lehtonen <markus.lehto...@linux.intel.com> --- meta/lib/oeqa/buildperf/basic_tests.py | 28 1 file changed, 28 insertions(+) diff --git a/meta/li

[OE-core] [PATCH 17/28] oeqa.buildperf: add test Test1P3

2016-06-24 Thread Markus Lehtonen
Re-implement "test1_p3" from build-perf-test.sh which measures 'bitbake core-image-sato' with rm_work enabled. Signed-off-by: Markus Lehtonen <markus.lehto...@linux.intel.com> --- meta/lib/oeqa/buildperf/basic_tests.py | 26 ++ 1 file changed, 26 insertion

[OE-core] [PATCH 19/28] oeqa.buildperf: add test Test3

2016-06-24 Thread Markus Lehtonen
Re-implement "test3" from build-perf-test.sh which measures bitbake parsing time. Signed-off-by: Markus Lehtonen <markus.lehto...@linux.intel.com> --- meta/lib/oeqa/buildperf/basic_tests.py | 20 1 file changed, 20 insertions(+) diff --git a/meta/li

[OE-core] [PATCH 13/28] oeqa.buildperf: add method for saving buildstats

2016-06-24 Thread Markus Lehtonen
Signed-off-by: Markus Lehtonen <markus.lehto...@linux.intel.com> --- meta/lib/oeqa/buildperf/base.py | 5 + 1 file changed, 5 insertions(+) diff --git a/meta/lib/oeqa/buildperf/base.py b/meta/lib/oeqa/buildperf/base.py index e29e9d1..c54b70c 100644 --- a/meta/lib/oeqa/buildperf/base.py

[OE-core] [PATCH 14/28] oeqa.buildperf: implement BuildPerfTestRunner class

2016-06-24 Thread Markus Lehtonen
The new class is responsible for actually running the tests and processing their results. This commit also adds a decorator function for adding new tests. No automatic test discovery, at least yet. Signed-off-by: Markus Lehtonen <markus.lehto...@linux.intel.com> --- meta/lib/oeqa/bui

[OE-core] [PATCH 12/28] oeqa.buildperf: add method for measuring file disk usage

2016-06-24 Thread Markus Lehtonen
Add a new method to BuildPerfTest class for measuring the disk usage of a file of directory. Signed-off-by: Markus Lehtonen <markus.lehto...@linux.intel.com> --- meta/lib/oeqa/buildperf/base.py | 19 +++ 1 file changed, 19 insertions(+) diff --git a/meta/lib/oeqa/bui

[OE-core] [PATCH 15/28] oeqa.buildperf: add test Test1P1

2016-06-24 Thread Markus Lehtonen
Re-implement "test1_p1" from build-perf-test.sh which measures 'bitbake core-image-sato'. Signed-off-by: Markus Lehtonen <markus.lehto...@linux.intel.com> --- meta/lib/oeqa/buildperf/__init__.py| 3 ++- meta/lib/oeqa/buildperf/basic_tests.py | 31

[OE-core] [PATCH 11/28] oeqa.buildperf: add method to log shell commands

2016-06-24 Thread Markus Lehtonen
Add new methods to BuildPerfTest class for running a shell command and logging its output. Signed-off-by: Markus Lehtonen <markus.lehto...@linux.intel.com> --- meta/lib/oeqa/buildperf/base.py | 5 + 1 file changed, 5 insertions(+) diff --git a/meta/lib/oeqa/buildperf/base.py b/meta/li

[OE-core] [PATCH 10/28] oeqa.buildperf: method for measuring system resource usage

2016-06-24 Thread Markus Lehtonen
' where name is supposed to function as a common key or id over test runs, making comparison and trending easier, for example. Legend is supposed to be a short human readable description. Signed-off-by: Markus Lehtonen <markus.lehto...@linux.intel.com> --- meta/lib/oeqa/buildperf/base.p

[OE-core] [PATCH 08/28] oeqa.buildperf: functionality to drop kernel caches

2016-06-24 Thread Markus Lehtonen
(with tee) is possible but not really dropping caches, yet. User can avoid giving the password by adding something like: ALL = NOPASSWD: /usr/bin/tee /proc/sys/vm/drop_caches to the system sudoers file. Signed-off-by: Markus Lehtonen <markus.lehto...@linux.intel.com> --- meta/lib/oeqa/bui

[OE-core] [PATCH 04/28] oeqa.utils.commands: runCmd: return stderr output, too

2016-06-24 Thread Markus Lehtonen
Useful if one wants to separate stdout and stderr. Signed-off-by: Markus Lehtonen <markus.lehto...@linux.intel.com> --- meta/lib/oeqa/utils/commands.py | 1 + 1 file changed, 1 insertion(+) diff --git a/meta/lib/oeqa/utils/commands.py b/meta/lib/oeqa/utils/commands.py index 171c64f..1

[OE-core] [PATCH 09/28] oeqa.buildperf: add BuildPerfTest class

2016-06-24 Thread Markus Lehtonen
The new class will be used as an abstract base class for build performance tests. This implementation contains some common functionality used in multiple tests, "copied" from the build-perf-test.sh shell script. Signed-off-by: Markus Lehtonen <markus.lehto...@linux.intel.com> --

[OE-core] [PATCH 07/28] oe-build-perf-test: introduce oeqa.buildperf module

2016-06-24 Thread Markus Lehtonen
Wireframe of a new Python module for containing build performance tests and utility functions. Signed-off-by: Markus Lehtonen <markus.lehto...@linux.intel.com> --- meta/lib/oeqa/buildperf/__init__.py | 12 1 file changed, 12 insertions(+) create mode 100644 meta/lib/oeqa/bui

[OE-core] [PATCH 06/28] oe-build-perf-test: add pre-run sanity check

2016-06-24 Thread Markus Lehtonen
The script will be required to be run in an initialized bitbake build environment. Signed-off-by: Markus Lehtonen <markus.lehto...@linux.intel.com> --- scripts/oe-build-perf-test | 28 1 file changed, 28 insertions(+) diff --git a/scripts/oe-build-perf-

[OE-core] [PATCH 01/28] oeqa.utils.commands: Introduce get_bb_vars()

2016-06-24 Thread Markus Lehtonen
A new function for getting values of multiple bitbake variables at the same time. Signed-off-by: Markus Lehtonen <markus.lehto...@linux.intel.com> --- meta/lib/oeqa/utils/commands.py | 33 + 1 file changed, 33 insertions(+) diff --git a/meta/lib/oeqa

[OE-core] [PATCH 05/28] scripts: introduce oe-build-perf-test

2016-06-24 Thread Markus Lehtonen
Initial wireframe for re-writing build-perf-test.sh in Python. Signed-off-by: Markus Lehtonen <markus.lehto...@linux.intel.com> --- scripts/oe-build-perf-test | 51 ++ 1 file changed, 51 insertions(+) create mode 100755 scripts/oe-build-per

[OE-core] [PATCH 02/28] oeqa.utils.commands: use get_bb_vars() in get_bb_var()

2016-06-24 Thread Markus Lehtonen
Get rid of duplicate code. Signed-off-by: Markus Lehtonen <markus.lehto...@linux.intel.com> --- meta/lib/oeqa/utils/commands.py | 20 +--- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/meta/lib/oeqa/utils/commands.py b/meta/lib/oeqa/utils/commands.py

[OE-core] [PATCH 00/28] Implement build performance test script in Python

2016-06-24 Thread Markus Lehtonen
/log/?h=marquiz/build-perf/python-rewrite Markus Lehtonen (28): oeqa.utils.commands: Introduce get_bb_vars() oeqa.utils.commands: use get_bb_vars() in get_bb_var() oeqa.utils.commands: runCmd: gracefully handle empty output oeqa.utils.commands: runCmd: return stderr output, too scripts

[OE-core] [PATCH 03/28] oeqa.utils.commands: runCmd: gracefully handle empty output

2016-06-24 Thread Markus Lehtonen
Don't crash if the caller redirects the command output e.g. into a file, causing the "output" seen by runCmd to be None. Signed-off-by: Markus Lehtonen <markus.lehto...@linux.intel.com> --- meta/lib/oeqa/utils/commands.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletion

Re: [OE-core] [PATCH v3] base.bbclass wipe ${S} before unpacking source

2016-06-22 Thread Markus Lehtonen
t; > BR Petter > > Petter Mabäcker > > Technux <pet...@technux.se> > www.technux.se > 2016-05-10 09:56 skrev Markus Lehtonen: > > Ping, > > > > Any comments on this one? > > > > Discussion on v2 of the patch: > > http://lists.openembedd

Re: [OE-core] [PATCH] license.bbclass: do not process LICENSE_pn variables

2016-05-30 Thread Markus Lehtonen
Hi Martin, On Fri, 2016-05-27 at 12:07 +0200, Martin Jansa wrote: > On Fri, May 27, 2016 at 09:26:10AM +0300, Markus Lehtonen wrote: > > The loop iterating over LICENSE_pn variables has never worked. In > > addition, the LICENSE variable is supposed to contain all licen

[OE-core] [PATCH] license.bbclass: do not process LICENSE_pn variables

2016-05-27 Thread Markus Lehtonen
The loop iterating over LICENSE_pn variables has never worked. In addition, the LICENSE variable is supposed to contain all licenses defined in LICENSE_pn variables. Thus, it is simpler just to use LICENSE as the data we get is essentially the same. [YOCTO #9499] Signed-off-by: Markus Lehtonen

Re: [OE-core] [PATCH v3] base.bbclass wipe ${S} before unpacking source

2016-05-10 Thread Markus Lehtonen
Ping, Any comments on this one? Discussion on v2 of the patch: http://lists.openembedded.org/pipermail/openembedded-core/2016-March/119295.html Cheers, Markus On 22/03/16 18:47, "Markus Lehtonen" <openembedded-core-boun...@lists.openembedded.org on behalf of

[OE-core] [PATCH] license.bbclass: make sure that image manifest dir exists

2016-04-21 Thread Markus Lehtonen
. This patch fixes that by creating the directory hierarchy inside write_deploy_manifest(). [YOCTO #9446] Signed-off-by: Markus Lehtonen <markus.lehto...@linux.intel.com> --- meta/classes/license.bbclass | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/meta/c

[OE-core] [PATCH] license.bbclass: postpone image license manifest creation until image postprocessing phase

2016-04-19 Thread Markus Lehtonen
This is a proposed fix to yocto bug #9446. It should fix the reported issue although is was not able to reproduce the problem. Markus Lehtonen (1): license.bbclass: do write_deploy_manifest in image postprocessing meta/classes/license.bbclass | 5 - 1 file changed, 4 insertions(+), 1

[OE-core] [PATCH] license.bbclass: do write_deploy_manifest in image postprocessing

2016-04-19 Thread Markus Lehtonen
Call write_deploy_manifest() in image postprocessing phase, instead of rootfs postprocessing. The reason being that not necessarily all do_deploy tasks are dependencies of the do_rootfs and we might miss something. [YOCTO #9446] Signed-off-by: Markus Lehtonen <markus.lehto...@linux.intel.

[OE-core] [PATCH] rpm: more verbose errors in rpmTempFile

2016-04-13 Thread Markus Lehtonen
This patch adds better error logging inside the rpm tempfile function in order to be able to better analyze a rare and very hard-to-reproduce failure in oe-selftest for rpm signing. [YOCTO #9416] Signed-off-by: Markus Lehtonen <markus.lehto...@linux.intel.com> --- ...more-verbose-error-l

[OE-core] [PATCH] externalsrc: avoid race in temporary git index file

2016-04-05 Thread Markus Lehtonen
-by: Markus Lehtonen <markus.lehto...@linux.intel.com> --- meta/classes/externalsrc.bbclass | 17 + 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/meta/classes/externalsrc.bbclass b/meta/classes/externalsrc.bbclass index dff6184..da7eb478 100644 --- a/meta/c

[OE-core] [PATCH 1/2] oe/patch: more detailed error reporting

2016-04-01 Thread Markus Lehtonen
Show the actual command that failed when raising a CmdError. Makes figuring out what actually failed much easier. [YOCTO #9344] Signed-off-by: Markus Lehtonen <markus.lehto...@linux.intel.com> --- meta/lib/oe/patch.py | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff

[OE-core] [PATCH 2/2] oe/patch: print cleaner error message when patch fails to apply

2016-04-01 Thread Markus Lehtonen
[YOCTO #9344] Signed-off-by: Markus Lehtonen <markus.lehto...@linux.intel.com> --- meta/lib/oe/patch.py | 14 +- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/meta/lib/oe/patch.py b/meta/lib/oe/patch.py index 6ab4427..9d36172 100644 --- a/meta/lib/oe/patch.py

Re: [OE-core] [PATCH v2] externalsrc.bbclas: remove nostamp from do_configure

2016-03-22 Thread Markus Lehtonen
Hi Paul, On 08/03/16 07:03, "Paul Eggleton" <paul.eggle...@linux.intel.com> wrote: >Hi Markus, > >On Thu, 25 Feb 2016 16:29:47 Markus Lehtonen wrote: >> Be a bit more intelligent than mindlessly re-compiling every time. >> Instead of using 'nostamp' flag

Re: [OE-core] [PATCH v2] base.bbclass wipe ${S} before unpacking source

2016-03-22 Thread Markus Lehtonen
On 22/03/16 09:47, "Richard Purdie" <richard.pur...@linuxfoundation.org> wrote: >On Tue, 2016-03-22 at 09:24 +0200, Markus Lehtonen wrote: >> Make sure that we have a pristine source tree after do_unpack. >> >> [YOCTO #9064] >> >> Signed-off-by:

[OE-core] [PATCH v3] base.bbclass wipe ${S} before unpacking source

2016-03-22 Thread Markus Lehtonen
Make sure that we have a pristine source tree after do_unpack. [YOCTO #9064] Signed-off-by: Markus Lehtonen <markus.lehto...@linux.intel.com> --- meta/classes/base.bbclass | 12 ++-- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/meta/classes/base.bbclass b/meta/c

[OE-core] [PATCH v3 0/2] Improve externalsrc task dependency tracking

2016-03-22 Thread Markus Lehtonen
9c200760cbbe322ed884729eb395f389c863e1c8: oe-buildenv-internal: Correct the sed expression which updates $PATH (2016-03-21 11:57:27 +) are available in the git repository at: git://git.openembedded.org/openembedded-core-contrib marquiz/devtool/fixes Markus Lehtonen (2): externalsrc: do not use do_configure[nostamp

[OE-core] [PATCH v3 1/2] externalsrc: do not use do_configure[nostamp] for git srctrees

2016-03-22 Thread Markus Lehtonen
-compilation (if any) after which the source tree is "stabilized" and no more re-compilations happen. [YOCTO #8853] Signed-off-by: Markus Lehtonen <markus.lehto...@linux.intel.com> --- meta/classes/externalsrc.bbclass | 31 +-- 1 file changed, 29 insertions

[OE-core] [PATCH v3 2/2] externalsrc: remove nostamp from do_configure

2016-03-22 Thread Markus Lehtonen
in the source tree are hashed. Subsequent builds are not significantly slower because (most) file hashes are found from the cache. [YOCTO #8853] Signed-off-by: Markus Lehtonen <markus.lehto...@linux.intel.com> --- meta/classes/externalsrc.bbclass | 2 +- 1 file changed, 1 insertion

[OE-core] [PATCH v2] base.bbclass wipe ${S} before unpacking source

2016-03-22 Thread Markus Lehtonen
Make sure that we have a pristine source tree after do_unpack. [YOCTO #9064] Signed-off-by: Markus Lehtonen <markus.lehto...@linux.intel.com> --- meta/classes/base.bbclass | 12 ++-- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/meta/classes/base.bbclass b/meta/c

[OE-core] [PATCH v2] Add ${S} to do_unpack[cleandirs]

2016-03-22 Thread Markus Lehtonen
Resending this second iteration of the patch. Markus Lehtonen (1): base.bbclass wipe ${S} before unpacking source meta/classes/base.bbclass | 12 ++-- 1 file changed, 2 insertions(+), 10 deletions(-) -- 2.6.2 -- ___ Openembedded-core

[OE-core] [RFC PATCH] oe/gpg_sign: use our own immplementation of pexpect

2016-03-21 Thread Markus Lehtonen
Implement a simple python-expect replacement in order to get rid of the (currently undocumented) external dependency. Pexpect is only used for rpm package signing. [YOCTO #9304] Signed-off-by: Markus Lehtonen <markus.lehto...@linux.intel.com> --- meta/lib/oe/gpg_sign.py

[OE-core] [RFC PATCH] rpm signing: replace python-pexpect with our own implementation

2016-03-21 Thread Markus Lehtonen
#9304] Markus Lehtonen (1): oe/gpg_sign: use our own immplementation of pexpect meta/lib/oe/gpg_sign.py | 104 +--- 1 file changed, 90 insertions(+), 14 deletions(-) -- 2.6.2 -- ___ Openembedded-core

Re: [OE-core] [jethro][PATCH 1/2] devtool: extract: copy kernel config to srctree

2016-03-19 Thread Markus Lehtonen
Hi, On 14/03/16 22:43, "Paul Eggleton" <openembedded-core-boun...@lists.openembedded.org on behalf of paul.eggle...@linux.intel.com> wrote: >From: Markus Lehtonen <markus.lehto...@linux.intel.com> > >This makes the correct kernel config to be used whe

[OE-core] [PATCH] devtool: change config symlink name to .config.new

2016-03-19 Thread Markus Lehtonen
Otherwise (if the symlink is named .config) kernel build considers source tree as dirty and fails. [YOCTO #9270] Signed-off-by: Markus Lehtonen <markus.lehto...@linux.intel.com> --- scripts/lib/devtool/standard.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/s

[OE-core] [PATCH v2] externalsrc: use shared stamp directory if B=S

2016-03-18 Thread Markus Lehtonen
_configure to be re-run in every build if that would not be necessary. [YOCTO #8950] [YOCTO #9237] Signed-off-by: Markus Lehtonen <markus.lehto...@linux.intel.com> --- meta/classes/externalsrc.bbclass | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --gi

Re: [OE-core] [PATCH v7 5/5] package_manager: sign IPK package feeds

2016-03-03 Thread Markus Lehtonen
On 02/03/16 16:47, "Ioan-Adrian Ratiu" wrote: >Create gpg signed ipk package feeds using the gpg backend if configured. > >Signed-off-by: Ioan-Adrian Ratiu >--- > meta/classes/sign_package_feed.bbclass | 17 - >

Re: [OE-core] [PATCH v7 2/5] gpg_sign: detach_sign: fix gpg > 2.1 STDIN file descriptor

2016-03-03 Thread Markus Lehtonen
On 02/03/16 16:47, "Ioan-Adrian Ratiu" wrote: >Starting from v2.1 passing passwords directly to gpg does not work >anymore [1], instead a loopback interface must be used otherwise >gpg >2.1 will error out with: >"gpg: signing failed: Inappropriate ioctl for device" >

Re: [OE-core] [PATCH v7 1/5] gpg_sign: add local ipk package signing functionality

2016-03-03 Thread Markus Lehtonen
On 02/03/16 16:47, "Ioan-Adrian Ratiu" wrote: >Implement ipk signing inside the sign_ipk bbclass using the gpg_sign >module and configure signing similar to how rpm does it. sign_ipk uses >gpg_sign's detach_sign because its functionality is identical to package >feed

[OE-core] [PATCH v2] externalsrc.bbclas: remove nostamp from do_configure

2016-02-25 Thread Markus Lehtonen
the files in the source tree are hashed. Subsequent builds are not significantly slower because (most) file hashes are found from the cache. [YOCTO #8853] Signed-off-by: Markus Lehtonen <markus.lehto...@linux.intel.com> --- meta/classes/externalsrc.bbclass | 25 +++-- 1

[OE-core] [PATCH v2] Improve externalsrc task dependency tracking

2016-02-25 Thread Markus Lehtonen
expansion operator (2016-02-22 20:42:34 +) are available in the git repository at: git://git.openembedded.org/openembedded-core-contrib marquiz/devtool/fixes Markus Lehtonen (1): externalsrc.bbclas: remove nostamp from do_configure meta/classes/externalsrc.bbclass | 25

Re: [OE-core] [PATCH] base.bbclass wipe ${S} before unpacking source

2016-02-24 Thread Markus Lehtonen
On Tue, 2016-02-23 at 18:23 +, Burton, Ross wrote: > > On 23 February 2016 at 18:01, Christopher Larson > wrote: > > db isn't the only recipe doing that. The fetcher unpack method > > knows where it's unpacking to, I think if anyone should be clearing > > out the

[OE-core] [PATCH] Wipe ${S} before unpacking sources

2016-02-23 Thread Markus Lehtonen
if we can remove # the entire ${S} in this case. What kind of special cases might we have? At least qemux86 core-image-sato builds fine for me. [YOCTO #9064] Markus Lehtonen (1): base.bbclass wipe ${S} before unpacking source meta/classes/base.bbclass | 8 +++- 1 file changed, 3 insert

[OE-core] [PATCH] base.bbclass wipe ${S} before unpacking source

2016-02-23 Thread Markus Lehtonen
Make sure that we have a pristine source tree after do_unpack. [YOCTO #9064] Signed-off-by: Markus Lehtonen <markus.lehto...@linux.intel.com> --- meta/classes/base.bbclass | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/meta/classes/base.bbclass b/meta/c

Re: [OE-core] [PATCH v6 0/4] IPK signing for the gpg_sign module

2016-02-23 Thread Markus Lehtonen
Hi, Resending as my I got a strange "Only members may post to the list." error yesterday... On Fri, 2016-02-19 at 17:45 +0200, Ioan-Adrian Ratiu wrote: > This patch series extends the gpg_sign module to support ipk signing. > > v6 implements Markus' feedback. The most notable change is the >

Re: [OE-core] [PATCH v6 2/4] gpg_sign: detach_sign: fix gpg > 2.1 STDIN file descriptor

2016-02-23 Thread Markus Lehtonen
Hi, Resending as my I got a strange "Only members may post to the list." error yesterday... On Fri, 2016-02-19 at 17:43 +0200, Ioan-Adrian Ratiu wrote: > Starting from v2.1 passing passwords directly to gpg does not work > anymore [1], instead a loopback interface must be used otherwise > gpg

Re: [OE-core] [PATCH v6 1/4] gpg_sign: add local ipk package signing functionality

2016-02-23 Thread Markus Lehtonen
Hi, Resending as my I got a strange "Only members may post to the list." error yesterday... On Fri, 2016-02-19 at 17:43 +0200, Ioan-Adrian Ratiu wrote: > Implement ipk signing inside the sign_ipk bbclass using the gpg_sign > module and configure signing similar to how rpm does it. sign_ipk >

Re: [OE-core] [PATCH] signing-keys: Make signing keys the only publisher of keys

2016-02-19 Thread Markus Lehtonen
Hi Randy, On Thu, 2016-02-18 at 07:38 -0800, Randy Witt wrote: > Previously the keys were put into the os-release package. The package > indexing code was also deploying the keys rather than only using the > keys. > > This change makes signing-keys.bb the only publisher of the keys and > also >

Re: [OE-core] [PATCH v2 2/2] devtool: update-recipe: create config fragment

2016-02-19 Thread Markus Lehtonen
On Thu, 2016-02-18 at 15:19 +, Christopher Larson wrote: > > > On Thu, Feb 18, 2016 at 7:19 AM Markus Lehtonen < > markus.lehto...@linux.intel.com> wrote: > > Create config fragment if the user makes modifications to kernel > > config. > > User may cha

Re: [OE-core] [PATCH v5 1/3] gpg_sign: add local ipk package signing functionality

2016-02-18 Thread Markus Lehtonen
On 18/02/16 11:28, "Ioan-Adrian Ratiu" <adrian.ra...@ni.com> wrote: >Hello > >On Thu, 18 Feb 2016 11:04:22 +0200 >Markus Lehtonen <markus.lehto...@linux.intel.com> wrote: > >> Hi, >> >> >> >> On 17/02/16 17:41, "

[OE-core] [PATCH v2 2/2] devtool: update-recipe: create config fragment

2016-02-18 Thread Markus Lehtonen
will be a symlink to ${B}/.config. We need to do this as devtool is not able to access ${B} because ${B} is set in a .bbappend in the workspace layer which is not parsed by devtool itself. [YOCTO #8999] Signed-off-by: Markus Lehtonen <markus.lehto...@linux.intel.com> --- scripts/lib/devtool/stand

[OE-core] [PATCH v2 1/2] devtool: sync: update kernel config

2016-02-18 Thread Markus Lehtonen
Copy kernel config is copied to the source directory at a later phase in _extract_source() so that it gets copied when devtool sync is done, too. Signed-off-by: Markus Lehtonen <markus.lehto...@linux.intel.com> --- scripts/lib/devtool/standard.py | 6 +- 1 file changed, 5 insertions

[OE-core] [PATCH v2 0/2] devtool: create kernel config fragment

2016-02-18 Thread Markus Lehtonen
-18 07:39:23 +) are available in the git repository at: git://git.openembedded.org/openembedded-core-contrib marquiz/devtool/kernel for you to fetch changes up to 08dcad8878e8715f29ff9b63c65f3e9c177117a4: devtool: update-recipe: create config fragment (2016-02-18 15:53:07 +0200) Mar

Re: [OE-core] [PATCH v5 3/3] package_manager: sign IPK package feeds

2016-02-18 Thread Markus Lehtonen
On 17/02/16 17:41, "Ioan-Adrian Ratiu" wrote: >Create gpg signed ipk package feeds using the gpg backend if configured. > >Signed-off-by: Ioan-Adrian Ratiu >--- >

Re: [OE-core] [PATCH v5 2/3] gpg_sign: detached_sign: add signature type support

2016-02-18 Thread Markus Lehtonen
On 17/02/16 17:41, "Ioan-Adrian Ratiu" wrote: >Add support for multiple types of signatures (binary or ascii) >in export_pubkey(). There is no change in behaviour for the function, >the previous implicit

Re: [OE-core] [PATCH v5 1/3] gpg_sign: add local ipk package signing functionality

2016-02-18 Thread Markus Lehtonen
Hi, On 17/02/16 17:41, "Ioan-Adrian Ratiu" wrote: >Implement local ipk signing logic inside the gpg backend and add a new >bbclass which configures signing similar to how rpm does it. > >The ipk signing

[OE-core] [PATCH] cml1.bbclass: fix do_menuconfig

2016-02-17 Thread Markus Lehtonen
The functionality got broken after bitbake commit 8bf33a8e92c0e188fa392030025756196c96fcbb which disabled the (bitbake) variable expansion inside python functions. Signed-off-by: Markus Lehtonen <markus.lehto...@linux.intel.com> --- meta/classes/cml1.bbclass | 3 ++- 1 file changed, 2 inse

[OE-core] [PATCH v2] nss: define RPATH variable for nss-native

2016-02-15 Thread Markus Lehtonen
of the sysroot instead of the host file system. This particular problem has probably been unnoticed as most users are likely to have nss libraries installed on their host system. In this case everything most likely work as expected. [YOCTO #9041] Signed-off-by: Markus Lehtonen <markus.le

Re: [OE-core] [PATCH] nss: define RPATH variable

2016-02-15 Thread Markus Lehtonen
On Sat, 2016-02-13 at 05:12 +, Christopher Larson wrote: > On Fri, Feb 12, 2016 at 12:06 PM Markus Lehtonen < > markus.lehto...@linux.intel.com> wrote: > > Otherwise the nss libs do not get any RPATH/RUNPATH. Consequently, > > the > > .so dependencies of nss

[OE-core] [PATCH] nss: define RPATH variable

2016-02-12 Thread Markus Lehtonen
of the sysroot instead of the host file system. This particular problem has probably been unnoticed as nss-native is seldom used and/or most users are likely to have nss libraries installed on their host system. In this case everything most likely work as expected. [YOCTO #9041] Signed-off-by: Markus

[OE-core] [PATCH 0/5] sstate: use oe.gpg_sign for signing/verifying

2016-02-10 Thread Markus Lehtonen
repository at: git://git.openembedded.org/openembedded-core-contrib marquiz/sstate for you to fetch changes up to 10ac62ab77a862a4efdcf68d20dd7331bfbc6f7a: sstate.bbclass: use oe.gpg_sign for gpg signing (2016-02-10 16:02:18 +0200) Markus Lehtonen (5): oe/gpg_sign: add verify() method oe

[OE-core] [PATCH 3/5] sign_rpm.bbclass: do not store key details in signer instance

2016-02-10 Thread Markus Lehtonen
Refactor the LocalSigner class. Do not store keyid or passphrase file in the signer object as they are only needed for some of the methods. For example, the newly added verify() method does not need any key parameters and export_pubkey only uses keyid. Signed-off-by: Markus Lehtonen <markus.le

[OE-core] [PATCH 4/5] oe/gpg_sign: add 'passphrase' argument to detach_sign method

2016-02-10 Thread Markus Lehtonen
This allows directly giving the passphrase, instead of reading from a file. [YOCTO #9006] Signed-off-by: Markus Lehtonen <markus.lehto...@linux.intel.com> --- meta/lib/oe/gpg_sign.py | 30 -- 1 file changed, 20 insertions(+), 10 deletions(-) diff --git a/meta/

[OE-core] [PATCH 2/5] oe/gpg_sign: add 'armor' argument to detach_sign()

2016-02-10 Thread Markus Lehtonen
[YOCTO #9006] Signed-off-by: Markus Lehtonen <markus.lehto...@linux.intel.com> --- meta/lib/oe/gpg_sign.py | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/meta/lib/oe/gpg_sign.py b/meta/lib/oe/gpg_sign.py index a4f310e..16a2364 100644 --- a/meta/lib/oe/gpg_sign.py

[OE-core] [PATCH 1/5] oe/gpg_sign: add verify() method

2016-02-10 Thread Markus Lehtonen
A new method for verifying detached signatures. [YOCTO #9006] Signed-off-by: Markus Lehtonen <markus.lehto...@linux.intel.com> --- meta/lib/oe/gpg_sign.py | 10 ++ 1 file changed, 10 insertions(+) diff --git a/meta/lib/oe/gpg_sign.py b/meta/lib/oe/gpg_sign.py index 821787e..a

[OE-core] [PATCH 5/5] sstate.bbclass: use oe.gpg_sign for gpg signing

2016-02-10 Thread Markus Lehtonen
[YOCTO #9006] Signed-off-by: Markus Lehtonen <markus.lehto...@linux.intel.com> --- meta/classes/sstate.bbclass | 38 +- 1 file changed, 17 insertions(+), 21 deletions(-) diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass index 0

Re: [OE-core] [PATCH 2/3] oe/gpg_sign: check for python-pexpect when using local signing

2016-02-08 Thread Markus Lehtonen
On Fri, 2016-02-05 at 14:31 +, Burton, Ross wrote: > > On 5 February 2016 at 14:00, Markus Lehtonen < > markus.lehto...@linux.intel.com> wrote: > > +msgs.append("Please install python-pexpect that is > > needed by lcocal gpg signing.") > >

<    1   2   3   4   5   6   7   >