Skip to contentSkip to conversation

externalsrc.bbclass: Remove a trailing slash from ${B}

PATCH New Peter Kjellerstedt 1 participant 1 message Oct 21, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 externalsrc.bbclass: Remove a trailing slash from ${B}

The trailing slash in ${B} caused -fdebug-prefix-map=${B}=... to not match as intended, resulting in ${TMPDIR} ending up in files in ${PN}-dbg when externalsrc was in use, which in turn triggered buildpath QA warnings.

---
 meta/classes-recipe/externalsrc.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/classes-recipe/externalsrc.bbclass +1 -1
index 06a9548a20..ef2e25d4d4 100644
@@ -61,7 +61,7 @@ python () {
         if externalsrcbuild:
             d.setVar('B', externalsrcbuild)
         else:
-            d.setVar('B', '${WORKDIR}/${BPN}-${PV}/')
+            d.setVar('B', '${WORKDIR}/${BPN}-${PV}')
 
         local_srcuri = []
         fetch = bb.fetch2.Fetch((d.getVar('SRC_URI') or '').split(), d)