[yocto] Problem Installing Package Manager in FRI2

Richard Purdie richard.purdie at linuxfoundation.org
Tue Apr 30 03:39:00 PDT 2013


Hi,

On Sat, 2013-04-06 at 14:24 -0600, Esteban Rivera wrote:
> I'm trying to generate an image for the FRI2 using the official Intel
> BSP provided in the Yocto Project website, in this image I want to
> include at least one package manager.
>
> I'm Using poky 8.0 with Hob GUI, from the recipes listed that can be
> included in the image I can see Dpkg and Zypper package managers, but
> I have trouble with both packages.

Usually, an image contains the package manager which it was created
with, so if you build the image with rpms, it would contain zypper and
rpm, if you build it with ipks, it would contain opkg and if you use deb
files, it would contain apt and dpkg.

Also note that we dropped zypper in favour of smart in the 1.4 cycle.

> I'm unable to create the Image whenever Dpkg is included because of
> the following error message:
>
>error: Failed dependencies:
> /home/poky-danny-8.0/build/tmp/sysroots/x86_64-linux/usr/bin/perl-native/perl is needed by dpkg-1.16.8-r18.0.core2

Its unusual to include dpkg in an rpm based image which I can tell from
this error message you're trying to do.

The problem is that the dpkg package for use in the target device is
referencing paths which are on the build system. There is some script in
that package with an incorrect header.

> I get this message even tho the files do exist at the path specified
> by the error message.
>
> On the other hand whenever I select Zypper, the image is created
> correctly but any zypper commands ends up showing the following error:
>
> zypper: dbconfig.c:493: db3New: Assertion 'dbOpts != ((void *)0) &&
> *db0pts != '\0'' failed.
> Aborted  

zypper should be added to an rpm image automatically, unless you select
removal of the package manager.

This sounds very like
https://bugzilla.yoctoproject.org/show_bug.cgi?id=2936

Cheers,

Richard





More information about the yocto mailing list