From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id B2EF2E00AD8; Tue, 10 Apr 2018 10:54:54 -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=-4.2 required=5.0 tests=BAYES_00,HTML_MESSAGE, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at http://www.dnswl.org/, * medium trust * [128.118.65.16 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 X-Greylist: delayed 305 seconds by postgrey-1.32 at yocto-www; Tue, 10 Apr 2018 10:54:52 PDT Received: from smtp4.arl.psu.edu (smtp4.arl.psu.edu [128.118.65.16]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 323E4E007E1 for ; Tue, 10 Apr 2018 10:54:52 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by smtp4.arl.psu.edu (Postfix) with ESMTP id 02A95404D44 for ; Tue, 10 Apr 2018 13:49:47 -0400 (EDT) X-Virus-Scanned: amavisd-new at arl.psu.edu Received: from smtp4.arl.psu.edu ([127.0.0.1]) by localhost (smtp4.arl.psu.edu [127.0.0.1]) (amavisd-new, port 10024) with LMTP id DmbmZiDFRboT for ; Tue, 10 Apr 2018 13:49:46 -0400 (EDT) Received: from fc-m250s2.arl.psu.edu (fc-m250s2.arl.psu.edu [10.255.5.82]) by smtp4.arl.psu.edu (Postfix) with ESMTPS id E1E27404ADA for ; Tue, 10 Apr 2018 13:49:46 -0400 (EDT) Received: from exchange6.arl.psu.edu (exchange6.arl.psu.edu [10.254.4.41]) by fc-m250s2.arl.psu.edu (Postfix) with ESMTPS id C459810DE067 for ; Tue, 10 Apr 2018 17:49:46 +0000 (UTC) Received: from COLO-EX10-MB1.arl.psu.edu ([fe80::a885:3185:a270:5dda]) by exchange6.arl.psu.edu ([::1]) with mapi id 14.03.0361.001; Tue, 10 Apr 2018 13:49:46 -0400 From: "Aaron M. Biver" To: "yocto@yoctoproject.org" Thread-Topic: Question about automatic dependencies when native packages are used Thread-Index: AdPQ8iY+5rJJjHj9QKGae7MXSwgiEQ== Date: Tue, 10 Apr 2018 17:49:44 +0000 Message-ID: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.176.10.146] MIME-Version: 1.0 X-Content-Scanned: Fidelis Mail X-Mailman-Approved-At: Fri, 13 Apr 2018 08:20:18 -0700 Subject: Question about automatic dependencies when native packages are used 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, 10 Apr 2018 17:54:54 -0000 Content-Language: en-US Content-Type: multipart/alternative; boundary="_000_A5CF21C0A85F3B4FBBF15BA8E7A39E2C4522BE90COLOEX10MB1arlp_" --_000_A5CF21C0A85F3B4FBBF15BA8E7A39E2C4522BE90COLOEX10MB1arlp_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable I'm having some trouble with native dependencies in my recipe, and I'm wond= ering if anyone has any tips. I'm building with the petalinux toolset on a= n x64 linux for an arm architecture. I have a recipe myapp, which has a native version, myapp-native. myapp dep= ends on its myapp-native, as this builds an application used in the build o= f myapp. myapp also depends on a kernel module, mymodule. So, an excerpt from myapp.bb: DEPENDS +=3D "mymodule myapp-native" BBCLASSEXTEND =3D "native" The problem that myapp-native is trying to include mymodule-native. This c= omplains: ERROR: Nothing PROVIDES 'mymodule-native' (but virtual:native:/path/.../mya= pp/myapp.bb DEPENDS on or otherwise requires it) I've tried adding a 'BBCLASSEXTEND =3D "native"' to mymodule.bb, but that g= enerated build errors. I've tried overriding the dependency in myapp.bb with DEPENDS-native =3D "" And then I tried adding this to myapp.bb DEPENDS_${PN}-native =3D "" I've also tried allowing the mymodule-native package to be empty by adding = this to mymodule.bb ALLOW_EMPTY_${PN} =3D "1" As well as this: ALLOW_EMPTY_${PN}-native =3D "1" But nothing seems to work... it keeps trying to find mymodule-native. I'd = like a way to either override this dependency or make mymodule-native an em= pty package. I'm all out of random spaghetti to throw against this wall, a= nd I'm hoping someone has some experience with this. --_000_A5CF21C0A85F3B4FBBF15BA8E7A39E2C4522BE90COLOEX10MB1arlp_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

I’m having some trouble with native dependenci= es in my recipe, and I’m wondering if anyone has any tips.  I= 217;m building with the petalinux toolset on an x64 linux for an arm archit= ecture.

 

I have a recipe myapp, which has a native version, m= yapp-native.  myapp depends on its myapp-native, as this builds an app= lication used in the build of myapp.  myapp also depends on a kernel m= odule, mymodule.

 

So, an excerpt from myapp.bb:

 

DEPENDS +=3D "mymodule myapp-native"

BBCLASSEXTEND =3D "native"

 

The problem that myapp-native is trying to include m= ymodule-native.  This complains:

 

ERROR: Nothing PROVIDES 'mymodule-native' (but virtu= al:native:/path/…/myapp/myapp.bb DEPENDS on or otherwise requires it)=

 

I’ve tried adding a ‘BBCLASSEXTEND =3D &= quot;native"’ to mymodule.bb, but that generated build errors.

 

I’ve tried overriding the dependency in myapp.= bb with

DEPENDS-native =3D ""

 

And then I tried adding this to myapp.bb<= /p>

DEPENDS_${PN}-native =3D ""

 

I’ve also tried allowing the mymodule-native p= ackage to be empty by adding this to mymodule.bb

ALLOW_EMPTY_${PN} =3D "1"

 

As well as this:

ALLOW_EMPTY_${PN}-native =3D "1"

 

But nothing seems to work… it keeps trying to = find mymodule-native.  I’d like a way to either override this de= pendency or make mymodule-native an empty package.  I’m all out = of random spaghetti to throw against this wall, and I’m hoping someone has some experience with this.

 

 

 

--_000_A5CF21C0A85F3B4FBBF15BA8E7A39E2C4522BE90COLOEX10MB1arlp_--