Closed SeyerleinRichard closed 1 year ago
Might be a regression that sneaked into Isar after its v0.9 release (via schroot support). I assume you tried meta-iot2050 master here, right? I can confirm the problem for that revision. Maybe stable/V01.03 still works (need to test, just an idea). We will have a closer look.
Yes, the stable, pre-sbuild branch still works fine. I will report upstream and suggest a fix once we have feedback.
Yes, I did indeed work on the master. I tried stable/V01.03 on my side, but so far I haven't been successful.
When trying to build meta-iot2050, I get some errors, the first one is as follows:
ERROR: python-gast-0.5.2-2 do_fetch: Network access disabled through BB_NO_NETWORK (or set indirectly due to use of BB_FETCH_PREMIRRORONLY) but access requested with command git -c core.fsyncobjectfiles=0 ls-remote https://salsa.debian.org/python-team/packages/python-gast.git (for url https://salsa.debian.org/python-team/packages/python-gast.git)
When trying to build my own image (that is based on the meta-iot2050 base image) and include commit ffc3caf77d64ef67cdf58839e50cf81a41c93ab7 (last commit in stable/V01.03), I get:
ERROR: isar-bootstrap-host-1.0-r0 do_bootstrap: Execution of '/build/tmp/work/iot2050-debian-arm64/isar-bootstrap-host/1.0-r0/temp/run.do_bootstrap.6251' failed with exit code 1:
W: qemu-debootstrap is deprecated. Please use regular debootstrap directly
I: Running command: debootstrap --verbose --variant=minbase --include=locales --no-check-gpg --components=main,contrib,non-free bullseye /build/tmp/work/iot2050-debian-arm64/isar-bootstrap-host/1.0-r0/rootfs file:///build/tmp/deploy/base-apt/iot2050-debian/apt/debian
I: Retrieving InRelease
I: Retrieving Release
I: Retrieving Packages
I: Validating Packages
I: Resolving dependencies of required packages...
I: Resolving dependencies of base packages...
I: Checking component main on file:///build/tmp/deploy/base-apt/iot2050-debian/apt/debian...
E: Couldn't find these debs: apt
I'm not sure if this information is any value here, possibly the way to go would be to fix the master branch.
Regarding master, we may have a fix in sight, see https://groups.google.com/g/isar-users/c/TSn8O9vHJRA/m/BLvugdKBBAAJ.
Regarding the other issue, I have to admit testing only without Coral support enabled. Need to check that as well. Without Coral, the rebuild succeeded here.
The second issue is understood as well: Some recipes in meta-coral use tags in SRCREV
, and that does not go well with offline mode (it also does not go well with upstream removing tags as it happened before with python-absl).
We need to resolve it in meta-coral, then import that into master. Is a fix on the head of the tree sufficient?
First step: https://github.com/siemens/meta-coral/pull/32
I can confirm that the meta-iot2050 build without Coral support works on my side.
I don't have any strong opinion on how or where to fix it as I do not use that feature in my own project.
Then we will fix it for the next release only for now.
The offline build is running on my side, for my image as well as for a build of meta-2050 without Coral support. I guess this is due to changes in Isar in mid-December.
I can't say anything about Coral though as I cannot build the example image with that feature (offline or online), plus I don't need it for my project.
Was addressed via https://github.com/siemens/meta-iot2050/pull/396, forgot to link.
Coral works in CI, but you are now the second one who says it does not build. Checking ATM.
Hallo,
I have to build a layer based on meta-iot2050, but have the requirement to be able to build it in an offline environment. As I failed to do so, I tried he same with meta-iot2050 to make sure my problem is not related with the definition of my own layer. Doing this I observed the same problems. So here's a summary of what I did:
First I added a file kas/opt/offline.yml to the project to set the necessary environment variables. The file's content is as follows:
After doing this (and after doing a successful online build), I executed
./kas-container build kas-iot2050-example.yml:kas/opt/offline.yml
. This build failed because the Isar recipe base_apt (in directory /meta/recipes-devtools/base-apt/base-apt.bb) expects the variablesDISTRO
andHOST_DISTRO
to be identical (and of the form debian-[DistroName]). In meta-iot2050,DISTRO
is set to iot2050-debian, so base_apt.bb failed for me.I then modified the _baseapt.bb recipe in order to accept the iot2050-debian distro - at first manually, but checking for offline build and existence of the file, and then applying a patch in kas-container would certainly be possible, so there should be no problem here.
After doing this, the build still fails with the following output:
How I understand this is that some packages (e.g. build-essential) require the installation of additional packages (make, compilers) that do not seem to be present in the offline repository cache. But my understanding of the whole build process is very far from complete, so I'd appreciate any suggestion how to fix this (although I'm well aware that an offline buils isn't really in the scope of the meta-iot2050 project).