Re: [poky] Bashism in rootfs_deb.bbclass

From: Matt Hoosier <matt.hoosier@gmail.com>
Date: Fri Aug 17 2007 - 23:51:07 EDT

On 8/17/07, Matt Hoosier <matt.hoosier@gmail.com> wrote:
> On 8/17/07, Ross Burton <ross@openedhand.com> wrote:
> > On Fri, 2007-08-17 at 10:25 -0500, Matt Hoosier wrote:
> > > My particular error was that dpkg attempted to install files into /,
> > > but I realized that this might have been caused by the fact that I
> > > only added debs to the PACKAGE_CLASSES after building a few of the
> > > packages. Perhaps some dependency wasn't there, and that poisoned
> > > things. These days I've been trying with PACKAGE_CLASSES="package_deb
> > > package_ipk".
> >
> > I finished a poky-image-sato image today using debs with "package_deb
> > package_ipk". I haven't yet booted it on a device, but it build the
> > rootfs correctly and the size looks right. Try cleaning everything and
> > trying again?
>
> Yeah, agreed. I'll let you know how that turns out.
>

Same result as before. I'm sure that the ipkg's and deb's are
equivalent now. There are 2,902 of each of them after a completely
fresh run set to generate both kinds of packages.

The i686 staging directory's apt-rootfs.conf seems to insert a correct prefix:

DPkg::Options {"--root=/home/hoosier/poky/build/tmp/rootfs";"--admindir=/home/hoosier/poky/build/tmp/rootfs/var/dpkg";"--force-all";"--no-debsig"};

And the run.do_rootfs script sets that APT configuration to be used:

  export APT_CONFIG="/home/hoosier/poky/build/tmp/staging/etc/apt/apt-rootfs.conf"
  export D=/home/hoosier/poky/build/tmp/rootfs
  export OFFLINE_ROOT=/home/hoosier/poky/build/tmp/rootfs
  export IPKG_OFFLINE_ROOT=/home/hoosier/poky/build/tmp/rootfs

But when the installation of the locales comes along:

  apt-get install glibc-localedata-i18n --force-yes --allow-unauthenticated

The unpacking of the payload fails trying to manipulate /usr/lib,
/usr/bin, and other system directories:

--- 8< ----

dpkg - warning, overriding problem because --force enabled:
 package architecture (arm) does not match system (i386)
Selecting previously deselected package glibc-localedata-translit-circle.
(Reading database ... 0 files and directories currently installed.)
Unpacking glibc-localedata-translit-circle (from .../glibc-localedata-translit-c
ircle_2006q3-27-r3_arm.deb) ...
dpkg: error processing /home/hoosier/poky/build/tmp/deploy/deb/armv5te/./glibc-l
ocaledata-translit-circle_2006q3-27-r3_arm.deb (--unpack):
 error setting ownership of `./usr': Operation not permitted

...

Errors were encountered while processing:
 /home/hoosier/poky/build/tmp/deploy/deb/armv5te/./glibc-localedata-translit-cir
cle_2006q3-27-r3_arm.deb

...

E: Sub-process dpkg returned an error code (1)

---- 8< ----

Do you suppose that the foreign CSL toolchain could be causing trouble here?

-- 
To unsubscribe send a mail to poky+unsubscribe@o-hand.com
Received on Fri, 17 Aug 2007 22:51:07 -0500

This archive was generated by hypermail 2.1.8 : Sat Aug 18 2007 - 01:00:05 EDT