[2/2] do_unpack: do not expand S to avoid absolute path in signatures

Message ID 20260924064547.4017118-2-felix.moessbauer@siemens.com
State Under Review
Headers show
Series [1/2] isar-sstate: lint task flags as well | expand

Commit Message

MOESSBAUER, Felix Sept. 24, 2026, 6:45 a.m. UTC
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(-)

Patch

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