From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id AA1D7E00524; Tue, 22 Jul 2014 08:51:07 -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 * (ellurubharath29[at]gmail.com) * -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low * trust * [209.85.212.177 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 mail-wi0-f177.google.com (mail-wi0-f177.google.com [209.85.212.177]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 5B636E00342 for ; Tue, 22 Jul 2014 08:50:59 -0700 (PDT) Received: by mail-wi0-f177.google.com with SMTP id ho1so677024wib.4 for ; Tue, 22 Jul 2014 08:50:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=tn+qe+v+U8iS6Kf8DpKsA8wmm+NFozOghy00mLEn6r4=; b=Ug54rh5woiBeSWELF+x2MTwpLDWpGYhpQmGgTgIfRSNhGGyo78ZQQw4jSlS6vlMWxT c0KA9SmJ415bu8f2eDNj8f5gGczjIC4H7jMulioISsaR6c4a7njVE2ZRmiuemBX0iKKl xJIKwDfjGXT5mJ7LXdlsdNkXe70QXncDxem3ogt1BucQYjJXOBhGInd/Rts1bgB7si9Z XmhpBXwxJk0a2iSNOgQHqD+FrY1A5gyd10OY5TfM5p1gWiu2o9aONElYaTH4gi3QsoFp MMBWFHsiZF79CAFKH/kHeUDqYBq2mHIn/5wS5jaeOxT2fqVz8fa2gJtiCBZJtrKlEZaJ R49g== MIME-Version: 1.0 X-Received: by 10.194.71.52 with SMTP id r20mr33879530wju.113.1406044256237; Tue, 22 Jul 2014 08:50:56 -0700 (PDT) Received: by 10.194.78.46 with HTTP; Tue, 22 Jul 2014 08:50:56 -0700 (PDT) In-Reply-To: References: Date: Tue, 22 Jul 2014 10:50:56 -0500 Message-ID: From: Bharath Chandra To: Anooj Gopi Cc: "yocto@yoctoproject.org" Subject: Re: How to find the bb file from package name 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: Tue, 22 Jul 2014 15:51:07 -0000 Content-Type: multipart/alternative; boundary=047d7bfcec506e807204feca303d --047d7bfcec506e807204feca303d Content-Type: text/plain; charset=UTF-8 Hi Anooj, I guess you are looking at a wrong version of the recipe file, you have to look into version number 5.2.1 and revision r1 as your package name is suggesting but the link which you have mentioned is for 5.3.1 . Kindly, have a look into correct version number of recipe file and if you do not find any package name in the recipe file then you can search in *.inc* files which are included in that recipe file. for eg : require qt5-${PV}.inc You have to check in qt5-5.2.1.inc file and see if any package is included with the name which you are searching for. Thanks & Regards, Bharath Chandra Elluru On Tue, Jul 22, 2014 at 6:52 AM, Anooj Gopi wrote: > > Yes I am trying to track down the recipe from the rpm file. In my project > yocto builds the rpm package > "nativesdk-libqt5core-dev-5.2.1-r1.i686_nativesdk.rpm" (by > https://github.com/meta-qt5/meta-qt5) but it is not included in my sdk > sysroot image. So I would like to see how I could include this into my sdk. > For that I am tracing back the recipe which generated the rpm. > > I tried as you said: > From the source package name I can see it is from "Source RPM : > nativesdk-qtbase-5.2.1-r1.src.rpm", which means bb file is > https://github.com/meta-qt5/meta-qt5/blob/master/recipes-qt/qt5/nativesdk-qtbase_5.3.1.bb > Now this from the bb file content I can see this file provides multiple > packages, (for eg. nativesdk-qtbase-tools-dbg nativesdk-qtbase-tools-dev > nativesdk-qtbase-tools-staticdev nativesdk-qtbase-tool) but I still could > not find where it is configured to generate the package > "nativesdk-libqt5core-dev-5.2.1-r1.i686_nativesdk.rpm". > > As Belen in his last mail, the tools like "Toaster" could confirm this (by > listing the packages generated from a bb file), but is there any way I can > do it in Yocto Project 1.5? > > Regards, > Anooj > > > On Tue, Jul 22, 2014 at 11:15 AM, Burton, Ross > wrote: > >> On 21 July 2014 16:39, Anooj Gopi wrote: >> > Could some one help me to understand how we could find the bb file which >> > generated particular package (rpm package for eg.)? >> > (In some cases the name of the package and recipe name differ >> drastically) >> > >> > Also is there any way to list packages (rpm) generated by particular >> recipe >> > (yocto package) easily. (without looking into the PACKAGES variable). >> >> It's probably best if you explain exactly what you want to do. >> >> If you want to work backwards from a RPM to the recipe, then binary >> RPMs have a Source RPM metadata field and the srpm is named after the >> recipe: >> >> $ rpm -qpi connman-tests-1.24-r0.15.corei7_64.rpm | grep Source >> Source RPM : connman-1.24-r0.15.src.rpm >> >> Ross >> > > > > -- > _______________________________________________ > yocto mailing list > yocto@yoctoproject.org > https://lists.yoctoproject.org/listinfo/yocto > > -- Thanks & Regards, Bharath Chandra Elluru. Contact Number:785-979-4875. --047d7bfcec506e807204feca303d Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi Anooj,

I guess you are looking at a wrong version of the re= cipe file, you have to look into version number 5.2.1 and revision r1 as yo= ur package name is suggesting but the link which you have mentioned is for = 5.3.1 . Kindly, have a look into correct version number of recipe file and = if you do not find any package name in the recipe file then you can search = in .inc files which are included in that recipe file.
for eg :
require qt5-${PV<=
/span>}.inc

You have to check in qt5-5.2.1.inc fil=
e and see if any package is included with the name which you are searching =
for.

Thanks & Regards,
Bharath Chand= ra Elluru


On Tue, Jul 22, 2014 at 6:52 AM, Anooj Gopi = <anoojgopi@gmail.com> wrote:

Yes I am trying to track down the recipe from the rpm file. In my pro= ject yocto builds the rpm package "nativesdk-libqt5core-dev-5.2.1-r1.i= 686_nativesdk.rpm" (by https://github.com/meta-qt5/meta-qt5) but it is not= included in my sdk sysroot image. So I would like to see how I could inclu= de this into my sdk. For that I am tracing back the recipe which generated = the rpm.

I tried as you said:
From the sourc= e package name I can see it is from "Source RPM=C2=A0 : nativesdk-qtba= se-5.2.1-r1.src.rpm", which means bb file is https://github.com/meta-qt5/meta-qt5/blob/master/recipe= s-qt/qt5/nativesdk-qtbase_5.3.1.bb
Now this from the bb file content I can see this file provides m= ultiple packages, (for eg. nativesdk-qtbase-tools-dbg nativesdk-qtbase-tool= s-dev nativesdk-qtbase-tools-staticdev nativesdk-qtbase-tool) but I still c= ould not find where it is configured to generate the package "nativesd= k-libqt5core-dev-5.2.1-r1.i686_nativesdk.rpm".

As Belen in his last mail, the tools like "Toaster"= ; could confirm this (by listing the packages generated from a bb file), bu= t is there any way I can do it in Yocto Project 1.5?

Regards,
Anooj


On Tue, Jul 22, 2014 at= 11:15 AM, Burton, Ross <ross.burton@intel.com> wrote:
On 21 July 2014 16:39, Anooj Gopi = <anoojgopi@gmai= l.com> wrote:
> Could some one help me to understand how we could find the bb file whi= ch
> generated particular package (rpm package for eg.)?
> (In some cases the name of the package and recipe name differ drastica= lly)
>
> Also is there any way to list packages (rpm) generated by particular r= ecipe
> (yocto package) easily. (without looking into the PACKAGES variable).<= br>
It's probably best if you explain exactly what you want to = do.

If you want to work backwards from a RPM to the recipe, then binary
RPMs have a Source RPM metadata field and the srpm is named after the
recipe:

$ rpm -qpi connman-tests-1.24-r0.15.corei7_64.rpm | grep Source
Source RPM =C2=A0: connman-1.24-r0.15.src.rpm

Ross



--
_______________________________________________
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto




--
Th= anks & Regards,
Bharath Chandra Elluru.
Contact Number:78= 5-979-4875.
--047d7bfcec506e807204feca303d--