From: Anton Mikanovich <amikan@ilbers.de>
To: isar-users@googlegroups.com
Cc: Anton Mikanovich <amikan@ilbers.de>
Subject: [PATCH] image: disable cache-deb-src for sid-ports
Date: Wed, 15 Jun 2022 17:08:01 +0300 [thread overview]
Message-ID: <20220615140801.29030-1-amikan@ilbers.de> (raw)
Enabling 'cache-deb-src' in BASE_REPO_FEATURES for Debian Sid-Ports
targets sometimes fails with:
| E: Can not find version '1:13.0.1-4' of package 'llvm-toolchain-13'
| E: Unable to find a source package for llvm-toolchain-13
| WARNING: exit code 100 from a shell command.
| DEBUG: Python function do_rootfs_postprocess finished
| ERROR: ExecutionError('isar-image-base-qemuriscv64/1.0-r0/temp/run.cache_deb_src.2245792', 100, None, None)
ERROR: Task (mc:qemuriscv64-sid-ports:isar-image-base.bb:do_rootfs_postprocess) failed with exit code '1'
This happens when deb and deb-src repos (different for Sid-Ports) are
going out of sync on package version update. To prevent such failures
disable cache-deb-src on Sid-Ports targets.
Signed-off-by: Anton Mikanovich <amikan@ilbers.de>
---
meta/classes/image.bbclass | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass
index 0da56b7..ee9b5ed 100644
--- a/meta/classes/image.bbclass
+++ b/meta/classes/image.bbclass
@@ -42,6 +42,17 @@ python(){
bb.warn("IMAGE_TRANSIENT_PACKAGES is set and no longer supported")
if (d.getVar('IMAGE_TYPE')):
bb.warn("IMAGE_TYPE is deprecated, please switch to IMAGE_FSTYPES")
+
+ # Debian Sid-Ports stores deb and deb-src in separate repos, which fails
+ # sometimes on fetching sources if repos are not in sync during packages
+ # version update. It makes Isar to fail on cache-deb-src, so disable it.
+ base_repo_features = d.getVar('BASE_REPO_FEATURES') or ""
+ feature_list = base_repo_features.split()
+ if ('cache-deb-src' in feature_list):
+ if (d.getVar('DISTRO') == 'debian-sid-ports'):
+ bb.warn("BASE_REPO_FEATURES for debian-sid-ports is not supported, disabling")
+ feature_list.remove("cache-deb-src")
+ d.setVar('BASE_REPO_FEATURES', ' '.join(feature_list))
}
def cfg_script(d):
--
2.30.2
next reply other threads:[~2022-06-15 14:08 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-06-15 14:08 Anton Mikanovich [this message]
2022-06-20 13:40 ` Anton Mikanovich
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220615140801.29030-1-amikan@ilbers.de \
--to=amikan@ilbers.de \
--cc=isar-users@googlegroups.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox