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

emsetup bug



If you run emsetup on a fresh system it fails with:
E: Opening configuration file
/home/wookey/.dpkg-cross/apt.conf-testing - ifstream::ifstream (2 No
such file or directory)
No packages found matching ???-0*.
Dry run only.
E: Opening configuration file
/home/wookey/.dpkg-cross/apt.conf-testing - ifstream::ifstream (2 No
such file or directory)
W: Unable to locate package gcc-0-arm-linux-gnu
E: Opening configuration file
/home/wookey/.dpkg-cross/apt.conf-testing - ifstream::ifstream (2 No
such file or directory)
E: Opening configuration file
/home/wookey/.dpkg-cross/apt.conf-testing - ifstream::ifstream (2 No
such file or directory)
Need to install an emdebian toolchain to build 'arm' on 'i386'.

due to neither .dpkg-cross nor apt.conf-testing existing.

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;
 }

But I'm not quite sure where in that lot the creation of
apt-conf.testing should be done, and my brain has shut down 'cos it's
late. Somewhere round get_suite() when it determines the default suite
using check_dist?

Wookey
-- 
Aleph One Ltd, Bottisham, CAMBRIDGE, CB5 9BA, UK  Tel +44 (0) 1223 811679
work: http://www.aleph1.co.uk/                 play: http://wookware.org/



Reply to: