Re: [yocto] Run a post-processing step after image generation

2024-05-23 Thread Alexander Kanavin
One option is to install the files into sysroot-destdir/ (there's a way to extend what gets copied there beyond the standard set of headers/libraries) in addition to packaging them, then make a new recipe that DEPENDS on all the recipes that do that sysroot installation, and then it will have the

Re: [yocto] Getting a list of recipes which accessed network during do_fetch

2024-05-23 Thread Alexander Kanavin
I wonder what is the use case? Perhaps there's a way to achieve that in some other way altogether? Alex On Thu, 23 May 2024 at 11:46, gauravpathak129 via lists.yoctoproject.org wrote: > > Hello Experts, > > I am wondering if there is any built in "Yocto way" of listing all the >

Re: [yocto] runqemu qemux86-64

2024-05-22 Thread Alexander Kanavin
You need to delete the build folder, not the poky folder. You also need to start a new shell session. Alex On Thu 23. May 2024 at 7.37, SasiKumar E via Lists.Yoctoproject.Org wrote: > yes Alex, I have deleted the poky folder itself and retried the steps > provided in the URL " >

Re: [yocto] Git Auth error on ls-remote (git-remote-https) since update to Yocto-5.0

2024-05-22 Thread Alexander Kanavin
You might want to try to bisect poky? If there’s any fix, it needs to be justified with something else than ‘unbreaks passwords in recipes’. Alex On Wed 22. May 2024 at 8.15, Lukas Weiß via Lists.Yoctoproject.Org wrote: > You are definitely right, we should switch to another auth mechanism.

Re: [yocto] runqemu qemux86-64

2024-05-21 Thread Alexander Kanavin
Delete everything including your build folder and start from scratch I guess? I cannot help if you don't describe exact steps that you are taking, particularly when you are changing configuration or deleting things. Alex On Wed, 22 May 2024 at 06:57, SasiKumar E via lists.yoctoproject.org

Re: [yocto] Git Auth error on ls-remote (git-remote-https) since update to Yocto-5.0

2024-05-21 Thread Alexander Kanavin
Supplying passwords this way is a terrible idea, and isn't supported (there's a comment in git fetcher source stating that explicitly). You should transition everything to ssh (at which point the issue will go away anyway), or place the https secrets into a more secure location (man gitcredentials

Re: [yocto] runqemu qemux86-64

2024-05-21 Thread Alexander Kanavin
You need to re-run bitbake after you make changes to configuration in build/conf/local.conf or other files there. runqemu itself won't trigger a rebuild, it only starts qemu. If for example the machine changes, then the files are going to be expected in different locations and only bitbake will

Re: [yocto] meta-readonly-rootfs-overlay and #scarthgap

2024-05-21 Thread Alexander Kanavin
Your name is 'Mike' and your email is 'chiefsleepy...@gmail.com'. That is not a real identity or an introduction. I'd want to know who you are, who is your employer, and what is your project and product. Just like in real life. Alex On Tue, 21 May 2024 at 14:31, mlynch via

Re: [yocto] runqemu qemux86-64

2024-05-21 Thread Alexander Kanavin
Please: a) introduce yourself; b) formulate a question. Alex On Mon, 20 May 2024 at 09:47, SasiKumar E via lists.yoctoproject.org wrote: > > I followed all the instructions as per the quick build, initially qemu had > run for the second time it is not working and resulting to this error > > >

Re: [yocto] meta-readonly-rootfs-overlay and #scarthgap

2024-05-21 Thread Alexander Kanavin
Please tell us where that layer is hosted. There's no guarantee that its maintainer reads this list or is going to see your question. Also do introduce yourself; asking questions anonymously is not polite and lessens your chances of anyone reacting. Alex On Sat, 18 May 2024 at 14:05, Mike via

Re: [yocto] Unable to populate_sdk for ls1012afrwy macine

2024-05-16 Thread Alexander Kanavin
Yeah, I was confused. This is the authoritative source: https://wiki.yoctoproject.org/wiki/Releases Neverthless mickledore is no longer supported (and nanbield is out of support shortly). Alex On Thu, 16 May 2024 at 12:29, dhanyalakshmi.k via lists.yoctoproject.org wrote: > Thank You Alex for

Re: [yocto] Unable to populate_sdk for ls1012afrwy macine

2024-05-16 Thread Alexander Kanavin
I understand this is not exactly helpful, but someone subverted yocto completely with ls-image-main recipe. Putting Ubuntu into target images is not supported, tested or recommended, and if any issues occur you're on your own. Or ask the developers of that 'layerscape' thing. Also mickledore is

Re: [yocto] Unable to populate_sdk for ls1012afrwy macine

2024-05-16 Thread Alexander Kanavin
Oh, and: please introduce yourself as well. It's not polite to fire off support questions without saying who you are and what are you working on. Alex On Thu, 16 May 2024 at 11:37, Alexander Kanavin via lists.yoctoproject.org wrote: > > " - package ubuntu-main-22.04.2-r0.aarch64 f

Re: [yocto] Unable to populate_sdk for ls1012afrwy macine

2024-05-16 Thread Alexander Kanavin
" - package ubuntu-main-22.04.2-r0.aarch64 from oe-repo obsoletes libc6-dbg provided by libc6-dbg-2.35-r0.aarch64 from oe-repo" This ubuntu-main package is highly suspect and shouldn't be present. Can you look into where it's coming from, how is formed, and why is it there to begin with? We

Re: [yocto] requires libsqlite3.so()(64bit), but no providers found in RDEPENDS:xxx? [file-rdeps] #kirkstone #yocto

2024-05-14 Thread Alexander Kanavin
following setting? > > RDEPENDS:${PN} += “sqlite3” > > > > I have added this (RDEPENDS_${PN} += "sqlite3") to the recipe but I see the > same error!! > > > > > > Regards, > > Qi > > > > From: yocto@lists.yoctoproject.org On Behal

Re: [yocto] requires libsqlite3.so()(64bit), but no providers found in RDEPENDS:xxx? [file-rdeps] #kirkstone #yocto

2024-05-14 Thread Alexander Kanavin
Can you show the complete recipe? Alex On Tue 14. May 2024 at 9.56, Altous, Salahaldeen via lists.yoctoproject.org wrote: > Hi All, > > I have one yocto recipe which is using libsqlite3, the compile task is OK > but I got this error with do_package_qa > > /usr/lib/libexample.so.0.2.3 contained

Re: [yocto] Opkg cannot find anything to satisfy 'kernel-module-iwlmvm'

2024-05-13 Thread Alexander Kanavin
You need to look into build logs and build directory for the kernel recipe to see what modules are being built and packaged. Alex On Mon, 13 May 2024 at 02:02, Worik Stanton via lists.yoctoproject.org wrote: > > Friends > > Where in a yocto build can I find the definition of a package for

Re: [yocto] Warning about "no-recipes"

2024-05-09 Thread Alexander Kanavin
On Wed, 8 May 2024 at 23:19, Worik Stanton via lists.yoctoproject.org wrote: > The system (before a build) has two subdirectories: > > * layers: Consists of "meta-*" directories, and "openembedded-core" all git > repositories pinned to particular commits > * meta-mybuild: Consisting of

Re: [yocto] Yocto recipe file://DIRECTORY fetcher recursive tracking?

2024-05-09 Thread Alexander Kanavin
On Thu, 9 May 2024 at 12:36, Richard Purdie via lists.yoctoproject.org wrote: > > I have a dummy question regarding the file://DIRECTORY/ in recipe > > usage, we are using this mechanism to directly point at a source > > repository with potentially lots of subfolders, etc. Does bitbake > > track

Re: [yocto] Generating SPDX documents without actually building anything

2024-05-08 Thread Alexander Kanavin
I'm not sure I understand how this would even be possible? You can't generate SPDX until you have the binary artefacts and they've been split into packages as far as I understand. The spdx code in yocto explicitly establishes that relation between tasks. Alex On Wed, 8 May 2024 at 13:59,

Re: [yocto] Warning about "no-recipes"

2024-05-08 Thread Alexander Kanavin
On Wed, 8 May 2024 at 05:38, Worik Stanton via lists.yoctoproject.org wrote: > The "whomever" has gone away, and I am on my own! > > Where do I start resolving a dependency like this? First of all, please introduce yourself like I'm sure you would when you meet new people in real life. Who you

Re: [yocto] Installing Multiple Versions of the Same Library with a single recipe

2024-04-25 Thread Alexander Kanavin
On Thu, 25 Apr 2024 at 10:16, Altous, Salahaldeen via Lists.Yoctoproject.Org wrote: > the reason behind that, that this company have one external module which > development in the past with an early version of this library and currently > there is a new module which developed with the new

Re: [yocto] How I can add/remove libxxxx-dev.ipk to the installed yocto SDK? SDK partial update #devtool #kirkstone #sdk #yocto

2024-04-25 Thread Alexander Kanavin
On Thu, 25 Apr 2024 at 10:10, Altous, Salahaldeen via Lists.Yoctoproject.Org wrote: > The 3rd party is using only The Yocto SDK (not the eSDK), they want to test > pre-release for one or two libs which are not included in the machine conf > yet. > > If I provide a pre-build sstate-cache, which

Re: [yocto] Installing Multiple Versions of the Same Library with a single recipe

2024-04-25 Thread Alexander Kanavin
You should find out why people want same that library in different versions in the first place. This indicates some kind of dysfunction in the product development process. Alex On Wed, 24 Apr 2024 at 16:59, Altous, Salahaldeen via lists.yoctoproject.org wrote: > > Hi, > > can I install Multiple

Re: [yocto] How I can add/remove libxxxx-dev.ipk to the installed yocto SDK? SDK partial update #devtool #kirkstone #sdk #yocto

2024-04-25 Thread Alexander Kanavin
I would suggest that you teach the 3rd party to set up a Yocto build and provide pre-built sstate cache to them. We've added SDK features directly into it, and incremental updates are both possible and easy in that setup (just pull from the layer repos and rerun bitbake as instructed). Alex On

Re: [yocto] Yocto common place holder for includes which used multiple recipe

2024-04-23 Thread Alexander Kanavin
: > > Hi Alex > > thanks for your quick reply. > > On Tue, Apr 23, 2024 at 05:02 AM, Alexander Kanavin wrote: > > I think you can simply make it a class and put under > classes/some.bbclass? Plenty of recipes in oe-core do this, see e.g. > gnomebase.bbcl

Re: [yocto] Yocto common place holder for includes which used multiple recipe

2024-04-23 Thread Alexander Kanavin
I think you can simply make it a class and put under classes/some.bbclass? Plenty of recipes in oe-core do this, see e.g. gnomebase.bbclass. Alex On Tue, 23 Apr 2024 at 13:57, Altous, Salahaldeen via lists.yoctoproject.org wrote: > > Hi All, > > I need a common place holder to share one include

Re: [yocto] Issue with Installing openssh Package #kirkstone #systemd #yocto

2024-04-17 Thread Alexander Kanavin
openssh recipe (or its appends) does not control what gets installed into the image, only how openssh gets split into packages. To see what gets installed you need to find the image recipe and modify that as appropriate. Alex On Wed, 17 Apr 2024 at 13:56, Nitesh D via lists.yoctoproject.org

Re: [linux-yocto] Add .deb file into Yocto image

2024-04-16 Thread Alexander Kanavin
Hello Rayhan, I forgot to say, linux-yocto is not the right place to ask general yocto questions (it's for developing the linux kernel in yocto). Please use the yocto group instead. Alex On Mon, 15 Apr 2024 at 14:41, inbrayhan via lists.yoctoproject.org wrote: > > [Edited Message Follows] > >

Re: [linux-yocto] Add .deb file into Yocto image

2024-04-15 Thread Alexander Kanavin
k the .deb into that location). Alex On Mon, 15 Apr 2024 at 13:35, Alexander Kanavin via lists.yoctoproject.org wrote: > > First of all, please introduce yourself. What is your name? Who do you > work for? What is the product you are working on? > > Second, please show the recipe exact

Re: [linux-yocto] Add .deb file into Yocto image

2024-04-15 Thread Alexander Kanavin
First of all, please introduce yourself. What is your name? Who do you work for? What is the product you are working on? Second, please show the recipe exactly as it is (don't censor or otherwise modify it), and then also show what happens when you run bitbake with it, because what I'm seeing

Re: [yocto] Export python packages installed using pypi to target

2024-03-28 Thread Alexander Kanavin
at 09:10, Alexander Kanavin via lists.yoctoproject.org wrote: > I think you have to get an expert to boot your system and look at it > directly. If we can’t reproduce the issue, it’s just too much effort to > exchange emails for no reward at all other than thanks. It’s open source, >

Re: [yocto] Export python packages installed using pypi to target

2024-03-28 Thread Alexander Kanavin
s LD_PRELOAD related > error. > > On Sun, 24 Mar 2024, 8:53 am Ashu Joshi, wrote: > >> I am not able to figure out.. Is there any way we can override the >> location where application looks for python may be in recipe file or some >> setting, conf file? >> >>

Re: [yocto] Export python packages installed using pypi to target

2024-03-22 Thread Alexander Kanavin
output in target's terminal. > > /usr/lib/python3.8 $ > /usr/lib/python3.8 $ find -iname "encodings" > ./encodings > > > On Fri, Mar 22, 2024 at 1:29 PM Alexander Kanavin > wrote: > >> This means the python installation on the target is incomplete/broken. >>

Re: [yocto] Export python packages installed using pypi to target

2024-03-22 Thread Alexander Kanavin
on3 because when i try to start python by writing > python3 in target's terminal, i get above error message related to > encodings. > > On Fri, Mar 22, 2024 at 11:48 AM Alexander Kanavin > wrote: > >> You need to first start python3 and run it there, not directly from the >&g

Re: [yocto] Export python packages installed using pypi to target

2024-03-22 Thread Alexander Kanavin
You need to first start python3 and run it there, not directly from the shell. Alex On Fri, 22 Mar 2024 at 07:00, Ashu Joshi wrote: > It doesn't allow me to run import encodings as it is giving another error > import:not found > > On Thu, Mar 21, 2024 at 7:53 PM Alexander Kana

Re: [yocto] Export python packages installed using pypi to target

2024-03-21 Thread Alexander Kanavin
epasTransport.service" >> FILES_${PN} += "/usr/share/settings.yml" >> >> Error was basically because of commented code wherein I was trying to >> export the entire directory. I have commented out that for now.. I found >> that by creating rpm or opkg pa

Re: [yocto] Export python packages installed using pypi to target

2024-03-21 Thread Alexander Kanavin
Please share your complete recipe and all of the error message, otherwise it’s impossible to tell what is happening. Alex On Thu 21. Mar 2024 at 8.29, Ashu Joshi wrote: > Hello, > I am trying to install wirpas_gateway package from pypi using yocto > recipe.. Once service is build completely

Re: [yocto] make a-quick quick again (and light on the AB, particularly arm)

2024-03-20 Thread Alexander Kanavin
On Wed, 20 Mar 2024 at 11:55, Ross Burton wrote: > I’d be against removing _all_ arm hosts from the quick build. With the > in-progress changes to the autobuilder hosting we should be able to retire > the slower Arm workers and a build running on the Arm hosts shouldn’t be a > problem. It

[yocto] make a-quick quick again (and light on the AB, particularly arm)

2024-03-20 Thread Alexander Kanavin
Hello, I feel that a-quick builds as they are have ceased to be quick or lightweight, and I'd like to trim heavy items from them. The goal is to: - have a-quick complete in under an hour with fully populated sstate - lessen the load on arm workers in particular; there is not enough of them, and

Re: [yocto] install-vs-shipped

2024-03-19 Thread Alexander Kanavin
You can try to issue 'bitbake -e easyloggingpp' which will print all variables and how their values are formed. Look particularly for PACKAGES and FILES entries, as those will contain clues as to why the file isn't being picked up by packaging. Alex On Mon, 18 Mar 2024 at 19:05, Bratiranjan

Re: [yocto] PACKAGECONFIG variable related patches

2024-03-14 Thread Alexander Kanavin
On Thu, 14 Mar 2024 at 12:45, Ross Burton wrote: > The rationale behind this is that changes to the recipe/sources may mean the > patch no longer applies correctly if the PACKAGECONFIG is enable/disabled, > but that combination wasn’t tested. Even if all such patches apply cleanly in all their

Re: [yocto] How to use a single directory in multiple layers.

2024-03-14 Thread Alexander Kanavin
On Thu, 14 Mar 2024 at 10:04, Saswati Nayak wrote: > My scenario will be , Suppose I am having a layer meta-A and in this layer > some directories structure is there such as recipes-bsp, recipes-kernel etc. > in recipes-bsp I have a recipe atf_1.0.bb which has few keys which are stored > in

Re: [yocto] PACKAGECONFIG variable related patches

2024-03-13 Thread Alexander Kanavin
The idiomatic pattern is to reject conditional patches in code review, Seriously, not a good idea - try to find a way to apply the patch without conditions, and trigger the condition through a configuration option, or runtime check. Alex On Wed, 13 Mar 2024 at 17:40, Joel Winarske wrote: > >

Re: [yocto] How to use a single directory in multiple layers.

2024-03-13 Thread Alexander Kanavin
Perhaps you can explain what is in that directory, and why do you need access to it from another layer. It's not a common scenario. Alex On Wed, 13 Mar 2024 at 11:38, Saswati Nayak wrote: > > Hello All, > > I require guidance on utilizing a file directory present in the > 'meta-x'

Re: [yocto] Task dependencies

2024-03-11 Thread Alexander Kanavin
Can you publish the layer somewhere? It's hard to tell what is going on, but perhaps you could check which task creates which artefacts in deploy directory, and consult the bitbake manual about task dependencies so they can be run in correct order. Alex On Thu, 7 Mar 2024 at 11:13, Bratiranjan

Re: [yocto] Cannot ssh into qemu guest

2024-03-09 Thread Alexander Kanavin
Can you start runqemu without the nographic option, and copy-paste what it prints? There are clues as to how it sets up networking in there. Alex On Sat, 9 Mar 2024 at 19:59, Xylopyrographer wrote: > > Thanks for the reply. > > Still a bit green with all this but from the QEMU VM, sshd is

Re: [yocto] Inter-Task Dependencies

2024-03-05 Thread Alexander Kanavin
Hello, It helps if you explain the use case. What is the original file name, and what is the name of the symlink, and why do you need to create one? Alex On Tue, 5 Mar 2024 at 11:54, Bratiranjan Acharya wrote: > > Hi, > > I hope this email finds you well. I have a question regarding a specific

Re: [yocto] dnf/libsolv vs. package feed with commit hashes in version strings

2024-02-29 Thread Alexander Kanavin
On Thu, 29 Feb 2024 at 10:26, Patrick Huesmann wrote: > Your suggestion will probably get rid of a lot of complexity in our recipe > that tried to work around bitbake's limitations. But I'm still not sure how > to tackle the original problem (AUTOINC from PRSERV for file:// and http:// >

Re: [yocto] dnf/libsolv vs. package feed with commit hashes in version strings

2024-02-28 Thread Alexander Kanavin
Oh mercy me. Yocto isn't designed for this; everything is assuming that SRCREV, SRC_URI and PV are static and set in the recipe. So I would rather implement the logic to determine what they are in an external script, and run that prior to bitbake. The script would write the dynamic values into an

Re: [yocto] dnf/libsolv vs. package feed with commit hashes in version strings

2024-02-28 Thread Alexander Kanavin
At this point you need to show the recipe. Because I don't understand how packages can have dedicated source revision, if source revision is set by the recipe, and is the same for all packages it makes... where is the problem here? Alex On Wed, 28 Feb 2024 at 16:15, wrote: > > As far as I can

Re: [yocto] dnf/libsolv vs. package feed with commit hashes in version strings

2024-02-28 Thread Alexander Kanavin
You can check if existing recipes in oe-core get correct PKGV into package files, there's plenty of them, e.g. xinput-calibrator, or any other that adds +git to PV (without zero at the end). Alex On Wed, 28 Feb 2024 at 14:17, wrote: > > Great! This was exactly the bit of information I was

Re: [yocto] dnf/libsolv vs. package feed with commit hashes in version strings

2024-02-28 Thread Alexander Kanavin
Note that the package version has 'git0' in it. That zero is supposed to be filled in by PR server, and if this doesn't happen, something is misconfigured, or there's a bug. You can find the code that does this in meta/classes-global/package.bbclass, particularly look for PKGV manipulations in

Re: [yocto] dnf/libsolv vs. package feed with commit hashes in version strings

2024-02-28 Thread Alexander Kanavin
Welcome to PR service which you need to run and use during yocto builds: https://wiki.yoctoproject.org/wiki/PR_Service Alex On Wed, 28 Feb 2024 at 12:56, wrote: > > Hi, > > I noticed a strange behavior of dnf not updating a package from the package > feed, and when I told it to explicitly

Re: [yocto] Yocto Kirkstone VPP compilation

2024-02-27 Thread Alexander Kanavin
On Tue, 27 Feb 2024 at 08:20, wrote: > Thank you for your reply. I already tried to use cmake instead of autotools > but the error I got was that there was no CMakeLists for the compilation. > > Then I tried to set: > > > OECMAKE_GENERATOR = "Unix Makefiles" > > But another error appears: > >

Re: [yocto] Yocto Kirkstone VPP compilation

2024-02-26 Thread Alexander Kanavin
It is not entirely clear what is happening. The recipe depends on python3-pip (not the native), but somehow pip3 executable still ends up in the native sysroot. Then pip3 can't find its own modules, which means that either the modules are not there (in recipe-sysroot-native/ that is), or it's

Re: [yocto] 'yocto-kernel-tools' requires git version much greater than general Yocto requirement

2024-02-23 Thread Alexander Kanavin
On Fri, 23 Feb 2024 at 12:32, Konstantin Aladyshev wrote: > Thanks for the response! What would be a proper way to fix this problem then? 1. show how to reproduce the issue in plain poky master. 2. check why none of the tests expose the issue. You can for example grep related keywords in

Re: [yocto] 'kgit-s2q' doesn't remove 'rebase-apply' directory

2024-02-23 Thread Alexander Kanavin
If you want help or fixes, you need to show how to reproduce the issue with plain poky master via specific steps, and not just discuss problems in your local setup. Alex On Fri, 23 Feb 2024 at 11:35, Konstantin Aladyshev wrote: > > Hello! > > 'kgit-s2q' in the linux recipe tries to use 'git

Re: [yocto] 'yocto-kernel-tools' requires git version much greater than general Yocto requirement

2024-02-23 Thread Alexander Kanavin
It's probably just a simple oversight. If the problematic code path is not taken in automated tests, no one will see the issue when it's introduced by the commit. Alex On Thu, 22 Feb 2024 at 16:11, Konstantin Aladyshev wrote: > > Hello! > I was investigating some problems with the `devtool

Re: [yocto] WHAT IS YOCTO PROJECT ACTUALLY MEAN?

2024-02-19 Thread Alexander Kanavin
On Sun, 18 Feb 2024 at 16:50, wrote: > > Thanks for your reply. > > I have go through your recommend article, and I have a question. "Yocto is an > open source collaboration project" and in my opinion "open source > collaboration project" is a process of create and maintain open source >

Re: [yocto] WHAT IS YOCTO PROJECT ACTUALLY MEAN?

2024-02-18 Thread Alexander Kanavin
I think you could start with this page https://www.yoctoproject.org/development/technical-overview/ Alex On Sun 18. Feb 2024 at 11.56, wrote: > Hi everyone, > > I am new to Yocto and sorry for my poor english. I have a question is > that, what actually Yocto is?. I am so confuse about this

Re: [yocto] How to build two images with different settings of a recipe in Yocto

2024-01-28 Thread Alexander Kanavin
That said, if the difference between distros is only in specific recipe settings, then I think the builds will reuse each other's sstate, other than the recipes that differ, and their consumers. Alex On Sun, 28 Jan 2024 at 13:48, Alexander Kanavin via lists.yoctoproject.org wrote: > > T

Re: [yocto] How to build two images with different settings of a recipe in Yocto

2024-01-28 Thread Alexander Kanavin
There's no way around this: you can't build the same recipe in two different ways for two different images in the same DISTRO. The different behavior has to be specified through config files and picked up at runtime, and not through build time settings. All products and builds and CI

Re: [yocto] How to build two images with different settings of a recipe in Yocto

2024-01-27 Thread Alexander Kanavin
Putting image specific tweaks into local.conf is not a good practice. Local.conf should be extremely minimal, and ideally contain only MACHINE and DISTRO. I would do it with two different image recipes that share almost everything via common .inc, except ROOTFS_POSTPROCESS_COMMAND. You can find

Re: [yocto] Multiple images on the same hardware

2024-01-25 Thread Alexander Kanavin
On the image level you can only control which packages go into it. Kernel modules are all split into their own packages, so you can install (or not) what you want. Building the same userspace recipe slightly differently for different images isn't possible. You need to accept that and find some

Re: [yocto] Multiple images on the same hardware

2024-01-25 Thread Alexander Kanavin
Multiple machines has a heavy cost, as you effectively double the amount of builds (and build times) just so you can enable or not some features in the kernel on the exact same hardware. I would suggest to keep the same machine and same distro, and just make multiple images (maybe even in the same

Re: [yocto] Using Yocto for development on the host

2024-01-25 Thread Alexander Kanavin
Producing docker or some other container with yocto is not impossible, but it's a huge maintenance headache. From my experience every developer team wants 'their stuff' in it, and of course they never clean up something they no longer need. So the artefact grows in size indefinitely. There's also

Re: [yocto] Remove Python dependency from target package only

2024-01-22 Thread Alexander Kanavin
I would suggest not trying to figure out PACKAGECONFIGs just yet, but rather go to the source of the error: inspect ${T}/log.do_configure and ${T}/run.do_configure. Are options to enable/disable python passed in? If yes, then something in PACKAGECONFIG settings doesn't quite work. If no, then

Re: [yocto] Binary feeds: how are we supposed to use "dnf upgrade"?

2024-01-12 Thread Alexander Kanavin
Note the existing tests in meta/lib/oeqa/runtime/cases/dnf.py - the do use a remote http repo to install a file, but the repo configuration is supplied on command line with --repofrompath, and upgrading is not tested. Alex On Fri, 12 Jan 2024 at 15:05, Michael Opdenacker via

Re: [yocto] Problem with overlayed recipes

2024-01-09 Thread Alexander Kanavin
You need to inspect ${T}/log.do_rootfs for your image to check what is actually being installed. Also check the packages for simple-local to verify that they contain what you expect to see on the image. Alex On Tue, 9 Jan 2024 at 17:01, Daniele Lugli wrote: > >

Re: [yocto] Problem with overlayed recipes

2024-01-09 Thread Alexander Kanavin
I'd say including recipes across layers is not a good idea to begin with. Rather copy, rename and tweak it. Alex On Tue, 9 Jan 2024 at 11:42, Daniele Lugli wrote: > > Thank you Marco, > > it is there: > > # POKY_BBLAYERS_CONF_VERSION is increased each time build/conf/bblayers.conf > # changes

Re: [yocto] icecc support broken?

2023-12-30 Thread Alexander Kanavin
I think it's not being tested due to lack of a dedicated maintainer. If you can come up with fixes, they'll be taken, but having regression tests requires dedicated manpower to take care of both the tests and the fixes. Generally icecc is not the first option when it comes to speeding up builds:

Re: [yocto] How to generate a random number for all recipes?

2023-12-28 Thread Alexander Kanavin
It helps if you provide the context. What is the end goal here, what is the number used for? Maybe there's a different approach altogether for the problem you have. Alex On Fri, 29 Dec 2023 at 08:39, Gileon Chai wrote: > > Thank you for your reply. > HELLO's value in two bbfiles is same when

Re: [yocto] [PATCH yocto-autobuilder-helper v2] config.json: add "package-management" to images

2023-12-22 Thread Alexander Kanavin
On Fri, 22 Dec 2023 at 16:24, Michael Opdenacker wrote: > If I understand correctly, even after I define a new > 'poky-binary-distro' distro in meta-poky (if agreed), I'll still have to > add a new image to config.json, but indeed not touching existing ones. You don't need new images, but you

Re: [yocto] [PATCH yocto-autobuilder-helper v2] config.json: add "package-management" to images

2023-12-22 Thread Alexander Kanavin
oduced for releases > at https://downloads.yoctoproject.org/releases/yocto/, as they currently > don't have package management enabled. > > Signed-off-by: Michael Opdenacker > CC: Alexander Kanavin > > --- > Note: could not test this change! > > Changes in V2: > - Add conte

Re: [yocto] [PATCH yocto-autobuilder-helper] config.json: add "package-management" to images

2023-12-22 Thread Alexander Kanavin
And also, why here, and not in oe-core? Any such custom tweaks add to the friction and mismatches between local builds and autobuilder builds, especially when one fails but not the other. Alex On Fri, 22 Dec 2023 at 12:51, Alexander Kanavin via lists.yoctoproject.org wrote: > > Wai

Re: [yocto] [PATCH yocto-autobuilder-helper] config.json: add "package-management" to images

2023-12-22 Thread Alexander Kanavin
Wait, why? Alex On Fri, 22 Dec 2023 at 12:48, Michael Opdenacker via lists.yoctoproject.org wrote: > > From: Michael Opdenacker > > Signed-off-by: Michael Opdenacker > > --- > Note: could not test this change! > --- > config.json | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > >

Re: [yocto] do_populate_sdk_ext failed

2023-12-21 Thread Alexander Kanavin
) > SDK Team | Ambarella Shanghai > > -Original Message- > From: Alexander Kanavin > Sent: Thursday, December 21, 2023 4:40 AM > To: yocto@lists.yoctoproject.org; Ming Wen > Cc: ross.bur...@arm.com; Song-Jun Han ; Jian Tang > > Subject: [EXT] Re: [yocto] do_popul

Re: [yocto] do_populate_sdk_ext failed

2023-12-20 Thread Alexander Kanavin
On Wed, 20 Dec 2023 at 01:51, Ming Wen wrote: > Song-Jun and myself are in the same team. We spent some efforts to make it > happen for " do_populate_sdk_ext" finally by fixing some issue in Poky(we're > using latest Kirkstone 4.0). But as you mentioned, when we tried the > generated eSDK, we

Re: [yocto] FW: Yocto and Red Hat 8

2023-12-18 Thread Alexander Kanavin
Zeus has been EOL for a long time. You need to first upgrade to a supported yocto release. Alex On Mon, 18 Dec 2023 at 13:29, Monsees, Steven C (US) wrote: > > > > Is there any documentation or guidance you can provide on porting Yocto for > centos7 to 8 ? > > I am currently working centos7

Re: [yocto] Reg. Efficient methods to transfer yocto source file

2023-12-06 Thread Alexander Kanavin
We're working to improve sharing of builds (I posted a prototype recenty), but for now the simplest is to copy sstate cache and download cache manually: together they will prevent others from doing full rebuilds. You also need build/conf/ and all the layers of course. Alex On Wed, 6 Dec 2023 at

Re: [yocto] Why was package not included in my image despite of being a runtime dependency of one which was included?

2023-12-06 Thread Alexander Kanavin
You should look at log.do_rootfs for your image (in $WORKDIR under temp/) to see what is happening at the actual package transaction. Also, find the package which should pull in the one that's missing (in tmp/deploy for example), and inspect that it does indeed contain the dependency. Alex On

Re: [yocto] The postinstall intercept hook 'update_mime_database' failed

2023-12-01 Thread Alexander Kanavin
You need to try plain poky then because the error does not happen there. Then figure out where the difference is. Alex On Fri, 1 Dec 2023 at 12:56, Mans Zigher wrote: > > I have now tried building a multitude of different machines and > switched to core-minimal-image and still I get these

Re: [yocto] SBOM in Yocto Zeus

2023-11-30 Thread Alexander Kanavin
I'm afraid you do have to update your yocto to something where spdx is supported. That's why we constantly urge everyone to stay close to upstream yocto, and have a process where that happens regularly, otherwise you will not be able to fulfil business requirements for your products in the longer

Re: [yocto] [yocto-autobuilder-helper][PATCH] config.json: Add lib32-matchbox-terminal to multilib images

2023-11-23 Thread Alexander Kanavin
On Thu, 23 Nov 2023 at 13:14, Ross Burton wrote: > > On 23 Nov 2023, at 12:00, Alexander Kanavin wrote: > > > > matchbox-terminal depends on vte, and latest vte enables gtk4 support. > > Are you sure? > > https://git.yoctoproject.org/poky/tree/meta/recipes-support

Re: [yocto] [yocto-autobuilder-helper][PATCH] config.json: Add lib32-matchbox-terminal to multilib images

2023-11-23 Thread Alexander Kanavin
matchbox-terminal depends on vte, and latest vte enables gtk4 support. Also, I do not understand how the fix works. How does installing additional packages into an image resolve a conflict between two packages installing different files into the same location? Alex On Thu, 23 Nov 2023 at 12:50,

Re: [yocto] [RFC] devtool: support multiple sources

2023-11-14 Thread Alexander Kanavin
I think no one actually anticipated all these corner cases when devtool was written. In general it's simply not designed to handle multiple sources in SRC_URI, it can do (tarball or git)+patches, and not any of the other options. No one is expecting a fix for all of them, perhaps it's best to keep

Re: [yocto] [OE-core] Core workflow: sstate for all, bblock/bbunlock, tools for why is sstate not being reused?

2023-11-06 Thread Alexander Kanavin
On Sun, 5 Nov 2023 at 20:43, wrote: > Another topic where additional meta data about the sstate-cache seams > to be beneficial is sstate-mirror retention. Knowing which artifact was > compiled for which tag or commit of the bitbake layer could help to > wipe out some artifacts which are not

Re: [yocto] [yocto-autobuilder-helper][PATCH v4 1/2] config.json: Move AUH from custom scripts to config.json

2023-11-03 Thread Alexander Kanavin
On Fri, 3 Nov 2023 at 10:37, Alexander Kanavin via lists.yoctoproject.org wrote: > > Ka-boom: > https://autobuilder.yoctoproject.org/typhoon/#/builders/130/builds/59 " ERROR: Command . ./oe-init-build-env; bitbake-layers add-layer /home/pokybuild/yocto-worker/auh/build/auto-upgrade

Re: [yocto] [yocto-autobuilder-helper][PATCH v4 1/2] config.json: Move AUH from custom scripts to config.json

2023-11-03 Thread Alexander Kanavin
Ka-boom: https://autobuilder.yoctoproject.org/typhoon/#/builders/130/builds/59 Alex On Thu, 2 Nov 2023 at 16:21, Yoann Congal wrote: > > setup-auh and run-auh were doing what the AB config.json does: > * creating repo checkouts: Now use NEEDREPOS > * configuring bitbake env: Now use extravars >

Re: [yocto] Core workflow: sstate for all, bblock/bbunlock, tools for why is sstate not being reused?

2023-11-02 Thread Alexander Kanavin
On Thu, 2 Nov 2023 at 10:02, Alexander Kanavin via lists.yoctoproject.org wrote: > So here's what I'd like to try: > > - write a new populate_build_replica task that writes a few things > under ${WORKDIR}/replica > -- setup-layers json and script > (another option is to co

Re: [yocto] Core workflow: sstate for all, bblock/bbunlock, tools for why is sstate not being reused?

2023-11-02 Thread Alexander Kanavin
On Thu, 2 Nov 2023 at 09:32, wrote: > Sorry for repeating some parts which we already had in other emails. > But I tried to summarize the lengthy discussion a bit in one place. So here's what I'd like to try: - write a new populate_build_replica task that writes a few things under

Re: [yocto] Core workflow: sstate for all, bblock/bbunlock, tools for why is sstate not being reused?

2023-11-01 Thread Alexander Kanavin
On Wed, 1 Nov 2023 at 16:45, wrote: > I think these differences between SDK and bitbake environment are no > longer required and they have been problematic. I would try to make the > bitbake environment usable like the eSDK environment was without trying > to replicate all the details of the eSDK

Re: [yocto] [OE-core] Core workflow: sstate for all, bblock/bbunlock, tools for why is sstate not being reused?

2023-11-01 Thread Alexander Kanavin
On Wed, 1 Nov 2023 at 15:18, wrote: > We are currently experimenting with replacing the eSDK installer with > the bitbake build environment for our users. Part of this > transformation is, of course, the shared sstate-cache, for which this > discussion seems quite relevant. The workflow we are

Re: [yocto] [OE-core] Core workflow: sstate for all, bblock/bbunlock, tools for why is sstate not being reused?

2023-10-31 Thread Alexander Kanavin
On Tue, 31 Oct 2023 at 13:28, Richard Purdie wrote: > > Then we can pull all of it together into 'devtool esdk ' > > command (or similar), which would enter the esdk environment directly > > via: > > - running 'bitbake meta-ide-support' > > - running the above mentioned bitbake local.conf task

Re: [yocto] [OE-core] Core workflow: sstate for all, bblock/bbunlock, tools for why is sstate not being reused?

2023-10-31 Thread Alexander Kanavin
On Mon, 30 Oct 2023 at 16:02, Alexander Kanavin via lists.openembedded.org wrote: > So here's what could be done: > > - esdk tools become symlinks in poky/scripts/esdk-tools/. esdk > environment script puts that in PATH, rather than some custom > esdk-specific location (the c

Re: [yocto] Core workflow: sstate for all, bblock/bbunlock, tools for why is sstate not being reused?

2023-10-30 Thread Alexander Kanavin
On Mon, 30 Oct 2023 at 15:07, Richard Purdie wrote: > > a) esdk sets a number of variables from its initialization script that > > aid with cross-compiling components directly (e.g. the core use case > > of SDKs). Normal mode doesn't do that, but recently added > > meta-ide-support will generate

Re: [yocto] Core workflow: sstate for all, bblock/bbunlock, tools for why is sstate not being reused?

2023-10-30 Thread Alexander Kanavin
On Thu, 14 Sept 2023 at 14:56, Richard Purdie wrote: > There are design elements to this work. We need to work out how we can > make eSDK and "normal" builds more similar and less of an overhead to > switch between one and the other. A "bblock all" command does partly > get you to an eSDK

Re: [yocto] [PATCH yocto-autobuilder-helper] config.json: add a standalone builder for running yocto mirror tests

2023-10-27 Thread Alexander Kanavin
Thanks, I'm also just now testing the change that also prints what sstate paths were actually requested when the test fails due to missing objects. Alex On Fri, 27 Oct 2023 at 10:56, Richard Purdie wrote: > > On Fri, 2023-10-27 at 09:21 +0200, Alexander Kanavin wrote: > >

[yocto] [yocto-autobuilder2][PATCH] config.py: add yocto-mirror to the list of separately triggered builders

2023-10-27 Thread Alexander Kanavin
Signed-off-by: Alexander Kanavin --- config.py | 1 + 1 file changed, 1 insertion(+) diff --git a/config.py b/config.py index 50945b4..0da4c0a 100644 --- a/config.py +++ b/config.py @@ -132,6 +132,7 @@ builders_others = [ "buildperf-alma8", "reproducible-meta-oe&qu

  1   2   3   4   5   6   7   >