Re: [yocto] add dejavu-fonts to image
Ok, i will test this week end and let you know ! Otherwise, if you build qt5.7 perhaps you can have the same issue like me with sdk, see here for more details : https://github.com/graugans/meta-udoo/issues/20 regards Le 13/10/2016 à 18:12, Michel D'HOOGE a écrit : After solving all the QA issues, this bbappend creates RPM packages with fonts in the expected folder. I didn't try to generate an image but I'm quite confident about the result. Michel do_install() { install -d ${D}${libdir}/fonts/ find ./ -name '*.tt[cf]' -exec install -m 0644 {} ${D}${libdir}/fonts/ \; install -d ${D}${sysconfdir}/fonts/conf.d/ install -m 0644 ${WORKDIR}/30-dejavu-aliases.conf ${D}${sysconfdir}/fonts/conf.d/ } 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" -- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
Re: [yocto] add dejavu-fonts to image
After solving all the QA issues, this bbappend creates RPM packages with fonts in the expected folder. I didn't try to generate an image but I'm quite confident about the result. Michel do_install() { install -d ${D}${libdir}/fonts/ find ./ -name '*.tt[cf]' -exec install -m 0644 {} ${D}${libdir}/fonts/ \; install -d ${D}${sysconfdir}/fonts/conf.d/ install -m 0644 ${WORKDIR}/30-dejavu-aliases.conf ${D}${sysconfdir}/fonts/conf.d/ } 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" -- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
Re: [yocto] add dejavu-fonts to image
Thanks for this. I will try and let you know the solution worked for me ! regards Le Thu, 13 Oct 2016 16:56:34 +0200, Michel D'HOOGEa écrit: Hello, thanks a lot the build work now ! I'm very proud: this is the 1st time I can help someone on Yocto! This means a lot to me ;-) But i have another issue, i would like to install the font in /usr/lib/fonts, this is not the case for the moment (it 's >>for Qt5.7 use). How i can said to yocto to install font (.ttf) on this folder please ? I also need to use Qt5.7, but since I'm currently on other tasks, you discover the troubles a couple of hours before >me. So let's try to debug this together… 1/ File ttf-dejavu_2.37.bb includes (requires) `ttf.inc` that is in the same folder. 2/ File ttf.inc has the following method: do_install() { install -d ${D}${datadir}/fonts/truetype/ find ./ -name '*.tt[cf]' -exec install -m 0644 {} ${D}${datadir}/fonts/>truetype/ \; } which is in turn appended by dejavu with: do_install_append () { install -d ${D}${sysconfdir}/fonts/conf.d/ install -m 0644 ${WORKDIR}/30-dejavu-aliases.conf ${D}${sysconfdir}/fonts/>conf.d/ } 3/ The log of the install task of the recipe is /tmp/work/all-poky-linux/ttf-dejavu/2.37-r7/temp/run.do_install We have: export datadir="/usr/share" export sysconfdir="/etc" I compared to my Debian system: the files are stored in the same folders. So it seems this is qt that doesn't search >in the "correct" place. 4/ After some grepping in meta-qt5, I have: classes/qmake5_paths.bbclass OE_QMAKE_PATH_LIBS = "${libdir}" classes/qmake5_paths.bbclass OE_QMAKE_PATH_QT_FONTS = "${OE_QMAKE_PATH_LIBS}/fonts" 5/ But I don't know what is the best solution now. We could change the OE_QMAKE_PATH_QT_FONTS variable. >But this implies to recompile many pieces, I believe. So I opt for changing the do_install function. The quick & dirty solution is to create a ttf-dejavu_2.37.bbappend file >that totally redefine the do_install method. do_install() { install -d ${D}${datadir}/fonts/truetype/ find ./ -name '*.tt[cf]' -exec install -m 0644 {} ${D}${libdir}/fonts/>truetype/ \; install -d ${D}${sysconfdir}/fonts/conf.d/ install -m 0644 ${WORKDIR}/30-dejavu-aliases.conf ${D}${sysconfdir}/fonts/>conf.d/ } I can't test it right now, but I hope this helps you. Michel -- Utilisant le logiciel de courrier d'Opera : http://www.opera.com/mail/-- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
Re: [yocto] add dejavu-fonts to image
Hello, thanks a lot the build work now ! I'm very proud: this is the 1st time I can help someone on Yocto! This means a lot to me ;-) But i have another issue, i would like to install the font in /usr/lib/fonts, this is not the case for the moment (it 's for Qt5.7 use). How i can said to yocto to install font (.ttf) on this folder please ? I also need to use Qt5.7, but since I'm currently on other tasks, you discover the troubles a couple of hours before me. So let's try to debug this together… 1/ File ttf-dejavu_2.37.bb includes (requires) `ttf.inc` that is in the same folder. 2/ File ttf.inc has the following method: do_install() { install -d ${D}${datadir}/fonts/truetype/ find ./ -name '*.tt[cf]' -exec install -m 0644 {} ${D}${datadir}/fonts/truetype/ \; } which is in turn appended by dejavu with: do_install_append () { install -d ${D}${sysconfdir}/fonts/conf.d/ install -m 0644 ${WORKDIR}/30-dejavu-aliases.conf ${D}${sysconfdir}/fonts/conf.d/ } 3/ The log of the install task of the recipe is /tmp/work/all-poky-linux/ttf-dejavu/2.37-r7/temp/run.do_install We have: export datadir="/usr/share" export sysconfdir="/etc" I compared to my Debian system: the files are stored in the same folders. So it seems this is qt that doesn't search in the "correct" place. 4/ After some grepping in meta-qt5, I have: classes/qmake5_paths.bbclass OE_QMAKE_PATH_LIBS = "${libdir}" classes/qmake5_paths.bbclass OE_QMAKE_PATH_QT_FONTS = "${OE_QMAKE_PATH_LIBS}/fonts" 5/ But I don't know what is the best solution now. We could change the OE_QMAKE_PATH_QT_FONTS variable. But this implies to recompile many pieces, I believe. So I opt for changing the do_install function. The quick & dirty solution is to create a ttf-dejavu_2.37.bbappend file that totally redefine the do_install method. do_install() { install -d ${D}${datadir}/fonts/truetype/ find ./ -name '*.tt[cf]' -exec install -m 0644 {} ${D}${ libdir }/fonts/truetype/ \; install -d ${D}${sysconfdir}/fonts/conf.d/ install -m 0644 ${WORKDIR}/30-dejavu-aliases.conf ${D}${sysconfdir}/fonts/conf.d/ } I can't test it right now, but I hope this helps you. Michel -- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
Re: [yocto] add dejavu-fonts to image
Hello, thanks a lot the build work now ! But i have another issue, i would like to install the font in /usr/lib/fonts, this is not the case for the moment (it 's for Qt5.7 use). How i can said to yocto to install font (.ttf) on this folder please ? regards Mickaël Le Thu, 13 Oct 2016 12:07:24 +0200, Michel D'HOOGEa écrit: Hello, In fact, the ttf-dejavu recipe doesn't provide a package with the same name. If you look at the PACKAGES variable, you'll find that it >provides ${PN}-sans, ${PN}-sans-mono, ${PN}-sans-condensed, ${PN}-serif , ${PN}-serif-condensed & ${PN}-mathtexgyre. So you have to explicitly choose the packages you want. Michel -- Utilisant le logiciel de courrier d'Opera : http://www.opera.com/mail/-- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
Re: [yocto] add dejavu-fonts to image
Hello, In fact, the ttf-dejavu recipe doesn't provide a package with the same name. If you look at the PACKAGES variable, you'll find that it provides ${PN}-sans, ${PN}-sans-mono, ${PN}-sans-condensed, ${PN}-serif , ${PN}-serif-condensed & ${PN}-mathtexgyre. So you have to explicitly choose the packages you want. Michel -- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto