Re: error when try to use sudo command in recipe
SIMON BABY
Hello Richard,
Same error occured from /build.sh as well. Regards Simon |
||
|
||
Re: error when try to use sudo command in recipe
SIMON BABY
Hi Richard,
My bblayers.conf and local.conf is below LCONF_VERSION = "7"
BBPATH = "${TOPDIR}"
BSPDIR := "${@os.path.abspath(os.path.dirname(d.getVar('FILE', True)) + '/../..')}"
BBFILES ?= ""
BBLAYERS = " \
${BSPDIR}/sources/poky/meta \
${BSPDIR}/sources/poky/meta-poky \
\
${BSPDIR}/sources/meta-openembedded/meta-oe \
${BSPDIR}/sources/meta-openembedded/meta-multimedia \
${BSPDIR}/sources/meta-openembedded/meta-python \
\
${BSPDIR}/sources/meta-freescale \
${BSPDIR}/sources/meta-freescale-3rdparty \
${BSPDIR}/sources/meta-freescale-distro \
"
# i.MX Yocto Project Release layers
BBLAYERS += "${BSPDIR}/sources/meta-imx/meta-bsp"
BBLAYERS += "${BSPDIR}/sources/meta-imx/meta-sdk"
BBLAYERS += "${BSPDIR}/sources/meta-imx/meta-ml"
BBLAYERS += "${BSPDIR}/sources/meta-imx/meta-v2x"
BBLAYERS += "${BSPDIR}/sources/meta-nxp-demo-experience"
BBLAYERS += "${BSPDIR}/sources/meta-browser/meta-chromium"
BBLAYERS += "${BSPDIR}/sources/meta-clang"
BBLAYERS += "${BSPDIR}/sources/meta-openembedded/meta-gnome"
BBLAYERS += "${BSPDIR}/sources/meta-openembedded/meta-networking"
BBLAYERS += "${BSPDIR}/sources/meta-openembedded/meta-filesystems"
BBLAYERS += "${BSPDIR}/sources/meta-qt6"
BBLAYERS += "${BSPDIR}/sources/meta-virtualization"
BBLAYERS += "${BSPDIR}/sources/meta-teledyne-wapng"
BBLAYERS += "${BSPDIR}/sources/meta-security/meta-tpm"
BBLAYERS += "${BSPDIR}/sources/meta-embedded-containers"
MACHINE ??= 'imx8mpevk'
DISTRO ?= 'fsl-imx-wayland'
PACKAGE_CLASSES ?= 'package_rpm'
EXTRA_IMAGE_FEATURES ?= "debug-tweaks"
USER_CLASSES ?= "buildstats"
PATCHRESOLVE = "noop"
BB_DISKMON_DIRS ??= "\
STOPTASKS,${TMPDIR},1G,100K \
STOPTASKS,${DL_DIR},1G,100K \
STOPTASKS,${SSTATE_DIR},1G,100K \
STOPTASKS,/tmp,100M,100K \
HALT,${TMPDIR},100M,1K \
HALT,${DL_DIR},100M,1K \
HALT,${SSTATE_DIR},100M,1K \
HALT,/tmp,10M,1K"
PACKAGECONFIG:append:pn-qemu-system-native = " sdl"
CONF_VERSION = "2"
DL_DIR ?= "${BSPDIR}/downloads/"
ACCEPT_FSL_EULA = "1"
# Switch to Debian packaging and include package-management in the image
PACKAGE_CLASSES = "package_deb"
EXTRA_IMAGE_FEATURES += "package-management"
DISTRO_FEATURES:append = " tpm virtualization"
|
||
|
||
Re: error when try to use sudo command in recipe
SIMON BABY
oh okay. Yes am running the command "bitbake embedded-contianer-image". Probably I could try from the parent directory to run ./build.sh
|
||
|
||
Re: error when try to use sudo command in recipe
Richard Purdie
On Sun, 2023-02-05 at 16:00 -0800, SIMON BABY wrote:
Hi Richard,I'll ask for the third time. Are you running bitbake directly? I'd like to understand the environment bitbake is being run in. Something is breaking the ownership/permissions and I guess it is some kind of container. Cheers, Richard |
||
|
||
Re: error when try to use sudo command in recipe
SIMON BABY
Hi Richard,
I added extra code in the recipe to print the sudo permissions to compare with actual permissions. Regards Simon |
||
|
||
Re: error when try to use sudo command in recipe
Richard Purdie
On Sun, 2023-02-05 at 08:44 -0800, SIMON BABY wrote:
On Sun, Feb 5, 2023 at 01:54 AM, Richard Purdie wrote:Are you running bitbake directly? How did you dump those sudosomethingHello Richard, permissions from inside bitbake? Cheers, Richard |
||
|
||
Re: error when try to use sudo command in recipe
SIMON BABY
On Sun, Feb 5, 2023 at 01:54 AM, Richard Purdie wrote:
somethingHello Richard, I am building this layer for adding container images into the root file system and load on the target as part of the image download. The sudo command when i run outsidethe yocto build directory seems to be good. when I trued using bitbake it fails always. I see the user and group ids are different when i printed inside the bitbake recipe. -rwsr-xr-x 1 nobody nogroup 166056 Jan 16 13:06 /usr/bin/sudo
it should like below: tdydev@eadlng-build-machine:~$ ls -ll /usr/bin/sudo
-rwsr-xr-x 1 root root 166056 Jan 16 05:06 /usr/bin/sudo
Regards Simon |
||
|
||
Re: error when try to use sudo command in recipe
Alexander Kanavin
On Sun, 5 Feb 2023 at 17:23, SIMON BABY <simonkbaby@...> wrote:
There are sample recipes in that layer, e.g. in recipes-demo/images. I suggest you clone it and study that and available image classes. Alex |
||
|
||
Re: error when try to use sudo command in recipe
SIMON BABY
On Sat, Feb 4, 2023 at 11:38 PM, Alexander Kanavin wrote:
Hi Alex,Thank yo for your response. Can I know how to use meta-virtualization for building and loading container imaged into the target. Ccan you please provide a sample recipe? Regards Simon |
||
|
||
[ANNOUNCEMENT] Yocto Project 4.0.7 is Released
Lee Chee Yang
Hi We are pleased to announce the Yocto Project 4.0.7 Release is now available for download.
A gpg signed version of these release notes is available at:
http://downloads.yoctoproject.org/releases/yocto/yocto-4.0.7/RELEASENOTES
Full Test Report:
http://downloads.yoctoproject.org/releases/yocto/yocto-4.0.7/testreport.txt
Thank you for everyone's contributions to this release.
Chee Yang Yocto Project Build and Release
- -------------------------- yocto-4.0.7 Release Notes - --------------------------
- -------------------------- Repositories/Downloads - --------------------------
Repository Name: poky Repository Location: https://git.yoctoproject.org/poky Branch: kirkstone Tag: yocto-4.0.7 Git Revision: 65dafea22018052fe7b2e17e6e4d7eb754224d38 Release Artefact: poky-65dafea22018052fe7b2e17e6e4d7eb754224d38 sha: 6b1b67600b84503e2d5d29bcd6038547339f4f9413b830cd2408df825eda642d Download Locations: http://downloads.yoctoproject.org/releases/yocto/yocto-4.0.7/poky-65dafea22018052fe7b2e17e6e4d7eb754224d38.tar.bz2 http://mirrors.kernel.org/yocto/yocto/yocto-4.0.7/poky-65dafea22018052fe7b2e17e6e4d7eb754224d38.tar.bz2
Repository Name: openembedded-core Repository Location: https://git.openembedded.org/openembedded-core Branch: kirkstone Tag: yocto-4.0.7 Git Revision: a8c82902384f7430519a31732a4bb631f21693ac Release Artefact: oecore-a8c82902384f7430519a31732a4bb631f21693ac sha: 6f2dbc4ea1e388620ef77ac3a7bbb2b5956bb8bf9349b0c16cd7610e9996f5ea Download Locations: http://downloads.yoctoproject.org/releases/yocto/yocto-4.0.7/oecore-a8c82902384f7430519a31732a4bb631f21693ac.tar.bz2 http://mirrors.kernel.org/yocto/yocto/yocto-4.0.7/oecore-a8c82902384f7430519a31732a4bb631f21693ac.tar.bz2
Repository Name: meta-mingw Repository Location: https://git.yoctoproject.org/meta-mingw Branch: kirkstone Tag: yocto-4.0.7 Git Revision: a90614a6498c3345704e9611f2842eb933dc51c1 Release Artefact: meta-mingw-a90614a6498c3345704e9611f2842eb933dc51c1 sha: 49f9900bfbbc1c68136f8115b314e95d0b7f6be75edf36a75d9bcd1cca7c6302 Download Locations: http://downloads.yoctoproject.org/releases/yocto/yocto-4.0.7/meta-mingw-a90614a6498c3345704e9611f2842eb933dc51c1.tar.bz2 http://mirrors.kernel.org/yocto/yocto/yocto-4.0.7/meta-mingw-a90614a6498c3345704e9611f2842eb933dc51c1.tar.bz2
Repository Name: meta-gplv2 Repository Location: https://git.yoctoproject.org/meta-gplv2 Branch: kirkstone Tag: yocto-4.0.7 Git Revision: d2f8b5cdb285b72a4ed93450f6703ca27aa42e8a Release Artefact: meta-gplv2-d2f8b5cdb285b72a4ed93450f6703ca27aa42e8a sha: c386f59f8a672747dc3d0be1d4234b6039273d0e57933eb87caa20f56b9cca6d Download Locations: http://downloads.yoctoproject.org/releases/yocto/yocto-4.0.7/meta-gplv2-d2f8b5cdb285b72a4ed93450f6703ca27aa42e8a.tar.bz2 http://mirrors.kernel.org/yocto/yocto/yocto-4.0.7/meta-gplv2-d2f8b5cdb285b72a4ed93450f6703ca27aa42e8a.tar.bz2
Repository Name: bitbake Repository Location: https://git.openembedded.org/bitbake Branch: 2.0 Tag: yocto-4.0.7 Git Revision: 7e268c107bb0240d583d2c34e24a71e373382509 Release Artefact: bitbake-7e268c107bb0240d583d2c34e24a71e373382509 sha: c3e2899012358c95962c7a5c85cf98dc30c58eae0861c374124e96d9556bb901 Download Locations: http://downloads.yoctoproject.org/releases/yocto/yocto-4.0.7/bitbake-7e268c107bb0240d583d2c34e24a71e373382509.tar.bz2 http://mirrors.kernel.org/yocto/yocto/yocto-4.0.7/bitbake-7e268c107bb0240d583d2c34e24a71e373382509.tar.bz2
Repository Name: yocto-docs Repository Location: https://git.yoctoproject.org/yocto-docs Branch: kirkstone Tag: yocto-4.0.7 Git Revision: 5883e897c34f25401b358a597fb6e18d80f7f90b
- --------------- Contributors - --------------- Alejandro Hernandez Samaniego Alex Kiernan Alex Stewart Alexander Kanavin Antonin Godard Benoît Mauduit Bhabu Bindu Bruce Ashfield Carlos Alberto Lopez Perez Changqing Li Chen Qi Daniel Gomez Florin Diaconescu He Zhe Hitendra Prajapati Jagadeesh Krishnanjanappa Jan Kircher Jermain Horsman Jose Quaresma Joshua Watt KARN JYE LAU Kai Kang Khem Raj Luis Marta Rybczynska Martin Jansa Mathieu Dubois-Briand Michael Opdenacker Narpat Mali Ovidiu Panait Pavel Zhukov Peter Marko Petr Kubizňák Quentin Schulz Randy MacLeod Ranjitsinh Rathod Richard Purdie Robert Andersson Ross Burton Sandeep Gundlupet Raju Saul Wold Steve Sakoman Vivek Kumbhar Wang Mingyu Xiangyu Chen Yash Shinde Yogita Urade
- --------------- Known Issues - --------------- N/A
- --------------- Security Fixes - --------------- binutils: Fix CVE-2022-4285 curl: Fix CVE-2022-43551 CVE-2022-43552 ffmpeg: Fix CVE-2022-3109 CVE-2022-3341 go: Fix CVE-2022-41715 CVE-2022-41717 libX11: Fix CVE-2022-3554 CVE-2022-3555 libarchive: Fix CVE-2022-36227 libksba: Fix CVE-2022-47629 libpng: Fix CVE-2019-6129 libxml2: Fix CVE-2022-40303 CVE-2022-40304 openssl: Fix CVE-2022-3996 python3-git: Fix CVE-2022-24439 python3-setuptools: Fix CVE-2022-40897 python3-wheel: Fix CVE-2022-40898 qemu: Fix CVE-2022-4144 sqlite: Fix CVE-2022-46908 systemd: Fix CVE-2022-45873 vim: Fix CVE-2023-0049 CVE-2023-0051 CVE-2023-0054 CVE-2023-0088 webkitgtk: Fix CVE-2022-32886 CVE-2022-32891 CVE-2022-32912
- --------------- Fixes - --------------- Revert "gstreamer1.0: disable flaky gstbin:test_watch_for_state_change test" at: Change when files are copied baremetal-image: Avoid overriding qemu variables from IMAGE_CLASSES base.bbclass: Fix way to check ccache path bc: extend to nativesdk bind: upgrade to 9.18.10 busybox: always start do_compile with orig config files busybox: rm temporary files if do_compile was interrupted cairo: fix CVE patches assigned wrong CVE number cairo: update patch for CVE-2019-6461 with upstream solution classes/create-spdx: Add SPDX_PRETTY option classes: image: Set empty weak default IMAGE_LINGUAS combo-layer: add sync-revs command combo-layer: dont use bb.utils.rename combo-layer: remove unused import curl: Correct LICENSE from MIT-open-group to curl cve-check: write the cve manifest to IMGDEPLOYDIR cve-update-db-native: avoid incomplete updates cve-update-db-native: show IP on failure dbus: Add missing CVE product name devtool/upgrade: correctly handle recipes where S is a subdir of upstream tree devtool: process local files only for the main branch dhcpcd: backport two patches to fix runtime error docs: kernel-dev: faq: update tip on how to not include kernel in image docs: migration-4.0: specify variable name change for kernel inclusion in image recipe efibootmgr: update compilation with musl externalsrc: fix lookup for .gitmodules ffmpeg: refresh patches to apply cleanly freetype:update mirror site. gcc: Refactor linker patches and fix linker on arm with usrmerge glibc: stable 2.35 branch updates. go-crosssdk: avoid host contamination by GOCACHE gstreamer1.0: Fix race conditions in gstbin tests gstreamer1.0: upgrade to 1.20.5 gtk-icon-cache: Fix GTKIC_CMD if-else condition harfbuzz: remove bindir only if it exists kernel-fitimage: Adjust order of dtb/dtbo files kernel-fitimage: Allow user to select dtb when multiple dtb exists kernel.bbclass: remove empty module directories to prevent QA issues lib/buildstats: fix parsing of trees with reduced_proc_pressure directories lib/oe/reproducible: Use git log without gpg signature libarchive: upgrade to 3.6.2 libepoxy: remove upstreamed patch libksba: upgrade to 1.6.3 libnewt: upgrade to 0.52.23 libpng: upgrade to 1.6.39 libseccomp: fix typo in DESCRIPTION libxcrypt-compat: upgrade to 4.4.33 libxml2: fix test data checksums linux-firmware: upgrade to 20221214 linux-yocto/5.10: update to v5.10.160 linux-yocto/5.15: fix perf build with clang linux-yocto/5.15: libbpf: Fix build warning on ref_ctr_off linux-yocto/5.15: ltp and squashfs fixes linux-yocto/5.15: powerpc: Fix reschedule bug in KUAP-unlocked user copy linux-yocto/5.15: update to v5.15.84 lsof: add update-alternatives logic lttng-modules: upgrade to 2.13.8 manuals: add 4.0.5 and 4.0.6 release notes manuals: document SPDX_PRETTY variable mpfr: upgrade to 4.1.1 oeqa/concurrencytest: Add number of failures to summary output oeqa/rpm.py: Increase timeout and add debug output oeqa/selftest/externalsrc: add test for srctree_hash_files openssh: remove RRECOMMENDS to rng-tools for sshd package poky.conf: bump version for 4.0.7 python3: upgrade to 3.10.9 qemuboot.bbclass: make sure runqemu boots bundled initramfs kernel image rm_work.bbclass: use HOSTTOOLS 'rm' binary exclusively rm_work: adjust dependency to make do_rm_work_all depend on do_rm_work ruby: merge .inc into .bb ruby: upgrade to 3.1.3 selftest/virgl: use pkg-config from the host systemd: backport another change from v252 to fix build with CVE-2022-45873.patch tiff: Add packageconfig knob for webp toolchain-scripts: compatibility with unbound variable protection tzdata: upgrade to 2022g valgrind: skip the boost_thread test on arm vim: upgrade to 9.0.1211 webkitgtk: upgrade to 2.36.8 xserver-xorg: upgrade to 21.1.6 xwayland: libxshmfence is needed when dri3 is enabled xwayland: upgrade to 22.1.7 yocto-check-layer: Allow OE-Core to be tested |
||
|
||
Re: error when try to use sudo command in recipe
Richard Purdie
On Sat, 2023-02-04 at 20:15 -0800, SIMON BABY wrote:
Hi Richard,I don't see anything in there which runs that task under fakeroot/pseudo. Are you building this within some kind of container and/or under something like kas? The error suggests that sudo has been restricted somehow but I don't think it is bitbake doing it. I'd point out that do_pull_image task has at least three problems I spotted at a quick glance: a) It will kill *any* dockerd process on the system so it can't run in parallel with any other build b) The "sleep 5" tells you it is likely to suffer races c) Using sudo within recipes is considered a bad practise and will require setup of the right privlegdes to work properly Cheers, Richard |
||
|
||
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.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,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
Thank you.
Chee Yang 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
|
||
|
||
Re: [meta-raspberrypi] Is Preempt-rt still supported in master / latest releases?
#raspberrypi
Joel Winarske
I created an issue: https://github.com/agherzan/meta-raspberrypi/issues/1147 I would use Kuzemko Aleksandr's solution in bbappend until there is support in meta-raspberrypi. |
||
|
||
Re: chrony pkg-config backport fix
#kirkstone
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: 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/
-- # Randy MacLeod # Wind River Linux |
||
|
||
Re: [] [PATCH yocto-autobuilder-helper] config.json: set oe-time-dd-test.sh timeout to 3 seconds
On 2023-02-02 18:32, Randy MacLeod via
lists.yoctoproject.org wrote:
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 |
||
|