Re: [OE-core] [PATCH] openssl: fix for CVE-2010-5298

2014-05-21 Thread Douglas Royds
On 19/05/14 19:00, rongqing...@windriver.com wrote: From: Yue Tao yue@windriver.com Race condition in the ssl3_read_bytes function in s3_pkt.c in OpenSSL through 1.0.1g, when SSL_MODE_RELEASE_BUFFERS is enabled, allows remote attackers to inject data across sessions or cause a denial of

Re: [OE-core] possible content for site.conf?

2017-03-22 Thread Douglas Royds
We use it as a form of default local.conf, making it a consistent configuration for building our layer. By combining this with a "bb" wrapper script, nothing needs to be sourced, and there is no build preparation at all - our workflow is simply 1. Check out our layer 2. Type `bb thing` The

[OE-core] [PATCH 0/6] Reproducible: Find the git repo in WORKDIR/git or S first

2018-09-11 Thread Douglas Royds
he SRC_URI. We go looking for the git checkout under the WORKDIR as a last resort. Douglas Royds (6): Reproducible: Tidy class description Reproducible: Refactor: get_source_date_epoch_from_youngest_file() Reproducible: Rename ambiguous "path" var to sourcedir or workdir as approp

[OE-core] [PATCH 2/6] Reproducible: Refactor: get_source_date_epoch_from_youngest_file()

2018-09-11 Thread Douglas Royds
Signed-off-by: Douglas Royds --- meta/classes/reproducible_build.bbclass | 59 ++--- 1 file changed, 33 insertions(+), 26 deletions(-) diff --git a/meta/classes/reproducible_build.bbclass b/meta/classes/reproducible_build.bbclass index 4e8850fb83..e118cfde01 100644

[OE-core] [PATCH 1/6] Reproducible: Tidy class description

2018-09-11 Thread Douglas Royds
Tidy whitespace, delete commented-out lines Signed-off-by: Douglas Royds --- meta/classes/reproducible_build.bbclass | 41 +++-- 1 file changed, 18 insertions(+), 23 deletions(-) diff --git a/meta/classes/reproducible_build.bbclass b/meta/classes/reproducible_build.bbclass

[OE-core] [PATCH 4/6] Reproducible: Find the git repo in WORKDIR/git or S first

2018-09-11 Thread Douglas Royds
he SRC_URI. We go looking for the git checkout under the WORKDIR as a last resort. Signed-off-by: Douglas Royds --- meta/classes/reproducible_build.bbclass | 33 - 1 file changed, 22 insertions(+), 11 deletions(-) diff --git a/meta/classes/reproducible_build.bbclass b/me

[OE-core] [PATCH 3/6] Reproducible: Rename ambiguous "path" var to sourcedir or workdir as appropriate

2018-09-11 Thread Douglas Royds
Signed-off-by: Douglas Royds --- meta/classes/reproducible_build.bbclass | 37 + 1 file changed, 19 insertions(+), 18 deletions(-) diff --git a/meta/classes/reproducible_build.bbclass b/meta/classes/reproducible_build.bbclass index e118cfde01..3f3790dfe3 100644

[OE-core] [PATCH 6/6] Reproducible: Consistent debug logging

2018-09-11 Thread Douglas Royds
a source_date_epoch for kernels as well. Signed-off-by: Douglas Royds --- meta/classes/reproducible_build.bbclass | 19 +++ 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/meta/classes/reproducible_build.bbclass b/meta/classes/reproducible_build.bbclass index a81f249790..4f3680a376

[OE-core] [PATCH 5/6] Reproducible: Don't enforce existence of ${S} dir

2018-09-11 Thread Douglas Royds
Unnecessary. Signed-off-by: Douglas Royds --- meta/classes/reproducible_build.bbclass | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/meta/classes/reproducible_build.bbclass b/meta/classes/reproducible_build.bbclass index 42cb37b042..a81f249790 100644 --- a/meta

Re: [OE-core] ✗ patchtest: failure for Reproducible: Find the git repo in WORKDIR/git or S first

2018-09-11 Thread Douglas Royds
(at my end) to have correctly set the headers, eg. from path 6/6: From: Douglas Royds To: openembedded-core@lists.openembedded.org Cc: Douglas Royds Subject: [PATCH 6/6] Reproducible: Consistent debug logging Date: Wed, 12 Sep 2018 13:27:07 +1200 Message-Id

[OE-core] [PATCH] Reproducible build: Comment only: do_deploy_source_date_epoch task

2018-11-04 Thread Douglas Royds
Once the value of SOURCE_DATE_EPOCH is determined, it is stored in the recipe's SDE_FILE. If none of the existing mechanisms are suitable, replace the do_deploy_source_date_epoch task with recipe-specific functionality to write the appropriate SOURCE_DATE_EPOCH into the SDE_FILE. ---

Re: [OE-core] glibc binary reproducibility

2018-10-03 Thread Douglas Royds
I had found and updated my patch for the ld.so and libpthread.so cases as well, but you beat me to it ... Much better solution, thanks. On 04/10/18 00:25, Richard Purdie wrote: I don't think your patch will fix all the cases sadly. I did find another technique that works:

[OE-core] [PATCH] glibc: Fix non-IA reproducibility for shared libraries

2018-10-02 Thread Douglas Royds
Compute a relative path to build-arm-tait-linux-gnueabi/csu/ for each library subdirectory. Signed-off-by: Douglas Royds --- meta/conf/bitbake.conf| 2 +- ...34-reproducible-makehack-shared-libs.patch | 48 +++ meta/recipes-core/glibc/glibc_2.28.bb

Re: [OE-core] glibc binary reproducibility

2018-10-02 Thread Douglas Royds
On 03/10/18 05:58, Richard Purdie wrote: On Thu, 2018-09-27 at 12:18 +1200, Douglas Royds wrote: When I build glibc in two different places, I get non-reproducible results - a 4-byte difference: $ cmp -l ~/workspace/upstream[12]/build/tmp/work/armv5e-tait-linux- gnueabi/glibc/2.28-r0/package

Re: [OE-core] glibc binary reproducibility

2018-10-02 Thread Douglas Royds
On 03/10/18 15:37, Douglas Royds wrote: I added "realpath" to the HOSTTOOLS, and precomputed a relative path to the csu/ dir in git/Makerules. csu-objpfx-relative = $(shell realpath --relative-to=`pwd` $(csu-objpfx))/ Seems to do the trick. I'll send a patch(ish)

Re: [OE-core] glibc binary reproducibility

2018-09-26 Thread Douglas Royds
The relocatable link is defined in glibc csu/Makefile line 125 On 27/09/18 12:18, Douglas Royds wrote: When I build glibc in two different places, I get non-reproducible results - a 4-byte difference: $ cmp -l ~/workspace/upstream[12]/build/tmp/work/armv5e-tait-linux-gnueabi/glibc

[OE-core] glibc binary reproducibility

2018-09-26 Thread Douglas Royds
When I build glibc in two different places, I get non-reproducible results - a 4-byte difference: $ cmp -l ~/workspace/upstream[12]/build/tmp/work/armv5e-tait-linux-gnueabi/glibc/2.28-r0/package/lib/libc-2.28.so 1259181  71 172 1259182  27 304 1259183 152  77 1259184 363 243

[OE-core] [PATCH] cmake.bbclass: make cleaning of build directory on configure optional

2019-01-16 Thread Douglas Royds
From: Sam Nobs The do_configure task is sensitive to changes in recipes and configuration files. This can be time consuming because cmake.bbclass deletes the ${B} directory at the beginning of the do_configure task. CMake figures out what to do when it's run again, so unless your cmake files

Re: [OE-core] [PATCH] cmake.bbclass: make cleaning of build directory on configure optional

2019-01-16 Thread Douglas Royds
On 17/01/19 12:01 PM, Richard Purdie wrote: On Thu, 2019-01-17 at 11:51 +1300, Douglas Royds wrote: From: Sam Nobs The do_configure task is sensitive to changes in recipes and configuration files. This can be time consuming because cmake.bbclass deletes the ${B} directory at the beginning

Re: [OE-core] [PATCH] cmake.bbclass: make cleaning of build directory on configure optional

2019-01-17 Thread Douglas Royds
On 18/01/19 12:59 PM, Randy MacLeod wrote: On 1/16/19 7:38 PM, Douglas Royds wrote: On 17/01/19 12:01 PM, Richard Purdie wrote: On Thu, 2019-01-17 at 11:51 +1300, Douglas Royds wrote: From: Sam Nobs The do_configure task is sensitive to changes in recipes and configuration files. This can

[OE-core] [PATCH 1/3] attr: Move attr-only patches into the attr/ subdir

2018-12-13 Thread Douglas Royds
These are not shared patches between attr and acl. Signed-off-by: Douglas Royds --- .../Remove-the-attr.5-man-page-moved-to-man-pages.patch | 0 .../attr/{files => attr}/Remove-the-section-2-man-pages.patch | 0 2 files changed, 0 insertions(+), 0 deletions(-) rename meta/reci

[OE-core] [PATCH 3/3] acl: reproducibility: copy configure.ac into ${S} at patch-time

2018-12-13 Thread Douglas Royds
Previously, we were unpacking our local configure.ac file directly into ${S} at unpack time, which meant that the SOURCE_DATE_EPOCH was being set to the local timestamp of that file. Signed-off-by: Douglas Royds --- meta/recipes-support/attr/acl_2.2.52.bb | 7 ++- 1 file changed, 6

[OE-core] [PATCH 2/3] attr: Move unique-to-attr run-ptest into attr/ subdir

2018-12-13 Thread Douglas Royds
There is a separate, wildly different run-ptest for acl. This is not a shared script. Signed-off-by: Douglas Royds --- meta/recipes-support/attr/{files => attr}/run-ptest | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename meta/recipes-support/attr/{files => attr}/run-ptes

Re: [OE-core] [PATCH 1/2] acl: trivial: whitespace only

2018-12-17 Thread Douglas Royds
of that? Several will just disappear, for example ptest support was removed. Ross On Fri, 14 Dec 2018 at 01:20, Douglas Royds wrote: Signed-off-by: Douglas Royds --- meta/recipes-support/attr/acl_2.2.52.bb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/meta/recipes-support

Re: [OE-core] [PATCH] libpam: reproducibility: Fix host umask leakage at patch-time

2018-12-20 Thread Douglas Royds
we should wait until others emerge. On 21/12/18 2:04 AM, Burton, Ross wrote: Why is this libpam specific and not a general issue that the umask needs to be set in patch.bbclass? Ross On Thu, 20 Dec 2018 at 05:41, Douglas Royds wrote: The patch file pam-security-abstract-securetty

Re: [OE-core] [PATCH] libpam: reproducibility: Fix host umask leakage at patch-time

2018-12-20 Thread Douglas Royds
On 21/12/18 9:37 AM, Burton, Ross wrote: On Thu, 20 Dec 2018 at 20:26, Douglas Royds wrote: libpam is unusual in having a patch that creates an entirely new file (tty_secure.c). If that patch eventually goes, then this umask setting can go as well. I haven't come across any other cases

Re: [OE-core] [PATCH] patch: reproducibility: Fix host umask leakage

2018-12-20 Thread Douglas Royds
I haven't sent this as a "v2", because of the change of subject line. On 21/12/18 12:10 PM, Douglas Royds wrote: Some patch files create entirely new files, so their permissions are subject to the host umask. If such a file is later installed into a package with no change in p

[OE-core] [PATCH] patch: reproducibility: Fix host umask leakage

2018-12-20 Thread Douglas Royds
-abstract-securetty-handling.patch creates a new file (tty_secure.c). This file is later copied into the -dbg package with no change in permissions. Signed-off-by: Douglas Royds --- meta/classes/patch.bbclass | 1 + 1 file changed, 1 insertion(+) diff --git a/meta/classes/patch.bbclass b/meta/classes

[OE-core] [PATCH 1/2] acl: trivial: whitespace only

2018-12-13 Thread Douglas Royds
Signed-off-by: Douglas Royds --- meta/recipes-support/attr/acl_2.2.52.bb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/meta/recipes-support/attr/acl_2.2.52.bb b/meta/recipes-support/attr/acl_2.2.52.bb index 6bc77d868d..7f5883a5d7 100644 --- a/meta/recipes-support/attr

[OE-core] [PATCH 2/2] acl ptest: Also RDEPENDS on e2fsprogs-mke2fs

2018-12-13 Thread Douglas Royds
The tests use mkfs.ext3 Signed-off-by: Douglas Royds --- meta/recipes-support/attr/acl_2.2.52.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes-support/attr/acl_2.2.52.bb b/meta/recipes-support/attr/acl_2.2.52.bb index 7f5883a5d7..4c30da8182 100644 --- a/meta

[OE-core] [PATCH] boost-context: Reproducibility: Set .file section for all *_elf_gas.S files

2018-11-21 Thread Douglas Royds
/boostorg/context/issues/91 Signed-off-by: Douglas Royds --- ..._64_sysv_elf_gas.S-set-.file-section.patch | 48 ...lity-add-file-directive-to-assembler.patch | 234 ++ meta/recipes-support/boost/boost_1.68.0.bb| 2 +- 3 files changed, 235 insertions(+), 49 deletions

[OE-core] [PATCH 4/8] openssl: Strip perl version from installed ptest configdata.pm file

2018-11-27 Thread Douglas Royds
Signed-off-by: Douglas Royds --- meta/recipes-connectivity/openssl/openssl_1.1.1a.bb | 1 + 1 file changed, 1 insertion(+) diff --git a/meta/recipes-connectivity/openssl/openssl_1.1.1a.bb b/meta/recipes-connectivity/openssl/openssl_1.1.1a.bb index deeb865a6f..042e023de5 100644 --- a/meta

[OE-core] [PATCH 2/8] ptest: Optionally strip build host tool info from installed files

2018-11-27 Thread Douglas Royds
on the build host distro. Optionally strip lines from installed PTEST_BUILD_HOST_FILES using an extended regex pattern defined in PTEST_BUILD_HOST_PATTERN. This has no effect on the on-target ptest. Signed-off-by: Douglas Royds --- meta/classes/ptest.bbclass | 5 + 1 file changed, 5 insertions

[OE-core] [PATCH 0/8] ptest: Strip build host paths from any installed Makefile

2018-11-27 Thread Douglas Royds
erl) whose presence and version depends on the build host distro. PTEST_BUILD_HOST_PATTERN is an extended regex pattern used to optionally strip lines from installed PTEST_BUILD_HOST_FILES. Douglas Royds (8): ptest: Reproducibility: Strip build host paths from any installed Makefile ptest:

[OE-core] [PATCH 8/8] strace: Strip build host tool details from installed ptest Makefile

2018-11-27 Thread Douglas Royds
Adopt new PTEST_BUILD_HOST_PATTERN mechanism. Signed-off-by: Douglas Royds --- meta/recipes-devtools/strace/strace_4.25.bb | 11 +-- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/meta/recipes-devtools/strace/strace_4.25.bb b/meta/recipes-devtools/strace/strace_4.25.bb

[OE-core] [PATCH 5/8] acl: Use install instead of cp

2018-11-27 Thread Douglas Royds
Also, hard-tabs begone Signed-off-by: Douglas Royds --- meta/recipes-support/attr/acl_2.2.52.bb | 24 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/meta/recipes-support/attr/acl_2.2.52.bb b/meta/recipes-support/attr/acl_2.2.52.bb index 8b89de9b42

[OE-core] [PATCH 7/8] attr: Strip build host paths and tool versions from ptest files

2018-11-27 Thread Douglas Royds
Using the new PTEST_BUILD_HOST_FILES mechanism. Specifically remove reference to build host rpm version, if any. Signed-off-by: Douglas Royds --- meta/recipes-support/attr/attr.inc | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/meta/recipes-support/attr/attr.inc b

[OE-core] [PATCH 6/8] acl: Strip build host tool details from installed ptest file

2018-11-27 Thread Douglas Royds
Adopt the PTEST_BUILD_HOST_FILES mechanism to strip build host paths from the installed builddefs file. Also strip the record of the build host rpm version. Signed-off-by: Douglas Royds --- meta/recipes-support/attr/acl_2.2.52.bb | 7 ++- 1 file changed, 2 insertions(+), 5 deletions

[OE-core] [PATCH 1/8] ptest: Reproducibility: Strip build host paths from any installed Makefile

2018-11-27 Thread Douglas Royds
Signed-off-by: Douglas Royds --- meta/classes/ptest.bbclass | 13 + 1 file changed, 13 insertions(+) diff --git a/meta/classes/ptest.bbclass b/meta/classes/ptest.bbclass index 9d8a79854a..fa518f6d45 100644 --- a/meta/classes/ptest.bbclass +++ b/meta/classes/ptest.bbclass @@ -3,6 +3,8 @@ DE

[OE-core] [PATCH 3/8] openssl ptest: Strip build host paths from configdata.pm

2018-11-27 Thread Douglas Royds
This file contains CC, CPP, CFLAGS, CXXFLAGS and the like. Signed-off-by: Douglas Royds --- meta/recipes-connectivity/openssl/openssl_1.1.1a.bb | 1 + 1 file changed, 1 insertion(+) diff --git a/meta/recipes-connectivity/openssl/openssl_1.1.1a.bb b/meta/recipes-connectivity/openssl

[OE-core] [PATCH] ptest: Reproducibility: Take control of umask

2018-11-21 Thread Douglas Royds
The build host umask was leaking into the thing-ptest packages at do_install_ptest() time. Signed-off-by: Douglas Royds --- meta/classes/ptest.bbclass | 1 + 1 file changed, 1 insertion(+) diff --git a/meta/classes/ptest.bbclass b/meta/classes/ptest.bbclass index c19f65b9bb..9d8a79854a 100644

[OE-core] [PATCH v2] boost-context: Reproducibility: Set .file section for all *_elf_gas.S files

2018-11-21 Thread Douglas Royds
/boostorg/context/issues/91 Signed-off-by: Douglas Royds --- ..._64_sysv_elf_gas.S-set-.file-section.patch | 48 ...lity-add-file-directive-to-assembler.patch | 243 ++ meta/recipes-support/boost/boost_1.68.0.bb| 2 +- 3 files changed, 244 insertions(+), 49 deletions

Re: [OE-core] ✗ patchtest: failure for boost-context: Reproducibility: Set .file section for all *_elf_gas.S files (rev2)

2018-11-21 Thread Douglas Royds
On 22/11/18 1:33 PM, Patchwork wrote: ... * Issue Upstream-Status is Submitted, but it is not mentioned where [test_upstream_status_presence_format] Suggested fixInclude where reproducibility-add-file-directive-to-assembler.patch was submitted Yes it is ... Current

Re: [OE-core] ✗ patchtest: failure for boost-context: Reproducibility: Set .file section for all *_elf_gas.S files (rev2)

2018-11-22 Thread Douglas Royds
On 23/11/18 2:24 AM, Burton, Ross wrote: On Thu, 22 Nov 2018 at 00:38, Douglas Royds wrote: On 22/11/18 1:33 PM, Patchwork wrote: ... * Issue Upstream-Status is Submitted, but it is not mentioned where [test_upstream_status_presence_format] Suggested fixInclude where

[OE-core] [PATCH v3] boost-context: Reproducibility: Set .file section for all *_elf_gas.S files

2018-11-22 Thread Douglas Royds
/boostorg/context/issues/91] Signed-off-by: Douglas Royds --- ..._64_sysv_elf_gas.S-set-.file-section.patch | 48 ...lity-add-file-directive-to-assembler.patch | 243 ++ meta/recipes-support/boost/boost_1.68.0.bb| 2 +- 3 files changed, 244 insertions(+), 49 deletions

[OE-core] [PATCH 1/2] reproducible: Refactor: Break out fixed_source_date_epoch() function

2018-11-22 Thread Douglas Royds
Signed-off-by: Douglas Royds --- meta/classes/reproducible_build.bbclass | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/meta/classes/reproducible_build.bbclass b/meta/classes/reproducible_build.bbclass index 0eb696ac78..a0fd4d656b 100644 --- a/meta/classes

[OE-core] [PATCH 2/2] reproducible: Don't look for youngest file when no source tarball

2018-11-22 Thread Douglas Royds
reproducible. Signed-off-by: Douglas Royds --- meta/classes/reproducible_build.bbclass | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/meta/classes/reproducible_build.bbclass b/meta/classes/reproducible_build.bbclass index a0fd4d656b..8788ad7145 100644 --- a/meta

Re: [OE-core] [PATCH 5/8] acl: Use install instead of cp

2018-11-28 Thread Douglas Royds
On 28/11/18 9:04 PM, Peter Kjellerstedt wrote: -Original Message- From: openembedded-core-boun...@lists.openembedded.org On Behalf Of Douglas Royds Sent: den 28 november 2018 05:53 To: openembedded-core@lists.openembedded.org Subject: [OE-core] [PATCH 5/8] acl: Use install instead

[OE-core] [PATCH v2 0/3] ptest: Strip build host paths from any installed Makefile

2018-11-28 Thread Douglas Royds
Only one change from v1: Simplified commit acl: Use install instead of cp Douglas Royds (3): acl: Use install instead of cp acl: Strip build host tool details from installed ptest file attr: Strip build host paths and tool versions from ptest files meta/recipes-support/attr/acl_2.2.52.bb

[OE-core] [PATCH v2 1/3] acl: Use install instead of cp

2018-11-28 Thread Douglas Royds
Signed-off-by: Douglas Royds --- meta/recipes-support/attr/acl_2.2.52.bb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meta/recipes-support/attr/acl_2.2.52.bb b/meta/recipes-support/attr/acl_2.2.52.bb index 8b89de9b42..318308a009 100644 --- a/meta/recipes-support/attr

[OE-core] [PATCH v2 2/3] acl: Strip build host tool details from installed ptest file

2018-11-28 Thread Douglas Royds
Adopt the PTEST_BUILD_HOST_FILES mechanism to strip build host paths from the installed builddefs file. Also strip the record of the build host rpm version. Signed-off-by: Douglas Royds --- meta/recipes-support/attr/acl_2.2.52.bb | 7 ++- 1 file changed, 2 insertions(+), 5 deletions

[OE-core] [PATCH v2 3/3] attr: Strip build host paths and tool versions from ptest files

2018-11-28 Thread Douglas Royds
Using the new PTEST_BUILD_HOST_FILES mechanism. Specifically remove reference to build host rpm version, if any. Signed-off-by: Douglas Royds --- meta/recipes-support/attr/attr.inc | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/meta/recipes-support/attr/attr.inc b

[OE-core] [PATCH v3 6/8] acl: Use install instead of cp

2018-11-28 Thread Douglas Royds
Signed-off-by: Douglas Royds --- meta/recipes-support/attr/acl_2.2.52.bb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meta/recipes-support/attr/acl_2.2.52.bb b/meta/recipes-support/attr/acl_2.2.52.bb index 8b89de9b42..318308a009 100644 --- a/meta/recipes-support/attr

[OE-core] [PATCH v3 5/8] strace: Strip build host tool details from installed ptest Makefile

2018-11-28 Thread Douglas Royds
Adopt new PTEST_BUILD_HOST_PATTERN mechanism. Signed-off-by: Douglas Royds Signed-off-by: Richard Purdie --- meta/recipes-devtools/strace/strace_4.25.bb | 11 +-- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/meta/recipes-devtools/strace/strace_4.25.bb b/meta/recipes

[OE-core] [PATCH v3 8/8] attr: Strip build host paths and tool versions from ptest files

2018-11-28 Thread Douglas Royds
Using the new PTEST_BUILD_HOST_FILES mechanism. Specifically remove reference to build host rpm version, if any. Signed-off-by: Douglas Royds --- meta/recipes-support/attr/attr.inc | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/meta/recipes-support/attr/attr.inc b

[OE-core] [PATCH v3 2/8] ptest: Optionally strip build host tool info from installed files

2018-11-28 Thread Douglas Royds
on the build host distro. Optionally strip lines from installed PTEST_BUILD_HOST_FILES using an extended regex pattern defined in PTEST_BUILD_HOST_PATTERN. This has no effect on the on-target ptest. Signed-off-by: Douglas Royds Signed-off-by: Richard Purdie --- meta/classes/ptest.bbclass | 5 + 1

[OE-core] [PATCH v3 0/8] ptest: Strip build host paths from any installed Makefile

2018-11-28 Thread Douglas Royds
Only one change from v1: Simplified commit acl: Use install instead of cp Douglas Royds (8): ptest: Reproducibility: Strip build host paths from any installed Makefile ptest: Optionally strip build host tool info from installed files openssl ptest: Strip build host paths from configdata.pm

[OE-core] [PATCH v3 7/8] acl: Strip build host tool details from installed ptest file

2018-11-28 Thread Douglas Royds
Adopt the PTEST_BUILD_HOST_FILES mechanism to strip build host paths from the installed builddefs file. Also strip the record of the build host rpm version. Signed-off-by: Douglas Royds --- meta/recipes-support/attr/acl_2.2.52.bb | 7 ++- 1 file changed, 2 insertions(+), 5 deletions

[OE-core] [PATCH v3 3/8] openssl ptest: Strip build host paths from configdata.pm

2018-11-28 Thread Douglas Royds
This file contains CC, CPP, CFLAGS, CXXFLAGS and the like. Signed-off-by: Douglas Royds Signed-off-by: Richard Purdie --- meta/recipes-connectivity/openssl/openssl_1.1.1a.bb | 1 + 1 file changed, 1 insertion(+) diff --git a/meta/recipes-connectivity/openssl/openssl_1.1.1a.bb b/meta/recipes

[OE-core] [PATCH v3 1/8] ptest: Reproducibility: Strip build host paths from any installed Makefile

2018-11-28 Thread Douglas Royds
Signed-off-by: Douglas Royds Signed-off-by: Richard Purdie --- meta/classes/ptest.bbclass | 13 + 1 file changed, 13 insertions(+) diff --git a/meta/classes/ptest.bbclass b/meta/classes/ptest.bbclass index 9d8a79854a..fa518f6d45 100644 --- a/meta/classes/ptest.bbclass +++ b/me

[OE-core] [PATCH v3 4/8] openssl: Strip perl version from installed ptest configdata.pm file

2018-11-28 Thread Douglas Royds
Signed-off-by: Douglas Royds Signed-off-by: Richard Purdie --- meta/recipes-connectivity/openssl/openssl_1.1.1a.bb | 1 + 1 file changed, 1 insertion(+) diff --git a/meta/recipes-connectivity/openssl/openssl_1.1.1a.bb b/meta/recipes-connectivity/openssl/openssl_1.1.1a.bb index deeb865a6f

[OE-core] [PATCH v4 2/8] ptest: Optionally strip build host tool info from installed files

2018-11-28 Thread Douglas Royds
on the build host distro. Optionally strip lines from installed PTEST_BUILD_HOST_FILES using an extended regex pattern defined in PTEST_BUILD_HOST_PATTERN. This has no effect on the on-target ptest. Signed-off-by: Douglas Royds --- meta/classes/ptest.bbclass | 5 + 1 file changed, 5 insertions

[OE-core] [PATCH v4 0/8] ptest: Strip build host paths from any installed Makefile

2018-11-28 Thread Douglas Royds
Only one change from v1: Simplified commit acl: Use install instead of cp Douglas Royds (8): ptest: Reproducibility: Strip build host paths from any installed Makefile ptest: Optionally strip build host tool info from installed files openssl ptest: Strip build host paths from

[OE-core] [PATCH v4 1/8] ptest: Reproducibility: Strip build host paths from any installed Makefile

2018-11-28 Thread Douglas Royds
Signed-off-by: Douglas Royds --- meta/classes/ptest.bbclass | 13 + 1 file changed, 13 insertions(+) diff --git a/meta/classes/ptest.bbclass b/meta/classes/ptest.bbclass index 9d8a79854a..fa518f6d45 100644 --- a/meta/classes/ptest.bbclass +++ b/meta/classes/ptest.bbclass @@ -3,6 +3,8 @@ DE

[OE-core] [PATCH v4 5/8] strace: Strip build host tool details from installed ptest Makefile

2018-11-28 Thread Douglas Royds
Adopt new PTEST_BUILD_HOST_PATTERN mechanism. Signed-off-by: Douglas Royds --- meta/recipes-devtools/strace/strace_4.25.bb | 11 +-- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/meta/recipes-devtools/strace/strace_4.25.bb b/meta/recipes-devtools/strace/strace_4.25.bb

[OE-core] [PATCH v4 7/8] acl: Strip build host tool details from installed ptest file

2018-11-28 Thread Douglas Royds
Adopt the PTEST_BUILD_HOST_FILES mechanism to strip build host paths from the installed builddefs file. Also strip the record of the build host rpm version. Signed-off-by: Douglas Royds --- meta/recipes-support/attr/acl_2.2.52.bb | 7 ++- 1 file changed, 2 insertions(+), 5 deletions

[OE-core] [PATCH v4 8/8] attr: Strip build host paths and tool versions from ptest files

2018-11-28 Thread Douglas Royds
Using the new PTEST_BUILD_HOST_FILES mechanism. Specifically remove reference to build host rpm version, if any. Signed-off-by: Douglas Royds --- meta/recipes-support/attr/attr.inc | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/meta/recipes-support/attr/attr.inc b

[OE-core] [PATCH v4 4/8] openssl: Strip perl version from installed ptest configdata.pm file

2018-11-28 Thread Douglas Royds
Signed-off-by: Douglas Royds --- meta/recipes-connectivity/openssl/openssl_1.1.1a.bb | 1 + 1 file changed, 1 insertion(+) diff --git a/meta/recipes-connectivity/openssl/openssl_1.1.1a.bb b/meta/recipes-connectivity/openssl/openssl_1.1.1a.bb index deeb865a6f..042e023de5 100644 --- a/meta

[OE-core] [PATCH v4 6/8] acl: Use install instead of cp

2018-11-28 Thread Douglas Royds
Signed-off-by: Douglas Royds --- meta/recipes-support/attr/acl_2.2.52.bb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meta/recipes-support/attr/acl_2.2.52.bb b/meta/recipes-support/attr/acl_2.2.52.bb index 8b89de9b42..318308a009 100644 --- a/meta/recipes-support/attr

[OE-core] [PATCH v4 3/8] openssl ptest: Strip build host paths from configdata.pm

2018-11-28 Thread Douglas Royds
This file contains CC, CPP, CFLAGS, CXXFLAGS and the like. Signed-off-by: Douglas Royds --- meta/recipes-connectivity/openssl/openssl_1.1.1a.bb | 1 + 1 file changed, 1 insertion(+) diff --git a/meta/recipes-connectivity/openssl/openssl_1.1.1a.bb b/meta/recipes-connectivity/openssl

[OE-core] [PATCH v2 3/6] Reproducible: Rename ambiguous "path" var to sourcedir or workdir as appropriate

2018-09-13 Thread Douglas Royds
Signed-off-by: Douglas Royds --- meta/classes/reproducible_build.bbclass | 37 + 1 file changed, 19 insertions(+), 18 deletions(-) diff --git a/meta/classes/reproducible_build.bbclass b/meta/classes/reproducible_build.bbclass index e118cfde01..3f3790dfe3 100644

[OE-core] [PATCH v2 4/6] Reproducible: Find the git repo in WORKDIR/git or S first

2018-09-13 Thread Douglas Royds
he SRC_URI. We go looking for the git checkout under the WORKDIR as a last resort. Signed-off-by: Douglas Royds --- meta/classes/reproducible_build.bbclass | 35 - 1 file changed, 23 insertions(+), 12 deletions(-) diff --git a/meta/classes/reproducible_build.bbclass b/me

[OE-core] [PATCH v2 0/6] Reproducible: Find the git repo in WORKDIR/git or S first

2018-09-13 Thread Douglas Royds
he SRC_URI. We go looking for the git checkout under the WORKDIR as a last resort. Douglas Royds (6): Reproducible: Tidy class description Reproducible: Refactor: get_source_date_epoch_from_youngest_file() Reproducible: Rename ambiguous "path" var to sourcedir or workdir as approp

[OE-core] [PATCH v2 1/6] Reproducible: Tidy class description

2018-09-13 Thread Douglas Royds
Tidy whitespace, delete commented-out lines Signed-off-by: Douglas Royds --- meta/classes/reproducible_build.bbclass | 49 +++-- 1 file changed, 22 insertions(+), 27 deletions(-) diff --git a/meta/classes/reproducible_build.bbclass b/meta/classes/reproducible_build.bbclass

[OE-core] [PATCH v2 6/6] Reproducible: Consistent debug logging

2018-09-13 Thread Douglas Royds
a source_date_epoch for kernels as well. Signed-off-by: Douglas Royds --- meta/classes/reproducible_build.bbclass | 19 +++ 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/meta/classes/reproducible_build.bbclass b/meta/classes/reproducible_build.bbclass index a81f249790..4f3680a376

[OE-core] [PATCH v2 2/6] Reproducible: Refactor: get_source_date_epoch_from_youngest_file()

2018-09-13 Thread Douglas Royds
Signed-off-by: Douglas Royds --- meta/classes/reproducible_build.bbclass | 73 ++--- 1 file changed, 40 insertions(+), 33 deletions(-) diff --git a/meta/classes/reproducible_build.bbclass b/meta/classes/reproducible_build.bbclass index 4e8850fb83..e118cfde01 100644

[OE-core] [PATCH v2 5/6] Reproducible: Don't enforce existence of ${S} dir

2018-09-13 Thread Douglas Royds
Unnecessary. Signed-off-by: Douglas Royds --- meta/classes/reproducible_build.bbclass | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/meta/classes/reproducible_build.bbclass b/meta/classes/reproducible_build.bbclass index 42cb37b042..a81f249790 100644 --- a/meta

Re: [OE-core] ✗ patchtest: failure for Reproducible: Find the git repo in WORKDIR/git or S first

2018-09-13 Thread Douglas Royds
On 14/09/18 04:11, Burton, Ross wrote: On 12 September 2018 at 03:15, Douglas Royds wrote: The patch series already was applied on top of b7f3f7ecfd. Fails for me too: Applying: Reproducible: Tidy class description Using index info to reconstruct a base tree... error: patch failed: meta

[OE-core] [PATCH 1/5] icecc: readlink -f on the recipe-sysroot gcc/g++

2018-12-19 Thread Douglas Royds
We were accidentally doing a readlink -f on simply 'gcc', for instance Signed-off-by: Douglas Royds --- meta/classes/icecc.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/classes/icecc.bbclass b/meta/classes/icecc.bbclass index 2b189232cb..b251e9b5aa 100644

[OE-core] [PATCH 3/5] icecc: Syntax error meant that we weren't waiting for tarball generation

2018-12-19 Thread Douglas Royds
so silently. Signed-off-by: Douglas Royds --- meta/classes/icecc.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/classes/icecc.bbclass b/meta/classes/icecc.bbclass index d8a7894887..2171e11db0 100644 --- a/meta/classes/icecc.bbclass +++ b/meta/classes

[OE-core] [PATCH 0/5] icecc: Don't generate recipe-sysroot symlinks at recipe-parsing time

2018-12-19 Thread Douglas Royds
wo bitbake processes try to generate the ICECC_VERSION tarball at the same time, the thread that fails to get the lock will wait 30 sec for the first to finish. A syntax error meant that this was not happening and in particular, if tarball generation failed (eg. for lack of patchelf), it did so silently

[OE-core] [PATCH 2/5] icecc: Trivial simplification

2018-12-19 Thread Douglas Royds
Signed-off-by: Douglas Royds --- meta/classes/icecc.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/classes/icecc.bbclass b/meta/classes/icecc.bbclass index b251e9b5aa..d8a7894887 100644 --- a/meta/classes/icecc.bbclass +++ b/meta/classes/icecc.bbclass @@ -305,7

[OE-core] [PATCH 5/5] icecc: patchelf is needed by icecc-create-env

2018-12-19 Thread Douglas Royds
Although we could potentially build patchelf and all its dependencies, they would all have to be blacklisted to avoid trying to build them with icecc. We use the host patchelf instead. Signed-off-by: Douglas Royds --- meta/classes/icecc.bbclass | 6 +- 1 file changed, 5 insertions(+), 1

[OE-core] [PATCH 4/5] icecc: Don't generate recipe-sysroot symlinks at recipe-parsing time

2018-12-19 Thread Douglas Royds
to be in the HOSTTOOLS. I have made this non-fatal, so that we can still inherit icecc without icecc installed. Signed-off-by: Douglas Royds --- meta/classes/icecc.bbclass | 62 +++--- 1 file changed, 25 insertions(+), 37 deletions(-) diff --git a/meta/classes

[OE-core] [PATCH] libpam: reproducibility: Fix host umask leakage at patch-time

2018-12-19 Thread Douglas Royds
The patch file pam-security-abstract-securetty-handling.patch creates a new file (tty_secure.c) at patch-time, so its permissions are subject to the host umask. This file is later copied into the -dbg package with no change in permissions. Signed-off-by: Douglas Royds --- meta/recipes-extended

[OE-core] [PATCH] libpam: libpamc is licensed under its own BSD-style licence

2019-03-05 Thread Douglas Royds
Or alternatively GPL, the same as the top-level Linux-PAM COPYING. Signed-off-by: Douglas Royds --- meta/recipes-extended/pam/libpam_1.3.0.bb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/meta/recipes-extended/pam/libpam_1.3.0.bb b/meta/recipes-extended/pam

[OE-core] [PATCH v3] cmake: Reduce verbosity for make invocation

2019-03-11 Thread Douglas Royds
that goes into the logs. Signed-off-by: Douglas Royds --- meta/classes/cmake.bbclass | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/meta/classes/cmake.bbclass b/meta/classes/cmake.bbclass index fa7f68c99b..0d44a74046 100644 --- a/meta/classes/cmake.bbclass +++ b/meta/classes

Re: [OE-core] [PATCH] cmake: Reduce verbosity for make invocation

2019-03-11 Thread Douglas Royds
On 12/03/19 5:09 PM, Khem Raj wrote: On Mon, Mar 11, 2019 at 5:47 PM Douglas Royds wrote: On 12/03/19 6:18 AM, Khem Raj wrote: On Sun, Mar 10, 2019 at 10:53 PM Douglas Royds wrote: Since the dawn of time, we have set CMAKE_VERBOSE_MAKEFILE=1 in cmake.bbclass. Back in 2016, we also

[OE-core] [PATCH v2] cmake: Reduce verbosity for make invocation

2019-03-11 Thread Douglas Royds
New variable OECMAKE_VERBOSE_MAKEFILE defaults to True. Since the dawn of time, we have set CMAKE_VERBOSE_MAKEFILE=1 (True) in cmake.bbclass. Back in 2016, we also explicitly set VERBOSE=1 in cmake_do_compile(), to ensure that make (and ninja) output were verbose in log.do_compile. Setting

[OE-core] [PATCH] cmake: Reduce verbosity for make invocation

2019-03-10 Thread Douglas Royds
from the command-line are non-verbose, giving CMake's default human-readable output on the terminal instead. The user can still invoke VERBOSE=1 make if they do want verbose output. This has no effect on the verbose output that goes into the logs. Signed-off-by: Douglas Royds --- meta/classes

Re: [OE-core] [PATCH] cmake: Reduce verbosity for make invocation

2019-03-11 Thread Douglas Royds
On 12/03/19 6:18 AM, Khem Raj wrote: On Sun, Mar 10, 2019 at 10:53 PM Douglas Royds wrote: Since the dawn of time, we have set CMAKE_VERBOSE_MAKEFILE=1 in cmake.bbclass. Back in 2016, we also explicitly set VERBOSE=1 in cmake_do_compile(), to ensure that make (and ninja) output were verbose

[OE-core] [PATCH] icecc: Slightly more verbose log messages in the success case

2019-03-07 Thread Douglas Royds
The path containing the symlinks to icecc itself. The path to the build env tarball. Signed-off-by: Douglas Royds --- meta/classes/icecc.bbclass | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/meta/classes/icecc.bbclass b/meta/classes/icecc.bbclass index aebcc44667

[OE-core] [PATCH] cmake: Support Eclipse and other cmake generators

2019-04-08 Thread Douglas Royds
From: Nikhil Pal Singh As per Generators information mentioned in the cmake --help file only "Unix Makefiles" and "Ninja" generators are supported as standard project files. With this change generic solution can be created for all the other supported generators such as CodeBlocks, CodeLite,

Re: [OE-core] [PATCH] cmake: Support Eclipse and other cmake generators

2019-04-08 Thread Douglas Royds
On 9/04/19 9:04 AM, Burton, Ross wrote: On Mon, 8 Apr 2019 at 21:56, Douglas Royds wrote: python() { generator = d.getVar("OECMAKE_GENERATOR") -if generator == "Unix Makefiles": -args = "-G 'Unix Makefiles' -DCMAKE_MAKE_PROGRAM=" + d.getVar(&

[OE-core] [PATCH v2] cmake: Support Eclipse and other cmake generators

2019-04-08 Thread Douglas Royds
From: Nikhil Pal Singh Support project-file generators such as CodeBlocks, CodeLite, Eclipse, Sublime, and Kate for both make and Ninja build systems. The following generators are listed in cmake --help: Unix Makefiles = Generates standard UNIX makefiles. Ninja

Re: [OE-core][PATCH] cve-check: add option to add additional patched CVEs

2023-05-09 Thread Douglas Royds via lists.openembedded.org
On 9/05/23 9:32 pm, Mikko Rapeli wrote: On Tue, May 09, 2023 at 09:02:59AM +, Ross Burton wrote: On 8 May 2023, at 09:57, Adrian Freihofer via lists.openembedded.org wrote: Is there any defined language that we can simply adopt? Since a lot of people talk about SPDX solving these issues

[OE-core] [PATCH v2] json-c: Disable icecc to avoid implicit-fallthrough warning as error

2019-06-06 Thread Douglas Royds via Openembedded-core
configure.ac, it is simpler to disable icecc completely for json-c. There are very few source files to compile, so the compilation is quick even without icecc. See https://github.com/icecc/icecream/issues/419 Signed-off-by: Douglas Royds --- meta/classes/icecc.bbclass | 1 + 1 file changed, 1

[OE-core] [PATCH] json-c: Disable icecc to avoid implicit-fallthrough warning as error

2019-06-05 Thread Douglas Royds via Openembedded-core
configure.ac, it is simpler to disable icecc completely for json-c. There are very few source files to compile, so the compilation is quick even without icecc. See https://github.com/icecc/icecream/issues/419 Signed-off-by: Douglas Royds --- meta/recipes-devtools/json-c/json-c_0.13.1.bb | 1 + 1

[OE-core] [PATCH] json-c: Make implicit-fallthrough only a warning for compilation under icecc

2019-06-05 Thread Douglas Royds via Openembedded-core
reduce implicit-fallthrough to a warning only. See https://github.com/icecc/icecream/issues/419 Signed-off-by: Douglas Royds --- meta/recipes-devtools/json-c/json-c_0.13.1.bb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/meta/recipes-devtools/json-c/json-c_0.13.1.bb b/meta/recipes

[OE-core] [PATCH v2] json-c: Make implicit-fallthrough only a warning for compilation under icecc

2019-06-05 Thread Douglas Royds via Openembedded-core
reduce implicit-fallthrough to a warning only. In the -native case, we might be building on an earlier gcc, eg. gcc 5.4 under Ubuntu 16.04, so we do disable -Werror completely. See https://github.com/icecc/icecream/issues/419 Signed-off-by: Douglas Royds --- meta/recipes-devtools/json-c/json

  1   2   >