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

Re: emsetup bug



On Thu, 1 Feb 2007 03:07:29 +0000
Wookey <wookey@aleph1.co.uk> wrote:

> If you run emsetup on a fresh system it fails with:

OK, that's simple to fix. emdebian-tools depends on apt-cross and if
apt-cross has not been run, the cache files used by emsetup will not
exist. I'll add a simple 'apt-cross -u' to the start of emsetup. I
missed that bit.

> I reckon the former should be fixed by something like :
> --- Tools.pm~   2007-01-30 00:06:40.000000000 +0000
> +++ Tools.pm    2007-02-01 02:51:00.000000000 +0000
> @@ -99,15 +99,15 @@
>
>  sub get_dpkg_cross_dir()
>  {
> -       my $home = File::HomeDir->my_home;
> -       return "$home/.dpkg-cross";
> +       my $home = File::HomeDir->my_home;
> +        my $path =  "$home/.dpkg-cross";
> +        mkdir $path if (! -d $path);
> +        return $path;
>  }

apt-cross will do that, it also does a lot more, including setting up
apt-conf.$suite and the relevant archives/partial and lists/partial
directory trees and populate the cross-building architecture-specific
cache, using the value entered via debconf. If that is 'None', emsetup
will have to assume 'arm' and leave users to run apt-cross --update
with the relevant --arch option.


--

Neil Williams
=============
http://www.data-freedom.org/
http://www.nosoftwarepatents.com/
http://www.linux.codehelp.co.uk/

Attachment: pgplYHK8rFPa4.pgp
Description: PGP signature


Reply to: