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

Re: pdebuild-cross fixes in wook-shed branch



+++ Neil Williams [2010-09-28 08:43 +0100]:
> On Mon, 27 Sep 2010 15:00:15 +0100
> Wookey <wookey@wookware.org> wrote:
> 
> 
> > > 1: use feature "switch"
> > > 
> 
> ... except that we'd be better using a config file approach as outlined
> in the other message.

I've now done this. I'll check it in as soon as it's tested OK.

> > > 3: force-yes - NO. Use the actual no-auth support in apt, not the
> > > --force-yes sledgehammer. 
> > 
> > I had to do it that way because apt >=0.8 didn't work with no-auth. 
>  
> > Until we work out (or someone tells us) how to do authenticated
> > downloads into a chroot we have to use --force-yes or neither
> > multistrap nor pdebuild-cross actually work at all. I realise this is
> > pretty shoddy but it seemed a lot better than nothing.

Steve L was nearly as rude as you about this, and worked out what was
needed to use the keys in the 'host' apt config, which is clearly why
it used to work with earlier apt versions.

diff -Nru multistrap-2.1.6ubuntu2/multistrap
multistrap-2.1.6ubuntu3/multistrap
--- multistrap-2.1.6ubuntu2/multistrap	2010-09-02 23:23:46.000000000+0000
+++ multistrap-2.1.6ubuntu3/multistrap	2010-09-30 18:56:51.000000000+0000
@@ -279,6 +279,8 @@
 
 $config_str = '';
 $config_str .= " -o Apt::Architecture=$arch";
+$config_str .= " -o Dir::Etc::TrustedParts=/etc/apt/trusted.gpg.d";
+$config_str .= " -o Dir::Etc::Trusted=/etc/apt/trusted.gpg";
 $config_str .= " -o Apt::Get::AllowUnauthenticated=true"
   		if (defined $noauth);
 $config_str .= " -o Apt::Get::Download-Only=true";

This doesn't solve the case where we are installing something
different from the host (where we need to install the required keys
into the chroot apt keyring), but it gets us back to where we were before. 

Wookey
-- 
Principal hats:  Linaro, Emdebian, Wookware, Balloonboard, ARM
http://wookware.org/


Reply to: