Date   

Re: error when try to use sudo command in recipe

Alexander Kanavin
 

On Sun, 5 Feb 2023 at 05:15, SIMON BABY <simonkbaby@...> wrote:
Thank you for the reply.
I was trying to add the layer https://github.com/savoirfairelinux/meta-embedded-containers in my yocto build. Below recipe uses sudo commands.

https://github.com/savoirfairelinux/meta-embedded-containers/blob/b131baa90291c159d3a725b8d66786c85964556c/recipes-support/container-image/container-image.bb

while building it fails at sudo command and getting the error below.

sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set
That layer is not maintained and you should not be using it. If you
want to use containers, meta-virtualization is the supported way.

Alex


Re: error when try to use sudo command in recipe

SIMON BABY
 

Hi Richard,
Thank you for the reply.
 I was trying to add the layer https://github.com/savoirfairelinux/meta-embedded-containers in my yocto build. Below recipe uses sudo commands. 

https://github.com/savoirfairelinux/meta-embedded-containers/blob/b131baa90291c159d3a725b8d66786c85964556c/recipes-support/container-image/container-image.bb

while building it fails at sudo command and getting the error below.

sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set

Regards
Simon


Re: Cmake CROSS COMPILE problem [PLEASE HELP, URGENT] #sdk #yocto #toolchain

jijonath11@...
 

I am also facing the same issue while compiling grpc. 


Re: error when try to use sudo command in recipe

Richard Purdie
 

On Fri, 2023-02-03 at 14:08 -0800, SIMON BABY wrote:
Hello team,
I am getting the below error whe try to execute command in bitbake
recipe having sudo. eg: sudo kill

sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit
set

Can some please help how to fix it. The same errot did not see when i
execute outside bitbake.
You didn't say which task this was in, I'm going to guess it is one
being run under pseudo, our fakeroot emulator.

The fakeroot emulation doesn't work well with "real" sudo commands.

Cheers,

Richard


[ANNOUNCEMENT] Milestone 2 for Yocto Project 4.2 (yocto-4.2_M2) Now Available

Lee Chee Yang
 

Hello

We are pleased to announce the second milestone release for Yocto Project 4.2 (yocto-4.2_M2) is now available for download.

 

Download:

 

http://downloads.yoctoproject.org/releases/yocto/milestones/yocto-4.2_M2

 

bitbake: c19035e8e71c419c5688a86bfc9c946c96f638e8

meta-agl: 09135164a21a216c6e3e75d7decce896b92962f0

meta-arm: d8383c11f3f8220d2b989ec73604e5faff988299

meta-aws: 7b4f54b3e1f675e2033f6a589ac519e44e62b58b

meta-intel: b3c7d3ee44e4ab71df44b5be3c48d2f47d89d8a0

meta-mingw: 250617ffa524c082b848487359b9d045703d59c2

meta-openembedded: ceceffcb1e3ef4f9ba7708f77c27e30a7aea61e5

meta-virtualization: 31954471605ae3b41627a0ab7b0dcfe8c5851bd7

oecore: 493f2d163718d78560a2b3ad5d3c0fb34caae8c0

poky: 5e249ec855517765f4b99e8039cb888ffa09c211

 

Full Test Report:

 

http://downloads.yoctoproject.org/releases/yocto/milestones/yocto-4.2_M2/testreport.txt


Known Issue:


There is reproducibility issue in this milestone release build where kernel-devsrc and perf only reproduce correctly on the same host. This was introduced with the 6.1 kernel and there are fixes in master for the kernel-devsrc hostname issue. The perf issue is still being resolved but will be fixed before final release of 4.2.



Thank you.

 

Chee Yang

chee.yang.lee@...

Yocto Project Build and Release


error when try to use sudo command in recipe

SIMON BABY
 

Hello team,
I am getting the below error whe try to execute command in bitbake recipe having sudo. eg: sudo kill


sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set

Can some please help how to fix it. The same errot did not see when i execute outside bitbake.


Re: [meta-raspberrypi] Is Preempt-rt still supported in master / latest releases? #raspberrypi

Joel Winarske
 


I would use Kuzemko Aleksandr's solution in bbappend until there is support in meta-raspberrypi.


Re: chrony pkg-config backport fix #kirkstone

Randy MacLeod
 

On 2023-02-02 10:15, Gary Huband via lists.yoctoproject.org wrote:
There is a bug in the chrony Kirkstone recipe that was fixed in Langdale but has not been fixed in Kirkstone:
https://lists.openembedded.org/g/openembedded-devel/message/99080?p=%2C%2C%2C20%2C0%2C0%2C0%3A%3Arecentpostdate%2Fsticky%2C%2Cchrony+pkg-config%2C20%2C2%2C0%2C94155994
This adds pkgconfig to the inherit line to allow configure to find pkg-config.  Without this fix the recipe cannot build some features like NTS.

How to get this fix into Kirkstone?  Do I submit a patch?

Yes please, it does cherry-pick back cleanly but I didn't take the time to build/test.

FYI:

https://www.openembedded.org/wiki/How_to_submit_a_patch_to_OpenEmbedded

../Randy

meta-oe.git on kirkstone

❯ git log -6 --oneline langdale ^kirkstone meta-networking/recipes-support/chrony/
c354f9277 (langdale-next) chrony: Remove the libcap and nss PACKAGECONFIGs
aa811aa77 chrony: Make it possible to enable editline support again
aa20821f1 chrony: correct parameter to configure to disable readline usage
22682fdfb chrony: add pkgconfig class as pkg-config is explicitly searched for
fca74376e chrony: upgrade 4.2 -> 4.3
517c9dab9 chrony: add support for config and source snippet includes

❯ git cherry-pick 22682fdfb
Auto-merging meta-networking/recipes-support/chrony/chrony_4.2.bb
[kirkstone d4cc4f260] chrony: add pkgconfig class as pkg-config is explicitly searched for
 Author: Federico Pellegrin <fede@...>
 Date: Thu Oct 6 14:17:21 2022 +0200
 1 file changed, 1 insertion(+), 1 deletion(-)




-- 
# Randy MacLeod
# Wind River Linux


Re: [] [PATCH yocto-autobuilder-helper] config.json: set oe-time-dd-test.sh timeout to 3 seconds

Randy MacLeod
 

On 2023-02-02 18:32, Randy MacLeod via lists.yoctoproject.org wrote:
On 2023-02-02 17:10, Randy MacLeod via lists.yoctoproject.org wrote:
I don't know why there are two peaks that you can easily see on the linear scale distribution
but the 3 graphs show why I picked the 3 second cutoff.

I'm guessing but I suspect that the lower latency distribution is just from when

the Yocto AB workers are idle. The builders in the cluster at WR are always
busy, sometimes needlessly,  so I didn't consider that initially.


Sigh, that's obviously wrong since this data is only collected when running bitbake!

Maybe it's the arm vs the intel workers?

I'll stop speculating until I look at the data a bit more...


--
# Randy MacLeod
# Wind River Linux


Re: [OE-core] Getting rid of "The license listed LGPL-2.1-or-later was not in the licenses collected for recipe

NIKHIL PATIL <nikhilvp29@...>
 



---------- Forwarded message ---------
From: NIKHIL PATIL <nikhilvp29@...>
Date: Fri, Feb 3, 2023 at 7:46 PM
Subject: Re: Re: [OE-core] Getting rid of "The license listed LGPL-2.1-or-later was not in the licenses collected for recipe
To: <openembedded-core@...>


Hi team ,
     i have taken the recipes from upstream (kirkstone) and put it in dunfell branch . so now i am below warnings getting warnings 
[2023-02-02T14:54:09.524Z] WARNING:  do_rootfs: The license listed LGPL-2.1-or-later was not in the licenses collected for recipe gnutls 
[2023-02-02T14:54:09.524Z] WARNING: do_rootfs: The license listed GPL-3.0-or-later was not in the licenses collected for recipe gnutls 

so for this i have added respective licenses in common-licenses and added path in layer.conf but still this warnings exists as well as i have tried multiple ways to resolve this but not happening .
          May I know what will be the possible solution for this ?
          THANKS IN ADVANCE 


Re: [meta-raspberrypi] Is Preempt-rt still supported in master / latest releases? #raspberrypi

Joel Winarske
 

Hi,

You should open issue with the upstream layer referencing this dialog:

Joel

On Thu, Feb 2, 2023, 11:18 PM Carles Sole via lists.yoctoproject.org <Carles.SoleMendi=de.bosch.com@...> wrote:

Hello Joel,

I do get the same, but my understanding is that the RT features are not enabled. I would expect to get:

  Linux raspberrypi4-64 5.15.34-v8 #1 SMP PREEMPT RT Tue Apr 19 19:21:26 UTC 2022 aarch64 aarch64 aarch64 GNU/Linux

When I check the .config file in the work folder CONFIG_PREEMPT=y is set but I would expect to see CONFIG_PREEMPT_RT=y instead.

That is what you get for rpi4 32 bit as mentioned by Aleksandr above. Is my understanding wrong?



Re: Questions about some functions

Richard Purdie
 

On Thu, 2023-02-02 at 06:57 +0000, wangmy wrote:
I see the following two items on the page of 2022 Yocto Project Weekly Status Archive:
1. A tool, used for collaboration on the creation of release notes,
git-refinery-web has been made publicly available by Intel, thanks!
We may not be able to use it for 4.1 due to the timescales but the
hope is to use it in the future for collaboratively creating the
release notes.
You can find the code here:

https://git.yoctoproject.org/git-refinery-web/

We've had a few issues deploying an instance of it unfortunately.

2. Thinking about the idea of variable “filter” functions to help
implementation of recipe class extensions (like native and
nativesdk).

Where can I find relevant content about "variable filter function" and "git-refinery-web"?
There are some examples of filter functions here:

https://git.yoctoproject.org/poky-contrib/log/?h=jpew/bb-filters

It is very much a work in progress idea.

Cheers,

Richard


Re: [meta-raspberrypi] Is Preempt-rt still supported in master / latest releases? #raspberrypi

Carles Sole
 

Hello Joel,

I do get the same, but my understanding is that the RT features are not enabled. I would expect to get:

  Linux raspberrypi4-64 5.15.34-v8 #1 SMP PREEMPT RT Tue Apr 19 19:21:26 UTC 2022 aarch64 aarch64 aarch64 GNU/Linux

When I check the .config file in the work folder CONFIG_PREEMPT=y is set but I would expect to see CONFIG_PREEMPT_RT=y instead.

That is what you get for rpi4 32 bit as mentioned by Aleksandr above. Is my understanding wrong?


Re: QA notification for completed autobuilder build (yocto-4.0.7.rc1)

Jing Hui Tham
 

Hi All,

QA for yocto-4.0.7.rc1 is completed. This is the full report for this release:
https://git.yoctoproject.org/cgit/cgit.cgi/yocto-testresults-contrib/tree/?h=intel-yocto-testresults

======= Summary ========
No high milestone defects.

No new issue found.

Thanks,
Jing Hui

-----Original Message-----
From: yocto@... <yocto@...> On
Behalf Of Pokybuild User
Sent: Saturday, 28 January, 2023 7:09 AM
To: yocto@...
Cc: qa-build-notification@...
Subject: [yocto] QA notification for completed autobuilder build (yocto-
4.0.7.rc1)


A build flagged for QA (yocto-4.0.7.rc1) was completed on the autobuilder
and is available at:


https://autobuilder.yocto.io/pub/releases/yocto-4.0.7.rc1


Build hash information:

bitbake: 7e268c107bb0240d583d2c34e24a71e373382509
meta-agl: b9d4796f44a56c6a9c8233d82e46c251a82f6020
meta-arm: ce41be0a7fe7c6f5fd2155866980388d3c83389f
meta-aws: 9d9400b03c22839398756f505491718392907266
meta-gplv2: d2f8b5cdb285b72a4ed93450f6703ca27aa42e8a
meta-intel: f529e0594a784546926e89ce8e78385e00d0b0a9
meta-mingw: a90614a6498c3345704e9611f2842eb933dc51c1
meta-openembedded: 1f31570d0795da90083d1dbf28127c90908e30ee
meta-virtualization: 9a94fa2ad76990b0eca40837a98aaf4cd83a7248
oecore: a8c82902384f7430519a31732a4bb631f21693ac
poky: 65dafea22018052fe7b2e17e6e4d7eb754224d38



This is an automated message from the Yocto Project Autobuilder
Git: git://git.yoctoproject.org/yocto-autobuilder2
Email: richard.purdie@...



Re: [meta-raspberrypi] Is Preempt-rt still supported in master / latest releases? #raspberrypi

Joel Winarske
 

In the case of kirkstone, this is what I get using `LINUX_KERNEL_TYPE = "preempt-rt"`:

    Linux raspberrypi4-64 5.15.34-v8 #1 SMP PREEMPT Tue Apr 19 19:21:26 UTC 2022 aarch64 aarch64 aarch64 GNU/Linux

I've experienced KERNEL_FEATURE conflicts using meta-virtualization with DISTRO_FEATURES += "virtualization kvm" with meta-raspberrypi.  Where the fragment applied is not compatible with Aarch64, and it just disables the linux-raspberrypi default config.  It's quite possible you are also experiencing something similar.  I would check the kernel build logs and see what fragments are being applied, and if there are any complaints with any of them.  The error may be a single line in a log file, and not entirely descriptive.  More context here:  https://github.com/agherzan/meta-raspberrypi/pull/1141


On Thu, Feb 2, 2023 at 2:24 AM Carles Sole via lists.yoctoproject.org <Carles.SoleMendi=de.bosch.com@...> wrote:

Hello Joel,

thanks for your reply. I was not aware about this possibility. I have tried it and the preemptive rt kernel is built instead of standard ("linux-raspberrypi4_64-preempt-rt-build" is available in build/work/linux-raspberrypi/...) but still the configuration file does not set the CONFIG_PREEMPT_RT=y for raspberrypi4-64, even if a .cfg is added using a .bbappend file. So in the end the RT option is not enabled.

Any idea why it works for raspberrypi4 but not for raspberrypi4-64?

Best Regards,
Carles



Re: [] [PATCH yocto-autobuilder-helper] config.json: set oe-time-dd-test.sh timeout to 3 seconds

Randy MacLeod
 

On 2023-02-02 17:10, Randy MacLeod via lists.yoctoproject.org wrote:
I don't know why there are two peaks that you can easily see on the linear scale distribution
but the 3 graphs show why I picked the 3 second cutoff.

I'm guessing but I suspect that the lower latency distribution is just from when

the Yocto AB workers are idle. The builders in the cluster at WR are always
busy, sometimes needlessly,  so I didn't consider that initially.

-- 
# Randy MacLeod
# Wind River Linux


Re: [] [PATCH yocto-autobuilder-helper] config.json: set oe-time-dd-test.sh timeout to 3 seconds

Randy MacLeod
 

On 2023-02-02 17:00, Randy MacLeod via lists.yoctoproject.org wrote:
For the month of January 2023, the distribution of dd times has a long
tail that extends to 13 seconds with 2 events exceeding the current
limit of 30 seconds.

Reduce the timeout to 3 seconds based on the observed distribution of
dd times, which would result in the timout triggering about 20 times a month.
That's enough data to be useful but not so much that it's overwhelming the
logging or the people who will analyze it. It also avoids the rapid increase
in the tail of the distribution which starts to rise exponentially under 2 seconds.
It's sensible response time for people to expect the system to have.


See attached graphs!

I don't know why there are two peaks that you can easily see on the linear scale distribution
but the 3 graphs show why I picked the 3 second cutoff.

Below is histogram data for a 0.1 second bin of  the tail of the distribution.

I can share the raw data or the 0.001 ms binned version if anyone is interested.

../Randy

     53 1.0
     39 1.1
     31 1.2
     22 1.3
     14 1.4
     23 1.5
     10 1.6
     14 1.7
      7 1.8
      5 1.9
      6 2.0
      7 2.1
      3 2.2
      3 2.3
      2 2.4
      5 2.5
      1 2.6
      2 2.7
      1 2.9
      1 3.1
      3 3.3
      1 3.4
      4 3.6
      1 3.8
      1 3.9
      1 4.1
      2 4.2
      2 4.5
      1 5.0
      1 5.1
      1 5.4
      1 6.3
      1 13.


Signed-off-by: Randy MacLeod <Randy.MacLeod@...>
---
 config.json | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/config.json b/config.json
index 446528a..e50ec44 100644
--- a/config.json
+++ b/config.json
@@ -68,7 +68,7 @@
             "RUNQEMU_TMPFS_DIR = '/home/pokybuild/tmp'",
             "BB_HEARTBEAT_EVENT = '60'",
             "BB_LOG_HOST_STAT_ON_INTERVAL = '1'",
-            "BB_LOG_HOST_STAT_CMDS_INTERVAL = 'oe-time-dd-test.sh -c 100 -t 15'",
+            "BB_LOG_HOST_STAT_CMDS_INTERVAL = 'oe-time-dd-test.sh -c 100 -t 3'",
             "BB_LOG_HOST_STAT_ON_FAILURE = '1'",
             "BB_LOG_HOST_STAT_CMDS_FAILURE = 'oe-time-dd-test.sh -l'",
             "SDK_TOOLCHAIN_LANGS += 'rust'",



-- 
# Randy MacLeod
# Wind River Linux


[] [PATCH yocto-autobuilder-helper] config.json: set oe-time-dd-test.sh timeout to 3 seconds

Randy MacLeod
 

For the month of January 2023, the distribution of dd times has a long
tail that extends to 13 seconds with 2 events exceeding the current
limit of 30 seconds.

Reduce the timeout to 3 seconds based on the observed distribution of
dd times, which would result in the timout triggering about 20 times a month.
That's enough data to be useful but not so much that it's overwhelming the
logging or the people who will analyze it. It also avoids the rapid increase
in the tail of the distribution which starts to rise exponentially under 2 seconds.
It's sensible response time for people to expect the system to have.

Signed-off-by: Randy MacLeod <Randy.MacLeod@...>
---
config.json | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/config.json b/config.json
index 446528a..e50ec44 100644
--- a/config.json
+++ b/config.json
@@ -68,7 +68,7 @@
"RUNQEMU_TMPFS_DIR = '/home/pokybuild/tmp'",
"BB_HEARTBEAT_EVENT = '60'",
"BB_LOG_HOST_STAT_ON_INTERVAL = '1'",
- "BB_LOG_HOST_STAT_CMDS_INTERVAL = 'oe-time-dd-test.sh -c 100 -t 15'",
+ "BB_LOG_HOST_STAT_CMDS_INTERVAL = 'oe-time-dd-test.sh -c 100 -t 3'",
"BB_LOG_HOST_STAT_ON_FAILURE = '1'",
"BB_LOG_HOST_STAT_CMDS_FAILURE = 'oe-time-dd-test.sh -l'",
"SDK_TOOLCHAIN_LANGS += 'rust'",
--
2.34.1


chrony pkg-config backport fix #kirkstone

Gary Huband
 

There is a bug in the chrony Kirkstone recipe that was fixed in Langdale but has not been fixed in Kirkstone:
https://lists.openembedded.org/g/openembedded-devel/message/99080?p=%2C%2C%2C20%2C0%2C0%2C0%3A%3Arecentpostdate%2Fsticky%2C%2Cchrony+pkg-config%2C20%2C2%2C0%2C94155994
This adds pkgconfig to the inherit line to allow configure to find pkg-config.  Without this fix the recipe cannot build some features like NTS.

How to get this fix into Kirkstone?  Do I submit a patch?


Re: Adding openjdk-11 to Yocto

Spore, David
 

Looking forward to the patches too. Thanks for working on it!

David

-----Original Message-----
From: Richard Leitner <dev@...>
Sent: Thursday, February 2, 2023 1:19 AM
To: Robert Joslyn <robert.joslyn@...>
Cc: yocto@...; Spore, David <DSpore@...>
Subject: [EXTERNAL] Re: [yocto] Adding openjdk-11 to Yocto

CAUTION: This email originated from outside of Parraid. Do not click links or open attachments unless you recognize the sender and know the content is safe.

On Wed, Feb 01, 2023 at 07:32:00PM -0800, Robert Joslyn wrote:

...

Sure, I can expand the recipe for additional architectures. A quick look at the other downloads shows they have builds for x86, x86-64, arm, aarch64, ppc64, sparcv9 and s390x. I don’t think Yocto supports sparc or s390, but accommodating the others should be straightforward. I should be able to get the time to put a patch together later this week.
Sounds great! Looking forward to your patches.

Please ensure this mail address <dev@...> in on Cc. Thanks!

regards;rl


Thanks,
Robert