Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 138F8E00E38; Thu, 13 Oct 2016 09:00:04 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 X-Spam-HAM-Report: * 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider * (idealsim[at]laposte.net) * -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low * trust * [194.117.213.102 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 0.0 HTML_MESSAGE BODY: HTML included in message * -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's * domain * 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily * valid * -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Received: from smtp.laposte.net (smtpoutz27.laposte.net [194.117.213.102]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 8B237E00CB5 for ; Thu, 13 Oct 2016 08:59:57 -0700 (PDT) Received: from smtp.laposte.net (localhost [127.0.0.1]) by lpn-prd-vrout015 (Postfix) with ESMTP id 8B9001C8F65 for ; Thu, 13 Oct 2016 17:59:56 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=laposte.net; s=mail0; t=1476374396; bh=egO77qyLanxGgq0RZIYvyxqBKh1IaJ3kpvAattoqRbA=; h=To:Subject:References:Date:From:In-Reply-To; b=fbBNJPZQPCTPsNDEeXBJ3l9bcti/zvIvoaVXSqw/YvIHLdFv9nQqYMKSPeOEnF8Yo odyN0u1cSGffPJJFkfwuwz+17/dlcgYEbB5qPFVGVuK/7LTAEmMr/7ApHy+SG/uQiF +4BWW0xM7pYvBKbS99+CCGkCcgBqepP30Tkd3T8QNpwu5TdPI8jACgh51q4OYt+1X5 aISReJ1Yg/SdTYFD79aRlFPhxhH1h3QHgffQPjo0DKEm0JvIOG4RLxFSlrYUtFMY4C 5awopnykOuZsVgsaloAOzhsQX9gh7/sfmQCq6xYAWuLCN1V4VLXu/ZjYQy83GnF9AG lY6h3ZzreT6Ug== Received: from smtp.laposte.net (localhost [127.0.0.1]) by lpn-prd-vrout015 (Postfix) with ESMTP id 7BEF11C8F76 for ; Thu, 13 Oct 2016 17:59:56 +0200 (CEST) Received: from lpn-prd-vrin003 (lpn-prd-vrin003.prosodie [10.128.63.4]) by lpn-prd-vrout015 (Postfix) with ESMTP id 78B981C8F65 for ; Thu, 13 Oct 2016 17:59:56 +0200 (CEST) Received: from lpn-prd-vrin003 (localhost [127.0.0.1]) by lpn-prd-vrin003 (Postfix) with ESMTP id 6866748DFE3 for ; Thu, 13 Oct 2016 17:59:56 +0200 (CEST) Received: from pc-mls.ecafaros.local (unknown [212.234.36.135]) by lpn-prd-vrin003 (Postfix) with ESMTPA id 22B5648E062; Thu, 13 Oct 2016 17:59:56 +0200 (CEST) To: "Yocto list discussion" , "Michel D'HOOGE" References: <547858470.126510775.1476370594532.JavaMail.root@spooler3-g27.priv.proxad.net> Date: Thu, 13 Oct 2016 17:59:56 +0200 MIME-Version: 1.0 From: idealsim Message-ID: In-Reply-To: <547858470.126510775.1476370594532.JavaMail.root@spooler3-g27.priv.proxad.net> User-Agent: Opera Mail/1.0 (Win32) X-VR-SrcIP: 212.234.36.135 X-VR-FullState: 0 X-VR-Score: -100 X-VR-Cause-1: gggruggvucftvghtrhhoucdtuddrfeelvddrgeeggdeljecutefuodetggdotefrodftvfcurfhrohhf X-VR-Cause-2: ihhlvgemucfntefrqffuvffgnecuuegrihhlohhuthemucehtddtnecusecvtfgvtghiphhivghnthhs X-VR-Cause-3: ucdlqddutddtmdenucfjughrpegtvffufhffggfhkfgjfgesrgdtreertderjeenucfhrhhomhepihgu X-VR-Cause-4: vggrlhhsihhmuceoihguvggrlhhsihhmsehlrghpohhsthgvrdhnvghtqeenucffohhmrghinhepohhp X-VR-Cause-5: vghrrgdrtghomhenucfkphepvdduvddrvdefgedrfeeirddufeehnecurfgrrhgrmhepmhhouggvpehs X-VR-Cause-6: mhhtphhouhhtpdhhvghlohepphgtqdhmlhhsrdgvtggrfhgrrhhoshdrlhhotggrlhdpihhnvghtpedv X-VR-Cause-7: uddvrddvfeegrdefiedrudefhedpmhgrihhlfhhrohhmpehiuggvrghlshhimheslhgrphhoshhtvgdr X-VR-Cause-8: nhgvthdprhgtphhtthhopehmihgthhgvlhdrughhohhoghgvsehfrhgvvgdrfhhr X-VR-AvState: No X-VR-State: 0 X-VR-State: 0 Subject: Re: add dejavu-fonts to image X-BeenThere: yocto@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Discussion of all things Yocto Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Oct 2016 16:00:04 -0000 Content-Type: multipart/alternative; boundary=----------oHRPWpw9qhiakS0K8veFfc ------------oHRPWpw9qhiakS0K8veFfc Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes Content-Transfer-Encoding: Quoted-Printable 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'HOOGE = a =C3=A9crit: >> 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=E2=80=A6 > >> 1/ File ttf-dejavu_2.37.bb includes (requires) `ttf.inc` that is in t= he = >> 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=3D"/usr/share" > export sysconfdir=3D"/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 =3D "${libdir}" > > classes/qmake5_paths.bbclass > OE_QMAKE_PATH_QT_FONTS =3D "${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/ ------------oHRPWpw9qhiakS0K8veFfc Content-Type: multipart/related; boundary=----------oHRPWpw9qhiakSzMUHgO7R ------------oHRPWpw9qhiakSzMUHgO7R Content-Type: text/html; charset=utf-8 Content-ID: Content-Transfer-Encoding: Quoted-Printable
Thanks for this. I will try and let you know the solution wor= ked for me !

regards

L= e Thu, 13 Oct 2016 16:56:34 +0200, Michel D'HOOGE <michel.dhooge@free= .fr> a =C3=A9crit:

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 woul= d like to install the font in /usr/lib/fonts, this is not the case for t= he 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 togethe= r=E2=80=A6

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/truety= pe/
    find= ./ -name '*.tt[cf]' -exec install -m 0644 {} ${D}${datadir}/fonts/truet= ype/ \;
}

which is in t= urn appended by dejavu with:
do_install_append () {
    install -d ${D}${sysconfdir}/fonts/conf.d= /
    inst= all -m 0644 ${WORKDIR}/30-dejavu-aliases.conf ${D}${sysconfdir}/fonts/co= nf.d/
}

3/ The log of the install tas= k of the recipe is /tmp/work/all-poky-linux/ttf-dejavu/2.37-r7/temp= /run.do_install
We have:
ex= port datadir=3D"/usr/share"
export sysconfdir=3D"/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 "correc= t" place.

4/ After some grepping in meta-qt5= , I have:

classes/qmake5_paths.bbclass
OE_QMAKE_PATH_LIBS =3D "${libdir}"

= classes/qmake5_paths.bbclass
OE_QMAKE_PATH_QT_FONTS =3D "${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 be= lieve.

So I opt for changing the do_install functio= n. The quick & dirty solution is to create a ttf-dejavu_2.37.bb= append file that totally redefine the do_install method.

do_install() {
    install -d ${D}${dat= adir}/fonts/truetype/
    find ./ -name '*.tt[cf]'= -exec install -m 0644 {} ${D}${libdir}/fonts/truetype/ \;=
    install -d ${D}${sysconfd= ir}/fonts/conf.d/
    install -m 0= 644 ${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/
------------oHRPWpw9qhiakSzMUHgO7R-- ------------oHRPWpw9qhiakS0K8veFfc--