[yocto] ERROR: gtest not found in the base feed

Kevyn-Alexandre Paré kapare at rogue-research.com
Fri Nov 7 16:03:37 PST 2014


Martin,

On Fri, Nov 7, 2014 at 9:23 AM, Martin Jansa <martin.jansa at gmail.com> wrote:
> On Thu, Nov 06, 2014 at 04:26:15PM -0700, Gary Thomas wrote:
>> On 2014-11-06 16:01, Kevyn-Alexandre Paré wrote:
>> > Hi,
>> >
>> > I'm just trying to add a recipe that I found here
>> >
>> > https://github.com/webOS-ports/meta-webos-ports/blob/master/recipes-upstreamable/gtest/gtest_1.7.0.bb
>> >
>> > for gtest as part of my image:
>> >
>> > bitbake -e gtest | grep ^PACKAGES=
>> > PACKAGES="gtest-dbg gtest-staticdev gtest-dev gtest-doc gtest-locale  gtest"
>> >
>> > Adding it:
>> > IMAGE_INSTALL += "gtest"
>> >
>> > ERROR: gtest not found in the base feeds (overo armv7a-vfp-neon
>> > armv7a-vfp armv7a armv6-vfp armv6 armv5e-vfp armv5e armv5-vfp armv5
>> > armv4 arm noarch any all).
>> >
>> > Since in
>> >
>> > ls tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/gtest/1.7.0-r0/deploy-rpms/armv7a_vfp_neon/
>> > gtest-dbg-1.7.0-r0.armv7a_vfp_neon.rpm  gtest-dev-1.7.0-r0.armv7a_vfp_neon.rpm
>>
>> Where is the gtest-1.7.0-r0.armv7a_vfp_neon.rpm??
>>
>> I suspect that the build didn't work correctly, or at least it generated
>> no installable objects which by default will not generate an empty package.
>
> That's correct, all files are installed in gtest-dev package.
>
> The problem is the default RDEPENDS from ${PN}-dev to ${PN}
>
> meta/conf/bitbake.conf:RDEPENDS_${PN}-dev = "${PN} (= ${EXTENDPKGV})"

k now I understand more this one:
Computing transaction...error: Can't install
gtest-dev-1.7.0-r0 at armv7a_vfp_neon: no package provides gtest =
1.7.0-r0


198 EXTENDPRAUTO = "${@['.${PRAUTO\x7d',''][d.getVar('PRAUTO',1) is None]}"
199 PRAUTOINX = "${PF}"
200
201 PKGV ?= "${PV}"
202 PKGR ?= "${PR}${EXTENDPRAUTO}"
203 PKGE ?= "${@['','${PE\x7d'][int(d.getVar('PE',1) or 0) > 0]}"
204 EXTENDPKGEVER = "${@['','${PKGE\x7d:'][d.getVar('PKGE',1).strip() != '']}"
205 EXTENDPKGV ?= "${EXTENDPKGEVER}${PKGV}-${PKGR}"

So this EXTENDPKGEVER is :

-1.7.0-r0.armv7a_vfp_neon

?

>
> You can either set
> ALLOW_EMPTY_${PN} = "1"

http://www.yoctoproject.org/docs/current/ref-manual/ref-manual.html#var-ALLOW_EMPTY

Adding this in my recipe and gtest-dev in my image create gtest
package and it succeed in creating the rootfs.

build/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/gtest/1.7.0-r0/deploy-rpms/armv7a_vfp_neon$
ls
gtest-1.7.0-r0.armv7a_vfp_neon.rpm
gtest-dbg-1.7.0-r0.armv7a_vfp_neon.rpm
gtest-dev-1.7.0-r0.armv7a_vfp_neon.rpm

> or
> RDEPENDS_${PN}-dev = ""
>

That works nicely but why this is not part of the recipe by default?
Could it be interesting to add it?

thx,

-KA



More information about the yocto mailing list