[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#545464: Zombie cross packages



On Wed, 10 Feb 2010 16:23:45 +0100
Hector Oron <hector.oron@gmail.com> wrote:

> En/na Neil Williams ha escrit:
> > moving symlink /usr/lib/arm-linux-gnueabi/liblouis.so.2.
> > moving file /usr/lib/arm-linux-gnueabi/liblouis.so.2.1.0.
> 
> > drwxr-xr-x root/root         0 2010-02-10 13:50 ./usr/arm-linux-gnueabi/lib/
> > -rw-r--r-- root/root     42836 2009-07-07 00:11 ./usr/arm-linux-gnueabi/lib/libqofsql.so.1.0.1
> > -rw-r--r-- root/root    245296 2009-07-07 00:11 ./usr/arm-linux-gnueabi/lib/libqof.so.2.0.1

Those are the same paths as existing packages:

-rw-r--r-- root/root     42836 2009-07-07 00:11 ./usr/arm-linux-gnueabi/lib/libqofsql.so.1.0.1
-rw-r--r-- root/root    245296 2009-07-07 00:11 ./usr/arm-linux-gnueabi/lib/libqof.so.2.0.1

The paths haven't changed in dpkg-cross - the zombie packages *move*
the files from the multiarch locations to the old dpkg-cross locations
which allows the multiarch packages to be installed by dpkg just as
soon as dpkg is aware of how to do that.

> For the cross toolchain, at the moment I have thought to use something like:
> 
> /usr/arm-linux-gnueabi$ tree -L 1
> ├── bin
> ├── include
> ├── lib
> └── usr
> 
> /usr/arm-linux-gnueabi$ tree -L 1 usr/
> usr/
> ├── include -> ../include/
> └── lib -> ../lib/
> 
> That means cross toolchains will read
> SYSROOT=/usr/arm-linux-gnueabi
> INCLUDEDIR=/usr/arm-linux-gnueabi/usr/include -> (symlink)
> LIBDIR=/usr/arm-linux-gnueabi/usr/lib -> (symlink)
> 
>  + I believe users will be able to point to any path, but just one
> directory.
>  + It keeps compatibility with what we have had until now.
>  + Can handle multiple-sysroots
>  + Easy to symlink multiarch dirs
> 
> It would be helpful to keep dpkg-cross as is, then start doing multiarch
> aware stuff only if you pass some option in the command line. (-m
> multiarch aware)

Once dpkg is multiarch aware, dpkg-cross won't need to move paths
around, the multiarch packages will put things in the right places:

/usr/lib/arm-linux-gnueabi/

Toolchains need to look in both directories for the squeeze release.

Zombie packages don't change that. 

-- 


Neil Williams
=============
http://www.data-freedom.org/
http://www.linux.codehelp.co.uk/
http://e-mail.is-not-s.ms/

Attachment: pgpsmGQwbjdkS.pgp
Description: PGP signature


Reply to: