* [PATCH 1/2] isar-sstate: lint task flags as well
@ 2026-09-24 6:45 'Felix Moessbauer' via isar-users
2026-09-24 6:45 ` [PATCH 2/2] do_unpack: do not expand S to avoid absolute path in signatures 'Felix Moessbauer' via isar-users
2026-10-06 10:25 ` [PATCH 1/2] isar-sstate: lint task flags as well Zhihang Wei
0 siblings, 2 replies; 3+ messages in thread
From: 'Felix Moessbauer' via isar-users @ 2026-09-24 6:45 UTC (permalink / raw)
To: isar-users; +Cc: jan.kiszka, Felix Moessbauer
We previously only linted all uppercase variables, but by that we missed
absolute path in task flags (e.g. do_unpack[cleandirs]). Lint them as
well.
The exact reason why we only linted the uppercase variables remains
unclear. On todays caches, this neither has a significant performance
impact, nor does it report false positives.
Signed-off-by: Felix Moessbauer <felix.moessbauer@siemens.com>
---
scripts/isar-sstate | 2 --
1 file changed, 2 deletions(-)
diff --git a/scripts/isar-sstate b/scripts/isar-sstate
index ada154e2..5d7b8ebc 100755
--- a/scripts/isar-sstate
+++ b/scripts/isar-sstate
@@ -894,8 +894,6 @@ def sstate_lint(target, verbose, sources_dir, build_dir, exit_code, pedantic, li
pn_issues = []
for name, val in sigdata['varvals'].items():
- if not name[0].isupper():
- continue
if sigdata['basehash_ignore_vars'] and name in sigdata['basehash_ignore_vars'] or \
sigdata['taskhash_ignore_tasks'] and name in sigdata['taskhash_ignore_tasks'] or \
name in ADDITIONAL_IGNORED_VARNAMES:
--
2.55.0
--
You received this message because you are subscribed to the Google Groups "isar-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to isar-users+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/isar-users/20260924064547.4017118-1-felix.moessbauer%40siemens.com.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH 2/2] do_unpack: do not expand S to avoid absolute path in signatures
2026-09-24 6:45 [PATCH 1/2] isar-sstate: lint task flags as well 'Felix Moessbauer' via isar-users
@ 2026-09-24 6:45 ` 'Felix Moessbauer' via isar-users
2026-10-06 10:25 ` [PATCH 1/2] isar-sstate: lint task flags as well Zhihang Wei
1 sibling, 0 replies; 3+ messages in thread
From: 'Felix Moessbauer' via isar-users @ 2026-09-24 6:45 UTC (permalink / raw)
To: isar-users; +Cc: jan.kiszka, Felix Moessbauer
We currently fully expand S before passing it to do_unpack. This makes
all packages that depend on the apt fetcher not cacheable, as the
absolute path ends up in the sstate signatures. Instead, we now use the
unexpanded bitbake variable ${S}.
Fixes: 37cb017a ("Convert apt source fetcher into native ...")
Signed-off-by: Felix Moessbauer <felix.moessbauer@siemens.com>
---
meta/classes-recipe/dpkg-base.bbclass | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta/classes-recipe/dpkg-base.bbclass b/meta/classes-recipe/dpkg-base.bbclass
index fbb952bd..b392211b 100644
--- a/meta/classes-recipe/dpkg-base.bbclass
+++ b/meta/classes-recipe/dpkg-base.bbclass
@@ -105,7 +105,7 @@ python() {
if u.startswith("apt://"):
d.appendVarFlag('do_fetch', 'depends', d.getVar('SCHROOT_DEP'))
- d.appendVarFlag('do_unpack', 'cleandirs', d.getVar('S'))
+ d.appendVarFlag('do_unpack', 'cleandirs', '${S}')
d.setVarFlag('do_unpack', 'network', d.getVar('TASK_USE_SUDO'))
break
--
2.55.0
--
You received this message because you are subscribed to the Google Groups "isar-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to isar-users+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/isar-users/20260924064547.4017118-2-felix.moessbauer%40siemens.com.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH 1/2] isar-sstate: lint task flags as well
2026-09-24 6:45 [PATCH 1/2] isar-sstate: lint task flags as well 'Felix Moessbauer' via isar-users
2026-09-24 6:45 ` [PATCH 2/2] do_unpack: do not expand S to avoid absolute path in signatures 'Felix Moessbauer' via isar-users
@ 2026-10-06 10:25 ` Zhihang Wei
1 sibling, 0 replies; 3+ messages in thread
From: Zhihang Wei @ 2026-10-06 10:25 UTC (permalink / raw)
To: Felix Moessbauer, isar-users; +Cc: jan.kiszka
Applied to next, thanks.
Zhihang
On 9/24/26 08:45, 'Felix Moessbauer' via isar-users wrote:
> We previously only linted all uppercase variables, but by that we missed
> absolute path in task flags (e.g. do_unpack[cleandirs]). Lint them as
> well.
>
> The exact reason why we only linted the uppercase variables remains
> unclear. On todays caches, this neither has a significant performance
> impact, nor does it report false positives.
>
> Signed-off-by: Felix Moessbauer <felix.moessbauer@siemens.com>
> ---
> scripts/isar-sstate | 2 --
> 1 file changed, 2 deletions(-)
>
> diff --git a/scripts/isar-sstate b/scripts/isar-sstate
> index ada154e2..5d7b8ebc 100755
> --- a/scripts/isar-sstate
> +++ b/scripts/isar-sstate
> @@ -894,8 +894,6 @@ def sstate_lint(target, verbose, sources_dir, build_dir, exit_code, pedantic, li
>
> pn_issues = []
> for name, val in sigdata['varvals'].items():
> - if not name[0].isupper():
> - continue
> if sigdata['basehash_ignore_vars'] and name in sigdata['basehash_ignore_vars'] or \
> sigdata['taskhash_ignore_tasks'] and name in sigdata['taskhash_ignore_tasks'] or \
> name in ADDITIONAL_IGNORED_VARNAMES:
--
You received this message because you are subscribed to the Google Groups "isar-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to isar-users+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/isar-users/8b374312-1735-43d6-b5bd-26142ff4cffa%40ilbers.de.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-10-06 10:27 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-24 6:45 [PATCH 1/2] isar-sstate: lint task flags as well 'Felix Moessbauer' via isar-users
2026-09-24 6:45 ` [PATCH 2/2] do_unpack: do not expand S to avoid absolute path in signatures 'Felix Moessbauer' via isar-users
2026-10-06 10:25 ` [PATCH 1/2] isar-sstate: lint task flags as well Zhihang Wei
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox