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

Bug#774752: solved by commit eec4c44fc78efa492d4eea5ff69089b6b86979e1



Le samedi 16 mai à 21h 39mn 13s (+0200), Cyril Brulebois a écrit :
> Hi,
> 
> jhcha54008 <jhcha54008@free.fr> (2015-01-08):
> > Hi,
> > 
> > Would the following patch help ?
> > 
> > Regards,
> > JH Chatenet
> > 
> > diff -Naur a/usr/sbin/debootstrap b/usr/sbin/debootstrap
> > --- a/usr/sbin/debootstrap	2015-01-07 23:34:30.439150608 +0000
> > +++ b/usr/sbin/debootstrap	2015-01-07 23:54:08.037001814 +0000
> > @@ -590,6 +590,8 @@
> >  		if [ "$baseX" != "" ]; then
> >  			info NEWBASE "Found additional base dependencies: %s" "$baseX"
> >  		fi
> > +	else
> > +		base=$(without "$base" "$required")
> >  	fi
> >  
> >  	all_debs="$required $base"
> > diff -Naur a/usr/share/debootstrap/scripts/sid b/usr/share/debootstrap/scripts/sid
> > --- a/usr/share/debootstrap/scripts/sid	2015-01-07 23:34:46.535238349 +0000
> > +++ b/usr/share/debootstrap/scripts/sid	2015-01-07 23:51:06.060094404 +0000
> > @@ -16,12 +16,12 @@
> >  esac
> >  
> >  work_out_debs () {
> > -	required="$(get_debs Priority: required)"
> > +	required="$(get_debs Priority: required|tr ' ' '\n'|sort|uniq|tr '\n' ' ')"
> >  
> >  	if doing_variant - || doing_variant fakechroot; then
> >  		#required="$required $(get_debs Priority: important)"
> >  		#  ^^ should be getting debconf here somehow maybe
> > -		base="$(get_debs Priority: important)"
> > +		base="$(get_debs Priority: important|tr ' ' '\n'|sort|uniq|tr '\n' ' ')"
> >  	elif doing_variant buildd || doing_variant scratchbox; then
> >  		base="apt build-essential"
> >  	elif doing_variant minbase; then
> 
> I think this is fixed in git master:
>   https://anonscm.debian.org/cgit/d-i/debootstrap.git/commit/?id=eec4c44fc78efa492d4eea5ff69089b6b86979e1
> 
> Mraw,
> KiBi.


Hi,

The bug doesn't occur when the patch of commit 	
eec4c44fc78efa492d4eea5ff69089b6b86979e1
is applied.

Without the patch (debootstrap 1.0.68 on wheezy amd64) :
# debootstrap --include=libtext-wrapi18n-perl --no-resolve-deps --foreign sid mychroot
I: Retrieving Release 
I: Retrieving Release.gpg 
I: Checking Release signature
I: Valid Release signature (key id 126C0D24BD8A2942CC7DF8AC7638D0442B90D010)
I: Validating Packages 
I: Checking component main on http://ftp.us.debian.org/debian...
E: Couldn't find these debs: 44647012

With the patch : 
# debootstrap --include=libtext-wrapi18n-perl --no-resolve-deps --foreign sid mychroot
I: Retrieving Release 
I: Retrieving Release.gpg 
I: Checking Release signature
I: Valid Release signature (key id 126C0D24BD8A2942CC7DF8AC7638D0442B90D010)
I: Retrieving Packages 
I: Validating Packages 
I: Checking component main on http://ftp.us.debian.org/debian...
I: Retrieving libacl1 2.2.52-2
[ ... ]
: Extracting liblzma5...
I: Extracting zlib1g...
0 # echo $?
0

(The user may fix manually the dependencies of required packages before
running debootstrap --second-stage)

Regards,
JH Chatenet


Reply to: