Skip to contentSkip to conversation

libxft: Fix bad PKG value

PATCH New Joshua Watt 1 participant 1 message Aug 4, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libxft: Fix bad PKG value

The PKG value should only be munged for DEBIAN_NAMES during populate_packages. Otherwise, native packages can have the wrong value.

---
 meta/recipes-graphics/xorg-lib/libxft_2.3.3.bb | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
meta/recipes-graphics/xorg-lib/libxft_2.3.3.bb +3 -3
index a6fb5642da..9695afd625 100644
@@ -27,7 +27,7 @@ XORG_PN = "libXft"
 
 BBCLASSEXTEND = "native nativesdk"
 
-python () {
-        if d.getVar('DEBIAN_NAMES'):
-            d.setVar('PKG:${PN}', '${MLPREFIX}libxft2')
+python populate_packages:prepend () {
+    if d.getVar('DEBIAN_NAMES'):
+        d.setVar('PKG:${PN}', '${MLPREFIX}libxft2')
 }
Signature · 1 line
2.32.0