Skip to content

kirkstone ttf-dejavu fails to install properly #576

@ts-kris

Description

@ts-kris

When building in kirkstone I ended up with this error:

ERROR: ttf-dejavu-2.37-r7 do_package: QA Issue: ttf-dejavu: Files/directories were installed but not shipped in any package:
  /usr
  /usr/lib
  /usr/lib/fonts
  /usr/lib/fonts/DejaVuSerifCondensed-BoldItalic.ttf
  /usr/lib/fonts/DejaVuSerif-Bold.ttf
  /usr/lib/fonts/DejaVuSerif-Italic.ttf
  /usr/lib/fonts/DejaVuSansMono-Oblique.ttf
  /usr/lib/fonts/DejaVuSansCondensed-Oblique.ttf
  /usr/lib/fonts/DejaVuSans-Bold.ttf
  /usr/lib/fonts/DejaVuMathTeXGyre.ttf
  /usr/lib/fonts/DejaVuSansMono-BoldOblique.ttf
  /usr/lib/fonts/DejaVuSerifCondensed-Bold.ttf
  /usr/lib/fonts/DejaVuSans-Oblique.ttf
  /usr/lib/fonts/DejaVuSansMono.ttf
  /usr/lib/fonts/DejaVuSerif-BoldItalic.ttf
  /usr/lib/fonts/DejaVuSans-ExtraLight.ttf
  /usr/lib/fonts/DejaVuSerif.ttf
  /usr/lib/fonts/DejaVuSansCondensed.ttf
  /usr/lib/fonts/DejaVuSansCondensed-Bold.ttf
  /usr/lib/fonts/DejaVuSerifCondensed.ttf
  /usr/lib/fonts/DejaVuSerifCondensed-Italic.ttf
  /usr/lib/fonts/DejaVuSansCondensed-BoldOblique.ttf
  /usr/lib/fonts/DejaVuSans.ttf
  /usr/lib/fonts/DejaVuSans-BoldOblique.ttf
  /usr/lib/fonts/DejaVuSansMono-Bold.ttf
Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install.
ttf-dejavu: 25 installed and not shipped files. [installed-vs-shipped]
ERROR: ttf-dejavu-2.37-r7 do_package: Fatal QA errors were found, failing task.
ERROR: Logfile of failure stored in: /home/.../.../build/tmp/work/all-poky-linux/ttf-dejavu/2.37-r7/temp/log.do_package.3905489
ERROR: Task (/home/.../.../sources/poky/../meta-openembedded/meta-oe/recipes-graphics/ttf-fonts/ttf-dejavu_2.37.bb:do_package) failed with exit code '1'

It looks like the latest dejavu wants to install in to a location that the recipe doesn't account for, /usr/lib/fonts/ as opposed to /usr/share/fonts/truetype

Patch to address this:

diff --git a/meta-oe/recipes-graphics/ttf-fonts/ttf-dejavu_2.37.bb b/meta-oe/recipes-graphics/ttf-fonts/ttf-dejavu_2.37.bb
index 919dad82e..82355ab20 100644
--- a/meta-oe/recipes-graphics/ttf-fonts/ttf-dejavu_2.37.bb
+++ b/meta-oe/recipes-graphics/ttf-fonts/ttf-dejavu_2.37.bb
@@ -37,12 +37,12 @@ PACKAGES = "\
             ${PN}-common"
 FONT_PACKAGES = "${PN}-sans ${PN}-sans-mono ${PN}-sans-condensed ${PN}-serif ${PN}-serif-condensed ${PN}-mathtexgyre"
 
-FILES:${PN}-sans            = "${datadir}/fonts/truetype/DejaVuSans.ttf ${datadir}/fonts/truetype/DejaVuSans-*.ttf"
-FILES:${PN}-sans-mono       = "${datadir}/fonts/truetype/DejaVuSansMono*.ttf"
-FILES:${PN}-sans-condensed  = "${datadir}/fonts/truetype/DejaVuSansCondensed*.ttf"
-FILES:${PN}-serif           = "${datadir}/fonts/truetype/DejaVuSerif.ttf ${datadir}/fonts/truetype/DejaVuSerif-*.ttf"
-FILES:${PN}-serif-condensed = "${datadir}/fonts/truetype/DejaVuSerifCondensed*.ttf"
-FILES:${PN}-mathtexgyre     = "${datadir}/fonts/truetype/DejaVuMathTeXGyre.ttf"
+FILES:${PN}-sans            = "${libdir}/fonts/DejaVuSans.ttf ${libdir}/fonts/DejaVuSans-*.ttf"
+FILES:${PN}-sans-mono       = "${libdir}/fonts/DejaVuSansMono*.ttf"
+FILES:${PN}-sans-condensed  = "${libdir}/fonts/DejaVuSansCondensed*.ttf"
+FILES:${PN}-serif           = "${libdir}/fonts/DejaVuSerif.ttf ${libdir}/fonts/DejaVuSerif-*.ttf"
+FILES:${PN}-serif-condensed = "${libdir}/fonts/DejaVuSerifCondensed*.ttf"
+FILES:${PN}-mathtexgyre     = "${libdir}/fonts/DejaVuMathTeXGyre.ttf"
 FILES:${PN}-common          = "${sysconfdir}"
 
 SRC_URI[md5sum] = "d0efec10b9f110a32e9b8f796e21782c"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions