[OE-core] [PATCH 1/3] Revert "icecc: Don't use icecc when INHIBIT_DEFAULT_DEPS is set"

2021-05-25 Thread Douglas via lists.openembedded.org
Although this silenced the warnings, it also turned off icecc for
gcc-cross and friends, binutils-cross, and importantly, the linux
kernel.

This reverts commit 0315aabeff8e6483b737d0e23d6841f1394ad3c8.

[YOCTO #13863]

Signed-off-by: Douglas Royds 
---
 meta/classes/icecc.bbclass | 4 
 1 file changed, 4 deletions(-)

diff --git a/meta/classes/icecc.bbclass b/meta/classes/icecc.bbclass
index d095305ed8..0dde960e7a 100644
--- a/meta/classes/icecc.bbclass
+++ b/meta/classes/icecc.bbclass
@@ -138,10 +138,6 @@ def use_icecc(bb,d):
 if icecc_is_cross_canadian(bb, d):
 return "no"
 
-if d.getVar('INHIBIT_DEFAULT_DEPS', False):
-# We don't have a compiler, so no icecc
-return "no"
-
 pn = d.getVar('PN')
 bpn = d.getVar('BPN')
 
-- 
2.25.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#152246): 
https://lists.openembedded.org/g/openembedded-core/message/152246
Mute This Topic: https://lists.openembedded.org/mt/83090209/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core] [PATCH 2/3] icecc: Demote "could not get ICECC_CC" warning to note

2021-05-25 Thread Douglas via lists.openembedded.org
For many components, it is perfectly correct not to have gcc or g++ in
the PATH, notably when INHIBIT_DEFAULT_DEPS is set.
We were getting a flood of warnings when icecc was enabled, eg:

WARNING: base-files-3.0.14-r89.tait.8.6 do_configure: Cannot use icecc: 
could not get ICECC_CC or ICECC_CXX
WARNING: base-files-3.0.14-r89.tait.8.6 do_compile: Cannot use icecc: could 
not get ICECC_CC or ICECC_CXX
WARNING: base-files-3.0.14-r89.tait.8.6 do_install: Cannot use icecc: could 
not get ICECC_CC or ICECC_CXX
WARNING: busybox-inittab-1.33.0-r0 do_configure: Cannot use icecc: could 
not get ICECC_CC or ICECC_CXX
WARNING: busybox-inittab-1.33.0-r0 do_compile: Cannot use icecc: could not 
get ICECC_CC or ICECC_CXX
WARNING: busybox-inittab-1.33.0-r0 do_install: Cannot use icecc: could not 
get ICECC_CC or ICECC_CXX
WARNING: linux-libc-headers-3.14-r0 do_configure: Cannot use icecc: could 
not get ICECC_CC or ICECC_CXX
WARNING: linux-libc-headers-3.14-r0 do_compile: Cannot use icecc: could not 
get ICECC_CC or ICECC_CXX
WARNING: linux-libc-headers-3.14-r0 do_install: Cannot use icecc: could not 
get ICECC_CC or ICECC_CXX

Demote this message to a "NOTE".
It still appears in log.do_configure and friends:

NOTE: Cannot use icecc: could not get ICECC_CC or ICECC_CXX

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 0dde960e7a..80943fcf02 100644
--- a/meta/classes/icecc.bbclass
+++ b/meta/classes/icecc.bbclass
@@ -358,7 +358,7 @@ set_icecc_env() {
 ICECC_WHICH_AS="${@bb.utils.which(os.getenv('PATH'), 'as')}"
 if [ ! -x "${ICECC_CC}" -o ! -x "${ICECC_CXX}" ]
 then
-bbwarn "Cannot use icecc: could not get ICECC_CC or ICECC_CXX"
+bbnote "Cannot use icecc: could not get ICECC_CC or ICECC_CXX"
 return
 fi
 
-- 
2.25.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#152248): 
https://lists.openembedded.org/g/openembedded-core/message/152248
Mute This Topic: https://lists.openembedded.org/mt/83090211/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core] [PATCH 3/3] icecc-create-env: Silence warning: invalid ICECC_ENV_EXEC

2021-05-25 Thread Douglas via lists.openembedded.org
Signed-off-by: Douglas Royds 
---
 meta/recipes-devtools/icecc-create-env/icecc-create-env_0.1.bb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/recipes-devtools/icecc-create-env/icecc-create-env_0.1.bb 
b/meta/recipes-devtools/icecc-create-env/icecc-create-env_0.1.bb
index 231c1c20ec..61b8487c7e 100644
--- a/meta/recipes-devtools/icecc-create-env/icecc-create-env_0.1.bb
+++ b/meta/recipes-devtools/icecc-create-env/icecc-create-env_0.1.bb
@@ -11,6 +11,7 @@ PR = "r2"
 
 DEPENDS = ""
 INHIBIT_DEFAULT_DEPS = "1"
+ICECC_DISABLED = "1"
 
 # This is needed, because otherwise there is dependency loop from quilt-native
 # Dependency loop #1 found:
-- 
2.25.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#152247): 
https://lists.openembedded.org/g/openembedded-core/message/152247
Mute This Topic: https://lists.openembedded.org/mt/83090210/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core] [PATCH 0/3] icecc: Silence warnings

2021-05-25 Thread Douglas via lists.openembedded.org
icecc: Demote "could not get ICECC_CC" warning to note

For many components, it is perfectly correct not to have gcc or g++ in
the PATH, notably when INHIBIT_DEFAULT_DEPS is set.
We were getting a flood of warnings when icecc was enabled, eg:

WARNING: base-files-3.0.14-r89.tait.8.6 do_configure: Cannot use icecc: 
could not get ICECC_CC or ICECC_CXX
WARNING: base-files-3.0.14-r89.tait.8.6 do_compile: Cannot use icecc: could 
not get ICECC_CC or ICECC_CXX
WARNING: base-files-3.0.14-r89.tait.8.6 do_install: Cannot use icecc: could 
not get ICECC_CC or ICECC_CXX
WARNING: busybox-inittab-1.33.0-r0 do_configure: Cannot use icecc: could 
not get ICECC_CC or ICECC_CXX
WARNING: busybox-inittab-1.33.0-r0 do_compile: Cannot use icecc: could not 
get ICECC_CC or ICECC_CXX
WARNING: busybox-inittab-1.33.0-r0 do_install: Cannot use icecc: could not 
get ICECC_CC or ICECC_CXX
WARNING: linux-libc-headers-3.14-r0 do_configure: Cannot use icecc: could 
not get ICECC_CC or ICECC_CXX
WARNING: linux-libc-headers-3.14-r0 do_compile: Cannot use icecc: could not 
get ICECC_CC or ICECC_CXX
WARNING: linux-libc-headers-3.14-r0 do_install: Cannot use icecc: could not 
get ICECC_CC or ICECC_CXX

Demote this message to a "NOTE".
It still appears in log.do_configure and friends:

NOTE: Cannot use icecc: could not get ICECC_CC or ICECC_CXX

Revert "icecc: Don't use icecc when INHIBIT_DEFAULT_DEPS is set".
Although this silenced the warnings, it also turned off icecc for
gcc-cross and friends, binutils-cross, and importantly, the linux
kernel.

[YOCTO #13863]

Douglas Royds (3):
  Revert "icecc: Don't use icecc when INHIBIT_DEFAULT_DEPS is set"
  icecc: Demote "could not get ICECC_CC" warning to note
  icecc-create-env: Silence warning: invalid ICECC_ENV_EXEC

 meta/classes/icecc.bbclass  | 6 +-
 .../icecc-create-env/icecc-create-env_0.1.bb| 1 +
 2 files changed, 2 insertions(+), 5 deletions(-)

-- 
2.25.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#152245): 
https://lists.openembedded.org/g/openembedded-core/message/152245
Mute This Topic: https://lists.openembedded.org/mt/83090207/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core] gdb-cross-canadian-arm includes 64bit inc file when enable multilib

2021-05-25 Thread leimaohui
Hi,

I found that gdb-cross-canadian-arm includes 64bit inc file when I enable 
multilib. It is correct? Shouldn't it use 32bit inc file? 

$ ls 
tmp/work/x86_64-nativesdk-pokysdk-linux/gdb-cross-canadian-arm/10.2-r0/recipe-sysroot/opt/poky/3.3+snapshot/sysroots/x86_64-pokysdk-linux/usr/include/gnu/
lib-names-64.h  lib-names.h  libc-version.h  stubs-64.h  stubs.h
$


In addition, gcc-cross-canadian-arm is using 32bit inc file.

$ ls 
tmp/work/x86_64-nativesdk-pokysdk-linux/gcc-cross-canadian-arm/11.1.0-r0/recipe-sysroot/usr/include/gnu/
lib-names-32.h  lib-names-hard.h  lib-names.h  libc-version.h  stubs-32.h  
stubs-hard.h  stubs.h
$


Best regards
Lei

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#152244): 
https://lists.openembedded.org/g/openembedded-core/message/152244
Mute This Topic: https://lists.openembedded.org/mt/83089800/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [OE-core][PATCH v2] expat: upgrade 2.3.0 -> 2.4.1

2021-05-25 Thread Steve Sakoman
On Tue, May 25, 2021 at 12:17 PM Richard Purdie
 wrote:
>
> On Tue, 2021-05-25 at 12:50 +, Andrej Valek wrote:
> > Hello everyone,
> >
> > I have an another question regarding to backporting this to dunfell branch.
> > Is it possible to apply this upgrade to this branch? I would like to have
> > an very important fix for CVE-2013-0340 
> > (https://github.com/libexpat/libexpat/pull/220)
> > there. But there is a lot of changes, means just applying the patch is not 
> > very promising.
> >
> > How we can handle it?
>
> Adding Steve to Cc. It is possible if there is a good case for it and there
> aren't bad side effects from the change. I don't know enough about expat here
> to comment on that.

Our responses crossed in the mail :-)

I don't know enough about expat to comment on this either.  But if
someone who is familiar with expat would care to chime in I am open to
consider whether an exception should be made.

> I suspect we should be adding something to the expat recipe to make it match
> libexpat CVEs, maybe CVE_PRODUCT = "libexpat"?

Yes, good catch, that does appear to be the case.  I'll do a little
testing to verify that and will submit a patch.

Steve

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#152243): 
https://lists.openembedded.org/g/openembedded-core/message/152243
Mute This Topic: https://lists.openembedded.org/mt/83074955/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [OE-core][PATCH v2] expat: upgrade 2.3.0 -> 2.4.1

2021-05-25 Thread Steve Sakoman
On Tue, May 25, 2021 at 2:50 AM Andrej Valek  wrote:
>
> Hello everyone,
>
> I have an another question regarding to backporting this to dunfell branch. 
> Is it possible to apply this upgrade to this branch? I would like to have an 
> very important fix for CVE-2013-0340 
> (https://github.com/libexpat/libexpat/pull/220) there. But there is a lot of 
> changes, means just applying the patch is not very promising.

It is LTS policy not to do general version upgrades (see "Stable/LTS
Patch Acceptance Policies" at
https://wiki.yoctoproject.org/wiki/Stable_Release_and_LTS)

So unless you can make a case that this is a bug/security fix only
release I'm not able to take this patch.

> How we can handle it?

Perhaps take a crack at backporting the minimal set of patches to fix the CVE?

Steve

> Thanks,
> Andrej
>
> > Subject: [OE-core][PATCH v2] expat: upgrade 2.3.0 -> 2.4.1
> >
> > Includes lot of security fixes, especially CVE-2013-0340/CWE-776.
> >
> > Signed-off-by: Andrej Valek 
> > ---
> >  meta/recipes-core/expat/{expat_2.3.0.bb => expat_2.4.1.bb} | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)  rename 
> > meta/recipes-core/expat/{expat_2.3.0.bb => expat_2.4.1.bb} (89%)
> >
> > diff --git a/meta/recipes-core/expat/expat_2.3.0.bb 
> > b/meta/recipes-core/expat/expat_2.4.1.bb
> > similarity index 89%
> > rename from meta/recipes-core/expat/expat_2.3.0.bb
> > rename to meta/recipes-core/expat/expat_2.4.1.bb
> > index 14d2855df3..a57fc1b23b 100644
> > --- a/meta/recipes-core/expat/expat_2.3.0.bb
> > +++ b/meta/recipes-core/expat/expat_2.4.1.bb
> > @@ -11,7 +11,7 @@ SRC_URI = 
> > "${SOURCEFORGE_MIRROR}/expat/expat-${PV}.tar.bz2 \
> > file://run-ptest \
> > "
> >
> > -SRC_URI[sha256sum] = 
> > "f122a20eada303f904d5e0513326c5b821248f2d4d2afbf5c6f1339e511c0586"
> > +SRC_URI[sha256sum] = 
> > "2f9b6a580b94577b150a7d5617ad4643a4301a6616ff459307df3e225bcfbf40"
> >
> >  EXTRA_OECMAKE_class-native += "-DEXPAT_BUILD_DOCS=OFF"
> >
> > --
> > 2.11.0
> >
>
> 
>

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#152242): 
https://lists.openembedded.org/g/openembedded-core/message/152242
Mute This Topic: https://lists.openembedded.org/mt/83074955/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [OE-core][PATCH v2] expat: upgrade 2.3.0 -> 2.4.1

2021-05-25 Thread Richard Purdie
On Tue, 2021-05-25 at 12:50 +, Andrej Valek wrote:
> Hello everyone,
> 
> I have an another question regarding to backporting this to dunfell branch. 
> Is it possible to apply this upgrade to this branch? I would like to have 
> an very important fix for CVE-2013-0340 
> (https://github.com/libexpat/libexpat/pull/220) 
> there. But there is a lot of changes, means just applying the patch is not 
> very promising.
> 
> How we can handle it?

Adding Steve to Cc. It is possible if there is a good case for it and there
aren't bad side effects from the change. I don't know enough about expat here
to comment on that.

I suspect we should be adding something to the expat recipe to make it match 
libexpat CVEs, maybe CVE_PRODUCT = "libexpat"?

Cheers,

Richard



-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#152241): 
https://lists.openembedded.org/g/openembedded-core/message/152241
Mute This Topic: https://lists.openembedded.org/mt/83074955/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core] [PATCH v3 1/1] ltp: Update to 20210524

2021-05-25 Thread Petr Vorel
Remove patches accepted in this upstream release
* determinism.patch (45530792a, 01fefa08c)
* libswapon.patch (2b64c727f)
* 0001-open_posix_testsuite-generate-makefiles.sh-Avoid-inc.patch
  (f38172209)
* 0002-Makefile-Avoid-wildcard-determinism-issues.patch (edf60cf6a)
* 0003-syscalls-swapon-swapoff-Move-common-library-to-libs.patch
  (ac140ed58)

Removed (test rewritten to new API)
* 0007-Fix-test_proc_kill-hanging.patch

Signed-off-by: Petr Vorel 
---
changes v2->v3:
* Remove PR and HASHEQUIV_HASH_VERSION (reported by Daniel Díaz)

Kind regards,
Petr

 ...uite-generate-makefiles.sh-Avoid-inc.patch |  40 --
 ...le-Avoid-wildcard-determinism-issues.patch | 310 ---
 ...-swapoff-Move-common-library-to-libs.patch | 133 ---
 .../ltp/0007-Fix-test_proc_kill-hanging.patch |  32 --
 .../ltp/ltp/determinism.patch |  43 --
 meta/recipes-extended/ltp/ltp/libswapon.patch | 368 --
 .../ltp/{ltp_20210121.bb => ltp_20210524.bb}  |  11 +-
 7 files changed, 1 insertion(+), 936 deletions(-)
 delete mode 100644 
meta/recipes-extended/ltp/ltp/0001-open_posix_testsuite-generate-makefiles.sh-Avoid-inc.patch
 delete mode 100644 
meta/recipes-extended/ltp/ltp/0002-Makefile-Avoid-wildcard-determinism-issues.patch
 delete mode 100644 
meta/recipes-extended/ltp/ltp/0003-syscalls-swapon-swapoff-Move-common-library-to-libs.patch
 delete mode 100644 
meta/recipes-extended/ltp/ltp/0007-Fix-test_proc_kill-hanging.patch
 delete mode 100644 meta/recipes-extended/ltp/ltp/determinism.patch
 delete mode 100644 meta/recipes-extended/ltp/ltp/libswapon.patch
 rename meta/recipes-extended/ltp/{ltp_20210121.bb => ltp_20210524.bb} (92%)

diff --git 
a/meta/recipes-extended/ltp/ltp/0001-open_posix_testsuite-generate-makefiles.sh-Avoid-inc.patch
 
b/meta/recipes-extended/ltp/ltp/0001-open_posix_testsuite-generate-makefiles.sh-Avoid-inc.patch
deleted file mode 100644
index c2a70dcb67..00
--- 
a/meta/recipes-extended/ltp/ltp/0001-open_posix_testsuite-generate-makefiles.sh-Avoid-inc.patch
+++ /dev/null
@@ -1,40 +0,0 @@
-From 2d1d6350af1db28ec520e26d0069a0518950b0a1 Mon Sep 17 00:00:00 2001
-From: Richard Purdie 
-Date: Tue, 9 Mar 2021 15:21:11 +
-Subject: [PATCH 1/3] open_posix_testsuite/generate-makefiles.sh: Avoid
- inconsistencies with make version
-
-With make 4.1, INSTALL_TARGETS+= will add a space to the variable whereas
-with make 4.3, it will not. This leads to differing run.sh files in installed
-in packages which is undesireable. If tests is empty we don't have to add
-the line to the makefiles at all which seems like the easiest way to
-avoid the differences in make behaviour.
-
-Signed-off-by: Richard Purdie 
-Upstream-Status: Submitted 
[http://lists.linux.it/pipermail/ltp/2021-March/021386.html]
-

- .../open_posix_testsuite/scripts/generate-makefiles.sh  | 6 +-
- 1 file changed, 5 insertions(+), 1 deletion(-)
-
-diff --git a/testcases/open_posix_testsuite/scripts/generate-makefiles.sh 
b/testcases/open_posix_testsuite/scripts/generate-makefiles.sh
-index 200a631db..4b3aaa4a0 100755
 a/testcases/open_posix_testsuite/scripts/generate-makefiles.sh
-+++ b/testcases/open_posix_testsuite/scripts/generate-makefiles.sh
-@@ -148,8 +148,12 @@ EOF
- 
-   fi
- 
--  cat >> "$makefile.2" <> "$makefile.2" <> "$makefile.2" <
-Date: Tue, 9 Mar 2021 15:21:36 +
-Subject: [PATCH 2/3] Makefile: Avoid wildcard determinism issues
-
-wildcard used in Makefiles preserves the order of the files on disk
-which leads to differences in the order the binaries are linked.
-
-This patch tweaks the usage of wildcard to also have a sort, making
-the binaries reproducible. A previous patch massively improved
-the situation but wider testing showed that these other changes can
-have an effect on some binaries, this patch avoids those issues as
-exposed by our wider testing.
-
-Signed-off-by: Richard Purdie 
-Upstream-Status: Submitted 
[http://lists.linux.it/pipermail/ltp/2021-March/021388.html]
-

- include/mk/env_post.mk | 2 +-
- include/mk/module.mk   | 2 +-
- runtest/Makefile   | 2 +-
- scenario_groups/Makefile   | 2 +-
- testcases/commands/ldd/datafiles/Makefile  | 2 +-
- testcases/kernel/hotplug/memory_hotplug/Makefile   | 3 ++-
- testcases/kernel/io/disktest/Makefile  | 2 +-
- testcases/kernel/io/disktest/Makefile.linux| 4 ++--
- testcases/kernel/sched/hyperthreading/ht_affinity/Makefile | 2 +-
- testcases/kernel/sched/hyperthreading/ht_enabled/Makefile  | 2 +-
- testcases/kernel/sched/sched_stress/Makefile   | 2 +-
- testcases/kernel/syscalls/lchown/Makefile  | 2 +-
- testcases/kernel/syscalls/migrate_pages/Makefile   | 2 +-
- testcases/kernel/syscalls/move_pages/Makefile  | 2 +-
- testcases/kernel/syscalls/utils/compat_16.mk  

Re: [docs] [OE-core][PATCH] Add support for erofs filesystems

2021-05-25 Thread Richard Weinberger
Quentin,

- Ursprüngliche Mail -
> Von: "Quentin Schulz" 
>> IMAGE_TYPES = " \
>>@@ -261,6 +269,7 @@ IMAGE_TYPES = " \
>> wic wic.gz wic.bz2 wic.lzma wic.zst \
>> container \
>> f2fs \
>>+erofs \
> 
> I think you're supposed to have erofs erofs-lz4 erofs-lz4hc here.

Oh yes. You're right.
 
>> "
>> 
>> # Compression is a special case of conversion. The old variable
>>diff --git a/meta/recipes-devtools/erofs-utils/erofs-utils_git.bb
>>b/meta/recipes-devtools/erofs-utils/erofs-utils_git.bb
>>new file mode 100644
>>index ..6d35d3f2fa6d
>>--- /dev/null
>>+++ b/meta/recipes-devtools/erofs-utils/erofs-utils_git.bb
> 
> Any reason for using _git over _1.2.1?

TBH, I used meta/recipes-devtools/squashfs-tools/squashfs-tools_git.bb as 
template. :-)
It fetches also via git and sets PV.

>>@@ -0,0 +1,18 @@
>>+SUMMARY = "Tools for erofs filesystems"
>>+LICENSE = "GPLv2"
> 
> GPL-2.0-or-later actually.

Will fix!

Thanks,
//richard

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#152239): 
https://lists.openembedded.org/g/openembedded-core/message/152239
Mute This Topic: https://lists.openembedded.org/mt/83086737/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [OE-core] [hardknott][PATCH 1/2] glib-2.0: use python3targetconfig

2021-05-25 Thread Alexander Kanavin
Same here: this needs to go to master first, and better explained, as we
are not seeing those issues.

Alex

On Tue, 25 May 2021 at 17:17, cpriouzeau 
wrote:

> Meson request to have a valid python, meson-log indicate that
> issue come from:
> ModuleNotFoundError: No module named '_sysconfigdata'
>
> Signed-off-by: Christophe Priouzeau 
> ---
>  meta/recipes-core/glib-2.0/glib.inc | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/meta/recipes-core/glib-2.0/glib.inc
> b/meta/recipes-core/glib-2.0/glib.inc
> index 71777bc459..1b513654d8 100644
> --- a/meta/recipes-core/glib-2.0/glib.inc
> +++ b/meta/recipes-core/glib-2.0/glib.inc
> @@ -29,6 +29,7 @@ PACKAGES += "${PN}-codegen ${PN}-utils"
>  LEAD_SONAME = "libglib-2.0.*"
>
>  inherit meson gettext gtk-doc pkgconfig ptest-gnome
> upstream-version-is-even bash-completion gio-module-cache manpages
> +inherit python3targetconfig
>
>  DEPENDS_append_class-target = "${@' gtk-doc' if
> d.getVar('GTKDOC_ENABLED') == 'True' else ''}"
>
> --
> 2.25.1
>
>
> 
>
>

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#152238): 
https://lists.openembedded.org/g/openembedded-core/message/152238
Mute This Topic: https://lists.openembedded.org/mt/83078355/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [OE-core] [hardknott][PATCH 2/2] mesa: use python3targetconfig

2021-05-25 Thread Alexander Kanavin
This needs to go to master first, and better explained, as we are not
seeing those issues.

Alex

On Tue, 25 May 2021 at 17:17, cpriouzeau 
wrote:

> Meson request to have a valid python, meson-log indicate that
> issue come from:
> ModuleNotFoundError: No module named '_sysconfigdata'
>
> Signed-off-by: Christophe Priouzeau 
> ---
>  meta/recipes-graphics/mesa/mesa.inc | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/meta/recipes-graphics/mesa/mesa.inc
> b/meta/recipes-graphics/mesa/mesa.inc
> index a85f94c75e..de39dc34e4 100644
> --- a/meta/recipes-graphics/mesa/mesa.inc
> +++ b/meta/recipes-graphics/mesa/mesa.inc
> @@ -43,7 +43,7 @@ PROVIDES = " \
>  virtual/mesa \
>  "
>
> -inherit meson pkgconfig python3native gettext features_check
> +inherit meson pkgconfig python3native gettext features_check
> python3targetconfig
>
>  BBCLASSEXTEND = "native nativesdk"
>
> --
> 2.25.1
>
>
> 
>
>

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#152237): 
https://lists.openembedded.org/g/openembedded-core/message/152237
Mute This Topic: https://lists.openembedded.org/mt/83078354/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [OE-core] [PATCH v2 1/1] ltp: Update to 20210524

2021-05-25 Thread Petr Vorel
Hi Daniel,

> Hello!

> On Mon, 24 May 2021 at 13:30, Petr Vorel  wrote:
> [...]
> > diff --git a/meta/recipes-extended/ltp/ltp_20210121.bb 
> > b/meta/recipes-extended/ltp/ltp_20210524.bb
> > similarity index 94%
> > rename from meta/recipes-extended/ltp/ltp_20210121.bb
> > rename to meta/recipes-extended/ltp/ltp_20210524.bb
> > index e1ffd0ddf4..bf6e564482 100644
> > --- a/meta/recipes-extended/ltp/ltp_20210121.bb
> > +++ b/meta/recipes-extended/ltp/ltp_20210524.bb
> > @@ -27,19 +27,14 @@ CFLAGS_append_x86-64 = " -fomit-frame-pointer"

> >  CFLAGS_append_powerpc64 = " -D__SANE_USERSPACE_TYPES__"
> >  CFLAGS_append_mipsarchn64 = " -D__SANE_USERSPACE_TYPES__"
> > -SRCREV = "4d005621edd109d119627eb9210b224a63bf22cb"
> > +SRCREV = "0fb171f2beddaf64bd27597577c206c0f892b3cd"

> >  # remove at next version upgrade or when output changes
> >  PR = "r4"
> >  HASHEQUIV_HASH_VERSION .= ".4"

> Shall we reset/remove this?
Thanks, yes it should have been removed.
I'll try to send v3 tonight.

Kind regards,
Petr

> Greetings!

> Daniel Díaz
> daniel.d...@linaro.org

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#152236): 
https://lists.openembedded.org/g/openembedded-core/message/152236
Mute This Topic: https://lists.openembedded.org/mt/83058726/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core] [hardknott][PATCH 2/2] mesa: use python3targetconfig

2021-05-25 Thread cpriouzeau
Meson request to have a valid python, meson-log indicate that
issue come from:
ModuleNotFoundError: No module named '_sysconfigdata'

Signed-off-by: Christophe Priouzeau 
---
 meta/recipes-graphics/mesa/mesa.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-graphics/mesa/mesa.inc 
b/meta/recipes-graphics/mesa/mesa.inc
index a85f94c75e..de39dc34e4 100644
--- a/meta/recipes-graphics/mesa/mesa.inc
+++ b/meta/recipes-graphics/mesa/mesa.inc
@@ -43,7 +43,7 @@ PROVIDES = " \
 virtual/mesa \
 "
 
-inherit meson pkgconfig python3native gettext features_check
+inherit meson pkgconfig python3native gettext features_check 
python3targetconfig
 
 BBCLASSEXTEND = "native nativesdk"
 
-- 
2.25.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#152234): 
https://lists.openembedded.org/g/openembedded-core/message/152234
Mute This Topic: https://lists.openembedded.org/mt/83078354/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core] [hardknott][PATCH 1/2] glib-2.0: use python3targetconfig

2021-05-25 Thread cpriouzeau
Meson request to have a valid python, meson-log indicate that
issue come from:
ModuleNotFoundError: No module named '_sysconfigdata'

Signed-off-by: Christophe Priouzeau 
---
 meta/recipes-core/glib-2.0/glib.inc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/recipes-core/glib-2.0/glib.inc 
b/meta/recipes-core/glib-2.0/glib.inc
index 71777bc459..1b513654d8 100644
--- a/meta/recipes-core/glib-2.0/glib.inc
+++ b/meta/recipes-core/glib-2.0/glib.inc
@@ -29,6 +29,7 @@ PACKAGES += "${PN}-codegen ${PN}-utils"
 LEAD_SONAME = "libglib-2.0.*"
 
 inherit meson gettext gtk-doc pkgconfig ptest-gnome upstream-version-is-even 
bash-completion gio-module-cache manpages
+inherit python3targetconfig
 
 DEPENDS_append_class-target = "${@' gtk-doc' if d.getVar('GTKDOC_ENABLED') == 
'True' else ''}"
 
-- 
2.25.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#152235): 
https://lists.openembedded.org/g/openembedded-core/message/152235
Mute This Topic: https://lists.openembedded.org/mt/83078355/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core] [dunfell][PATCH 2/2] mesa: use python3targetconfig

2021-05-25 Thread cpriouzeau
Meson request to have a valid python, meson-log indicate that
issue come from:
ModuleNotFoundError: No module named '_sysconfigdata'

Signed-off-by: Christophe Priouzeau 
---
 meta/recipes-graphics/mesa/mesa.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-graphics/mesa/mesa.inc 
b/meta/recipes-graphics/mesa/mesa.inc
index a1bf878b1a..fe1c23070a 100644
--- a/meta/recipes-graphics/mesa/mesa.inc
+++ b/meta/recipes-graphics/mesa/mesa.inc
@@ -24,7 +24,7 @@ PROVIDES = " \
 virtual/mesa \
 "
 
-inherit meson pkgconfig python3native gettext features_check
+inherit meson pkgconfig python3native gettext features_check 
python3targetconfig
 
 BBCLASSEXTEND = "native nativesdk"
 
-- 
2.25.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#152233): 
https://lists.openembedded.org/g/openembedded-core/message/152233
Mute This Topic: https://lists.openembedded.org/mt/83078193/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core] [dunfell][PATCH 1/2] glib-2.0: use python3targetconfig

2021-05-25 Thread cpriouzeau
Meson request to have a valid python, meson-log indicate that
issue come from:
ModuleNotFoundError: No module named '_sysconfigdata'

Signed-off-by: Christophe Priouzeau 
---
 meta/recipes-core/glib-2.0/glib.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-core/glib-2.0/glib.inc 
b/meta/recipes-core/glib-2.0/glib.inc
index c3ddf18387..4a0b386a22 100644
--- a/meta/recipes-core/glib-2.0/glib.inc
+++ b/meta/recipes-core/glib-2.0/glib.inc
@@ -28,7 +28,7 @@ PACKAGES += "${PN}-codegen ${PN}-utils"
 
 LEAD_SONAME = "libglib-2.0.*"
 
-inherit meson gettext gtk-doc pkgconfig ptest-gnome upstream-version-is-even 
bash-completion gio-module-cache manpages features_check
+inherit meson gettext gtk-doc pkgconfig ptest-gnome upstream-version-is-even 
bash-completion gio-module-cache manpages features_check python3targetconfig
 
 GTKDOC_MESON_OPTION = "gtk_doc"
 
-- 
2.25.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#152232): 
https://lists.openembedded.org/g/openembedded-core/message/152232
Mute This Topic: https://lists.openembedded.org/mt/83078192/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core] Yocto Project Status WW21`21

2021-05-25 Thread Stephen Jolley
Current Dev Position: YP 3.4 M1

Next Deadline: 7th June 2021 YP 3.4 M1 build

 

Next Team Meetings:

*   Bug Triage meeting Thursday May 27th at 7:30am PDT (

https://zoom.us/j/454367603?pwd=ZGxoa2ZXL3FkM3Y0bFd5aVpHVVZ6dz09)
*   Monthly Project Meeting Tuesday June 1st at 8am PDT (

https://zoom.us/j/990892712?pwd=cHU1MjhoM2x6ck81bkcrYjRrcmJsUT09
 )
*   Weekly Engineering Sync Tuesday June 8th at 8am PDT (

https://zoom.us/j/990892712?pwd=cHU1MjhoM2x6ck81bkcrYjRrcmJsUT09
 )
*   Twitch -  See https://www.twitch.tv/theyoctojester

 

Key Status/Updates:

*   YP 3.3.1 was released
*   YP 3.1.8 is being built, an autobuilder glitch meant we're building
rc2.
*   We've seen a significant reduction in CVE counts for master and the
stable releases this week. For master this brings us down to 5 CVEs compared
to 63 a couple of weeks ago. This should mean real/open issues are much
clearer and old/obsolete issues no longer contribute noise to the output of
the tools.
*   Help with the problematic recipe upgrades would be much appreciated.
*   The multiconfig changes in bitbake continue to cause problems, we
still need simpler test cases to reproduce issues rather than huge builds.
The existing patches seem to fix some workloads and break others. Richard is
trying to fix but trying to fix autobuilder issues and other problems and
these are slow builds to debug.
*   We have identified ltp issues with some tests causing hangs which
have been disabled as well as issues with the 5.10.37 kernel which seem to
be fixed in 5.10.38.
*   We're seeing odd looking rcu stalls in qemu automated testing. This
seems to occur more often with 5.10 kernel but also with 5.12 and with
kvm-clock disabled and we have seen it with 5.4. It is unclear whether these
are kernel issues or qemu issues, we're struggling to debug them and any
insight would be welcome.
*   Some debugging of these intermittent hangs has been posted to the
swat mailing list.
*   Intermittent autobuilder issues continue to occur and are now at a
record high level. You  can see the list of failures we're continuing to see
by searching for the "AB-INT" tag in bugzilla:

https://bugzilla.yoctoproject.org/buglist.cgi?quicksearch=AB-INT

We are working to identify the load pattern on the infrastructure that seems
to trigger these.

 

Ways to contribute:

*   There are bugs identified as possible for newcomers to the project:

https://wiki.yoctoproject.org/wiki/Newcomers
*   There are bugs that are currently unassigned for YP 3.4. See:

https://wiki.yoctoproject.org/wiki/Bug_Triage#Medium.2B_3.4_Unassigned_Enhan
cements.2FBugs
*   We'd welcome new maintainers for recipes in OE-Core. Please see the
list at:

http://git.yoctoproject.org/cgit.cgi/poky/tree/meta/conf/distro/include/main
tainers.inc and discuss with the existing maintainer, or ask on the OE-Core
mailing list. We will likely move a chunk of these to "Unassigned" soon to
help facilitate this.

 

YP 3.4 Milestone Dates:

*   YP 3.4 M1 build date 2021/06/07
*   YP 3.4 M1 Release date 2021/06/18
*   YP 3.4 M2 build date 2021/07/12
*   YP 3.4 M2 Release date 2021/07/23
*   YP 3.4 M3 build date 2021/08/23
*   YP 3.4 M3 Release date 2021/09/03
*   YP 3.4 M4 build date 2021/10/04
*   YP 3.4 M4 Release date 2021/10/29

 

Planned upcoming dot releases:

*   YP 3.3.1 is in released
*   YP 3.1.8 is being built
*   YP 3.1.8 release date 2021/06/04
*   YP 3.1.9 build date 2021/06/21
*   YP 3.1.9 release date 2021/07/02
*   YP 3.3.2 build date 2021/07/19
*   YP 3.3.2 release date 2021/07/30
*   YP 3.1.10 build date 2021/07/26
*   YP 3.1.10 release date 2021/08/06
*   YP 3.1.11 build date 2021/09/13
*   YP 3.1.11 release date 2021/9/24

 

Tracking Metrics:

*   WDD 2647 (last week 2664) (

https://wiki.yoctoproject.org/charts/combo.html)
*   OE-Core/Poky Patch Metrics

*   Total patches found: 1282 (last week 1297)
*   Patches in the Pending State: 491 (38%) [last week 494 (38%)]

 

The Yocto Project's technical governance is through its Technical Steering
Committee, more information is available at:

 
https://wiki.yoctoproject.org/wiki/TSC

 

The Status reports are now stored on the wiki at:

Re: [OE-core] [PATCH 02/21] systemd: update 247.6 -> 248.3

2021-05-25 Thread Alexander Kanavin
On Tue, 25 May 2021 at 16:16, Richard Purdie <
richard.pur...@linuxfoundation.org> wrote:

> On Tue, 2021-05-25 at 16:02 +0200, Alexander Kanavin wrote:
> > Sorry, but that is not a good answer. If the next version upgrade
> > is a pain because of those patches, I will actually make a patch
> > that drops them.
>
> I'm going to wade in on this at this point.
>
> systemd is a tricky one. Khem has been doing a good job keeping it
> working on musl and that is important to some set of our users so
> I'm going to continue to enable him and others to do that.
>
> I'm not sure the current patch approach cases a huge issue, worst
> case it gets broken and then fixed as just happened.
>

That's ok, but then I would suggest that systemd version updates do not
rebase the musl patches, and that is dealt with after the fact by those who
need the feature.

Alex

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#152230): 
https://lists.openembedded.org/g/openembedded-core/message/152230
Mute This Topic: https://lists.openembedded.org/mt/83046735/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [OE-core] [PATCH 02/21] systemd: update 247.6 -> 248.3

2021-05-25 Thread Richard Purdie
On Tue, 2021-05-25 at 16:02 +0200, Alexander Kanavin wrote:
> Sorry, but that is not a good answer. If the next version upgrade 
> is a pain because of those patches, I will actually make a patch
> that drops them.

I'm going to wade in on this at this point.

systemd is a tricky one. Khem has been doing a good job keeping it 
working on musl and that is important to some set of our users so 
I'm going to continue to enable him and others to do that.

I'm not sure the current patch approach cases a huge issue, worst
case it gets broken and then fixed as just happened.

Cheers,

Richard


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#152229): 
https://lists.openembedded.org/g/openembedded-core/message/152229
Mute This Topic: https://lists.openembedded.org/mt/83046735/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [OE-core] [PATCH v2 1/1] ltp: Update to 20210524

2021-05-25 Thread Daniel D?az
Hello!

On Mon, 24 May 2021 at 13:30, Petr Vorel  wrote:
[...]
> diff --git a/meta/recipes-extended/ltp/ltp_20210121.bb 
> b/meta/recipes-extended/ltp/ltp_20210524.bb
> similarity index 94%
> rename from meta/recipes-extended/ltp/ltp_20210121.bb
> rename to meta/recipes-extended/ltp/ltp_20210524.bb
> index e1ffd0ddf4..bf6e564482 100644
> --- a/meta/recipes-extended/ltp/ltp_20210121.bb
> +++ b/meta/recipes-extended/ltp/ltp_20210524.bb
> @@ -27,19 +27,14 @@ CFLAGS_append_x86-64 = " -fomit-frame-pointer"
>
>  CFLAGS_append_powerpc64 = " -D__SANE_USERSPACE_TYPES__"
>  CFLAGS_append_mipsarchn64 = " -D__SANE_USERSPACE_TYPES__"
> -SRCREV = "4d005621edd109d119627eb9210b224a63bf22cb"
> +SRCREV = "0fb171f2beddaf64bd27597577c206c0f892b3cd"
>
>  # remove at next version upgrade or when output changes
>  PR = "r4"
>  HASHEQUIV_HASH_VERSION .= ".4"

Shall we reset/remove this?

Greetings!

Daniel Díaz
daniel.d...@linaro.org

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#152226): 
https://lists.openembedded.org/g/openembedded-core/message/152226
Mute This Topic: https://lists.openembedded.org/mt/83058726/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [OE-core][PATCH v2] expat: upgrade 2.3.0 -> 2.4.1

2021-05-25 Thread Andrej Valek
Hello everyone,

I have an another question regarding to backporting this to dunfell branch. Is 
it possible to apply this upgrade to this branch? I would like to have an very 
important fix for CVE-2013-0340 (https://github.com/libexpat/libexpat/pull/220) 
there. But there is a lot of changes, means just applying the patch is not very 
promising.

How we can handle it?

Thanks,
Andrej

> Subject: [OE-core][PATCH v2] expat: upgrade 2.3.0 -> 2.4.1
>
> Includes lot of security fixes, especially CVE-2013-0340/CWE-776.
>
> Signed-off-by: Andrej Valek 
> ---
>  meta/recipes-core/expat/{expat_2.3.0.bb => expat_2.4.1.bb} | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)  rename 
> meta/recipes-core/expat/{expat_2.3.0.bb => expat_2.4.1.bb} (89%)
>
> diff --git a/meta/recipes-core/expat/expat_2.3.0.bb 
> b/meta/recipes-core/expat/expat_2.4.1.bb
> similarity index 89%
> rename from meta/recipes-core/expat/expat_2.3.0.bb
> rename to meta/recipes-core/expat/expat_2.4.1.bb
> index 14d2855df3..a57fc1b23b 100644
> --- a/meta/recipes-core/expat/expat_2.3.0.bb
> +++ b/meta/recipes-core/expat/expat_2.4.1.bb
> @@ -11,7 +11,7 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/expat/expat-${PV}.tar.bz2 \
> file://run-ptest \
> "
>  
> -SRC_URI[sha256sum] = 
> "f122a20eada303f904d5e0513326c5b821248f2d4d2afbf5c6f1339e511c0586"
> +SRC_URI[sha256sum] = 
> "2f9b6a580b94577b150a7d5617ad4643a4301a6616ff459307df3e225bcfbf40"
>  
>  EXTRA_OECMAKE_class-native += "-DEXPAT_BUILD_DOCS=OFF"
>  
> --
> 2.11.0
>

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#152225): 
https://lists.openembedded.org/g/openembedded-core/message/152225
Mute This Topic: https://lists.openembedded.org/mt/83074955/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [OE-core] [PATCH] cmake-native: enabled zstd support

2021-05-25 Thread Samuli Piippo
commit messages updated in v2 patches

-samuli

On Tue, 25 May 2021 at 15:00, Alexander Kanavin 
wrote:

> Thanks, it would be beneficial to record this information in the commit
> message.
>
> Alex
>
> On Tue, 25 May 2021 at 13:27, Samuli Piippo 
> wrote:
>
>> Issue came up while building Qt6, which uses cmake packaging API:
>> https://gitlab.kitware.com/cmake/cmake/-/issues/21552
>> Things break when zstd support is not available and CMake doesn't provide
>> simple why to ask if the support is available.
>>
>> Quote from cmake dev:
>> As far as CMake's design is concerned, we have no optional formats. All
>> should be supported.
>> That's why we bundle sufficiently new versions of libarchive and libzstd.
>> If a distro builds with an older libarchive that doesn't have zstd
>> support, then that is not a proper packaging of CMake.
>>
>> For target/nativesdk CMake depends on libarchive for this support, which
>> is covered in the second patch.
>>
>> -samuli
>>
>> On Tue, 25 May 2021 at 13:07, Alexander Kanavin 
>> wrote:
>>
>>> You need to explain the benefit in doing so, I think? :)
>>>
>>> Alex
>>>
>>> On Tue, 25 May 2021 at 12:05, Samuli Piippo 
>>> wrote:
>>>
 Now that zstd is in oe-core, enable support for it in native CMake.

 Signed-off-by: Samuli Piippo 
 ---
  meta/recipes-devtools/cmake/cmake-native_3.20.1.bb | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

 diff --git a/meta/recipes-devtools/cmake/cmake-native_3.20.1.bb
 b/meta/recipes-devtools/cmake/cmake-native_3.20.1.bb
 index d91e42ef9a..335097d387 100644
 --- a/meta/recipes-devtools/cmake/cmake-native_3.20.1.bb
 +++ b/meta/recipes-devtools/cmake/cmake-native_3.20.1.bb
 @@ -1,7 +1,7 @@
  require cmake.inc
  inherit native

 -DEPENDS += "bzip2-replacement-native xz-native zlib-native curl-native
 ncurses-native"
 +DEPENDS += "bzip2-replacement-native xz-native zlib-native curl-native
 ncurses-native zstd-native"

  SRC_URI += "file://OEToolchainConfig.cmake \
  file://environment.d-cmake.sh \
 --
 2.25.1


 



-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#152224): 
https://lists.openembedded.org/g/openembedded-core/message/152224
Mute This Topic: https://lists.openembedded.org/mt/83072435/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core] [PATCH v2 2/2] cmake-native: enabled zstd support

2021-05-25 Thread Samuli Piippo
CMake depends on having all formats supported and build issues can
arise when zstd is not available:
https://gitlab.kitware.com/cmake/cmake/-/issues/21552

Quote from a CMake dev:
"As far as CMake's design is concerned, we have no optional formats.
All should be supported. That's why we bundle sufficiently new versions
of libarchive and libzstd. If a distro builds with an older libarchive
that doesn't have zstd support, then that is not a proper packaging of CMake."

Signed-off-by: Samuli Piippo 
---
 meta/recipes-devtools/cmake/cmake-native_3.20.1.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-devtools/cmake/cmake-native_3.20.1.bb 
b/meta/recipes-devtools/cmake/cmake-native_3.20.1.bb
index d91e42ef9a..335097d387 100644
--- a/meta/recipes-devtools/cmake/cmake-native_3.20.1.bb
+++ b/meta/recipes-devtools/cmake/cmake-native_3.20.1.bb
@@ -1,7 +1,7 @@
 require cmake.inc
 inherit native
 
-DEPENDS += "bzip2-replacement-native xz-native zlib-native curl-native 
ncurses-native"
+DEPENDS += "bzip2-replacement-native xz-native zlib-native curl-native 
ncurses-native zstd-native"
 
 SRC_URI += "file://OEToolchainConfig.cmake \
 file://environment.d-cmake.sh \
-- 
2.25.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#152223): 
https://lists.openembedded.org/g/openembedded-core/message/152223
Mute This Topic: https://lists.openembedded.org/mt/83074753/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core] [PATCH v2 1/2] libarchive: enable zstd support

2021-05-25 Thread Samuli Piippo
Now that zstd is in oe-core, add PACKAGECONFIG for it and enabled
it by default in libarchive.

zstd support is expected by CMake, which in nativesdk depends on
libarchive. CMake depends on having all formats supported and build
issues can arise when zstd is not available:
https://gitlab.kitware.com/cmake/cmake/-/issues/21552

Quote from a CMake dev:
"As far as CMake's design is concerned, we have no optional formats.
All should be supported. That's why we bundle sufficiently new versions
of libarchive and libzstd. If a distro builds with an older libarchive
that doesn't have zstd support, then that is not a proper packaging of CMake."

Signed-off-by: Samuli Piippo 
---
 meta/recipes-extended/libarchive/libarchive_3.5.1.bb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/meta/recipes-extended/libarchive/libarchive_3.5.1.bb 
b/meta/recipes-extended/libarchive/libarchive_3.5.1.bb
index c9e30f468f..ebecee1f3e 100644
--- a/meta/recipes-extended/libarchive/libarchive_3.5.1.bb
+++ b/meta/recipes-extended/libarchive/libarchive_3.5.1.bb
@@ -7,7 +7,7 @@ LIC_FILES_CHKSUM = 
"file://COPYING;md5=d499814247adaee08d88080841cb5665"
 
 DEPENDS = "e2fsprogs-native"
 
-PACKAGECONFIG ?= "zlib bz2 xz lzo"
+PACKAGECONFIG ?= "zlib bz2 xz lzo zstd"
 
 PACKAGECONFIG_append_class-target = "\
${@bb.utils.filter('DISTRO_FEATURES', 'acl xattr', d)} \
@@ -28,6 +28,7 @@ PACKAGECONFIG[lzo] = "--with-lzo2,--without-lzo2,lzo,"
 PACKAGECONFIG[nettle] = "--with-nettle,--without-nettle,nettle,"
 PACKAGECONFIG[lz4] = "--with-lz4,--without-lz4,lz4,"
 PACKAGECONFIG[mbedtls] = "--with-mbedtls,--without-mbedtls,mbedtls,"
+PACKAGECONFIG[zstd] = "--with-zstd,--without-zstd,zstd,"
 
 EXTRA_OECONF += "--enable-largefile"
 
-- 
2.25.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#15): 
https://lists.openembedded.org/g/openembedded-core/message/15
Mute This Topic: https://lists.openembedded.org/mt/83074750/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [OE-core] [PATCH] cmake-native: enabled zstd support

2021-05-25 Thread Alexander Kanavin
Thanks, it would be beneficial to record this information in the commit
message.

Alex

On Tue, 25 May 2021 at 13:27, Samuli Piippo  wrote:

> Issue came up while building Qt6, which uses cmake packaging API:
> https://gitlab.kitware.com/cmake/cmake/-/issues/21552
> Things break when zstd support is not available and CMake doesn't provide
> simple why to ask if the support is available.
>
> Quote from cmake dev:
> As far as CMake's design is concerned, we have no optional formats. All
> should be supported.
> That's why we bundle sufficiently new versions of libarchive and libzstd.
> If a distro builds with an older libarchive that doesn't have zstd
> support, then that is not a proper packaging of CMake.
>
> For target/nativesdk CMake depends on libarchive for this support, which
> is covered in the second patch.
>
> -samuli
>
> On Tue, 25 May 2021 at 13:07, Alexander Kanavin 
> wrote:
>
>> You need to explain the benefit in doing so, I think? :)
>>
>> Alex
>>
>> On Tue, 25 May 2021 at 12:05, Samuli Piippo 
>> wrote:
>>
>>> Now that zstd is in oe-core, enable support for it in native CMake.
>>>
>>> Signed-off-by: Samuli Piippo 
>>> ---
>>>  meta/recipes-devtools/cmake/cmake-native_3.20.1.bb | 2 +-
>>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>>
>>> diff --git a/meta/recipes-devtools/cmake/cmake-native_3.20.1.bb
>>> b/meta/recipes-devtools/cmake/cmake-native_3.20.1.bb
>>> index d91e42ef9a..335097d387 100644
>>> --- a/meta/recipes-devtools/cmake/cmake-native_3.20.1.bb
>>> +++ b/meta/recipes-devtools/cmake/cmake-native_3.20.1.bb
>>> @@ -1,7 +1,7 @@
>>>  require cmake.inc
>>>  inherit native
>>>
>>> -DEPENDS += "bzip2-replacement-native xz-native zlib-native curl-native
>>> ncurses-native"
>>> +DEPENDS += "bzip2-replacement-native xz-native zlib-native curl-native
>>> ncurses-native zstd-native"
>>>
>>>  SRC_URI += "file://OEToolchainConfig.cmake \
>>>  file://environment.d-cmake.sh \
>>> --
>>> 2.25.1
>>>
>>>
>>> 
>>>
>>>

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#152221): 
https://lists.openembedded.org/g/openembedded-core/message/152221
Mute This Topic: https://lists.openembedded.org/mt/83072435/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [OE-core] [meta-oe][dunfell][PATCH] opencv: Add fix for CVE-2019-5063 and CVE-2019-5064

2021-05-25 Thread Armin Kuster


On 5/25/21 12:59 AM, akash hadke wrote:
> From: "akash.hadke" 
>
> Added fix for below CVE's
>
> CVE-2019-5063
> CVE-2019-5064
> Link: 
> https://github.com/opencv/opencv/commit/f42d5399aac80d371b17d689851406669c9b9111.patch
>
> Signed-off-by: akash hadke 

wrong ml. should be openembedded-devel@.

patch noted.

-armin
> ---
>  .../opencv/CVE-2019-5063_and_2019-5064.patch   | 78 
> ++
>  meta-oe/recipes-support/opencv/opencv_4.1.0.bb |  1 +
>  2 files changed, 79 insertions(+)
>  create mode 100644 
> meta-oe/recipes-support/opencv/opencv/CVE-2019-5063_and_2019-5064.patch
>
> diff --git 
> a/meta-oe/recipes-support/opencv/opencv/CVE-2019-5063_and_2019-5064.patch 
> b/meta-oe/recipes-support/opencv/opencv/CVE-2019-5063_and_2019-5064.patch
> new file mode 100644
> index 000..b4d5e6d
> --- /dev/null
> +++ b/meta-oe/recipes-support/opencv/opencv/CVE-2019-5063_and_2019-5064.patch
> @@ -0,0 +1,78 @@
> +From f42d5399aac80d371b17d689851406669c9b9111 Mon Sep 17 00:00:00 2001
> +From: Alexander Alekhin 
> +Date: Thu, 7 Nov 2019 14:01:51 +0300
> +Subject: [PATCH] core(persistence): add more checks for implementation
> + limitations
> +
> +Signed-off-by: akash hadke 
> +---
> + modules/core/src/persistence_json.cpp | 8 
> + modules/core/src/persistence_xml.cpp  | 6 --
> + 2 files changed, 12 insertions(+), 2 deletions(-)
> +---
> +CVE: CVE-2019-5063
> +CVE: CVE-2019-5064
> +Upstream-Status: Backport 
> [https://github.com/opencv/opencv/commit/f42d5399aac80d371b17d689851406669c9b9111.patch]
> +---
> +diff --git a/modules/core/src/persistence_json.cpp 
> b/modules/core/src/persistence_json.cpp
> +index 89914e6534f..2efdf17d3f5 100644
> +--- a/modules/core/src/persistence_json.cpp
>  b/modules/core/src/persistence_json.cpp
> +@@ -578,10 +578,14 @@ class JSONParser : public FileStorageParser
> + sz = (int)(ptr - beg);
> + if( sz > 0 )
> + {
> ++if (i + sz >= CV_FS_MAX_LEN)
> ++CV_PARSE_ERROR_CPP("string is too 
> long");
> + memcpy(buf + i, beg, sz);
> + i += sz;
> + }
> + ptr++;
> ++if (i + 1 >= CV_FS_MAX_LEN)
> ++CV_PARSE_ERROR_CPP("string is too long");
> + switch ( *ptr )
> + {
> + case '\\':
> +@@ -605,6 +609,8 @@ class JSONParser : public FileStorageParser
> + sz = (int)(ptr - beg);
> + if( sz > 0 )
> + {
> ++if (i + sz >= CV_FS_MAX_LEN)
> ++CV_PARSE_ERROR_CPP("string is too 
> long");
> + memcpy(buf + i, beg, sz);
> + i += sz;
> + }
> +@@ -620,6 +626,8 @@ class JSONParser : public FileStorageParser
> + sz = (int)(ptr - beg);
> + if( sz > 0 )
> + {
> ++if (i + sz >= CV_FS_MAX_LEN)
> ++CV_PARSE_ERROR_CPP("string is too 
> long");
> + memcpy(buf + i, beg, sz);
> + i += sz;
> + }
> +diff --git a/modules/core/src/persistence_xml.cpp 
> b/modules/core/src/persistence_xml.cpp
> +index 89876dd3da8..52b53744254 100644
> +--- a/modules/core/src/persistence_xml.cpp
>  b/modules/core/src/persistence_xml.cpp
> +@@ -627,6 +627,8 @@ class XMLParser : public FileStorageParser
> + c = '\"';
> + else
> + {
> ++if (len + 2 + i >= CV_FS_MAX_LEN)
> ++CV_PARSE_ERROR_CPP("string is 
> too long");
> + memcpy( strbuf + i, ptr-1, len + 2 
> );
> + i += len + 2;
> + }
> +@@ -635,9 +637,9 @@ class XMLParser : public FileStorageParser
> + 
> CV_PERSISTENCE_CHECK_END_OF_BUFFER_BUG_CPP();
> + }
> + }
> ++if (i + 1 >= CV_FS_MAX_LEN)
> ++CV_PARSE_ERROR_CPP("Too long string literal");
> + strbuf[i++] = c;
> +-if( i >= CV_FS_MAX_LEN )
> +-CV_PARSE_ERROR_CPP( "Too long string literal" );
> + }
> + elem->setValue(FileNode::STRING, strbuf, i);
> + 

[OE-core][PATCH v2] Add support for erofs filesystems

2021-05-25 Thread Richard Weinberger
Since Linux 5.4 a new read-only filesystem is available, erofs.
Compared to squashfs it offers much better read performance with and
without compression enabled.
It suppports two optional compressors, lz4 and lz4hc.

>From the mkfs.erofs man page:
EROFS is a new enhanced lightweight linux read-only filesystem with
modern designs (eg. no buffer head, reduced metadata, inline
xattrs/data, etc.) for scenarios which need high-performance read-only
requirements, e.g. Android OS for smartphones and LIVECDs.
It also provides fixed-sized output compression support, which improves
storage density, keeps relatively higher compression ratios, which is
more useful to achieve high performance for embedded devices with
limited  memory since it has unnoticable memory overhead and page cache
thrashing.

This commit adds support for three new filesystem targets:
erofs: erofs without compression
erofs-lz4: erofs with lz4 compresssion enabled
erofs-lz4hc: erofs with lz4hc compression enabled

Signed-off-by: Richard Weinberger 
---
Changes since v1:
 - Make lz4 support in erofs-utils optional (requested by Konrad Weihmann) 
---
 meta/classes/image_types.bbclass  |  9 
 .../erofs-utils/erofs-utils_git.bb| 21 +++
 scripts/lib/wic/help.py   |  1 +
 scripts/lib/wic/ksparser.py   |  7 ++-
 scripts/lib/wic/partition.py  | 16 +++---
 scripts/lib/wic/plugins/source/rawcopy.py |  6 +++---
 6 files changed, 53 insertions(+), 7 deletions(-)
 create mode 100644 meta/recipes-devtools/erofs-utils/erofs-utils_git.bb

diff --git a/meta/classes/image_types.bbclass b/meta/classes/image_types.bbclass
index 8028691405a7..4e95e0e2935e 100644
--- a/meta/classes/image_types.bbclass
+++ b/meta/classes/image_types.bbclass
@@ -108,6 +108,11 @@ IMAGE_CMD_squashfs-xz = "mksquashfs ${IMAGE_ROOTFS} 
${IMGDEPLOYDIR}/${IMAGE_NAME
 IMAGE_CMD_squashfs-lzo = "mksquashfs ${IMAGE_ROOTFS} 
${IMGDEPLOYDIR}/${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.squashfs-lzo 
${EXTRA_IMAGECMD} -noappend -comp lzo"
 IMAGE_CMD_squashfs-lz4 = "mksquashfs ${IMAGE_ROOTFS} 
${IMGDEPLOYDIR}/${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.squashfs-lz4 
${EXTRA_IMAGECMD} -noappend -comp lz4"
 
+IMAGE_CMD_erofs = "mkfs.erofs ${EXTRA_IMAGECMD} 
${IMGDEPLOYDIR}/${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.erofs ${IMAGE_ROOTFS}"
+IMAGE_CMD_erofs-lz4 = "mkfs.erofs -zlz4 ${EXTRA_IMAGECMD} 
${IMGDEPLOYDIR}/${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.erofs-lz4 ${IMAGE_ROOTFS}"
+IMAGE_CMD_erofs-lz4hc = "mkfs.erofs -zlz4hc ${EXTRA_IMAGECMD} 
${IMGDEPLOYDIR}/${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.erofs-lz4hc ${IMAGE_ROOTFS}"
+
+
 IMAGE_CMD_TAR ?= "tar"
 # ignore return code 1 "file changed as we read it" as other tasks(e.g. 
do_image_wic) may be hardlinking rootfs
 IMAGE_CMD_tar = "${IMAGE_CMD_TAR} --sort=name --format=posix --numeric-owner 
-cf ${IMGDEPLOYDIR}/${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.tar -C ${IMAGE_ROOTFS} . 
|| [ $? -eq 1 ]"
@@ -243,6 +248,9 @@ do_image_ubi[depends] += 
"mtd-utils-native:do_populate_sysroot"
 do_image_ubifs[depends] += "mtd-utils-native:do_populate_sysroot"
 do_image_multiubi[depends] += "mtd-utils-native:do_populate_sysroot"
 do_image_f2fs[depends] += "f2fs-tools-native:do_populate_sysroot"
+do_image_erofs[depends] += "erofs-utils-native:do_populate_sysroot"
+do_image_erofs_lz4[depends] += "erofs-utils-native:do_populate_sysroot"
+do_image_erofs_lz4hc[depends] += "erofs-utils-native:do_populate_sysroot"
 
 # This variable is available to request which values are suitable for 
IMAGE_FSTYPES
 IMAGE_TYPES = " \
@@ -261,6 +269,7 @@ IMAGE_TYPES = " \
 wic wic.gz wic.bz2 wic.lzma wic.zst \
 container \
 f2fs \
+erofs \
 "
 
 # Compression is a special case of conversion. The old variable
diff --git a/meta/recipes-devtools/erofs-utils/erofs-utils_git.bb 
b/meta/recipes-devtools/erofs-utils/erofs-utils_git.bb
new file mode 100644
index ..5e705b61313f
--- /dev/null
+++ b/meta/recipes-devtools/erofs-utils/erofs-utils_git.bb
@@ -0,0 +1,21 @@
+SUMMARY = "Tools for erofs filesystems"
+LICENSE = "GPLv2"
+SECTION = "base"
+LIC_FILES_CHKSUM = "file://COPYING;md5=94fa01670a2a8f2d3ab2de15004e0848"
+
+PV = "1.2.1"
+SRCREV = "d1f4953edfcf4f51c71ba91586e21fc6ce9f6db9"
+SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs-utils.git"
+
+S = "${WORKDIR}/git"
+
+DEPENDS = "util-linux-libuuid"
+
+inherit pkgconfig autotools
+
+PACKAGECONFIG ??= "lz4"
+PACKAGECONFIG[lz4] = "--enable-lz4,--disable-lz4,lz4"
+
+EXTRA_OECONF = "${PACKAGECONFIG_CONFARGS} --disable-fuse"
+
+BBCLASSEXTEND = "native nativesdk"
diff --git a/scripts/lib/wic/help.py b/scripts/lib/wic/help.py
index bd3a2b97dfaf..991e5094bb84 100644
--- a/scripts/lib/wic/help.py
+++ b/scripts/lib/wic/help.py
@@ -930,6 +930,7 @@ DESCRIPTION
  ext4
  btrfs
  squashfs
+ erofs
  swap
 
  --fsoptions: Specifies a free-form string of options to be
diff --git 

Re: [OE-core] [PATCH] cmake-native: enabled zstd support

2021-05-25 Thread Samuli Piippo
Issue came up while building Qt6, which uses cmake packaging API:
https://gitlab.kitware.com/cmake/cmake/-/issues/21552
Things break when zstd support is not available and CMake doesn't provide
simple why to ask if the support is available.

Quote from cmake dev:
As far as CMake's design is concerned, we have no optional formats. All
should be supported.
That's why we bundle sufficiently new versions of libarchive and libzstd.
If a distro builds with an older libarchive that doesn't have zstd support,
then that is not a proper packaging of CMake.

For target/nativesdk CMake depends on libarchive for this support, which is
covered in the second patch.

-samuli

On Tue, 25 May 2021 at 13:07, Alexander Kanavin 
wrote:

> You need to explain the benefit in doing so, I think? :)
>
> Alex
>
> On Tue, 25 May 2021 at 12:05, Samuli Piippo 
> wrote:
>
>> Now that zstd is in oe-core, enable support for it in native CMake.
>>
>> Signed-off-by: Samuli Piippo 
>> ---
>>  meta/recipes-devtools/cmake/cmake-native_3.20.1.bb | 2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/meta/recipes-devtools/cmake/cmake-native_3.20.1.bb
>> b/meta/recipes-devtools/cmake/cmake-native_3.20.1.bb
>> index d91e42ef9a..335097d387 100644
>> --- a/meta/recipes-devtools/cmake/cmake-native_3.20.1.bb
>> +++ b/meta/recipes-devtools/cmake/cmake-native_3.20.1.bb
>> @@ -1,7 +1,7 @@
>>  require cmake.inc
>>  inherit native
>>
>> -DEPENDS += "bzip2-replacement-native xz-native zlib-native curl-native
>> ncurses-native"
>> +DEPENDS += "bzip2-replacement-native xz-native zlib-native curl-native
>> ncurses-native zstd-native"
>>
>>  SRC_URI += "file://OEToolchainConfig.cmake \
>>  file://environment.d-cmake.sh \
>> --
>> 2.25.1
>>
>>
>> 
>>
>>

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#152218): 
https://lists.openembedded.org/g/openembedded-core/message/152218
Mute This Topic: https://lists.openembedded.org/mt/83072435/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [bitbake-devel] [OE-core][PATCH] Add support for erofs filesystems

2021-05-25 Thread Richard Weinberger
Konrad,

- Ursprüngliche Mail -
> Von: "Konrad Weihmann" 
>> +EXTRA_OECONF = "--enable-lz4 --disable-fuse"
> 
> In the commit message it's mentioned that compression is optional, still
> here lz4 is enabled by default - I would rather see these compression
> switches configurable via PACKAGECONFIG

Good point! Will send a v2 in a jiffy.

Thanks,
//richard

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#152217): 
https://lists.openembedded.org/g/openembedded-core/message/152217
Mute This Topic: https://lists.openembedded.org/mt/83073224/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core][PATCH] flex: correct license information

2021-05-25 Thread Nikolay Papenkov via lists.openembedded.org
License-Update: Corrected license information

flex package is under two licenses:
- "BSD-3-Clause" is provided in top-level COPYING file; the license
  actually include third obligation (without the actual "3" numbering)
- "LGPL-2.0+" is explained by src/gettext.h

Signed-off-by: Dmitry Kisil 
---
 meta/recipes-devtools/flex/flex_2.6.4.bb | 6 --
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/meta/recipes-devtools/flex/flex_2.6.4.bb 
b/meta/recipes-devtools/flex/flex_2.6.4.bb
index 1d43d2228a..54e7e01729 100644
--- a/meta/recipes-devtools/flex/flex_2.6.4.bb
+++ b/meta/recipes-devtools/flex/flex_2.6.4.bb
@@ -3,12 +3,14 @@ DESCRIPTION = "Flex is a fast lexical analyser generator.  
Flex is a tool for ge
 lexical patterns in text."
 HOMEPAGE = "http://sourceforge.net/projects/flex/;
 SECTION = "devel"
-LICENSE = "BSD-2-Clause"
+LICENSE = "BSD-3-Clause & LGPL-2.0+"
+LICENSE_${PN}-libfl = "BSD-3-Clause"
 
 DEPENDS = "${@bb.utils.contains('PTEST_ENABLED', '1', 'bison-native 
flex-native', '', d)}"
 BBCLASSEXTEND = "native nativesdk"
 
-LIC_FILES_CHKSUM = "file://COPYING;md5=e4742cf92e89040b39486a6219b68067"
+LIC_FILES_CHKSUM = "file://COPYING;md5=e4742cf92e89040b39486a6219b68067 \
+
file://src/gettext.h;beginline=1;endline=17;md5=9c05dda2f58d89b850c399cf22e1a00c"
 
 SRC_URI = 
"https://github.com/westes/flex/releases/download/v${PV}/flex-${PV}.tar.gz \
file://run-ptest \
-- 
2.17.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#152216): 
https://lists.openembedded.org/g/openembedded-core/message/152216
Mute This Topic: https://lists.openembedded.org/mt/83073472/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [bitbake-devel] [OE-core][PATCH] Add support for erofs filesystems

2021-05-25 Thread Konrad Weihmann



On 25.05.21 13:04, Richard Weinberger wrote:

Since Linux 5.4 a new read-only filesystem is available, erofs.
Compared to squashfs it offers much better read performance with and
without compression enabled.
It suppports two optional compressors, lz4 and lz4hc.

 From the mkfs.erofs man page:
EROFS is a new enhanced lightweight linux read-only filesystem with
modern designs (eg. no buffer head, reduced metadata, inline
xattrs/data, etc.) for scenarios which need high-performance read-only
requirements, e.g. Android OS for smartphones and LIVECDs.
It also provides fixed-sized output compression support, which improves
storage density, keeps relatively higher compression ratios, which is
more useful to achieve high performance for embedded devices with
limited  memory since it has unnoticable memory overhead and page cache
thrashing.

This commit adds support for three new filesystem targets:
erofs: erofs without compression
erofs-lz4: erofs with lz4 compresssion enabled
erofs-lz4hc: erofs with lz4hc compression enabled

Signed-off-by: Richard Weinberger 
---
  meta/classes/image_types.bbclass   |  9 +
  .../erofs-utils/erofs-utils_git.bb | 18 ++
  scripts/lib/wic/help.py|  1 +
  scripts/lib/wic/ksparser.py|  7 ++-
  scripts/lib/wic/partition.py   | 16 +---
  scripts/lib/wic/plugins/source/rawcopy.py  |  6 +++---
  6 files changed, 50 insertions(+), 7 deletions(-)
  create mode 100644 meta/recipes-devtools/erofs-utils/erofs-utils_git.bb

diff --git a/meta/classes/image_types.bbclass b/meta/classes/image_types.bbclass
index 8028691405a7..4e95e0e2935e 100644
--- a/meta/classes/image_types.bbclass
+++ b/meta/classes/image_types.bbclass
@@ -108,6 +108,11 @@ IMAGE_CMD_squashfs-xz = "mksquashfs ${IMAGE_ROOTFS} 
${IMGDEPLOYDIR}/${IMAGE_NAME
  IMAGE_CMD_squashfs-lzo = "mksquashfs ${IMAGE_ROOTFS} 
${IMGDEPLOYDIR}/${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.squashfs-lzo ${EXTRA_IMAGECMD} 
-noappend -comp lzo"
  IMAGE_CMD_squashfs-lz4 = "mksquashfs ${IMAGE_ROOTFS} 
${IMGDEPLOYDIR}/${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.squashfs-lz4 ${EXTRA_IMAGECMD} 
-noappend -comp lz4"
  
+IMAGE_CMD_erofs = "mkfs.erofs ${EXTRA_IMAGECMD} ${IMGDEPLOYDIR}/${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.erofs ${IMAGE_ROOTFS}"

+IMAGE_CMD_erofs-lz4 = "mkfs.erofs -zlz4 ${EXTRA_IMAGECMD} 
${IMGDEPLOYDIR}/${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.erofs-lz4 ${IMAGE_ROOTFS}"
+IMAGE_CMD_erofs-lz4hc = "mkfs.erofs -zlz4hc ${EXTRA_IMAGECMD} 
${IMGDEPLOYDIR}/${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.erofs-lz4hc ${IMAGE_ROOTFS}"
+
+
  IMAGE_CMD_TAR ?= "tar"
  # ignore return code 1 "file changed as we read it" as other tasks(e.g. 
do_image_wic) may be hardlinking rootfs
  IMAGE_CMD_tar = "${IMAGE_CMD_TAR} --sort=name --format=posix --numeric-owner -cf 
${IMGDEPLOYDIR}/${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.tar -C ${IMAGE_ROOTFS} . || [ $? -eq 1 
]"
@@ -243,6 +248,9 @@ do_image_ubi[depends] += 
"mtd-utils-native:do_populate_sysroot"
  do_image_ubifs[depends] += "mtd-utils-native:do_populate_sysroot"
  do_image_multiubi[depends] += "mtd-utils-native:do_populate_sysroot"
  do_image_f2fs[depends] += "f2fs-tools-native:do_populate_sysroot"
+do_image_erofs[depends] += "erofs-utils-native:do_populate_sysroot"
+do_image_erofs_lz4[depends] += "erofs-utils-native:do_populate_sysroot"
+do_image_erofs_lz4hc[depends] += "erofs-utils-native:do_populate_sysroot"
  
  # This variable is available to request which values are suitable for IMAGE_FSTYPES

  IMAGE_TYPES = " \
@@ -261,6 +269,7 @@ IMAGE_TYPES = " \
  wic wic.gz wic.bz2 wic.lzma wic.zst \
  container \
  f2fs \
+erofs \
  "
  
  # Compression is a special case of conversion. The old variable

diff --git a/meta/recipes-devtools/erofs-utils/erofs-utils_git.bb 
b/meta/recipes-devtools/erofs-utils/erofs-utils_git.bb
new file mode 100644
index ..6d35d3f2fa6d
--- /dev/null
+++ b/meta/recipes-devtools/erofs-utils/erofs-utils_git.bb
@@ -0,0 +1,18 @@
+SUMMARY = "Tools for erofs filesystems"
+LICENSE = "GPLv2"
+SECTION = "base"
+LIC_FILES_CHKSUM = "file://COPYING;md5=94fa01670a2a8f2d3ab2de15004e0848"
+
+PV = "1.2.1"
+SRCREV = "d1f4953edfcf4f51c71ba91586e21fc6ce9f6db9"
+SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs-utils.git"
+
+S = "${WORKDIR}/git"
+
+DEPENDS = "util-linux-libuuid lz4"
+
+inherit pkgconfig autotools
+
+EXTRA_OECONF = "--enable-lz4 --disable-fuse"


In the commit message it's mentioned that compression is optional, still 
here lz4 is enabled by default - I would rather see these compression 
switches configurable via PACKAGECONFIG



+
+BBCLASSEXTEND = "native nativesdk"
diff --git a/scripts/lib/wic/help.py b/scripts/lib/wic/help.py
index bd3a2b97dfaf..991e5094bb84 100644
--- a/scripts/lib/wic/help.py
+++ b/scripts/lib/wic/help.py
@@ -930,6 +930,7 @@ DESCRIPTION
   ext4
   btrfs
   squashfs
+ erofs
   swap
  
  

[OE-core] [bitbake][PATCH] Add support for erofs image types

2021-05-25 Thread Richard Weinberger
Signed-off-by: Richard Weinberger 
---
 lib/toaster/orm/models.py | 7 ---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/lib/toaster/orm/models.py b/lib/toaster/orm/models.py
index 7f7e922adecc..517774baa0b1 100644
--- a/lib/toaster/orm/models.py
+++ b/lib/toaster/orm/models.py
@@ -968,9 +968,10 @@ class Target_Image_File(models.Model):
 'btrfs', 'container', 'cpio', 'cpio.gz', 'cpio.lz4', 'cpio.lzma',
 'cpio.xz', 'cramfs', 'ext2', 'ext2.bz2', 'ext2.gz', 'ext2.lzma',
 'ext3', 'ext3.gz', 'ext4', 'ext4.gz', 'f2fs', 'hddimg', 'iso', 'jffs2',
-'jffs2.sum', 'multiubi', 'squashfs', 'squashfs-lz4', 'squashfs-lzo',
-'squashfs-xz', 'tar', 'tar.bz2', 'tar.gz', 'tar.lz4', 'tar.xz', 'ubi',
-'ubifs', 'wic', 'wic.bz2', 'wic.gz', 'wic.lzma'
+'jffs2.sum', 'multiubi', 'erofs', 'erofs-lz4', 'erofs-lz4hc',
+'squashfs', 'squashfs-lz4', 'squashfs-lzo', 'squashfs-xz', 'tar',
+'tar.bz2', 'tar.gz', 'tar.lz4', 'tar.xz', 'ubi', 'ubifs', 'wic',
+'wic.bz2', 'wic.gz', 'wic.lzma'
 }
 
 target = models.ForeignKey(Target, on_delete=models.CASCADE)
-- 
2.26.2


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#152214): 
https://lists.openembedded.org/g/openembedded-core/message/152214
Mute This Topic: https://lists.openembedded.org/mt/83073131/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core][PATCH] Add support for erofs filesystems

2021-05-25 Thread Richard Weinberger
Since Linux 5.4 a new read-only filesystem is available, erofs.
Compared to squashfs it offers much better read performance with and
without compression enabled.
It suppports two optional compressors, lz4 and lz4hc.

>From the mkfs.erofs man page:
EROFS is a new enhanced lightweight linux read-only filesystem with
modern designs (eg. no buffer head, reduced metadata, inline
xattrs/data, etc.) for scenarios which need high-performance read-only
requirements, e.g. Android OS for smartphones and LIVECDs.
It also provides fixed-sized output compression support, which improves
storage density, keeps relatively higher compression ratios, which is
more useful to achieve high performance for embedded devices with
limited  memory since it has unnoticable memory overhead and page cache
thrashing.

This commit adds support for three new filesystem targets:
erofs: erofs without compression
erofs-lz4: erofs with lz4 compresssion enabled
erofs-lz4hc: erofs with lz4hc compression enabled

Signed-off-by: Richard Weinberger 
---
 meta/classes/image_types.bbclass   |  9 +
 .../erofs-utils/erofs-utils_git.bb | 18 ++
 scripts/lib/wic/help.py|  1 +
 scripts/lib/wic/ksparser.py|  7 ++-
 scripts/lib/wic/partition.py   | 16 +---
 scripts/lib/wic/plugins/source/rawcopy.py  |  6 +++---
 6 files changed, 50 insertions(+), 7 deletions(-)
 create mode 100644 meta/recipes-devtools/erofs-utils/erofs-utils_git.bb

diff --git a/meta/classes/image_types.bbclass b/meta/classes/image_types.bbclass
index 8028691405a7..4e95e0e2935e 100644
--- a/meta/classes/image_types.bbclass
+++ b/meta/classes/image_types.bbclass
@@ -108,6 +108,11 @@ IMAGE_CMD_squashfs-xz = "mksquashfs ${IMAGE_ROOTFS} 
${IMGDEPLOYDIR}/${IMAGE_NAME
 IMAGE_CMD_squashfs-lzo = "mksquashfs ${IMAGE_ROOTFS} 
${IMGDEPLOYDIR}/${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.squashfs-lzo 
${EXTRA_IMAGECMD} -noappend -comp lzo"
 IMAGE_CMD_squashfs-lz4 = "mksquashfs ${IMAGE_ROOTFS} 
${IMGDEPLOYDIR}/${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.squashfs-lz4 
${EXTRA_IMAGECMD} -noappend -comp lz4"
 
+IMAGE_CMD_erofs = "mkfs.erofs ${EXTRA_IMAGECMD} 
${IMGDEPLOYDIR}/${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.erofs ${IMAGE_ROOTFS}"
+IMAGE_CMD_erofs-lz4 = "mkfs.erofs -zlz4 ${EXTRA_IMAGECMD} 
${IMGDEPLOYDIR}/${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.erofs-lz4 ${IMAGE_ROOTFS}"
+IMAGE_CMD_erofs-lz4hc = "mkfs.erofs -zlz4hc ${EXTRA_IMAGECMD} 
${IMGDEPLOYDIR}/${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.erofs-lz4hc ${IMAGE_ROOTFS}"
+
+
 IMAGE_CMD_TAR ?= "tar"
 # ignore return code 1 "file changed as we read it" as other tasks(e.g. 
do_image_wic) may be hardlinking rootfs
 IMAGE_CMD_tar = "${IMAGE_CMD_TAR} --sort=name --format=posix --numeric-owner 
-cf ${IMGDEPLOYDIR}/${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.tar -C ${IMAGE_ROOTFS} . 
|| [ $? -eq 1 ]"
@@ -243,6 +248,9 @@ do_image_ubi[depends] += 
"mtd-utils-native:do_populate_sysroot"
 do_image_ubifs[depends] += "mtd-utils-native:do_populate_sysroot"
 do_image_multiubi[depends] += "mtd-utils-native:do_populate_sysroot"
 do_image_f2fs[depends] += "f2fs-tools-native:do_populate_sysroot"
+do_image_erofs[depends] += "erofs-utils-native:do_populate_sysroot"
+do_image_erofs_lz4[depends] += "erofs-utils-native:do_populate_sysroot"
+do_image_erofs_lz4hc[depends] += "erofs-utils-native:do_populate_sysroot"
 
 # This variable is available to request which values are suitable for 
IMAGE_FSTYPES
 IMAGE_TYPES = " \
@@ -261,6 +269,7 @@ IMAGE_TYPES = " \
 wic wic.gz wic.bz2 wic.lzma wic.zst \
 container \
 f2fs \
+erofs \
 "
 
 # Compression is a special case of conversion. The old variable
diff --git a/meta/recipes-devtools/erofs-utils/erofs-utils_git.bb 
b/meta/recipes-devtools/erofs-utils/erofs-utils_git.bb
new file mode 100644
index ..6d35d3f2fa6d
--- /dev/null
+++ b/meta/recipes-devtools/erofs-utils/erofs-utils_git.bb
@@ -0,0 +1,18 @@
+SUMMARY = "Tools for erofs filesystems"
+LICENSE = "GPLv2"
+SECTION = "base"
+LIC_FILES_CHKSUM = "file://COPYING;md5=94fa01670a2a8f2d3ab2de15004e0848"
+
+PV = "1.2.1"
+SRCREV = "d1f4953edfcf4f51c71ba91586e21fc6ce9f6db9"
+SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs-utils.git"
+
+S = "${WORKDIR}/git"
+
+DEPENDS = "util-linux-libuuid lz4"
+
+inherit pkgconfig autotools
+
+EXTRA_OECONF = "--enable-lz4 --disable-fuse"
+
+BBCLASSEXTEND = "native nativesdk"
diff --git a/scripts/lib/wic/help.py b/scripts/lib/wic/help.py
index bd3a2b97dfaf..991e5094bb84 100644
--- a/scripts/lib/wic/help.py
+++ b/scripts/lib/wic/help.py
@@ -930,6 +930,7 @@ DESCRIPTION
  ext4
  btrfs
  squashfs
+ erofs
  swap
 
  --fsoptions: Specifies a free-form string of options to be
diff --git a/scripts/lib/wic/ksparser.py b/scripts/lib/wic/ksparser.py
index 3eb669da39ca..7a4cc83af556 100644
--- a/scripts/lib/wic/ksparser.py
+++ b/scripts/lib/wic/ksparser.py
@@ -157,7 +157,8 @@ 

[OE-core] [yocto-docs][PATCH] Document erofs filesystem targets

2021-05-25 Thread Richard Weinberger
Signed-off-by: Richard Weinberger 
---
 documentation/ref-manual/kickstart.rst | 2 ++
 documentation/ref-manual/variables.rst | 3 +++
 2 files changed, 5 insertions(+)

diff --git a/documentation/ref-manual/kickstart.rst 
b/documentation/ref-manual/kickstart.rst
index 83085b72..2c8b724ff9ac 100644
--- a/documentation/ref-manual/kickstart.rst
+++ b/documentation/ref-manual/kickstart.rst
@@ -116,6 +116,8 @@ the ``part`` and ``partition`` commands:
 
-  ``squashfs``
 
+   -  ``erofs``
+
-  ``swap``
 
 -  ``--fsoptions``: Specifies a free-form string of options to be used
diff --git a/documentation/ref-manual/variables.rst 
b/documentation/ref-manual/variables.rst
index df6413b68ae9..d4ea4f399921 100644
--- a/documentation/ref-manual/variables.rst
+++ b/documentation/ref-manual/variables.rst
@@ -3293,6 +3293,9 @@ system and gives an overview of their function and 
contents.
   - jffs2
   - jffs2.sum
   - multiubi
+  - erofs
+  - erofs-lz4
+  - erofs-lz4hc
   - squashfs
   - squashfs-lz4
   - squashfs-lzo
-- 
2.26.2


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#152212): 
https://lists.openembedded.org/g/openembedded-core/message/152212
Mute This Topic: https://lists.openembedded.org/mt/83073124/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core][PATCH v2] expat: upgrade 2.3.0 -> 2.4.1

2021-05-25 Thread Andrej Valek
Includes lot of security fixes, especially CVE-2013-0340/CWE-776.

Signed-off-by: Andrej Valek 
---
 meta/recipes-core/expat/{expat_2.3.0.bb => expat_2.4.1.bb} | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta/recipes-core/expat/{expat_2.3.0.bb => expat_2.4.1.bb} (89%)

diff --git a/meta/recipes-core/expat/expat_2.3.0.bb 
b/meta/recipes-core/expat/expat_2.4.1.bb
similarity index 89%
rename from meta/recipes-core/expat/expat_2.3.0.bb
rename to meta/recipes-core/expat/expat_2.4.1.bb
index 14d2855df3..a57fc1b23b 100644
--- a/meta/recipes-core/expat/expat_2.3.0.bb
+++ b/meta/recipes-core/expat/expat_2.4.1.bb
@@ -11,7 +11,7 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/expat/expat-${PV}.tar.bz2 \
file://run-ptest \
"
 
-SRC_URI[sha256sum] = 
"f122a20eada303f904d5e0513326c5b821248f2d4d2afbf5c6f1339e511c0586"
+SRC_URI[sha256sum] = 
"2f9b6a580b94577b150a7d5617ad4643a4301a6616ff459307df3e225bcfbf40"
 
 EXTRA_OECMAKE_class-native += "-DEXPAT_BUILD_DOCS=OFF"
 
-- 
2.11.0


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#152211): 
https://lists.openembedded.org/g/openembedded-core/message/152211
Mute This Topic: https://lists.openembedded.org/mt/83072579/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [OE-core] [PATCH] oeqa: sdk: basic go toolchain test support

2021-05-25 Thread Peter Morrow
On Thu, May 20, 2021 at 02:57:26PM +0100, Richard Purdie wrote:
> On Thu, 2021-05-20 at 12:27 +0100, Richard Purdie via lists.openembedded.org 
> wrote:
> > On Tue, 2021-05-18 at 06:05 -0700, Peter Morrow wrote:
> > > Add a simple build test for the golang toolchain which is produced into a 
> > > SDK.
> > > 
> > > Signed-off-by: Peter Morrow 
> > > ---
> > >  meta/lib/oeqa/sdk/cases/go.py   | 34 ++
> > >  meta/lib/oeqa/sdk/files/test.go |  7 +++
> > >  2 files changed, 41 insertions(+)
> > >  create mode 100644 meta/lib/oeqa/sdk/cases/go.py
> > >  create mode 100644 meta/lib/oeqa/sdk/files/test.go
> > > 
> > > diff --git a/meta/lib/oeqa/sdk/cases/go.py b/meta/lib/oeqa/sdk/cases/go.py
> > > new file mode 100644
> > > index 000..1af5516
> > > --- /dev/null
> > > +++ b/meta/lib/oeqa/sdk/cases/go.py
> > > @@ -0,0 +1,34 @@
> > > +#
> > > +# SPDX-License-Identifier: MIT
> > > +#
> > > +
> > > +import os
> > > +import shutil
> > > +import unittest
> > > +
> > > +from oeqa.core.utils.path import remove_safe
> > > +from oeqa.sdk.case import OESDKTestCase
> > > +
> > > +from oeqa.utils.subprocesstweak import errors_have_output
> > > +errors_have_output()
> > > +
> > > +class GoCompileTest(OESDKTestCase):
> > > +@classmethod
> > > +def setUpClass(self):
> > > +files = {'test.go' : self.tc.files_dir}
> > > +for f in files:
> > > +shutil.copyfile(os.path.join(files[f], f),
> > > +os.path.join(self.tc.sdk_dir, f))
> > > +
> > > +def setUp(self):
> > > +if not self.tc.hasHostPackage("^nativesdk-go", regex=True):
> > > +raise unittest.SkipTest("GoCompileTest class: SDK doesn't 
> > > contain a golang toolchain")
> > > +
> > > +def test_go_compile(self):
> > > +self._run('go build -o %s/test %s/test.go' % (self.tc.sdk_dir, 
> > > self.tc.sdk_dir))
> > > +
> > > +@classmethod
> > > +def tearDownClass(self):
> > > +files = [os.path.join(self.tc.sdk_dir, f) for f in ['test.go', 
> > > 'test']]
> > > +for f in files:
> > > +remove_safe(f)
> > > diff --git a/meta/lib/oeqa/sdk/files/test.go 
> > > b/meta/lib/oeqa/sdk/files/test.go
> > > new file mode 100644
> > > index 000..089f721
> > > --- /dev/null
> > > +++ b/meta/lib/oeqa/sdk/files/test.go
> > > @@ -0,0 +1,7 @@
> > > +package main
> > > +
> > > +import "fmt"
> > > +
> > > +func main() {
> > > +fmt.Println("hello world!")
> > > +}
> > 
> > I'd love to add something like this but adding it triggered a lot of errors
> > in our automated QA:
> > 
> > https://autobuilder.yoctoproject.org/typhoon/#/builders/83/builds/2169
> > 
> 
> The autobuilder output isn't helpful to debug. I looked in and grabbed some 
> of a logfile:
> 
> NOTE: ==
> NOTE: ERROR: setUpClass (go.GoCompileTest)
> NOTE: --
> NOTE: Traceback (most recent call last):
>   File 
> "/home/pokybuild/yocto-worker/genericx86-64/build/meta/lib/oeqa/core/case.py",
>  line 39, in _oeSetUpClass
> clss.setUpClassMethod()
>   File 
> "/home/pokybuild/yocto-worker/genericx86-64/build/meta/lib/oeqa/sdk/cases/go.py",
>  line 20, in setUpClass
> shutil.copyfile(os.path.join(files[f], f),
>   File "/usr/lib64/python3.8/shutil.py", line 264, in copyfile
> with open(src, 'rb') as fsrc, open(dst, 'wb') as fdst:
> FileNotFoundError: [Errno 2] No such file or directory: 
> '/home/pokybuild/yocto-worker/genericx86-64/build/meta/lib/oeqa/files/test.go'
> 
> NOTE: --

Thanks Richard,

I'll take a look into these failures (which I didn't see when testing
locally) and will hopefully come back with a V2 shortly.

Peter.


> 
> 
> Cheers,
> 
> Richard

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#152210): 
https://lists.openembedded.org/g/openembedded-core/message/152210
Mute This Topic: https://lists.openembedded.org/mt/82910985/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [OE-core] [PATCH] libarchive: enable zstd support

2021-05-25 Thread Alexander Kanavin
Same here: why do this?

Alex

On Tue, 25 May 2021 at 11:35, Samuli Piippo  wrote:

> Now that zstd is in oe-core, add PACKAGECONFIG for it and enabled
> it by default in libarchive.
>
> zstd support is expected by CMake, which in nativesdk depends on
> libarchive (https://gitlab.kitware.com/cmake/cmake/-/issues/21552)
> ---
>  meta/recipes-extended/libarchive/libarchive_3.5.1.bb | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/meta/recipes-extended/libarchive/libarchive_3.5.1.bb
> b/meta/recipes-extended/libarchive/libarchive_3.5.1.bb
> index c9e30f468f..ebecee1f3e 100644
> --- a/meta/recipes-extended/libarchive/libarchive_3.5.1.bb
> +++ b/meta/recipes-extended/libarchive/libarchive_3.5.1.bb
> @@ -7,7 +7,7 @@ LIC_FILES_CHKSUM =
> "file://COPYING;md5=d499814247adaee08d88080841cb5665"
>
>  DEPENDS = "e2fsprogs-native"
>
> -PACKAGECONFIG ?= "zlib bz2 xz lzo"
> +PACKAGECONFIG ?= "zlib bz2 xz lzo zstd"
>
>  PACKAGECONFIG_append_class-target = "\
> ${@bb.utils.filter('DISTRO_FEATURES', 'acl xattr', d)} \
> @@ -28,6 +28,7 @@ PACKAGECONFIG[lzo] = "--with-lzo2,--without-lzo2,lzo,"
>  PACKAGECONFIG[nettle] = "--with-nettle,--without-nettle,nettle,"
>  PACKAGECONFIG[lz4] = "--with-lz4,--without-lz4,lz4,"
>  PACKAGECONFIG[mbedtls] = "--with-mbedtls,--without-mbedtls,mbedtls,"
> +PACKAGECONFIG[zstd] = "--with-zstd,--without-zstd,zstd,"
>
>  EXTRA_OECONF += "--enable-largefile"
>
> --
> 2.25.1
>
>
> 
>
>

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#152209): 
https://lists.openembedded.org/g/openembedded-core/message/152209
Mute This Topic: https://lists.openembedded.org/mt/83072226/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [OE-core] [PATCH] cmake-native: enabled zstd support

2021-05-25 Thread Alexander Kanavin
You need to explain the benefit in doing so, I think? :)

Alex

On Tue, 25 May 2021 at 12:05, Samuli Piippo  wrote:

> Now that zstd is in oe-core, enable support for it in native CMake.
>
> Signed-off-by: Samuli Piippo 
> ---
>  meta/recipes-devtools/cmake/cmake-native_3.20.1.bb | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/meta/recipes-devtools/cmake/cmake-native_3.20.1.bb
> b/meta/recipes-devtools/cmake/cmake-native_3.20.1.bb
> index d91e42ef9a..335097d387 100644
> --- a/meta/recipes-devtools/cmake/cmake-native_3.20.1.bb
> +++ b/meta/recipes-devtools/cmake/cmake-native_3.20.1.bb
> @@ -1,7 +1,7 @@
>  require cmake.inc
>  inherit native
>
> -DEPENDS += "bzip2-replacement-native xz-native zlib-native curl-native
> ncurses-native"
> +DEPENDS += "bzip2-replacement-native xz-native zlib-native curl-native
> ncurses-native zstd-native"
>
>  SRC_URI += "file://OEToolchainConfig.cmake \
>  file://environment.d-cmake.sh \
> --
> 2.25.1
>
>
> 
>
>

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#152208): 
https://lists.openembedded.org/g/openembedded-core/message/152208
Mute This Topic: https://lists.openembedded.org/mt/83072435/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core] [PATCH] cmake-native: enabled zstd support

2021-05-25 Thread Samuli Piippo
Now that zstd is in oe-core, enable support for it in native CMake.

Signed-off-by: Samuli Piippo 
---
 meta/recipes-devtools/cmake/cmake-native_3.20.1.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-devtools/cmake/cmake-native_3.20.1.bb 
b/meta/recipes-devtools/cmake/cmake-native_3.20.1.bb
index d91e42ef9a..335097d387 100644
--- a/meta/recipes-devtools/cmake/cmake-native_3.20.1.bb
+++ b/meta/recipes-devtools/cmake/cmake-native_3.20.1.bb
@@ -1,7 +1,7 @@
 require cmake.inc
 inherit native
 
-DEPENDS += "bzip2-replacement-native xz-native zlib-native curl-native 
ncurses-native"
+DEPENDS += "bzip2-replacement-native xz-native zlib-native curl-native 
ncurses-native zstd-native"
 
 SRC_URI += "file://OEToolchainConfig.cmake \
 file://environment.d-cmake.sh \
-- 
2.25.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#152207): 
https://lists.openembedded.org/g/openembedded-core/message/152207
Mute This Topic: https://lists.openembedded.org/mt/83072435/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [OE-core][PATCH] expat: upgrade 2.2.10 -> 2.4.1

2021-05-25 Thread Alexander Kanavin
I think you need to rebase this on master first, as it already has 2.3.0.

And removing patches needs to be explained.

Alex

On Tue, 25 May 2021 at 11:10, Andrej Valek  wrote:

> Includes lot of security fixes, especially CVE-2013-0340/CWE-776.
>
> Signed-off-by: Andrej Valek 
> ---
>  .../expat/0001-Add-output-of-tests-result.patch| 83
> --
>  .../expat/{expat_2.2.10.bb => expat_2.4.1.bb}  |  3 +-
>  2 files changed, 1 insertion(+), 85 deletions(-)
>  delete mode 100644
> meta/recipes-core/expat/expat/0001-Add-output-of-tests-result.patch
>  rename meta/recipes-core/expat/{expat_2.2.10.bb => expat_2.4.1.bb} (84%)
>
> diff --git
> a/meta/recipes-core/expat/expat/0001-Add-output-of-tests-result.patch
> b/meta/recipes-core/expat/expat/0001-Add-output-of-tests-result.patch
> deleted file mode 100644
> index c5c18ead74..00
> --- a/meta/recipes-core/expat/expat/0001-Add-output-of-tests-result.patch
> +++ /dev/null
> @@ -1,83 +0,0 @@
> -From aa84835a00bfd65e784d58411e76f60658e939dc Mon Sep 17 00:00:00 2001
> -From: Oleksandr Popovych 
> -Date: Tue, 18 Feb 2020 19:04:55 +0200
> -Subject: [PATCH] Add output of tests result
> -
> -Added console output of testing results in form 'RESULT: TEST_NAME'.
> -
> -Changed verbose mode of test application set by '-v' ('--verbose')
> -argument to CK_NORMAL.
> -Added new supported argument '-vv' ('--extra-verbose') that changes
> -verbose mode of test application to CK_VERBOSE. Results of each test
> -are shown in output only if this mode is set.
> -
> -Upstream-Status: Denied
> -
> -This patch changes potentially deprecated feature that shoud be changed
> -in upstream. [https://github.com/libexpat/libexpat/issues/382]
> -
> -Signed-off-by: Oleksandr Popovych 
> 
> - tests/minicheck.c | 10 +-
> - tests/runtests.c  |  4 +++-
> - 2 files changed, 12 insertions(+), 2 deletions(-)
> -
> -diff --git a/expat/tests/minicheck.c b/expat/tests/minicheck.c
> -index a5a1efb..94fa412 100644
>  a/tests/minicheck.c
> -+++ b/tests/minicheck.c
> -@@ -164,6 +164,8 @@ srunner_run_all(SRunner *runner, int verbosity) {
> -   if (tc->setup != NULL) {
> - /* setup */
> - if (setjmp(env)) {
> -+  if (verbosity >= CK_VERBOSE)
> -+printf("SKIP: %s\n", _check_current_function);
> -   add_failure(runner, verbosity);
> -   continue;
> - }
> -@@ -171,6 +173,8 @@ srunner_run_all(SRunner *runner, int verbosity) {
> -   }
> -   /* test */
> -   if (setjmp(env)) {
> -+if (verbosity >= CK_VERBOSE)
> -+  printf("FAIL: %s\n", _check_current_function);
> - add_failure(runner, verbosity);
> - continue;
> -   }
> -@@ -178,12 +182,16 @@ srunner_run_all(SRunner *runner, int verbosity) {
> -
> -   /* teardown */
> -   if (tc->teardown != NULL) {
> --if (setjmp(env)) {
> -+if (setjmp(env)) {
> -+  if (verbosity >= CK_VERBOSE)
> -+   printf("PASS: %s\n", _check_current_function);
> -   add_failure(runner, verbosity);
> -   continue;
> - }
> - tc->teardown();
> -   }
> -+  if (verbosity >= CK_VERBOSE)
> -+printf("PASS: %s\n", _check_current_function);
> - }
> - tc = tc->next_tcase;
> -   }
> -diff --git a/tests/runtests.c b/expat/tests/runtests.c
> -index 7791fe0..75724e5 100644
>  a/tests/runtests.c
> -+++ b/tests/runtests.c
> -@@ -11619,9 +11619,11 @@ main(int argc, char *argv[]) {
> -   for (i = 1; i < argc; ++i) {
> - char *opt = argv[i];
> - if (strcmp(opt, "-v") == 0 || strcmp(opt, "--verbose") == 0)
> --  verbosity = CK_VERBOSE;
> -+  verbosity = CK_NORMAL;
> - else if (strcmp(opt, "-q") == 0 || strcmp(opt, "--quiet") == 0)
> -   verbosity = CK_SILENT;
> -+else if (strcmp(opt, "-vv") == 0 || strcmp(opt, "--extra-verbose")
> == 0)
> -+  verbosity = CK_VERBOSE;
> - else {
> -   fprintf(stderr, "runtests: unknown option '%s'\n", opt);
> -   return 2;
> ---
> -2.17.1
> diff --git a/meta/recipes-core/expat/expat_2.2.10.bb
> b/meta/recipes-core/expat/expat_2.4.1.bb
> similarity index 84%
> rename from meta/recipes-core/expat/expat_2.2.10.bb
> rename to meta/recipes-core/expat/expat_2.4.1.bb
> index fa263775b3..476c5f8cc7 100644
> --- a/meta/recipes-core/expat/expat_2.2.10.bb
> +++ b/meta/recipes-core/expat/expat_2.4.1.bb
> @@ -9,10 +9,9 @@ LIC_FILES_CHKSUM =
> "file://COPYING;md5=9e2ce3b3c4c0f2670883a23bbd7c37a9"
>  SRC_URI = "${SOURCEFORGE_MIRROR}/expat/expat-${PV}.tar.bz2 \
> file://libtool-tag.patch \
>file://run-ptest \
> -  file://0001-Add-output-of-tests-result.patch \
>   "
>
> -SRC_URI[sha256sum] =
> "b2c160f1b60e92da69de8e12333096aeb0c3bf692d41c60794de278af72135a5"
> +SRC_URI[sha256sum] =
> "2f9b6a580b94577b150a7d5617ad4643a4301a6616ff459307df3e225bcfbf40"
>
>  EXTRA_OECMAKE_class-native += "-DEXPAT_BUILD_DOCS=OFF"
>
> --
> 2.11.0
>
>
> 
>
>

-=-=-=-=-=-=-=-=-=-=-=-

[OE-core] [PATCH] ffmpeg: Add libopus packageconfig

2021-05-25 Thread Carlos Rafael Giani via lists.openembedded.org
Signed-off-by: Carlos Rafael Giani 
---
 meta/recipes-multimedia/ffmpeg/ffmpeg_4.4.bb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/recipes-multimedia/ffmpeg/ffmpeg_4.4.bb 
b/meta/recipes-multimedia/ffmpeg/ffmpeg_4.4.bb
index 384e07362a..664fc6066a 100644
--- a/meta/recipes-multimedia/ffmpeg/ffmpeg_4.4.bb
+++ b/meta/recipes-multimedia/ffmpeg/ffmpeg_4.4.bb
@@ -64,6 +64,7 @@ PACKAGECONFIG[fdk-aac] = "--enable-libfdk-aac 
--enable-nonfree,--disable-libfdk-
 PACKAGECONFIG[gpl] = "--enable-gpl,--disable-gpl"
 PACKAGECONFIG[gsm] = "--enable-libgsm,--disable-libgsm,libgsm"
 PACKAGECONFIG[jack] = "--enable-indev=jack,--disable-indev=jack,jack"
+PACKAGECONFIG[libopus] = "--enable-libopus,--disable-libopus,libopus"
 PACKAGECONFIG[libvorbis] = "--enable-libvorbis,--disable-libvorbis,libvorbis"
 PACKAGECONFIG[lzma] = "--enable-lzma,--disable-lzma,xz"
 PACKAGECONFIG[mfx] = "--enable-libmfx,--disable-libmfx,intel-mediasdk"
-- 
2.25.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#152205): 
https://lists.openembedded.org/g/openembedded-core/message/152205
Mute This Topic: https://lists.openembedded.org/mt/83072406/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core] [PATCH] libarchive: enable zstd support

2021-05-25 Thread Samuli Piippo
Now that zstd is in oe-core, add PACKAGECONFIG for it and enabled
it by default in libarchive.

zstd support is expected by CMake, which in nativesdk depends on
libarchive (https://gitlab.kitware.com/cmake/cmake/-/issues/21552)
---
 meta/recipes-extended/libarchive/libarchive_3.5.1.bb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/meta/recipes-extended/libarchive/libarchive_3.5.1.bb 
b/meta/recipes-extended/libarchive/libarchive_3.5.1.bb
index c9e30f468f..ebecee1f3e 100644
--- a/meta/recipes-extended/libarchive/libarchive_3.5.1.bb
+++ b/meta/recipes-extended/libarchive/libarchive_3.5.1.bb
@@ -7,7 +7,7 @@ LIC_FILES_CHKSUM = 
"file://COPYING;md5=d499814247adaee08d88080841cb5665"
 
 DEPENDS = "e2fsprogs-native"
 
-PACKAGECONFIG ?= "zlib bz2 xz lzo"
+PACKAGECONFIG ?= "zlib bz2 xz lzo zstd"
 
 PACKAGECONFIG_append_class-target = "\
${@bb.utils.filter('DISTRO_FEATURES', 'acl xattr', d)} \
@@ -28,6 +28,7 @@ PACKAGECONFIG[lzo] = "--with-lzo2,--without-lzo2,lzo,"
 PACKAGECONFIG[nettle] = "--with-nettle,--without-nettle,nettle,"
 PACKAGECONFIG[lz4] = "--with-lz4,--without-lz4,lz4,"
 PACKAGECONFIG[mbedtls] = "--with-mbedtls,--without-mbedtls,mbedtls,"
+PACKAGECONFIG[zstd] = "--with-zstd,--without-zstd,zstd,"
 
 EXTRA_OECONF += "--enable-largefile"
 
-- 
2.25.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#152204): 
https://lists.openembedded.org/g/openembedded-core/message/152204
Mute This Topic: https://lists.openembedded.org/mt/83072226/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core][PATCH] expat: upgrade 2.2.10 -> 2.4.1

2021-05-25 Thread Andrej Valek
Includes lot of security fixes, especially CVE-2013-0340/CWE-776.

Signed-off-by: Andrej Valek 
---
 .../expat/0001-Add-output-of-tests-result.patch| 83 --
 .../expat/{expat_2.2.10.bb => expat_2.4.1.bb}  |  3 +-
 2 files changed, 1 insertion(+), 85 deletions(-)
 delete mode 100644 
meta/recipes-core/expat/expat/0001-Add-output-of-tests-result.patch
 rename meta/recipes-core/expat/{expat_2.2.10.bb => expat_2.4.1.bb} (84%)

diff --git 
a/meta/recipes-core/expat/expat/0001-Add-output-of-tests-result.patch 
b/meta/recipes-core/expat/expat/0001-Add-output-of-tests-result.patch
deleted file mode 100644
index c5c18ead74..00
--- a/meta/recipes-core/expat/expat/0001-Add-output-of-tests-result.patch
+++ /dev/null
@@ -1,83 +0,0 @@
-From aa84835a00bfd65e784d58411e76f60658e939dc Mon Sep 17 00:00:00 2001
-From: Oleksandr Popovych 
-Date: Tue, 18 Feb 2020 19:04:55 +0200
-Subject: [PATCH] Add output of tests result
-
-Added console output of testing results in form 'RESULT: TEST_NAME'.
-
-Changed verbose mode of test application set by '-v' ('--verbose')
-argument to CK_NORMAL.
-Added new supported argument '-vv' ('--extra-verbose') that changes
-verbose mode of test application to CK_VERBOSE. Results of each test
-are shown in output only if this mode is set.
-
-Upstream-Status: Denied
-
-This patch changes potentially deprecated feature that shoud be changed
-in upstream. [https://github.com/libexpat/libexpat/issues/382]
-
-Signed-off-by: Oleksandr Popovych 

- tests/minicheck.c | 10 +-
- tests/runtests.c  |  4 +++-
- 2 files changed, 12 insertions(+), 2 deletions(-)
-
-diff --git a/expat/tests/minicheck.c b/expat/tests/minicheck.c
-index a5a1efb..94fa412 100644
 a/tests/minicheck.c
-+++ b/tests/minicheck.c
-@@ -164,6 +164,8 @@ srunner_run_all(SRunner *runner, int verbosity) {
-   if (tc->setup != NULL) {
- /* setup */
- if (setjmp(env)) {
-+  if (verbosity >= CK_VERBOSE)
-+printf("SKIP: %s\n", _check_current_function);
-   add_failure(runner, verbosity);
-   continue;
- }
-@@ -171,6 +173,8 @@ srunner_run_all(SRunner *runner, int verbosity) {
-   }
-   /* test */
-   if (setjmp(env)) {
-+if (verbosity >= CK_VERBOSE)
-+  printf("FAIL: %s\n", _check_current_function);
- add_failure(runner, verbosity);
- continue;
-   }
-@@ -178,12 +182,16 @@ srunner_run_all(SRunner *runner, int verbosity) {
-
-   /* teardown */
-   if (tc->teardown != NULL) {
--if (setjmp(env)) {
-+if (setjmp(env)) {
-+  if (verbosity >= CK_VERBOSE)
-+   printf("PASS: %s\n", _check_current_function);
-   add_failure(runner, verbosity);
-   continue;
- }
- tc->teardown();
-   }
-+  if (verbosity >= CK_VERBOSE)
-+printf("PASS: %s\n", _check_current_function);
- }
- tc = tc->next_tcase;
-   }
-diff --git a/tests/runtests.c b/expat/tests/runtests.c
-index 7791fe0..75724e5 100644
 a/tests/runtests.c
-+++ b/tests/runtests.c
-@@ -11619,9 +11619,11 @@ main(int argc, char *argv[]) {
-   for (i = 1; i < argc; ++i) {
- char *opt = argv[i];
- if (strcmp(opt, "-v") == 0 || strcmp(opt, "--verbose") == 0)
--  verbosity = CK_VERBOSE;
-+  verbosity = CK_NORMAL;
- else if (strcmp(opt, "-q") == 0 || strcmp(opt, "--quiet") == 0)
-   verbosity = CK_SILENT;
-+else if (strcmp(opt, "-vv") == 0 || strcmp(opt, "--extra-verbose") == 0)
-+  verbosity = CK_VERBOSE;
- else {
-   fprintf(stderr, "runtests: unknown option '%s'\n", opt);
-   return 2;
---
-2.17.1
diff --git a/meta/recipes-core/expat/expat_2.2.10.bb 
b/meta/recipes-core/expat/expat_2.4.1.bb
similarity index 84%
rename from meta/recipes-core/expat/expat_2.2.10.bb
rename to meta/recipes-core/expat/expat_2.4.1.bb
index fa263775b3..476c5f8cc7 100644
--- a/meta/recipes-core/expat/expat_2.2.10.bb
+++ b/meta/recipes-core/expat/expat_2.4.1.bb
@@ -9,10 +9,9 @@ LIC_FILES_CHKSUM = 
"file://COPYING;md5=9e2ce3b3c4c0f2670883a23bbd7c37a9"
 SRC_URI = "${SOURCEFORGE_MIRROR}/expat/expat-${PV}.tar.bz2 \
file://libtool-tag.patch \
   file://run-ptest \
-  file://0001-Add-output-of-tests-result.patch \
  "
 
-SRC_URI[sha256sum] = 
"b2c160f1b60e92da69de8e12333096aeb0c3bf692d41c60794de278af72135a5"
+SRC_URI[sha256sum] = 
"2f9b6a580b94577b150a7d5617ad4643a4301a6616ff459307df3e225bcfbf40"
 
 EXTRA_OECMAKE_class-native += "-DEXPAT_BUILD_DOCS=OFF"
 
-- 
2.11.0


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#152203): 
https://lists.openembedded.org/g/openembedded-core/message/152203
Mute This Topic: https://lists.openembedded.org/mt/83071958/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core] [meta-oe][dunfell][PATCH] opencv: Add fix for CVE-2019-5063 and CVE-2019-5064

2021-05-25 Thread akash hadke
From: "akash.hadke" 

Added fix for below CVE's

CVE-2019-5063
CVE-2019-5064
Link: 
https://github.com/opencv/opencv/commit/f42d5399aac80d371b17d689851406669c9b9111.patch

Signed-off-by: akash hadke 
---
 .../opencv/CVE-2019-5063_and_2019-5064.patch   | 78 ++
 meta-oe/recipes-support/opencv/opencv_4.1.0.bb |  1 +
 2 files changed, 79 insertions(+)
 create mode 100644 
meta-oe/recipes-support/opencv/opencv/CVE-2019-5063_and_2019-5064.patch

diff --git 
a/meta-oe/recipes-support/opencv/opencv/CVE-2019-5063_and_2019-5064.patch 
b/meta-oe/recipes-support/opencv/opencv/CVE-2019-5063_and_2019-5064.patch
new file mode 100644
index 000..b4d5e6d
--- /dev/null
+++ b/meta-oe/recipes-support/opencv/opencv/CVE-2019-5063_and_2019-5064.patch
@@ -0,0 +1,78 @@
+From f42d5399aac80d371b17d689851406669c9b9111 Mon Sep 17 00:00:00 2001
+From: Alexander Alekhin 
+Date: Thu, 7 Nov 2019 14:01:51 +0300
+Subject: [PATCH] core(persistence): add more checks for implementation
+ limitations
+
+Signed-off-by: akash hadke 
+---
+ modules/core/src/persistence_json.cpp | 8 
+ modules/core/src/persistence_xml.cpp  | 6 --
+ 2 files changed, 12 insertions(+), 2 deletions(-)
+---
+CVE: CVE-2019-5063
+CVE: CVE-2019-5064
+Upstream-Status: Backport 
[https://github.com/opencv/opencv/commit/f42d5399aac80d371b17d689851406669c9b9111.patch]
+---
+diff --git a/modules/core/src/persistence_json.cpp 
b/modules/core/src/persistence_json.cpp
+index 89914e6534f..2efdf17d3f5 100644
+--- a/modules/core/src/persistence_json.cpp
 b/modules/core/src/persistence_json.cpp
+@@ -578,10 +578,14 @@ class JSONParser : public FileStorageParser
+ sz = (int)(ptr - beg);
+ if( sz > 0 )
+ {
++if (i + sz >= CV_FS_MAX_LEN)
++CV_PARSE_ERROR_CPP("string is too long");
+ memcpy(buf + i, beg, sz);
+ i += sz;
+ }
+ ptr++;
++if (i + 1 >= CV_FS_MAX_LEN)
++CV_PARSE_ERROR_CPP("string is too long");
+ switch ( *ptr )
+ {
+ case '\\':
+@@ -605,6 +609,8 @@ class JSONParser : public FileStorageParser
+ sz = (int)(ptr - beg);
+ if( sz > 0 )
+ {
++if (i + sz >= CV_FS_MAX_LEN)
++CV_PARSE_ERROR_CPP("string is too long");
+ memcpy(buf + i, beg, sz);
+ i += sz;
+ }
+@@ -620,6 +626,8 @@ class JSONParser : public FileStorageParser
+ sz = (int)(ptr - beg);
+ if( sz > 0 )
+ {
++if (i + sz >= CV_FS_MAX_LEN)
++CV_PARSE_ERROR_CPP("string is too long");
+ memcpy(buf + i, beg, sz);
+ i += sz;
+ }
+diff --git a/modules/core/src/persistence_xml.cpp 
b/modules/core/src/persistence_xml.cpp
+index 89876dd3da8..52b53744254 100644
+--- a/modules/core/src/persistence_xml.cpp
 b/modules/core/src/persistence_xml.cpp
+@@ -627,6 +627,8 @@ class XMLParser : public FileStorageParser
+ c = '\"';
+ else
+ {
++if (len + 2 + i >= CV_FS_MAX_LEN)
++CV_PARSE_ERROR_CPP("string is too 
long");
+ memcpy( strbuf + i, ptr-1, len + 2 );
+ i += len + 2;
+ }
+@@ -635,9 +637,9 @@ class XMLParser : public FileStorageParser
+ CV_PERSISTENCE_CHECK_END_OF_BUFFER_BUG_CPP();
+ }
+ }
++if (i + 1 >= CV_FS_MAX_LEN)
++CV_PARSE_ERROR_CPP("Too long string literal");
+ strbuf[i++] = c;
+-if( i >= CV_FS_MAX_LEN )
+-CV_PARSE_ERROR_CPP( "Too long string literal" );
+ }
+ elem->setValue(FileNode::STRING, strbuf, i);
+ }
diff --git a/meta-oe/recipes-support/opencv/opencv_4.1.0.bb 
b/meta-oe/recipes-support/opencv/opencv_4.1.0.bb
index de708fd..19d5d0c 100644
--- a/meta-oe/recipes-support/opencv/opencv_4.1.0.bb
+++ b/meta-oe/recipes-support/opencv/opencv_4.1.0.bb
@@ -54,6 +54,7 @@ SRC_URI = "git://github.com/opencv/opencv.git;name=opencv \