[OE-core] [dunfell][PATCH] vim: fix 2021-3796
vim is vulnerable to Use After Free Problem: Checking first character of url twice. reference: https://github.com/vim/vim/commit/35a9a00afcb20897d462a766793ff45534810dc3 --- .../vim/files/CVE-2021-3796.patch | 70 +++ meta/recipes-support/vim/vim.inc | 1 + 2 files changed, 71 insertions(+) create mode 100644 meta/recipes-support/vim/files/CVE-2021-3796.patch diff --git a/meta/recipes-support/vim/files/CVE-2021-3796.patch b/meta/recipes-support/vim/files/CVE-2021-3796.patch new file mode 100644 index 00..08becb4d9a --- /dev/null +++ b/meta/recipes-support/vim/files/CVE-2021-3796.patch @@ -0,0 +1,70 @@ +From 296bf20889e66e3235e199838c6e360db2c4166d Mon Sep 17 00:00:00 2001 +From: Minjae Kim +Date: Fri, 22 Oct 2021 02:24:32 + +Subject: [PATCH] patch 8.2.3428: using freed memory when replacing + +Problem:Using freed memory when replacing. (Dhiraj Mishra) +Solution: Get the line pointer after calling ins_copychar(). + +Upstream-Status: Accepted [https://github.com/vim/vim/commit/35a9a00afcb20897d462a766793ff45534810dc3] +CVE: CVE-2021-3796 +Signed-off-by: Minjae Kim +--- + src/normal.c | 11 +++ + src/testdir/test_edit.vim | 12 + 2 files changed, 19 insertions(+), 4 deletions(-) + +diff --git a/src/normal.c b/src/normal.c +index c4963e621..277c92595 100644 +--- a/src/normal.c b/src/normal.c +@@ -5009,19 +5009,22 @@ nv_replace(cmdarg_T *cap) + { + /* +* Get ptr again, because u_save and/or showmatch() will have +- * released the line. At the same time we let know that the ++ * released the line. This may also happen in ins_copychar(). ++ * At the same time we let know that the +* line will be changed. +*/ +- ptr = ml_get_buf(curbuf, curwin->w_cursor.lnum, TRUE); + if (cap->nchar == Ctrl_E || cap->nchar == Ctrl_Y) + { + int c = ins_copychar(curwin->w_cursor.lnum + + (cap->nchar == Ctrl_Y ? -1 : 1)); ++ ++ptr = ml_get_buf(curbuf, curwin->w_cursor.lnum, TRUE); + if (c != NUL) + ptr[curwin->w_cursor.col] = c; +- } +- else ++ } else { + ptr[curwin->w_cursor.col] = cap->nchar; ++ ptr = ml_get_buf(curbuf, curwin->w_cursor.lnum, TRUE); ++ } + if (p_sm && msg_silent == 0) + showmatch(cap->nchar); + ++curwin->w_cursor.col; +diff --git a/src/testdir/test_edit.vim b/src/testdir/test_edit.vim +index 4e29e7fe1..d7565e1ea 100644 +--- a/src/testdir/test_edit.vim b/src/testdir/test_edit.vim +@@ -1519,3 +1519,15 @@ func Test_edit_noesckeys() + bwipe! + set esckeys + endfunc ++ ++" Test for getting the character of the line below after "p" ++func Test_edit_put_CTRL_E() ++ set encoding=latin1 ++ new ++ let @" = '' ++ sil! norm orggRx ++ sil! norm pr ++ call assert_equal(['r', 'r'], getline(1, 2)) ++ bwipe! ++ set encoding=utf-8 ++endfunc +-- +2.17.1 + diff --git a/meta/recipes-support/vim/vim.inc b/meta/recipes-support/vim/vim.inc index fc4e205b74..0973a368c0 100644 --- a/meta/recipes-support/vim/vim.inc +++ b/meta/recipes-support/vim/vim.inc @@ -19,6 +19,7 @@ SRC_URI = "git://github.com/vim/vim.git \ file://racefix.patch \ file://b7081e135a16091c93f6f5f7525a5c58fb7ca9f9.patch \ file://CVE-2021-3778.patch \ + file://CVE-2021-3796.patch \ " SRCREV = "98056533b96b6b5d8849641de93185dd7bcadc44" -- 2.30.1 (Apple Git-130) -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#157293): https://lists.openembedded.org/g/openembedded-core/message/157293 Mute This Topic: https://lists.openembedded.org/mt/86506415/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] sudo: update multilib patch for sudo.conf
From: Kai Kang Update multilib patch for sudo.conf that there is one more replacement of @plugindir@ to avoid installation conflict. Signed-off-by: Kai Kang --- ...o.conf.in-fix-conflict-with-multilib.patch | 19 ++- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/meta/recipes-extended/sudo/files/0001-sudo.conf.in-fix-conflict-with-multilib.patch b/meta/recipes-extended/sudo/files/0001-sudo.conf.in-fix-conflict-with-multilib.patch index f7ccfdd623..f4fc376bb8 100644 --- a/meta/recipes-extended/sudo/files/0001-sudo.conf.in-fix-conflict-with-multilib.patch +++ b/meta/recipes-extended/sudo/files/0001-sudo.conf.in-fix-conflict-with-multilib.patch @@ -13,11 +13,11 @@ Signed-off-by: Kai Kang Upstream-Status: Inappropriate [OE configuration specific] --- - examples/sudo.conf.in | 6 +++--- - 1 file changed, 3 insertions(+), 3 deletions(-) + examples/sudo.conf.in | 8 + 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/sudo.conf.in b/examples/sudo.conf.in -index 19e33ff..af78235 100644 +index 6535d3a..50afc8f 100644 --- a/examples/sudo.conf.in +++ b/examples/sudo.conf.in @@ -4,7 +4,7 @@ @@ -29,7 +29,16 @@ index 19e33ff..af78235 100644 # fully qualified. # The plugin_name corresponds to a global symbol in the plugin # that contains the plugin interface structure. -@@ -50,7 +50,7 @@ Plugin sudoers_audit sudoers.so +@@ -51,7 +51,7 @@ + # The compiled-in value is usually sufficient and should only be changed + # if you rename or move the sudo_intercept.so file. + # +-#Path intercept @plugindir@/sudo_intercept.so ++#Path intercept $plugindir/sudo_intercept.so + + # + # Sudo noexec: +@@ -65,7 +65,7 @@ # The compiled-in value is usually sufficient and should only be changed # if you rename or move the sudo_noexec.so file. # @@ -38,7 +47,7 @@ index 19e33ff..af78235 100644 # # Sudo plugin directory: -@@ -59,7 +59,7 @@ Plugin sudoers_audit sudoers.so +@@ -74,7 +74,7 @@ # The default directory to use when searching for plugins that are # specified without a fully qualified path name. # -- 2.17.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#157292): https://lists.openembedded.org/g/openembedded-core/message/157292 Mute This Topic: https://lists.openembedded.org/mt/86506375/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] vim: fix 2021-3796
vim is vulnerable to Use After Free Problem:Checking first character of url twice. reference: https://github.com/vim/vim/commit/35a9a00afcb20897d462a766793ff45534810dc3 --- .../vim/files/CVE-2021-3796.patch | 70 +++ meta/recipes-support/vim/vim.inc | 3 +- 2 files changed, 72 insertions(+), 1 deletion(-) create mode 100644 meta/recipes-support/vim/files/CVE-2021-3796.patch diff --git a/meta/recipes-support/vim/files/CVE-2021-3796.patch b/meta/recipes-support/vim/files/CVE-2021-3796.patch new file mode 100644 index 00..08becb4d9a --- /dev/null +++ b/meta/recipes-support/vim/files/CVE-2021-3796.patch @@ -0,0 +1,70 @@ +From 296bf20889e66e3235e199838c6e360db2c4166d Mon Sep 17 00:00:00 2001 +From: Minjae Kim +Date: Fri, 22 Oct 2021 02:24:32 + +Subject: [PATCH] patch 8.2.3428: using freed memory when replacing + +Problem:Using freed memory when replacing. (Dhiraj Mishra) +Solution: Get the line pointer after calling ins_copychar(). + +Upstream-Status: Accepted [https://github.com/vim/vim/commit/35a9a00afcb20897d462a766793ff45534810dc3] +CVE: CVE-2021-3796 +Signed-off-by: Minjae Kim +--- + src/normal.c | 11 +++ + src/testdir/test_edit.vim | 12 + 2 files changed, 19 insertions(+), 4 deletions(-) + +diff --git a/src/normal.c b/src/normal.c +index c4963e621..277c92595 100644 +--- a/src/normal.c b/src/normal.c +@@ -5009,19 +5009,22 @@ nv_replace(cmdarg_T *cap) + { + /* +* Get ptr again, because u_save and/or showmatch() will have +- * released the line. At the same time we let know that the ++ * released the line. This may also happen in ins_copychar(). ++ * At the same time we let know that the +* line will be changed. +*/ +- ptr = ml_get_buf(curbuf, curwin->w_cursor.lnum, TRUE); + if (cap->nchar == Ctrl_E || cap->nchar == Ctrl_Y) + { + int c = ins_copychar(curwin->w_cursor.lnum + + (cap->nchar == Ctrl_Y ? -1 : 1)); ++ ++ptr = ml_get_buf(curbuf, curwin->w_cursor.lnum, TRUE); + if (c != NUL) + ptr[curwin->w_cursor.col] = c; +- } +- else ++ } else { + ptr[curwin->w_cursor.col] = cap->nchar; ++ ptr = ml_get_buf(curbuf, curwin->w_cursor.lnum, TRUE); ++ } + if (p_sm && msg_silent == 0) + showmatch(cap->nchar); + ++curwin->w_cursor.col; +diff --git a/src/testdir/test_edit.vim b/src/testdir/test_edit.vim +index 4e29e7fe1..d7565e1ea 100644 +--- a/src/testdir/test_edit.vim b/src/testdir/test_edit.vim +@@ -1519,3 +1519,15 @@ func Test_edit_noesckeys() + bwipe! + set esckeys + endfunc ++ ++" Test for getting the character of the line below after "p" ++func Test_edit_put_CTRL_E() ++ set encoding=latin1 ++ new ++ let @" = '' ++ sil! norm orggRx ++ sil! norm pr ++ call assert_equal(['r', 'r'], getline(1, 2)) ++ bwipe! ++ set encoding=utf-8 ++endfunc +-- +2.17.1 + diff --git a/meta/recipes-support/vim/vim.inc b/meta/recipes-support/vim/vim.inc index db1e9caf4d..917f82404b 100644 --- a/meta/recipes-support/vim/vim.inc +++ b/meta/recipes-support/vim/vim.inc @@ -18,7 +18,8 @@ SRC_URI = "git://github.com/vim/vim.git \ file://no-path-adjust.patch \ file://racefix.patch \ file://b7081e135a16091c93f6f5f7525a5c58fb7ca9f9.patch \ - file://CVE-2021-3778.patch \ + file://CVE-2021-3778.patch \ + file://CVE-2021-3796.patch \ " SRCREV = "98056533b96b6b5d8849641de93185dd7bcadc44" -- 2.30.1 (Apple Git-130) -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#157291): https://lists.openembedded.org/g/openembedded-core/message/157291 Mute This Topic: https://lists.openembedded.org/mt/86505722/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 00/38] Pull request (cover letter only)
The following changes since commit d12c44df66ca065a1526c7d6885e726cf50aab46: glew: Stop polluting /tmp during builds (2021-09-30 04:20:38 -1000) are available in the Git repository at: git://git.openembedded.org/openembedded-core-contrib stable/dunfell-next http://cgit.openembedded.org/openembedded-core-contrib/log/?h=stable/dunfell-next Alexander Kanavin (1): e2fsprogs: update to 1.45.6 Alexandre Belloni (1): oeqa/selftest/sstatetests: fix typo ware -> were Andrej Valek (1): libpsl: Add config knobs for runtime/builtin conversion choices Bruce Ashfield (3): linux-yocto/5.4: update to v5.4.149 linux-yocto/5.4: update to v5.4.150 linux-yocto/5.4: update to v5.4.153 Chandana kalluri (1): scriptutils.py: Add check before deleting path Christian Eggers (1): binutils: Fix a missing break in case statement Claudius Heine (1): rng-tools: add systemd-udev-settle wants to service Hongxu Jia (1): nativesdk-pseudo: Fix to work with glibc 2.34 systems Jon Mason (1): oeqa/manual: Fix no longer valid URLs Jose Quaresma (1): patch.bbclass: when the patch fails show more info on the fatal error Khem Raj (2): m4: Do not use SIGSTKSZ gpgme: Use glibc provided closefrom API when available Mark Hatle (1): externalsrc: Work with reproducible_build Markus Volk (1): util-linux: disable raw Michael Halstead (1): uninative: Upgrade to 3.3, support glibc 2.34 Pavel Zhukov (1): weston: Use systemd notify, Ralph Siemsen (1): tar: filter CVEs using vendor name Richard Purdie (13): multilib: Avoid sysroot race issues when multilib enabled pseudo: Fix to work with glibc 2.34 systems pseudo: Update with fcntl and glibc 2.34 fixes package: Ensure pclist files are deterministic and don't use full paths mesa: Ensure megadrivers runtime mappings are deterministic gnupg: Be deterministic about sendmail libtool: Fix lto option passing for reproducible builds libtool: Allow libtool-cross to reproduce gobject-introspection: Don't write $HOME into scripts externalsrc: Fix a source date epoch race in reproducible builds libxml2: Use python3targetconfig to fix reproducibility issue libnewt: Use python3targetconfig to fix reproducibility issue python3: Add a fix for a make install race Ross Burton (1): uninative: Improve glob to handle glibc 2.34 Saloni (1): ffmpeg: Add fix for CVEs Steve Sakoman (3): gcc: fix missing dependencies for selftests util-linux: Fix reproducibility target/ssh.py: add HostKeyAlgorithms option to test commands Wang Mingyu (1): e2fsprogs: upgrade 1.45.6 -> 1.45.7 meta/classes/externalsrc.bbclass | 9 ++ meta/classes/package.bbclass | 6 +- meta/classes/patch.bbclass| 7 +- meta/classes/uninative.bbclass| 2 +- meta/conf/distro/include/yocto-uninative.inc | 10 +-- meta/conf/multilib.conf | 2 + meta/lib/oeqa/core/target/ssh.py | 1 + meta/lib/oeqa/manual/eclipse-plugin.json | 6 +- meta/lib/oeqa/selftest/cases/sstatetests.py | 12 +-- meta/recipes-core/libxml/libxml2_2.9.10.bb| 2 +- meta/recipes-core/util-linux/util-linux.inc | 7 +- ...-system-directories-when-cross-linki.patch | 26 +++--- ...-t-try-to-rehash-a-deleted-directory.patch | 49 --- ...ate_inode.c-set-dir-s-mode-correctly.patch | 41 - .../e2fsprogs/e2fsprogs/CVE-2019-5188.patch | 57 - ...fix-use-after-free-in-calculate_tree.patch | 76 - ...-missing-check-for-permission-denied.patch | 2 +- .../e2fsprogs/e2fsprogs/quiet-debugfs.patch | 2 +- ...2fsprogs_1.45.4.bb => e2fsprogs_1.45.7.bb} | 6 +- meta/recipes-devtools/gcc/gcc-9.3.inc | 1 + ...x-missing-dependencies-for-selftests.patch | 45 ++ .../libtool/libtool-2.4.6.inc | 2 + .../libtool/libtool/lto-prefix.patch | 22 + .../recipes-devtools/libtool/libtool_2.4.6.bb | 2 +- meta/recipes-devtools/m4/m4-1.4.18.inc| 1 + .../m4/0001-c-stack-stop-using-SIGSTKSZ.patch | 84 +++ .../pseudo/files/build-oldlibc| 20 + .../pseudo/files/older-glibc-symbols.patch| 57 + meta/recipes-devtools/pseudo/pseudo_git.bb| 9 +- .../python/python3/makerace.patch | 23 + .../recipes-devtools/python/python3_3.8.11.bb | 1 + meta/recipes-extended/newt/libnewt_0.52.21.bb | 2 +- meta/recipes-extended/tar/tar_1.32.bb | 6 +- .../gobject-introspection_1.62.0.bb | 2 +- meta/recipes-graphics/mesa/mesa.inc | 2 +- .../wayland/weston-init/weston-start | 12 +++ .../wayland/weston-init/weston@.service | 6 ++ .../weston/systemd-notify.weston-start| 9 ++ .../wayland/weston/xwayland.weston-start | 3 +- meta/recipes-graphics/wayland/weston_8.0.0.bb | 6 ++ .../linux/linux-yocto-rt_5.4.bb | 6 +- .../linux/linux-yocto-tiny_5.4.bb | 8 +-
Re: [OE-core] [PATCH] strace: show test suite log on failure
I'm not familiar enough with the ptest-runner to say, but does the exit code of run-ptest get used at all, or only the output in the expected format? Just noticed this will suppress the non-zero exit code of run-ptest. On Thu, Oct 21, 2021 at 7:30 AM Ross Burton wrote: > If the tests fail, dump the log so we can see the failures. > > Signed-off-by: Ross Burton > --- > meta/recipes-devtools/strace/strace/run-ptest | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/meta/recipes-devtools/strace/strace/run-ptest > b/meta/recipes-devtools/strace/strace/run-ptest > index 3a51fb0be9..42ececdc4f 100755 > --- a/meta/recipes-devtools/strace/strace/run-ptest > +++ b/meta/recipes-devtools/strace/strace/run-ptest > @@ -3,4 +3,4 @@ export TIMEOUT_DURATION=240 > chown nobody tests > chown nobody tests/* > chown nobody ../ptest > -su nobody -c "make -B -C tests -k test-suite.log" > +su nobody -c "make -B -C tests -k test-suite.log" || cat > tests/test-suite.log > -- > 2.25.1 > > > > > -- Christopher Larson kergoth at gmail dot com Founder - BitBake, OpenEmbedded, OpenZaurus Senior Software Engineer, Mentor Graphics -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#157289): https://lists.openembedded.org/g/openembedded-core/message/157289 Mute This Topic: https://lists.openembedded.org/mt/86490861/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-java] why openjdk-8-native is need to build openjdk-8 ?
I believe this should be sent to openembedded-de...@lists.openembedded.org Vyacheslav On 21.10.2021 12:11, Akira Shibakawa wrote: Hi. I have a question about openjdk-8 recipe. openjdk-8 seems to be built using openjdk-8-native as boot JDK. And the openjdk-8-native seems to be built using icedtea7 as boot JDK. Why openjdk-8-native is need to build openjdk-8 ? Isn't it simpler to build openjdk-8 using icedtea7 as boot JDK? regards -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#157288): https://lists.openembedded.org/g/openembedded-core/message/157288 Mute This Topic: https://lists.openembedded.org/mt/86486039/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 2/3] strace: handle loaded test systems
Ha, idiot me. I didn't see that bit of the regex and the test suite takes so long I didn't actually test it... Other opinions on whether to we skip the test or relax the bounds? Ross On Thu, 21 Oct 2021 at 16:10, Alexandre Belloni wrote: > > On 21/10/2021 15:20:04+0100, Ross Burton wrote: > > Sigh. I'll just remove the test entirely then. > > Actually, I think your regex is not correct because it also failed on > qemux86. I believe you are missing a digit in the case it takes more > than one second, before you had '1.[01]' then 5 digits, you changed it to > '1.' and 5 digits, this should be 6 > > > > > Ross > > > > On Thu, 21 Oct 2021 at 14:48, Alexandre Belloni > > wrote: > > > > > > Hi Ross, > > > > > > On 19/10/2021 20:26:13+0100, Ross Burton wrote: > > > > If the host is loaded when running the tests there is a good chance > > > > that strace-T.test will fail, as it does a sleep(1) and checks that > > > > the nanosleep() call lasted for 0.9-1.1 seconds. > > > > > > > > Relax the test so that the test passes if the call takes less than two > > > > seconds. > > > > > > > > [ YOCTO #14596 ] > > > > > > > > Signed-off-by: Ross Burton > > > > --- > > > > meta/recipes-devtools/strace/strace/ptest-sleep.patch | 7 +++ > > > > meta/recipes-devtools/strace/strace_5.14.bb | 1 + > > > > 2 files changed, 8 insertions(+) > > > > create mode 100644 > > > > meta/recipes-devtools/strace/strace/ptest-sleep.patch > > > > > > > > diff --git a/meta/recipes-devtools/strace/strace/ptest-sleep.patch > > > > b/meta/recipes-devtools/strace/strace/ptest-sleep.patch > > > > new file mode 100644 > > > > index 00..5629dec319 > > > > --- /dev/null > > > > +++ b/meta/recipes-devtools/strace/strace/ptest-sleep.patch > > > > @@ -0,0 +1,7 @@ > > > > +diff --git a/tests/strace-T.expected b/tests/strace-T.expected > > > > +index 1ea020465..f78d3e2c8 100644 > > > > +--- a/tests/strace-T.expected > > > > b/tests/strace-T.expected > > > > +@@ -1 +1 @@ > > > > +-nanosleep\(\{tv_sec=1, tv_nsec=0\}, NULL\) = 0 > > > > <(1\.[01]|0\.9)[[:digit:]]{5}> > > > > ++nanosleep\(\{tv_sec=1, tv_nsec=0\}, NULL\) = 0 > > > > <(1\.|0\.9)[[:digit:]]{5}> > > > > > > Those two builds have the patch and reliably failed: > > > > > > https://autobuilder.yoctoproject.org/typhoon/#/builders/82/builds/2425/steps/12/logs/stdio > > > https://autobuilder.yoctoproject.org/typhoon/#/builders/82/builds/2428/steps/12/logs/stdio > > > > > > > diff --git a/meta/recipes-devtools/strace/strace_5.14.bb > > > > b/meta/recipes-devtools/strace/strace_5.14.bb > > > > index a81bda04ba..9ae1367337 100644 > > > > --- a/meta/recipes-devtools/strace/strace_5.14.bb > > > > +++ b/meta/recipes-devtools/strace/strace_5.14.bb > > > > @@ -13,6 +13,7 @@ SRC_URI = > > > > "https://strace.io/files/${PV}/strace-${PV}.tar.xz \ > > > > file://0001-caps-abbrev.awk-fix-gawk-s-path.patch \ > > > > file://ptest-spacesave.patch \ > > > > file://0001-strace-fix-reproducibilty-issues.patch \ > > > > + file://ptest-sleep.patch \ > > > > " > > > > SRC_URI[sha256sum] = > > > > "901bee6db5e17debad4530dd9ffb4dc9a96c4a656edbe1c3141b7cb307b11e73" > > > > > > > > -- > > > > 2.25.1 > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > Alexandre Belloni, co-owner and COO, Bootlin > > > Embedded Linux and Kernel engineering > > > https://bootlin.com > > -- > Alexandre Belloni, co-owner and COO, Bootlin > Embedded Linux and Kernel engineering > https://bootlin.com -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#157287): https://lists.openembedded.org/g/openembedded-core/message/157287 Mute This Topic: https://lists.openembedded.org/mt/86448553/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] librsvg: Fix vendored libc to work on riscv and musl
These are patches applied to rust libc already but since librsvg uses its own copy of libc, we need to patch it here too Signed-off-by: Khem Raj --- ...nitions-for-riscv64-musl-libc-0.2.93.patch | 897 ++ ...-mod.rs-add-riscv64-to-b64-set-libc-.patch | 26 + ...efinitions-to-match-musl-libc-0.2.93.patch | 736 ++ ...-for-modified-files-for-rust-1.54.0-.patch | 17 + meta/recipes-gnome/librsvg/librsvg_2.52.0.bb | 4 + 5 files changed, 1680 insertions(+) create mode 100644 meta/recipes-gnome/librsvg/librsvg/0005-Add-base-definitions-for-riscv64-musl-libc-0.2.93.patch create mode 100644 meta/recipes-gnome/librsvg/librsvg/0006-FIXUP-linux-musl-mod.rs-add-riscv64-to-b64-set-libc-.patch create mode 100644 meta/recipes-gnome/librsvg/librsvg/0007-FIXUP-Correct-definitions-to-match-musl-libc-0.2.93.patch create mode 100644 meta/recipes-gnome/librsvg/librsvg/0008-Update-checksums-for-modified-files-for-rust-1.54.0-.patch diff --git a/meta/recipes-gnome/librsvg/librsvg/0005-Add-base-definitions-for-riscv64-musl-libc-0.2.93.patch b/meta/recipes-gnome/librsvg/librsvg/0005-Add-base-definitions-for-riscv64-musl-libc-0.2.93.patch new file mode 100644 index 00..c141e7a539 --- /dev/null +++ b/meta/recipes-gnome/librsvg/librsvg/0005-Add-base-definitions-for-riscv64-musl-libc-0.2.93.patch @@ -0,0 +1,897 @@ +From 4e188d047dee33a19902113a3c90cdf1d8310a9e Mon Sep 17 00:00:00 2001 +From: Ralf Anton Beier +Date: Sun, 8 Aug 2021 11:05:06 +0200 +Subject: [PATCH 5/8] Add base definitions for riscv64 + musl - libc-0.2.93 + +https://github.com/rust-lang/libc/pull/1994/commits/030a07761f61f3293d53752e60edbd330a9d718d + +Signed-off-by: Khem Raj +Signed-off-by: Ralf Anton Beier +--- + .../src/unix/linux_like/linux/musl/b64/mod.rs | 3 + + .../linux_like/linux/musl/b64/riscv64/mod.rs | 867 ++ + 2 files changed, 870 insertions(+) + create mode 100644 vendor/libc-0.2.93/src/unix/linux_like/linux/musl/b64/riscv64/mod.rs + +--- a/vendor/libc/src/unix/linux_like/linux/musl/b64/mod.rs b/vendor/libc/src/unix/linux_like/linux/musl/b64/mod.rs +@@ -163,6 +163,9 @@ cfg_if! { + } else if #[cfg(any(target_arch = "x86_64"))] { + mod x86_64; + pub use self::x86_64::*; ++} else if #[cfg(any(target_arch = "riscv64"))] { ++mod riscv64; ++pub use self::riscv64::*; + } else { + // Unknown target_arch + } +--- /dev/null b/vendor/libc/src/unix/linux_like/linux/musl/b64/riscv64/mod.rs +@@ -0,0 +1,867 @@ ++//! RISC-V-specific definitions for 64-bit linux-like values ++ ++pub type c_char = u8; ++pub type c_long = i64; ++pub type c_ulong = u64; ++pub type wchar_t = ::c_int; ++ ++pub type nlink_t = ::c_uint; ++pub type blksize_t = ::c_int; ++pub type fsblkcnt64_t = ::c_ulong; ++pub type fsfilcnt64_t = ::c_ulong; ++pub type suseconds_t = i64; ++pub type __u64 = ::c_ulonglong; ++ ++s! { ++pub struct pthread_attr_t { ++__size: [::c_ulong; 7], ++} ++ ++pub struct stat { ++pub st_dev: ::dev_t, ++pub st_ino: ::ino_t, ++pub st_mode: ::mode_t, ++pub st_nlink: ::nlink_t, ++pub st_uid: ::uid_t, ++pub st_gid: ::gid_t, ++pub st_rdev: ::dev_t, ++pub __pad1: ::dev_t, ++pub st_size: ::off_t, ++pub st_blksize: ::blksize_t, ++pub __pad2: ::c_int, ++pub st_blocks: ::blkcnt_t, ++pub st_atime: ::time_t, ++pub st_atime_nsec: ::c_long, ++pub st_mtime: ::time_t, ++pub st_mtime_nsec: ::c_long, ++pub st_ctime: ::time_t, ++pub st_ctime_nsec: ::c_long, ++__unused: [::c_int; 2usize], ++} ++ ++pub struct stat64 { ++pub st_dev: ::dev_t, ++pub st_ino: ::ino64_t, ++pub st_mode: ::mode_t, ++pub st_nlink: ::nlink_t, ++pub st_uid: ::uid_t, ++pub st_gid: ::gid_t, ++pub st_rdev: ::dev_t, ++pub __pad1: ::dev_t, ++pub st_size: ::off64_t, ++pub st_blksize: ::blksize_t, ++pub __pad2: ::c_int, ++pub st_blocks: ::blkcnt_t, ++pub st_atime: ::time_t, ++pub st_atime_nsec: ::c_long, ++pub st_mtime: ::time_t, ++pub st_mtime_nsec: ::c_long, ++pub st_ctime: ::time_t, ++pub st_ctime_nsec: ::c_long, ++__unused: [::c_int; 2], ++} ++ ++pub struct statfs { ++pub f_type: ::c_long, ++pub f_bsize: ::c_long, ++pub f_blocks: ::fsblkcnt_t, ++pub f_bfree: ::fsblkcnt_t, ++pub f_bavail: ::fsblkcnt_t, ++pub f_files: ::fsfilcnt_t, ++pub f_ffree: ::fsfilcnt_t, ++pub f_fsid: ::fsid_t, ++pub f_namelen: ::c_long, ++pub f_frsize: ::c_long, ++pub f_flags: ::c_long, ++pub f_spare: [::c_long; 4], ++} ++ ++pub struct statfs64 { ++pub f_type: ::c_long, ++pub f_bsize: ::c_long, ++pub f_blocks: ::fsblkcnt64_t, ++pub f_bfree: ::fsblkc
Re: [OE-core] [PATCH 2/3] strace: handle loaded test systems
On 21/10/2021 15:20:04+0100, Ross Burton wrote: > Sigh. I'll just remove the test entirely then. Actually, I think your regex is not correct because it also failed on qemux86. I believe you are missing a digit in the case it takes more than one second, before you had '1.[01]' then 5 digits, you changed it to '1.' and 5 digits, this should be 6 > > Ross > > On Thu, 21 Oct 2021 at 14:48, Alexandre Belloni > wrote: > > > > Hi Ross, > > > > On 19/10/2021 20:26:13+0100, Ross Burton wrote: > > > If the host is loaded when running the tests there is a good chance > > > that strace-T.test will fail, as it does a sleep(1) and checks that > > > the nanosleep() call lasted for 0.9-1.1 seconds. > > > > > > Relax the test so that the test passes if the call takes less than two > > > seconds. > > > > > > [ YOCTO #14596 ] > > > > > > Signed-off-by: Ross Burton > > > --- > > > meta/recipes-devtools/strace/strace/ptest-sleep.patch | 7 +++ > > > meta/recipes-devtools/strace/strace_5.14.bb | 1 + > > > 2 files changed, 8 insertions(+) > > > create mode 100644 meta/recipes-devtools/strace/strace/ptest-sleep.patch > > > > > > diff --git a/meta/recipes-devtools/strace/strace/ptest-sleep.patch > > > b/meta/recipes-devtools/strace/strace/ptest-sleep.patch > > > new file mode 100644 > > > index 00..5629dec319 > > > --- /dev/null > > > +++ b/meta/recipes-devtools/strace/strace/ptest-sleep.patch > > > @@ -0,0 +1,7 @@ > > > +diff --git a/tests/strace-T.expected b/tests/strace-T.expected > > > +index 1ea020465..f78d3e2c8 100644 > > > +--- a/tests/strace-T.expected > > > b/tests/strace-T.expected > > > +@@ -1 +1 @@ > > > +-nanosleep\(\{tv_sec=1, tv_nsec=0\}, NULL\) = 0 > > > <(1\.[01]|0\.9)[[:digit:]]{5}> > > > ++nanosleep\(\{tv_sec=1, tv_nsec=0\}, NULL\) = 0 > > > <(1\.|0\.9)[[:digit:]]{5}> > > > > Those two builds have the patch and reliably failed: > > > > https://autobuilder.yoctoproject.org/typhoon/#/builders/82/builds/2425/steps/12/logs/stdio > > https://autobuilder.yoctoproject.org/typhoon/#/builders/82/builds/2428/steps/12/logs/stdio > > > > > diff --git a/meta/recipes-devtools/strace/strace_5.14.bb > > > b/meta/recipes-devtools/strace/strace_5.14.bb > > > index a81bda04ba..9ae1367337 100644 > > > --- a/meta/recipes-devtools/strace/strace_5.14.bb > > > +++ b/meta/recipes-devtools/strace/strace_5.14.bb > > > @@ -13,6 +13,7 @@ SRC_URI = > > > "https://strace.io/files/${PV}/strace-${PV}.tar.xz \ > > > file://0001-caps-abbrev.awk-fix-gawk-s-path.patch \ > > > file://ptest-spacesave.patch \ > > > file://0001-strace-fix-reproducibilty-issues.patch \ > > > + file://ptest-sleep.patch \ > > > " > > > SRC_URI[sha256sum] = > > > "901bee6db5e17debad4530dd9ffb4dc9a96c4a656edbe1c3141b7cb307b11e73" > > > > > > -- > > > 2.25.1 > > > > > > > > > > > > > > > > > > > > -- > > Alexandre Belloni, co-owner and COO, Bootlin > > Embedded Linux and Kernel engineering > > https://bootlin.com -- Alexandre Belloni, co-owner and COO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#157285): https://lists.openembedded.org/g/openembedded-core/message/157285 Mute This Topic: https://lists.openembedded.org/mt/86448553/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] strace: show test suite log on failure
If the tests fail, dump the log so we can see the failures. Signed-off-by: Ross Burton --- meta/recipes-devtools/strace/strace/run-ptest | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes-devtools/strace/strace/run-ptest b/meta/recipes-devtools/strace/strace/run-ptest index 3a51fb0be9..42ececdc4f 100755 --- a/meta/recipes-devtools/strace/strace/run-ptest +++ b/meta/recipes-devtools/strace/strace/run-ptest @@ -3,4 +3,4 @@ export TIMEOUT_DURATION=240 chown nobody tests chown nobody tests/* chown nobody ../ptest -su nobody -c "make -B -C tests -k test-suite.log" +su nobody -c "make -B -C tests -k test-suite.log" || cat tests/test-suite.log -- 2.25.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#157284): https://lists.openembedded.org/g/openembedded-core/message/157284 Mute This Topic: https://lists.openembedded.org/mt/86490861/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] strace: handle loaded test systems
If the host is loaded when running the tests there is a good chance that strace-T.test will fail, as it does a sleep(1) and checks that the nanosleep() call lasted for 0.9-1.1 seconds. As this isn't reliable when the host is loaded, disable the test. [ YOCTO #14596 ] Signed-off-by: Ross Burton --- .../strace/strace/ptest-sleep.patch | 20 +++ meta/recipes-devtools/strace/strace_5.14.bb | 1 + 2 files changed, 21 insertions(+) create mode 100644 meta/recipes-devtools/strace/strace/ptest-sleep.patch diff --git a/meta/recipes-devtools/strace/strace/ptest-sleep.patch b/meta/recipes-devtools/strace/strace/ptest-sleep.patch new file mode 100644 index 00..310e7140b6 --- /dev/null +++ b/meta/recipes-devtools/strace/strace/ptest-sleep.patch @@ -0,0 +1,20 @@ +The strace-T test executes sleep(1) and verifies that the nanosleep() syscall +lasted between 0.9 and 1.2 seconds, which is too unreliable when the system is +under load. + +Upstream-Status: Inappropriate +Signed-off-by: Ross Burton + +diff --git a/tests/strace-T.test b/tests/strace-T.test +index adca3e872..d4acfe9a2 100755 +--- a/tests/strace-T.test b/tests/strace-T.test +@@ -9,6 +9,8 @@ + + . "${srcdir=.}/init.sh" + ++skip_ "Test not reliable under load" ++ + T_opt="${1:--T}" + + run_prog ../sleep 0 diff --git a/meta/recipes-devtools/strace/strace_5.14.bb b/meta/recipes-devtools/strace/strace_5.14.bb index a81bda04ba..9ae1367337 100644 --- a/meta/recipes-devtools/strace/strace_5.14.bb +++ b/meta/recipes-devtools/strace/strace_5.14.bb @@ -13,6 +13,7 @@ SRC_URI = "https://strace.io/files/${PV}/strace-${PV}.tar.xz \ file://0001-caps-abbrev.awk-fix-gawk-s-path.patch \ file://ptest-spacesave.patch \ file://0001-strace-fix-reproducibilty-issues.patch \ + file://ptest-sleep.patch \ " SRC_URI[sha256sum] = "901bee6db5e17debad4530dd9ffb4dc9a96c4a656edbe1c3141b7cb307b11e73" -- 2.25.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#157283): https://lists.openembedded.org/g/openembedded-core/message/157283 Mute This Topic: https://lists.openembedded.org/mt/86490860/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 2/3] strace: handle loaded test systems
Sigh. I'll just remove the test entirely then. Ross On Thu, 21 Oct 2021 at 14:48, Alexandre Belloni wrote: > > Hi Ross, > > On 19/10/2021 20:26:13+0100, Ross Burton wrote: > > If the host is loaded when running the tests there is a good chance > > that strace-T.test will fail, as it does a sleep(1) and checks that > > the nanosleep() call lasted for 0.9-1.1 seconds. > > > > Relax the test so that the test passes if the call takes less than two > > seconds. > > > > [ YOCTO #14596 ] > > > > Signed-off-by: Ross Burton > > --- > > meta/recipes-devtools/strace/strace/ptest-sleep.patch | 7 +++ > > meta/recipes-devtools/strace/strace_5.14.bb | 1 + > > 2 files changed, 8 insertions(+) > > create mode 100644 meta/recipes-devtools/strace/strace/ptest-sleep.patch > > > > diff --git a/meta/recipes-devtools/strace/strace/ptest-sleep.patch > > b/meta/recipes-devtools/strace/strace/ptest-sleep.patch > > new file mode 100644 > > index 00..5629dec319 > > --- /dev/null > > +++ b/meta/recipes-devtools/strace/strace/ptest-sleep.patch > > @@ -0,0 +1,7 @@ > > +diff --git a/tests/strace-T.expected b/tests/strace-T.expected > > +index 1ea020465..f78d3e2c8 100644 > > +--- a/tests/strace-T.expected > > b/tests/strace-T.expected > > +@@ -1 +1 @@ > > +-nanosleep\(\{tv_sec=1, tv_nsec=0\}, NULL\) = 0 > > <(1\.[01]|0\.9)[[:digit:]]{5}> > > ++nanosleep\(\{tv_sec=1, tv_nsec=0\}, NULL\) = 0 <(1\.|0\.9)[[:digit:]]{5}> > > Those two builds have the patch and reliably failed: > > https://autobuilder.yoctoproject.org/typhoon/#/builders/82/builds/2425/steps/12/logs/stdio > https://autobuilder.yoctoproject.org/typhoon/#/builders/82/builds/2428/steps/12/logs/stdio > > > diff --git a/meta/recipes-devtools/strace/strace_5.14.bb > > b/meta/recipes-devtools/strace/strace_5.14.bb > > index a81bda04ba..9ae1367337 100644 > > --- a/meta/recipes-devtools/strace/strace_5.14.bb > > +++ b/meta/recipes-devtools/strace/strace_5.14.bb > > @@ -13,6 +13,7 @@ SRC_URI = > > "https://strace.io/files/${PV}/strace-${PV}.tar.xz \ > > file://0001-caps-abbrev.awk-fix-gawk-s-path.patch \ > > file://ptest-spacesave.patch \ > > file://0001-strace-fix-reproducibilty-issues.patch \ > > + file://ptest-sleep.patch \ > > " > > SRC_URI[sha256sum] = > > "901bee6db5e17debad4530dd9ffb4dc9a96c4a656edbe1c3141b7cb307b11e73" > > > > -- > > 2.25.1 > > > > > > > > > > > > -- > Alexandre Belloni, co-owner and COO, Bootlin > Embedded Linux and Kernel engineering > https://bootlin.com -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#157282): https://lists.openembedded.org/g/openembedded-core/message/157282 Mute This Topic: https://lists.openembedded.org/mt/86448553/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 2/3] strace: handle loaded test systems
Hi Ross, On 19/10/2021 20:26:13+0100, Ross Burton wrote: > If the host is loaded when running the tests there is a good chance > that strace-T.test will fail, as it does a sleep(1) and checks that > the nanosleep() call lasted for 0.9-1.1 seconds. > > Relax the test so that the test passes if the call takes less than two > seconds. > > [ YOCTO #14596 ] > > Signed-off-by: Ross Burton > --- > meta/recipes-devtools/strace/strace/ptest-sleep.patch | 7 +++ > meta/recipes-devtools/strace/strace_5.14.bb | 1 + > 2 files changed, 8 insertions(+) > create mode 100644 meta/recipes-devtools/strace/strace/ptest-sleep.patch > > diff --git a/meta/recipes-devtools/strace/strace/ptest-sleep.patch > b/meta/recipes-devtools/strace/strace/ptest-sleep.patch > new file mode 100644 > index 00..5629dec319 > --- /dev/null > +++ b/meta/recipes-devtools/strace/strace/ptest-sleep.patch > @@ -0,0 +1,7 @@ > +diff --git a/tests/strace-T.expected b/tests/strace-T.expected > +index 1ea020465..f78d3e2c8 100644 > +--- a/tests/strace-T.expected > b/tests/strace-T.expected > +@@ -1 +1 @@ > +-nanosleep\(\{tv_sec=1, tv_nsec=0\}, NULL\) = 0 > <(1\.[01]|0\.9)[[:digit:]]{5}> > ++nanosleep\(\{tv_sec=1, tv_nsec=0\}, NULL\) = 0 <(1\.|0\.9)[[:digit:]]{5}> Those two builds have the patch and reliably failed: https://autobuilder.yoctoproject.org/typhoon/#/builders/82/builds/2425/steps/12/logs/stdio https://autobuilder.yoctoproject.org/typhoon/#/builders/82/builds/2428/steps/12/logs/stdio > diff --git a/meta/recipes-devtools/strace/strace_5.14.bb > b/meta/recipes-devtools/strace/strace_5.14.bb > index a81bda04ba..9ae1367337 100644 > --- a/meta/recipes-devtools/strace/strace_5.14.bb > +++ b/meta/recipes-devtools/strace/strace_5.14.bb > @@ -13,6 +13,7 @@ SRC_URI = > "https://strace.io/files/${PV}/strace-${PV}.tar.xz \ > file://0001-caps-abbrev.awk-fix-gawk-s-path.patch \ > file://ptest-spacesave.patch \ > file://0001-strace-fix-reproducibilty-issues.patch \ > + file://ptest-sleep.patch \ > " > SRC_URI[sha256sum] = > "901bee6db5e17debad4530dd9ffb4dc9a96c4a656edbe1c3141b7cb307b11e73" > > -- > 2.25.1 > > > > -- Alexandre Belloni, co-owner and COO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#157281): https://lists.openembedded.org/g/openembedded-core/message/157281 Mute This Topic: https://lists.openembedded.org/mt/86448553/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] classes/lib/useradd: The option -P is deprecated
On Tue, Oct 19, 2021 at 4:15 PM Alexandre Belloni wrote: > > Hello Daiane, > > On 18/10/2021 15:44:55-0300, Daiane Angolini wrote: > > Since [1] the option -P is not available, so remove it from parsing lib. > > > > This is a partial fix for [YOCTO #14605]. > > > > During the do_rootfs, the error message when using -P is: > > > > useradd: unrecognized option '--clear-password' > > > > Signed-off-by: Daiane Angolini > > --- > > meta/lib/oe/useradd.py | 1 - > > 1 file changed, 1 deletion(-) > > > > diff --git a/meta/lib/oe/useradd.py b/meta/lib/oe/useradd.py > > index 8fc77568ff..63768311ee 100644 > > --- a/meta/lib/oe/useradd.py > > +++ b/meta/lib/oe/useradd.py > > @@ -45,7 +45,6 @@ def build_useradd_parser(): > > parser.add_argument("-N", "--no-user-group", dest="user_group", > > help="do not create a group with the same name as the user", > > action="store_const", const=False) > > parser.add_argument("-o", "--non-unique", help="allow to create users > > with duplicate (non-unique UID)", action="store_true") > > parser.add_argument("-p", "--password", metavar="PASSWORD", > > help="encrypted password of the new account") > > -parser.add_argument("-P", "--clear-password", > > metavar="CLEAR_PASSWORD", help="use this clear password for the new > > account") > > This causes an issue in useradd-staticids.bbclass I had imagined this would cause problems in other places, some of them I would not be aware of. I will take a look again on this issue, and I have already sent an adjustment to the documentation to also cover the bug #14605 But I don't hope to be able to do so in the next 2 days. Thanks, Daiane > > https://autobuilder.yoctoproject.org/typhoon/#/builders/115/builds/847/steps/12/logs/stdio > > File: '', lineno: 20, function: > > 0016:__anon_177__home_pokybuild_yocto_worker_reproducible_centos_build_meta_classes_siteinfo_bbclass(d) > > 0017:__anon_63__home_pokybuild_yocto_worker_reproducible_centos_build_meta_classes_update_rc_d_bbclass(d) > > 0018:__anon_23__home_pokybuild_yocto_worker_reproducible_centos_build_meta_classes_systemd_bbclass(d) > > 0019:__anon_195__home_pokybuild_yocto_worker_reproducible_centos_build_meta_classes_useradd_bbclass(d) > *** > 0020:__anon_311__home_pokybuild_yocto_worker_reproducible_centos_build_meta_classes_useradd_staticids_bbclass(d) > > 0021:__anon_114__home_pokybuild_yocto_worker_reproducible_centos_build_meta_classes_update_alternatives_bbclass(d) > File: > '/home/pokybuild/yocto-worker/reproducible-centos/build/meta/classes/useradd-staticids.bbclass', > lineno: 307, function: > __anon_311__home_pokybuild_yocto_worker_reproducible_centos_build_meta_classes_useradd_staticids_bbclass > 0303:python __anonymous() { > 0304:if not bb.data.inherits_class('nativesdk', d) \ > 0305:and not bb.data.inherits_class('native', d): > 0306:try: > *** 0307:update_useradd_static_config(d) > 0308:except NotImplementedError as f: > 0309:bb.debug(1, "Skipping recipe %s: %s" % (d.getVar('PN'), > f)) > 0310:raise bb.parse.SkipRecipe(f) > 0311:} > File: > '/home/pokybuild/yocto-worker/reproducible-centos/build/meta/classes/useradd-staticids.bbclass', > lineno: 271, function: update_useradd_static_config > 0267:# is a bit of a waste -- only process useradd/groupadd > 0268:useradd_param = d.getVar('USERADD_PARAM:%s' % pkg) > 0269:if useradd_param: > 0270:#bb.warn("Before: 'USERADD_PARAM:%s' - '%s'" % (pkg, > useradd_param)) > *** 0271:d.setVar('USERADD_PARAM:%s' % pkg, > rewrite_useradd(useradd_param, True)) > 0272:#bb.warn("After: 'USERADD_PARAM:%s' - '%s'" % (pkg, > d.getVar('USERADD_PARAM:%s' % pkg))) > 0273: > 0274:groupadd_param = d.getVar('GROUPADD_PARAM:%s' % pkg) > 0275:if groupadd_param: > File: > '/home/pokybuild/yocto-worker/reproducible-centos/build/meta/classes/useradd-staticids.bbclass', > lineno: 177, function: rewrite_useradd > 0173:newparam += ['', ' --no-user-group'][uaargs.user_group > is False] > 0174:newparam += ['', ' --non-unique'][uaargs.non_unique] > 0175:if uaargs.password != None: > 0176:newparam += ['', ' --password %s' % > uaargs.password][uaargs.password != None] > *** 0177:elif uaargs.clear_password: > 0178:newparam += ['', ' --clear-password %s' % > uaargs.clear_password][uaargs.clear_password != None] > 0179:newparam += ['', ' --root %s' % > uaargs.root][uaargs.root != None] > 0180:newparam += ['', ' --system'][uaargs.system] > 0181:newparam += ['', ' --shell %s' % > uaargs.shell][uaargs.shell != None] > Exception: AttributeError: 'Namespace' object has no attribute > 'clear_password' > > > parser.add_ar
[OE-core] [meta-java] why openjdk-8-native is need to build openjdk-8 ?
Hi. I have a question about openjdk-8 recipe. openjdk-8 seems to be built using openjdk-8-native as boot JDK. And the openjdk-8-native seems to be built using icedtea7 as boot JDK. Why openjdk-8-native is need to build openjdk-8 ? Isn't it simpler to build openjdk-8 using icedtea7 as boot JDK? regards -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#157279): https://lists.openembedded.org/g/openembedded-core/message/157279 Mute This Topic: https://lists.openembedded.org/mt/86486039/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 1/2] waffle: convert to git, website is down
Signed-off-by: Alexander Kanavin --- meta/recipes-graphics/waffle/waffle_1.6.1.bb | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/meta/recipes-graphics/waffle/waffle_1.6.1.bb b/meta/recipes-graphics/waffle/waffle_1.6.1.bb index 395494018a..161bbb0d26 100644 --- a/meta/recipes-graphics/waffle/waffle_1.6.1.bb +++ b/meta/recipes-graphics/waffle/waffle_1.6.1.bb @@ -3,17 +3,15 @@ DESCRIPTION = "A cross-platform C library that allows one to defer selection \ of an OpenGL API and window system until runtime. For example, on Linux, Waffle \ enables an application to select X11/EGL with an OpenGL 3.3 core profile, \ Wayland with OpenGL ES2, and other window system / API combinations." -HOMEPAGE = "http://www.waffle-gl.org/"; +HOMEPAGE = "https://gitlab.freedesktop.org/mesa/waffle"; BUGTRACKER = "https://gitlab.freedesktop.org/mesa/waffle"; LICENSE = "BSD-2-Clause" LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=4c5154407c2490750dd461c50ad94797 \ file://include/waffle/waffle.h;endline=24;md5=61dbf8697f61c78645e75a93c585b1bf" -SRC_URI = "http://waffle-gl.org/files/release/${BPN}-${PV}/${BPN}-${PV}.tar.xz"; -SRC_URI[md5sum] = "c91529e579483f44fb330052872b9c73" -SRC_URI[sha256sum] = "31565649ff0e2d8dff1b8f7f2264ab7a78452063c7e04adfc4ce03e64b655080" - -UPSTREAM_CHECK_URI = "http://www.waffle-gl.org/releases.html"; +SRC_URI = "git://gitlab.freedesktop.org/mesa/waffle.git;protocol=https;branch=maint-1.6" +SRCREV = "d7e8c4759704b3c571fa3697c716279c26fd05eb" +S = "${WORKDIR}/git" inherit meson features_check lib_package bash-completion pkgconfig -- 2.20.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#157278): https://lists.openembedded.org/g/openembedded-core/message/157278 Mute This Topic: https://lists.openembedded.org/mt/86484338/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/2] stress-ng: convert to git, website is down
Signed-off-by: Alexander Kanavin --- meta/recipes-extended/stress-ng/stress-ng_0.13.00.bb | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/meta/recipes-extended/stress-ng/stress-ng_0.13.00.bb b/meta/recipes-extended/stress-ng/stress-ng_0.13.00.bb index 198f7e87c7..f9dcdda0af 100644 --- a/meta/recipes-extended/stress-ng/stress-ng_0.13.00.bb +++ b/meta/recipes-extended/stress-ng/stress-ng_0.13.00.bb @@ -1,14 +1,15 @@ SUMMARY = "System load testing utility" DESCRIPTION = "Deliberately simple workload generator for POSIX systems. It \ imposes a configurable amount of CPU, memory, I/O, and disk stress on the system." -HOMEPAGE = "https://kernel.ubuntu.com/~cking/stress-ng/"; +HOMEPAGE = "https://github.com/ColinIanKing/stress-ng#readme"; LICENSE = "GPLv2" LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" -SRC_URI = "https://kernel.ubuntu.com/~cking/tarballs/${BPN}/${BP}.tar.xz \ +SRC_URI = "git://github.com/ColinIanKing/stress-ng.git \ file://0001-Do-not-preserve-ownership-when-installing-example-jo.patch \ " -SRC_URI[sha256sum] = "1cefe4a3057c1522b146e62f61b80ce6e2e99da2d85ebe25bc03fc45228e58cd" +SRCREV = "61b454b4a3a9d052e63c78a9574ccf8a650575dc" +S = "${WORKDIR}/git" DEPENDS = "coreutils-native" -- 2.20.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#157277): https://lists.openembedded.org/g/openembedded-core/message/157277 Mute This Topic: https://lists.openembedded.org/mt/86484339/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 1/2] waffle: convert to git, website is down
Same here, the HOMEPAGE point into nirvana now, pls adjust On 21.10.21 09:02, Alexander Kanavin wrote: Signed-off-by: Alexander Kanavin --- meta/recipes-graphics/waffle/waffle_1.6.1.bb | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/meta/recipes-graphics/waffle/waffle_1.6.1.bb b/meta/recipes-graphics/waffle/waffle_1.6.1.bb index 395494018a..12984f5068 100644 --- a/meta/recipes-graphics/waffle/waffle_1.6.1.bb +++ b/meta/recipes-graphics/waffle/waffle_1.6.1.bb @@ -9,11 +9,9 @@ LICENSE = "BSD-2-Clause" LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=4c5154407c2490750dd461c50ad94797 \ file://include/waffle/waffle.h;endline=24;md5=61dbf8697f61c78645e75a93c585b1bf" -SRC_URI = "http://waffle-gl.org/files/release/${BPN}-${PV}/${BPN}-${PV}.tar.xz"; -SRC_URI[md5sum] = "c91529e579483f44fb330052872b9c73" -SRC_URI[sha256sum] = "31565649ff0e2d8dff1b8f7f2264ab7a78452063c7e04adfc4ce03e64b655080" - -UPSTREAM_CHECK_URI = "http://www.waffle-gl.org/releases.html"; +SRC_URI = "git://gitlab.freedesktop.org/mesa/waffle.git;protocol=https;branch=maint-1.6" +SRCREV = "d7e8c4759704b3c571fa3697c716279c26fd05eb" +S = "${WORKDIR}/git" inherit meson features_check lib_package bash-completion pkgconfig -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#157276): https://lists.openembedded.org/g/openembedded-core/message/157276 Mute This Topic: https://lists.openembedded.org/mt/86484338/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 2/2] stress-ng: convert to git, website is down
Could you in this case adjust the HOMEPAGE var as well On 21.10.21 09:02, Alexander Kanavin wrote: Signed-off-by: Alexander Kanavin --- meta/recipes-extended/stress-ng/stress-ng_0.13.00.bb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/meta/recipes-extended/stress-ng/stress-ng_0.13.00.bb b/meta/recipes-extended/stress-ng/stress-ng_0.13.00.bb index 198f7e87c7..8a37940bc3 100644 --- a/meta/recipes-extended/stress-ng/stress-ng_0.13.00.bb +++ b/meta/recipes-extended/stress-ng/stress-ng_0.13.00.bb @@ -5,10 +5,11 @@ HOMEPAGE = "https://kernel.ubuntu.com/~cking/stress-ng/"; LICENSE = "GPLv2" LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" -SRC_URI = "https://kernel.ubuntu.com/~cking/tarballs/${BPN}/${BP}.tar.xz \ +SRC_URI = "git://github.com/ColinIanKing/stress-ng.git \ file://0001-Do-not-preserve-ownership-when-installing-example-jo.patch \ " -SRC_URI[sha256sum] = "1cefe4a3057c1522b146e62f61b80ce6e2e99da2d85ebe25bc03fc45228e58cd" +SRCREV = "61b454b4a3a9d052e63c78a9574ccf8a650575dc" +S = "${WORKDIR}/git" DEPENDS = "coreutils-native" -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#157275): https://lists.openembedded.org/g/openembedded-core/message/157275 Mute This Topic: https://lists.openembedded.org/mt/86484339/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] sstate.bbclass: count the files on mirrors using the pre local files
ping Jose Quaresma escreveu no dia domingo, 3/10/2021 à(s) 22:54: > We don't need extra python collections to count the found files > on the sstate cache and sstate mirrors. > > The main found collections provides all the files that were found. > Then we only need to store the nunber of files that found on the > local sstate cache and the files that found on the sstate cache > mirror is derived from that. > > Signed-off-by: Jose Quaresma > --- > meta/classes/sstate.bbclass | 11 --- > 1 file changed, 4 insertions(+), 7 deletions(-) > > diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass > index 92a73114bb..f06778a3ee 100644 > --- a/meta/classes/sstate.bbclass > +++ b/meta/classes/sstate.bbclass > @@ -893,8 +893,6 @@ BB_HASHCHECK_FUNCTION = "sstate_checkhashes" > > def sstate_checkhashes(sq_data, d, siginfo=False, currentcount=0, > summary=True, **kwargs): > found = set() > -foundLocal = set() > -foundNet = set() > missed = set() > > def gethash(task): > @@ -925,14 +923,13 @@ def sstate_checkhashes(sq_data, d, siginfo=False, > currentcount=0, summary=True, > sstatefile = d.expand("${SSTATE_DIR}/" + extrapath + > generate_sstatefn(spec, gethash(tid), tname, siginfo, d)) > > if os.path.exists(sstatefile): > -bb.debug(2, "SState: Found valid sstate file %s" % sstatefile) > found.add(tid) > -foundLocal.add(tid) > -continue > +bb.debug(2, "SState: Found valid sstate file %s" % sstatefile) > else: > missed.add(tid) > bb.debug(2, "SState: Looked for but didn't find file %s" % > sstatefile) > > +foundLocal = len(found) > mirrors = d.getVar("SSTATE_MIRRORS") > if mirrors: > # Copy the data object and override DL_DIR and SRC_URI > @@ -973,7 +970,6 @@ def sstate_checkhashes(sq_data, d, siginfo=False, > currentcount=0, summary=True, > fetcher.checkstatus() > bb.debug(2, "SState: Successful fetch test for %s" % > srcuri) > found.add(tid) > -foundNet.add(tid) > if tid in missed: > missed.remove(tid) > except: > @@ -1034,7 +1030,8 @@ def sstate_checkhashes(sq_data, d, siginfo=False, > currentcount=0, summary=True, > match = 0 > if total: > match = len(found) / total * 100 > -bb.plain("Sstate summary: Wanted %d Local %d Network %d Missed %d > Current %d (%d%% match, %d%% complete)" % (total, len(foundLocal), > len(foundNet),len(missed), currentcount, match, complete)) > +bb.plain("Sstate summary: Wanted %d Local %d Mirrors %d Missed %d > Current %d (%d%% match, %d%% complete)" % > +(total, foundLocal, len(found)-foundLocal, len(missed), > currentcount, match, complete)) > > if hasattr(bb.parse.siggen, "checkhashes"): > bb.parse.siggen.checkhashes(sq_data, missed, found, d) > -- > 2.33.0 > > -- Best regards, José Quaresma -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#157274): https://lists.openembedded.org/g/openembedded-core/message/157274 Mute This Topic: https://lists.openembedded.org/mt/86052575/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/2] stress-ng: convert to git, website is down
Signed-off-by: Alexander Kanavin --- meta/recipes-extended/stress-ng/stress-ng_0.13.00.bb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/meta/recipes-extended/stress-ng/stress-ng_0.13.00.bb b/meta/recipes-extended/stress-ng/stress-ng_0.13.00.bb index 198f7e87c7..8a37940bc3 100644 --- a/meta/recipes-extended/stress-ng/stress-ng_0.13.00.bb +++ b/meta/recipes-extended/stress-ng/stress-ng_0.13.00.bb @@ -5,10 +5,11 @@ HOMEPAGE = "https://kernel.ubuntu.com/~cking/stress-ng/"; LICENSE = "GPLv2" LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" -SRC_URI = "https://kernel.ubuntu.com/~cking/tarballs/${BPN}/${BP}.tar.xz \ +SRC_URI = "git://github.com/ColinIanKing/stress-ng.git \ file://0001-Do-not-preserve-ownership-when-installing-example-jo.patch \ " -SRC_URI[sha256sum] = "1cefe4a3057c1522b146e62f61b80ce6e2e99da2d85ebe25bc03fc45228e58cd" +SRCREV = "61b454b4a3a9d052e63c78a9574ccf8a650575dc" +S = "${WORKDIR}/git" DEPENDS = "coreutils-native" -- 2.20.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#157273): https://lists.openembedded.org/g/openembedded-core/message/157273 Mute This Topic: https://lists.openembedded.org/mt/86484339/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 1/2] waffle: convert to git, website is down
Signed-off-by: Alexander Kanavin --- meta/recipes-graphics/waffle/waffle_1.6.1.bb | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/meta/recipes-graphics/waffle/waffle_1.6.1.bb b/meta/recipes-graphics/waffle/waffle_1.6.1.bb index 395494018a..12984f5068 100644 --- a/meta/recipes-graphics/waffle/waffle_1.6.1.bb +++ b/meta/recipes-graphics/waffle/waffle_1.6.1.bb @@ -9,11 +9,9 @@ LICENSE = "BSD-2-Clause" LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=4c5154407c2490750dd461c50ad94797 \ file://include/waffle/waffle.h;endline=24;md5=61dbf8697f61c78645e75a93c585b1bf" -SRC_URI = "http://waffle-gl.org/files/release/${BPN}-${PV}/${BPN}-${PV}.tar.xz"; -SRC_URI[md5sum] = "c91529e579483f44fb330052872b9c73" -SRC_URI[sha256sum] = "31565649ff0e2d8dff1b8f7f2264ab7a78452063c7e04adfc4ce03e64b655080" - -UPSTREAM_CHECK_URI = "http://www.waffle-gl.org/releases.html"; +SRC_URI = "git://gitlab.freedesktop.org/mesa/waffle.git;protocol=https;branch=maint-1.6" +SRCREV = "d7e8c4759704b3c571fa3697c716279c26fd05eb" +S = "${WORKDIR}/git" inherit meson features_check lib_package bash-completion pkgconfig -- 2.20.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#157272): https://lists.openembedded.org/g/openembedded-core/message/157272 Mute This Topic: https://lists.openembedded.org/mt/86484338/21656 Group Owner: openembedded-core+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-