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

Bug#665638: marked as done (prevent debootstrap vom needing SHA256sums)



Your message dated Fri, 15 May 2015 05:23:39 +0200
with message-id <20150515032339.GC15828@mraw.org>
and subject line Re: Bug#665638: prevent debootstrap vom needing SHA256sums
has caused the Debian Bug report #665638,
regarding prevent debootstrap vom needing SHA256sums
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
665638: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=665638
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: debootstrap
Version: 1.0.37
Severity: important

Hello,

I have an issue with debootstrap. I debugged the issue and I found the
following:

The Problem is in the file /usr/share/debootstrap/functions line 634

Here is the code of the line 628 to 634
        $PKGDETAILS PKGS "$m" "$pkgdest" "$@" | (
                leftover=""  
                while read p ver arc mdup fil checksum size; do
		 if [ "$ver" = "-" ]; then
                                leftover="$leftover $p"
                        else
                                progress_next "$(($dloaddebs + $size))"

checksum should contain the SHA256sum and size should contain the size.

But if the Packages.gz file does not contain any SHA256sums, then the
checksum variable contains the size and the size variable is empty.
If that happens then the line 634 executes "0 +"

I used the following command:
root# debootstrap --no-check-gpg --verbose squeeze /path/chrootsystem/
ftp://ftp.domain.tld/pub/debian/squeeze
...
I: Found additional base dependencies: libnfnetlink0 libsqlite3-0 
I: Checking component main on ftp://ftp.domain.tld/pub/debian/squeeze...
root#

Note that there is no useful error message at the console. A message
which tells the user to look at debootstrap.log would be nice.

And the file /path/chrootsystem/debootstrap/debootstrap.log conains:
/usr/sbin/debootstrap: 634: /usr/sbin/debootstrap: arithmetic
expression: expecting primary: "0 + "

Can somebody please implement a parameter which tells debootstrap not
to relly on SHA256sums and use MD5sums instead?

About my issue with no SHA256Sums in Packages.gz I already opend
another bug [1].


Links:
[1] http://bugs.debian.org/662003


sincerely yours

Mario Koppensteiner

Attachment: signature.asc
Description: Digital signature


--- End Message ---
--- Begin Message ---
Hi Mario,

Mario Koppensteiner <mariok@rantanplan.org> (2012-03-31):
> I created a patch for apt-move to solve the SHA256 issue. After I
> applied my patch to apt-move, debootstrap accepts the local mirror as
> expected.
> 
> For reference please have a look at the bug [1].
> 
> 
> Links:
> [1] http://bugs.debian.org/662003

For reference, one can select the size for SHA*sums, the default being
SHA_SIZE=256. I don't think it's reasonable to keep on supporting
MD5sums, so I'm closing this bug report accordingly

Mraw,
KiBi.

Attachment: signature.asc
Description: Digital signature


--- End Message ---

Reply to: