[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 --- 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 +++ b/meta/lib/oe/gpg_sign.py

[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 --- meta

[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 0/2] Bugfixes to package signing

2016-02-08 Thread Markus Lehtonen
This patchset contains two small bugfixes to rpm package and package feed signing. Markus Lehtonen (2): oe/gpg_sign: fix incorrect variable name sign_package_feed.bbclass: fix task dependencies meta/classes/sign_package_feed.bbclass | 1 + meta/lib/oe/gpg_sign.py| 2 +- 2

[OE-core] [PATCH 2/2] sign_package_feed.bbclass: fix task dependencies

2016-02-08 Thread Markus Lehtonen
This dependency was already added to sign_rpm.bbclass. However, the same dep needs to be added to sign_package_feed.bbclass, too, to cover the case where rpm signing is disabled but package feed signing is enabled. Signed-off-by: Markus Lehtonen --- meta/classes/sign_package_feed.bbclass | 1

[OE-core] [PATCH 1/2] oe/gpg_sign: fix incorrect variable name

2016-02-08 Thread Markus Lehtonen
Prevents crash in signing if GPG_PATH is defined. Signed-off-by: Markus Lehtonen --- meta/lib/oe/gpg_sign.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/lib/oe/gpg_sign.py b/meta/lib/oe/gpg_sign.py index 55abad8..821787e 100644 --- a/meta/lib/oe/gpg_sign.py +++ b

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.") > >

[OE-core] [PATCH 1/3] package signing: do actual sanity checking in the signer class

2016-02-05 Thread Markus Lehtonen
The configuration needed for different signing backends may vary (although we currently support only one backend). Thus, do the actual sanity checking of the configuration there. Signed-off-by: Markus Lehtonen --- meta/classes/sign_package_feed.bbclass | 14 ++ meta/classes

[OE-core] [PATCH 3/3] package signing: do sanity checking in an event handler

2016-02-05 Thread Markus Lehtonen
This way, one does not get a ton of identical error messages. But, only one error message before all the recipes are parsed. Signed-off-by: Markus Lehtonen --- meta/classes/sign_package_feed.bbclass | 26 -- meta/classes/sign_rpm.bbclass | 26

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

2016-02-05 Thread Markus Lehtonen
Signed-off-by: Markus Lehtonen --- meta/lib/oe/gpg_sign.py | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/meta/lib/oe/gpg_sign.py b/meta/lib/oe/gpg_sign.py index 8832ea9..ea35564 100644 --- a/meta/lib/oe/gpg_sign.py +++ b/meta/lib/oe/gpg_sign.py @@ -17,13 +17,17

[OE-core] [PATCH 0/3] signing: enhance sanity checking

2016-02-05 Thread Markus Lehtonen
in the git repository at: git://git.openembedded.org/openembedded-core-contrib marquiz/rpmsign for you to fetch changes up to 643834ad064be34e2ad4218b436420cd5a1bc520: package signing: do sanity checking in an event handler (2016-02-05 15:32:29 +0200) Markus Lehtonen (3): package

[OE-core] [PATCH] ncurses: use closing curly brackets in FILES_${PN}-tools variable

2016-02-04 Thread Markus Lehtonen
This patch removes a workaround (needed for bitbake python parser) where closing curly brackets were replaced by ascii code '\x7d'. This commit requires a bitbake version with the "data_smart: simple bracket matching inside python expressions" patch applied. Signed-off

[OE-core] [PATCH] ncurses: use closing curly brackets

2016-02-04 Thread Markus Lehtonen
any other recipe in git.openembedded.org repositories or the layer repositories in git.yoctoproject.org (master branches). Markus Lehtonen (1): ncurses: use closing curly brackets in FILES_${PN}-tools variable meta/recipes-core/ncurses/ncurses.inc | 4 ++-- 1 file changed, 2 insertions(+), 2

[OE-core] [PATCH 0/3] correctly clean ${B] when externalsrc and {B}=${S}

2016-01-29 Thread Markus Lehtonen
: update to 3.4.2 (2016-01-26 22:48:57 +) are available in the git repository at: contrib-git marquiz/externalsrc for you to fetch changes up to 58bb2b3bd3195af2715e8dd594326dfa73fc72e9: externalsrc: use shared CONFIGURESTAMPFILE if B=S (2016-01-29 16:53:19 +0200) Markus Lehtonen (3

[OE-core] [PATCH 2/3] Make sure that the directory for CONFIGURESTAMPFILE exists

2016-01-29 Thread Markus Lehtonen
Signed-off-by: Markus Lehtonen --- meta/classes/autotools.bbclass | 1 + meta/classes/base.bbclass | 1 + 2 files changed, 2 insertions(+) diff --git a/meta/classes/autotools.bbclass b/meta/classes/autotools.bbclass index 7bf510b..7f60c2a 100644 --- a/meta/classes/autotools.bbclass +++ b

[OE-core] [PATCH 3/3] externalsrc: use shared CONFIGURESTAMPFILE if B=S

2016-01-29 Thread Markus Lehtonen
'work-shared' if ${B}=${S}. In addition, do_configure will depend on changes of this stamp file. As a result, do_configure is re-run and the build dir is cleaned correctly if a rebuild for different MACHINE is done. [YOCTO #8950] Signed-off-by: Markus Lehtonen --- meta/classes/externals

[OE-core] [PATCH 1/3] autotools.bbclass: use oe_runmake instead of ${MAKE}

2016-01-29 Thread Markus Lehtonen
Use oe_runmake like in base.bbclass so that EXTRA_OEMAKE will be respected. Signed-off-by: Markus Lehtonen --- meta/classes/autotools.bbclass | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/meta/classes/autotools.bbclass b/meta/classes/autotools.bbclass index 1400b44

[OE-core] [PATCH] autotools.bbclass: use oe_runmake instead of ${MAKE}

2016-01-29 Thread Markus Lehtonen
Use oe_runmake like in base.bbclass so that EXTRA_OEMAKE will be respected. Signed-off-by: Markus Lehtonen --- meta/classes/autotools.bbclass | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/meta/classes/autotools.bbclass b/meta/classes/autotools.bbclass index 1400b44

[OE-core] [PATCH] buildhistory: fix the check for existence of a git repo

2016-01-27 Thread Markus Lehtonen
on which was causing unwanted behavior. This patch changes buildhistory.bbclass to check for any file named '.git' which fixes these problems. [YOCTO #8911] Signed-off-by: Markus Lehtonen --- meta/classes/buildhistory.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion

[OE-core] [PATCH 2/2] devtool: create-workspace: define separate cache for task file checksums

2016-01-26 Thread Markus Lehtonen
the fetcher local file checksum cache. Also, this new devtool-specific cache is not used after the workspace layer is disabled. [YOCTO #8853] Signed-off-by: Markus Lehtonen --- scripts/devtool | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/devtool b/scripts/devtool index 2d57da0

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

2016-01-26 Thread Markus Lehtonen
epository at: git://git.openembedded.org/openembedded-core-contrib marquiz/devtool/fixes Markus Lehtonen (2): externalsrc.bbclas: remove nostamp from do_configure devtool: create-workspace: define separate cache for task file checksums meta/classes/externalsrc.bbclass | 3 +-- scripts/devtool

[OE-core] [PATCH 1/2] externalsrc.bbclas: remove nostamp from do_configure

2016-01-26 Thread Markus Lehtonen
mpilations happen. During the first bitbake run preparing of the task runqueue may take much longer because all 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: Mark

[OE-core] [PATCH v2] New lib module for handling GPG signing

2016-01-25 Thread Markus Lehtonen
signing). Currently, only local signing with gpg is implemented. [YOCTO #8755] Signed-off-by: Markus Lehtonen --- meta/classes/sign_package_feed.bbclass | 6 +++ meta/classes/sign_rpm.bbclass | 47 + meta/lib/oe/gpg_sign.py| 76

[OE-core] [PATCH v2] New lib module for signing

2016-01-25 Thread Markus Lehtonen
slightly modified. Markus Lehtonen (1): New lib module for handling GPG signing meta/classes/sign_package_feed.bbclass | 6 +++ meta/classes/sign_rpm.bbclass | 47 + meta/lib/oe/gpg_sign.py| 76 ++ meta/lib/oe

Re: [OE-core] [PATCH 3/3] oe.gpg_sign: support obs-signd

2016-01-22 Thread Markus Lehtonen
Hi Mark, (CC'd the mailing list which was accidentally dropped from my previous email) On 21/01/16 17:21, "Mark Hatle" wrote: >On 1/21/16 5:20 AM, Markus Lehtonen wrote: >> On Wed, 2016-01-13 at 12:28 +0200, Markus Lehtonen wrote: >>> On Tue, 2016-01-12 at 1

[OE-core] [PATCH 1/2] build-perf-test.sh: more generic timing function

2016-01-21 Thread Markus Lehtonen
Make it possible to time also other than bitbake commands. The name of the log file is changed from bitbake.log to commands.log. Signed-off-by: Markus Lehtonen --- scripts/contrib/build-perf-test.sh | 17 ++--- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/scripts

[OE-core] [PATCH 2/2] build-perf-test.sh: add eSDK testing

2016-01-21 Thread Markus Lehtonen
examining the results. Signed-off-by: Markus Lehtonen --- scripts/contrib/build-perf-test.sh | 24 1 file changed, 24 insertions(+) diff --git a/scripts/contrib/build-perf-test.sh b/scripts/contrib/build-perf-test.sh index 105b54b..f1f44d3 100755 --- a/scripts/contrib

[OE-core] [PATCH] oeqa/selftest/signing: use temporary rpmdb

2016-01-20 Thread Markus Lehtonen
Use temporary rpmdb when importing gpg public key and checking rpm signature. This patch should fix a problem where test_signing_packages() sometimes fails with "pmdb: BDB1540 configured environment flags incompatible with existing environment" Signed-off-by: Markus Lehtonen --- met

Re: [OE-core] [PATCH 3/3] oe.gpg_sign: support obs-signd

2016-01-13 Thread Markus Lehtonen
Hi, On Tue, 2016-01-12 at 18:24 +0200, Markus Lehtonen wrote: > Hi Mark, > > Thank you for your review! Comments below. > > On Mon, 2016-01-11 at 10:33 -0600, Mark Hatle wrote: > > On 1/11/16 10:13 AM, Markus Lehtonen wrote: > > > Implement support for remote sign

Re: [OE-core] [PATCH 3/3] oe.gpg_sign: support obs-signd

2016-01-12 Thread Markus Lehtonen
Hi Mark, Thank you for your review! Comments below. On Mon, 2016-01-11 at 10:33 -0600, Mark Hatle wrote: > On 1/11/16 10:13 AM, Markus Lehtonen wrote: > > Implement support for remote signing using obs-signd. It is now possible > > to sign both RPM packages and package feeds w

[OE-core] [PATCH 0/3] Support remote RPM signing

2016-01-11 Thread Markus Lehtonen
://git.openembedded.org/openembedded-core-contrib marquiz/rpmsign for you to fetch changes up to 3ac8c3e5ab0dd6cab1438efd4484e0e313e55d8d: oe.gpg_sign: support obs-signd (2016-01-11 18:00:19 +0200) Markus Lehtonen (3): sign_rpm.bbclass: fix task dependencies New lib module for handling GPG signing

[OE-core] [PATCH 2/3] New lib module for handling GPG signing

2016-01-11 Thread Markus Lehtonen
: Markus Lehtonen --- meta/classes/sign_package_feed.bbclass | 6 +++ meta/classes/sign_rpm.bbclass | 47 + meta/lib/oe/gpg_sign.py| 76 ++ meta/lib/oe/package_manager.py | 31 +- meta/recipes-core/meta

[OE-core] [PATCH 3/3] oe.gpg_sign: support obs-signd

2016-01-11 Thread Markus Lehtonen
s to setup the signing server and the configure the 'sign' client command on the build host. The *_PASSPHRASE_FILE settings are not used when the obssign backend is enabled. [YOCTO #8755] Signed-off-by: Markus Lehtonen --- meta/classes/sign_package_feed.bbclass | 5 +++- meta/clas

[OE-core] [PATCH 1/3] sign_rpm.bbclass: fix task dependencies

2016-01-11 Thread Markus Lehtonen
do_rootfs task needs to depend on signing-keys:do_export_public_keys. The rpm signing public key needs to be present in order to prevent a crash because it is imported into the rootfs rpmdb before rootfs creation starts. Signed-off-by: Markus Lehtonen --- meta/classes/sign_rpm.bbclass | 1 + 1

Re: [OE-core] [PATCH 2/5] kernel.bbclass: copy .config instead of moving

2015-12-18 Thread Markus Lehtonen
On 18/12/15 16:18, "Richard Purdie" wrote: >On Fri, 2015-12-18 at 14:39 +0200, Markus Lehtonen wrote: >> On 18/12/15 14:22, "Richard Purdie" < >> richard.pur...@linuxfoundation.org> wrote: >> > On Fri, 2015-12-18 at 10:39 +0200, Markus Le

Re: [OE-core] [PATCH 2/5] kernel.bbclass: copy .config instead of moving

2015-12-18 Thread Markus Lehtonen
Hi Richard, On 18/12/15 14:22, "Richard Purdie" wrote: >On Fri, 2015-12-18 at 10:39 +0200, Markus Lehtonen wrote: >> Copy kernel .config from ${S} to ${B}, instead of moving it. This >> prevents mangling the source tree, which is undesirable e.g. when >> externa

[OE-core] [PATCH 4/5] cml1.bbclass: copy .config to S if externalsr is in use

2015-12-18 Thread Markus Lehtonen
This makes it easier to track changes made to config. Signed-off-by: Markus Lehtonen --- meta/classes/cml1.bbclass | 5 + 1 file changed, 5 insertions(+) diff --git a/meta/classes/cml1.bbclass b/meta/classes/cml1.bbclass index 95cf584..a95a2bf 100644 --- a/meta/classes/cml1.bbclass +++ b

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

2015-12-18 Thread Markus Lehtonen
6 12:11:26 +) are available in the git repository at: git://git.openembedded.org/openembedded-core-contrib marquiz/devtool/kernel for you to fetch changes up to 2adc35e3129be74afe28dc3087ea44665a80221c: devtool: update-recipe: create kernel config fragment (2015-12-17 14:34:15 +0200

[OE-core] [PATCH 3/5] devtool: extract: cleanup srctree

2015-12-18 Thread Markus Lehtonen
Some bitbake tasks, notably do_kernel_metadata et al. dirty the sourcetree. Run git clean in order to get rid of the confusing and possibly outdated extra files. Signed-off-by: Markus Lehtonen --- scripts/lib/devtool/standard.py | 13 - 1 file changed, 12 insertions(+), 1 deletion

[OE-core] [PATCH 5/5] devtool: update-recipe: create kernel config fragment

2015-12-18 Thread Markus Lehtonen
local-files' directory if that is present in the source tree). This patch also changes the devtool 'extract' command to create the .config.orig file at the source tree creation time. [YOCTO #6658] Signed-off-by: Markus Lehtonen --- scripts/lib/devtool/standard.py | 50 +

[OE-core] [PATCH 1/5] devtool: extract: use the correct datastore for builddir

2015-12-18 Thread Markus Lehtonen
Signed-off-by: Markus Lehtonen --- scripts/lib/devtool/standard.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/lib/devtool/standard.py b/scripts/lib/devtool/standard.py index a5e81f3..43fce11 100644 --- a/scripts/lib/devtool/standard.py +++ b/scripts/lib/devtool

[OE-core] [PATCH 2/5] kernel.bbclass: copy .config instead of moving

2015-12-18 Thread Markus Lehtonen
Copy kernel .config from ${S} to ${B}, instead of moving it. This prevents mangling the source tree, which is undesirable e.g. when externalsrc is used. Signed-off-by: Markus Lehtonen --- meta/classes/kernel.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta

[OE-core] [PATCH 2/2] devtool: extract: update SRCTREECOVEREDTASKS for kernel

2015-12-03 Thread Markus Lehtonen
so because 'do_patch' which is a dependency of 'do_kernel_configme' is not being run. We now store .config in the srctree and 'do_configure' task is able to run successfully. Signed-off-by: Markus Lehtonen --- scripts/lib/devtool/standard.py | 3 ++- 1 file cha

[OE-core] [PATCH 0/2] devtool: kernel config fixes

2015-12-03 Thread Markus Lehtonen
15:35:42 +0200) Markus Lehtonen (2): devtool: extract: copy kernel config to srctree devtool: extract: update SRCTREECOVEREDTASKS for kernel scripts/lib/devtool/standard.py | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) -- 2.1.4

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

2015-12-03 Thread Markus Lehtonen
This makes the correct kernel config to be used when building kernel from srctree (extrernalsrc). If no kernel config is present in the builddir 'do_configure' task copies .config from the srctree. Signed-off-by: Markus Lehtonen --- scripts/lib/devtool/standard.py | 8 1 fi

Re: [OE-core] [PATCH] oeqa/selftest/signing: New test for Signing packages in the package feeds.

2015-10-19 Thread Markus Lehtonen
Hi, On Fri, 2015-10-16 at 18:16 +0300, Daniel Istrate wrote: > [YOCTO # 8134] This test verifies features introduced in bug 8134. > > It requires as resources the files from meta-selftest/files/signing: > For 'gpg --gen-key' the used input was: > key: RSA > key-size: 2048 > key-valid: 0 > realnam

[OE-core] [PATCH 5/5] package signing: automatically export public keys

2015-10-16 Thread Markus Lehtonen
Automatically export public key(s) of the signing key(s) from the gpg keyring. Adds a new simple recipe that does the actual task of exporting the keys. This patch makes the RPM_GPG_PUBKEY and PACKAGE_FEED_GPG PUBKEY settings obsolete. Signed-off-by: Markus Lehtonen --- meta/classes

[OE-core] [PATCH 2/5] sign_rpm.bbclass: make RPM_GPG_NAME a mandatory setting

2015-10-16 Thread Markus Lehtonen
Simplifies the configuration. Makes way for the removal of RPM_GPG_PUBKEY setting and possible future implementation of a separate signing server support. Also, moves the configuration sanity checking into a separate function. Signed-off-by: Markus Lehtonen --- meta/classes/sign_rpm.bbclass

[OE-core] [PATCH 3/5] Add new bbclass for package feed signing

2015-10-16 Thread Markus Lehtonen
After this change signed package feeds should be enabled by adding INERIT += "sign_package_feed" instead of definining PACKAGE_FEED_SIGN="1". Signed-off-by: Markus Lehtonen --- meta/classes/sign_package_feed.bbclass | 24 1 file changed, 24 insert

[OE-core] [PATCH 4/5] package_manager: fail if signed feeds are enabled for ipk or dpkg

2015-10-16 Thread Markus Lehtonen
Signed package feeds are not yet implemented for these package formats. Signed-off-by: Markus Lehtonen --- meta/lib/oe/package_manager.py | 4 1 file changed, 4 insertions(+) diff --git a/meta/lib/oe/package_manager.py b/meta/lib/oe/package_manager.py index 5c2130b..964fddc 100644 --- a

[OE-core] [PATCH 5/5] Automatically export public keys used for package(feed) signing

2015-10-16 Thread Markus Lehtonen
Automatically export public key(s) from the gpg keyring. Adds a new simple recipe that does the actual task of exporting the keys. This patch makes the RPM_GPG_PUBKEY and PACKAGE_FEED_GPG PUBKEY settings obsolete. Signed-off-by: Markus Lehtonen --- meta/classes/sign_package_feed.bbclass

[OE-core] [PATCH 0/5] Rework rpm signing

2015-10-16 Thread Markus Lehtonen
rg/openembedded-core-contrib marquiz/rpmsign http://git.openembedded.org/openembedded-core-contrib/log/?h=marquiz/rpmsign Markus Lehtonen (5): sign_rpm.bbclass: be more verbose in case of error sign_rpm.bbclass: make RPM_GPG_NAME a mandatory setting Add new bbclass for package feed signing p

[OE-core] [PATCH 1/5] sign_rpm.bbclass: be more verbose in case of error

2015-10-16 Thread Markus Lehtonen
Signed-off-by: Markus Lehtonen --- meta/classes/sign_rpm.bbclass | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/meta/classes/sign_rpm.bbclass b/meta/classes/sign_rpm.bbclass index 23aea42..39f877a 100644 --- a/meta/classes/sign_rpm.bbclass +++ b/meta/classes

[OE-core] [PATCH 2/2] package_manager: support GPG_PATH variable

2015-10-14 Thread Markus Lehtonen
If defined, use GPG_PATH as the gpg home directory when signing package feeds. This setting is only used by package_manager if package feed singning has been enabled, i.e. PACKAGE_FEED_SIGN="1". Signed-off-by: Markus Lehtonen --- meta/lib/oe/package_manager.py | 7 +-- 1 file

[OE-core] [PATCH 0/2] Implement GPG_PATH variable

2015-10-14 Thread Markus Lehtonen
git repository at: git://git.openembedded.org/openembedded-core-contrib marquiz/rpmsign http://git.openembedded.org/openembedded-core-contrib/log/?h=marquiz/rpmsign Markus Lehtonen (2): sign_rpm.bbclass: introduce GPG_PATH variable package_manager: support GPG_PATH variable meta/classes

[OE-core] [PATCH 1/2] sign_rpm.bbclass: introduce GPG_PATH variable

2015-10-14 Thread Markus Lehtonen
This bitbake configuration variable can be used to define the gpg home directory. Signed-off-by: Markus Lehtonen --- meta/classes/sign_rpm.bbclass | 4 1 file changed, 4 insertions(+) diff --git a/meta/classes/sign_rpm.bbclass b/meta/classes/sign_rpm.bbclass index 0aa4cd8..23aea42 100644

[OE-core] [PATCH v2] os-release: fix do_compile() when RPM signing is enabled

2015-10-05 Thread Markus Lehtonen
do_compile() task failed when RPM signing was in use. Signed-off-by: Markus Lehtonen --- meta/recipes-core/os-release/os-release.bb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meta/recipes-core/os-release/os-release.bb b/meta/recipes-core/os-release/os-release.bb

[OE-core] [PATCH] os-release: fix do_compile() when RPM signing is enabled

2015-10-04 Thread Markus Lehtonen
do_compile() task failed when RPM signing was in use. Signed-off-by: Markus Lehtonen --- meta/recipes-core/os-release/os-release.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes-core/os-release/os-release.bb b/meta/recipes-core/os-release/os-release.bb index

[OE-core] [PATCH] devtool: modify: use correct local files directory name

2015-10-01 Thread Markus Lehtonen
The name of the directory for local source files under srctree is 'oe-local-files', not 'local-files'. Fixes a bug that slipped through in b7ab82485e4514e07ab8a76e554da27ddc92e6c0. Signed-off-by: Markus Lehtonen --- scripts/lib/devtool/standard.py | 2 +- 1 file change

[OE-core] [PATCH] devtool: update-recipe: enable var history tracking

2015-09-30 Thread Markus Lehtonen
Enable variable history tracking so that the variables are updated in the correct file - i.e. in the file they are already defined. [YOCTO #7715] Signed-off-by: Markus Lehtonen --- scripts/lib/devtool/__init__.py | 4 ++-- scripts/lib/devtool/standard.py | 2 +- 2 files changed, 3 insertions

Re: [OE-core] [PATCH v3 10/10] devtool: modify: make bitbake use local files from srctree

2015-09-30 Thread Markus Lehtonen
Hi, On Wed, 2015-09-30 at 10:21 +0100, Paul Eggleton wrote: > On Wednesday 30 September 2015 12:01:13 Markus Lehtonen wrote: > > Hi, > > > > On Mon, 2015-09-28 at 14:48 +0100, Paul Eggleton wrote: > > > Hi Markus, > > > > > > On Thursday

Re: [OE-core] [PATCH v3 10/10] devtool: modify: make bitbake use local files from srctree

2015-09-30 Thread Markus Lehtonen
Hi, On Mon, 2015-09-28 at 14:48 +0100, Paul Eggleton wrote: > Hi Markus, > > On Thursday 24 September 2015 14:53:07 Markus Lehtonen wrote: > > This change makes it possible to have local files (non-remote SRC_URI > > files, i.e. files that are located in the "recipe spa

Re: [OE-core] [PATCH v3 03/10] oe-selftest: devtool: add method for checking workspace dir

2015-09-29 Thread Markus Lehtonen
On Tue, 2015-09-29 at 13:57 +0300, Markus Lehtonen wrote: > Hi, > > > On Mon, 2015-09-28 at 15:25 -0500, Leonardo Sandoval wrote: > > > > On 09/24/2015 06:53 AM, Markus Lehtonen wrote: > > > In order to remove some code duplication. > >

Re: [OE-core] [PATCH v3 03/10] oe-selftest: devtool: add method for checking workspace dir

2015-09-29 Thread Markus Lehtonen
Hi, On Mon, 2015-09-28 at 15:25 -0500, Leonardo Sandoval wrote: > > On 09/24/2015 06:53 AM, Markus Lehtonen wrote: > > In order to remove some code duplication. > > > > Signed-off-by: Markus Lehtonen > > --- > > me

[OE-core] [PATCH v3 05/10] oe-selftest: devtool: add method for checking repo status

2015-09-24 Thread Markus Lehtonen
New method for checking the status of the working tree of a repository. Signed-off-by: Markus Lehtonen --- meta/lib/oeqa/selftest/devtool.py | 87 --- 1 file changed, 35 insertions(+), 52 deletions(-) diff --git a/meta/lib/oeqa/selftest/devtool.py b/meta

[OE-core] [PATCH v3 07/10] devtool: update_recipe: refactor patch generation

2015-09-24 Thread Markus Lehtonen
Implement new function that handles patch file generation. The new function also does the discovery of new, updated and deleted patches. Signed-off-by: Markus Lehtonen --- scripts/lib/devtool/standard.py | 119 1 file changed, 72 insertions(+), 47

[OE-core] [PATCH v3 01/10] recipeutils: implement get_recipe_local_files()

2015-09-24 Thread Markus Lehtonen
Signed-off-by: Markus Lehtonen --- meta/lib/oe/recipeutils.py | 16 1 file changed, 16 insertions(+) diff --git a/meta/lib/oe/recipeutils.py b/meta/lib/oe/recipeutils.py index 35b88d3..56056db 100644 --- a/meta/lib/oe/recipeutils.py +++ b/meta/lib/oe/recipeutils.py @@ -336,6

[OE-core] [PATCH v3 03/10] oe-selftest: devtool: add method for checking workspace dir

2015-09-24 Thread Markus Lehtonen
In order to remove some code duplication. Signed-off-by: Markus Lehtonen --- meta/lib/oeqa/selftest/devtool.py | 63 +++ 1 file changed, 24 insertions(+), 39 deletions(-) diff --git a/meta/lib/oeqa/selftest/devtool.py b/meta/lib/oeqa/selftest/devtool.py

[OE-core] [PATCH v3 10/10] devtool: modify: make bitbake use local files from srctree

2015-09-24 Thread Markus Lehtonen
l files into srctree. [YOCTO #7602] Signed-off-by: Markus Lehtonen --- scripts/lib/devtool/standard.py | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/scripts/lib/devtool/standard.py b/scripts/lib/devtool/standard.py index 6b85c8c..78b0d27 100644 --- a/scripts/lib

[OE-core] [PATCH v3 08/10] devtool: file mover function that creates target dir

2015-09-24 Thread Markus Lehtonen
Helper function for replacing a pattern like: target_dir = os.path.dirname(target) bb.utils.mkdirhier(target_dir) shutil.move(source, target) Signed-off-by: Markus Lehtonen --- scripts/lib/devtool/standard.py | 16 +++- 1 file changed, 11 insertions(+), 5 deletions(-) diff

[OE-core] [PATCH v3 02/10] oe.patch.GitApplyTree: add paths argument to extractPatches

2015-09-24 Thread Markus Lehtonen
Makes it possible to define which paths are included in the patches. Signed-off-by: Markus Lehtonen --- meta/lib/oe/patch.py | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/meta/lib/oe/patch.py b/meta/lib/oe/patch.py index 7441214..2bf501e 100644 --- a/meta/lib/oe

[OE-core] [PATCH v3 04/10] oe-selftest: devtool: add method for checking srctree repo

2015-09-24 Thread Markus Lehtonen
Removes some code duplication. Signed-off-by: Markus Lehtonen --- meta/lib/oeqa/selftest/devtool.py | 49 ++- 1 file changed, 18 insertions(+), 31 deletions(-) diff --git a/meta/lib/oeqa/selftest/devtool.py b/meta/lib/oeqa/selftest/devtool.py index b8b872c

[OE-core] [PATCH v3 06/10] devtool: update-recipe: add new patches in correct order

2015-09-24 Thread Markus Lehtonen
When adding multiple new patches append them to SRC_URI in correct order so that they apply correctly. Signed-off-by: Markus Lehtonen --- scripts/lib/devtool/standard.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/lib/devtool/standard.py b/scripts/lib/devtool

[OE-core] [PATCH v3 00/10] devtool: improve handling of local source files

2015-09-24 Thread Markus Lehtonen
use local files from srctree (2015-09-24 14:29:31 +0300) -------- Markus Lehtonen (10): recipeutils: implement get_recipe_local_files() oe.patch.GitApplyTree: add paths argument to extractPatches oe-selftest: devtool: add method fo

[OE-core] [PATCH v3 09/10] devtool: better support for local source files

2015-09-24 Thread Markus Lehtonen
directly. Thus, 'oe-local-file' directory is ignored in patch generation when doing update-recipe, even if committed to Git. This functionality is only enabled if the 'oe-local-files' directory is present in srctree. [YOCTO #7602] Signed-off-by: Markus Lehtonen --- meta/

[OE-core] [PATCH] devtool: upgrade: use shutil.move instead of os.rename

2015-09-22 Thread Markus Lehtonen
Rename fails over filesystem boundaries. Signed-off-by: Markus Lehtonen --- scripts/lib/devtool/upgrade.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/lib/devtool/upgrade.py b/scripts/lib/devtool/upgrade.py index e74e795..18e010c 100644 --- a/scripts/lib/devtool

[OE-core] [PATCH] devtool: second fix for running from a different directory

2015-09-21 Thread Markus Lehtonen
"devtool extract zlib ./zlib" would always create create srctree in ${TOPDIR}/zlib, independent of the users cwd. Signed-off-by: Markus Lehtonen --- scripts/devtool| 5 + scripts/lib/devtool/__init__.py| 6 +- scripts/lib/devtool/build-image.py | 6 +++--- s

Re: [OE-core] [PATCH] rpm: search for gpg if gpg2 is not found

2015-09-17 Thread Markus Lehtonen
Hi Gary, On Tue, 2015-09-15 at 07:11 -0600, Gary Thomas wrote: > On 2015-09-15 07:05, Markus Lehtonen wrote: > > Some (host) systems only have a binary named 'gpg' (e.g. Fedora) while > > some only have 'gpg2' (Ubuntu) and others have both of them (openSUSE)

Re: [OE-core] [PATCH] rpm: search for gpg if gpg2 is not found

2015-09-17 Thread Markus Lehtonen
Hi Mark, On Tue, 2015-09-15 at 08:58 -0500, Mark Hatle wrote: > On 9/15/15 8:05 AM, Markus Lehtonen wrote: > > Some (host) systems only have a binary named 'gpg' (e.g. Fedora) while > > some only have 'gpg2' (Ubuntu) and others have both of them (openSUSE)

[OE-core] [PATCH] rpm: search for gpg if gpg2 is not found

2015-09-15 Thread Markus Lehtonen
for the GnuPG binary in PATH. This makes possible to create signed RPM packages on different host platforms, using the GnuPG binary of the host, without the need to explicitly define the gpg binary in bitbake configuration (via GPG_BIN variable). [YOCTO #8134] Signed-off-by: Markus Lehtonen

[OE-core] [PATCH] devtool: update-recipe: get srcuri parameters with decodeurl()

2015-09-11 Thread Markus Lehtonen
Use already existing bb.fetch.decodeurl() for getting the parameters for a URI. This is more fault tolerant and maintainable. Signed-off-by: Markus Lehtonen --- scripts/lib/devtool/standard.py | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/scripts/lib/devtool

[OE-core] [PATCH 3/4] kernel.bbclass: do not mv/link sources when externalsrc enabled

2015-09-08 Thread Markus Lehtonen
rnalsrc is enabled. Instead of moving the source tree, STAGING_KERNEL_DIR will be a symlink to it. [YOCTO #6658] Signed-off-by: Markus Lehtonen --- meta/classes/kernel.bbclass | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/meta/classes/kernel.bbclass b/me

[OE-core] [PATCH 2/4] kernel-yocto.bbclass: do_kernel_metadata depends on do_unpack

2015-09-08 Thread Markus Lehtonen
Make sure that 'do_unpack' is executed before 'do_kernel_metadata'. Enabling externalsrc for kernel disables 'do_validate_branches' task which caused 'do_kernel_metadata' to fail as the dependency chain to 'do_unpack' got broken. [YOCTO #6658]

[OE-core] [PATCH 1/4] extrernalsrc.bbclass: treat kernel meta like local source

2015-09-08 Thread Markus Lehtonen
kernel-meta always available. [YOCTO #6658] Signed-off-by: Markus Lehtonen --- meta/classes/externalsrc.bbclass | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/meta/classes/externalsrc.bbclass b/meta/classes/externalsrc.bbclass index 8f7f479..37c6320 100644 --- a

[OE-core] [PATCH 0/4] devtool: better support for kernel

2015-09-08 Thread Markus Lehtonen
) Markus Lehtonen (4): extrernalsrc.bbclass: treat kernel meta like local source kernel-yocto.bbclass: do_kernel_metadata depends on do_unpack kernel.bbclass: do not mv/link sources when externalsrc enabled devtool: modify: enable do_shared_workdir for kernel meta

[OE-core] [PATCH 4/4] devtool: modify: enable do_shared_workdir for kernel

2015-09-08 Thread Markus Lehtonen
Do not put 'do_shared_workdir' into SRCTREECOVEREDTASKS when creating bbappend for kernel packages. This will allow building packages that depend on the shared build artifacts of kernel. [YOCTO #6658] Signed-off-by: Markus Lehtonen --- scripts/lib/devtool/standard.py | 2 +- 1 file

[OE-core] [PATCH] externalsrc.bbclass: better filtering of cleandirs

2015-09-08 Thread Markus Lehtonen
ny (expanded) values pointing to our source tree get removed. Signed-off-by: Markus Lehtonen --- meta/classes/externalsrc.bbclass | 18 +++--- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/meta/classes/externalsrc.bbclass b/meta/classes/externalsrc.bbclass index 8f7f479..

[OE-core] [PATCH] devtool: update-recipe: better 'auto' mode

2015-09-01 Thread Markus Lehtonen
7907] Signed-off-by: Markus Lehtonen --- scripts/lib/devtool/standard.py | 34 +++--- 1 file changed, 27 insertions(+), 7 deletions(-) diff --git a/scripts/lib/devtool/standard.py b/scripts/lib/devtool/standard.py index de7afd9..6f3bb8e 100644 --- a/scripts/lib/devto

Re: [OE-core] [PATCH v2 0/4] Sign packages in RPM feeds

2015-08-28 Thread Markus Lehtonen
Hi, On 27/08/15 12:31, "Markus Lehtonen" wrote: >Second iteration of my patchset. I tried to address the issues pointed >out by >Mark: >1. The gpg key is not imported to the (temporary) rpm databases used by > createrepo. Instead, createrepo is patched to ignore s

Re: [OE-core] [PATCH 3/3] package_manager: support for signed RPM package feeds

2015-08-28 Thread Markus Lehtonen
Hi, On 27/08/15 15:03, "Mark Hatle" wrote: >On 8/26/15 11:27 PM, Markus Lehtonen wrote: >> Hi Mark, >> >> On 26/08/15 18:10, "Mark Hatle" wrote: >> >>> On 8/26/15 6:18 AM, Markus Lehtonen wrote: >>>> This change makes it

Re: [OE-core] [PATCH 3/3] devtool: run kernel dependencies

2015-08-27 Thread Markus Lehtonen
Hi, On 27/08/15 15:45, "Paul Eggleton" wrote: >Hi Markus, > >On Thursday 27 August 2015 14:49:50 Markus Lehtonen wrote: >> The kernel package needs "kern-tools-native" in order for it's >> do_kernel_metadata. Thus, devtool extract for kernel in a p

[OE-core] [PATCH 0/3] devtool: improvements to kernel support

2015-08-27 Thread Markus Lehtonen
This patchset contains few patches to slightly improve the support for kernel packages in devtool. The last of which is an ugly hack - to be removed after a future tinfoil rewrite when running arbitrary bitbake task functions becomes possible. Markus Lehtonen (3): devtool: make required tasks

[OE-core] [PATCH 1/3] devtool: make required tasks be run in kernel build

2015-08-27 Thread Markus Lehtonen
Set SRCTREECOVEREDTASKS appropriately in the workspace .bbappend file for kernel recipes. This tries to ensure that all needed tasks (esp. configure and patch) are run when building the kernel - tasks which would normally be disabled by externalsrc.bbclass. [YOCTO #6658] Signed-off-by: Markus

[OE-core] [PATCH 3/3] devtool: run kernel dependencies

2015-08-27 Thread Markus Lehtonen
kern-tools-native -c populate_sysroot" in our case. This patch implements an ugly workaround for that problem, basically by hardcoding this dependency and running the required bitbake task(s) before tinfoil is initialized. [YOCTO #6658] Signed-off-by: Markus Lehtonen --- scripts/lib

[OE-core] [PATCH 2/3] devtool: extract: correct initial rev for kernel packages

2015-08-27 Thread Markus Lehtonen
Change handling of kernel packages so that the "initial rev" is parsed correctly. Also, the devtool-specific git tags (devtool-base and devtoo-patched) are now generated for kernel packages as well. [YOCTO #6658] Signed-off-by: Markus Lehtonen --- scripts/lib/devtool/standa

[OE-core] [PATCH v2 4/4] package_manager: support for signed RPM package feeds

2015-08-27 Thread Markus Lehtonen
file containing the passphrase for the secret signing key 4. 'PACKAGE_FEED_GPG_PUBKEY = ""' pointing to the corresponding public key (in "armor" format) The user may define "GPG_CMD" in the bitbake configuration in order to specify a specific the gpg binary/wrapper to use f

[OE-core] [PATCH v2 0/4] Sign packages in RPM feeds

2015-08-27 Thread Markus Lehtonen
GPG_BIN which can be used to define the gpg binary used for signing. 3. The filename of the public keys (published with the package feed and depoyed into the target rootfs as part of os-release package) is now postfixed with "-${DISTRO_VERSION}". [YOCTO #8134] *** BLURB HERE *

[OE-core] [PATCH v2 1/4] createrepo: disable RPM signature validation

2015-08-27 Thread Markus Lehtonen
installing packages from the feed). The original idea idea of this patch is from Mark Hatle . [YOCTO #8134] Signed-off-by: Markus Lehtonen --- ...dumpMetadata-disable-signature-validation.patch | 31 ++ .../createrepo/createrepo_0.4.11.bb| 17 ++-- 2

[OE-core] [PATCH v2 2/4] package_rpm: support signing of rpm packages

2015-08-27 Thread Markus Lehtonen
pg binary/wrapper to use. The sign_rpm.bbclass implements a simple scenario of locally signing the packages. It could be replaced by a more advanced class that would utilize a separate signing server for signing the packages, for example. [YOCTO #8134] Signed-off-by: Markus L

[OE-core] [PATCH v2 3/4] os-release: add the public package-signing key

2015-08-27 Thread Markus Lehtonen
Adds the public package-signing key into this package. It will be installed under /etc/pki/rpm-gpg if the RPM signing feature is used. The key file is not currently directly used by anything in the target system. It is merely there for possible later use. [YOCTO #8134] Signed-off-by: Markus

<    1   2   3   4   5   6   7   >