Bug#842591: debootstrap-udeb: fails to validate InRelease (BADSIG)

2016-10-31 Thread Lennart Sorensen
On Mon, Oct 31, 2016 at 04:18:55PM +0100, Cyril Brulebois wrote:
> No, the “certainly did” and “worked fine” bits are wrong.
> 
> And that's not just me, we've had users report it, Philip Hands saw it
> as well. So no it did *NOT* work (in the specific case where it actually
> matters).

Yes, turns out sed doesn't do \a, but it does work if \a in sed is
replaced by [[:cntrl:]].  Doesn't make the line any prettier.

> Well that's the case in Debian right now, even in d-i! So your “busybox
> head does not appear to support it.” was wrong (that happens, no big
> deal), and I'm not so fond of being called a liar when I report test
> results for stuff I actually checked.

Well the version I looked at didn't have it, so apparently it was slightly
more than 3 years old.  It is a recent addition.

> Anyway, back to getting the next d-i release ready now that this issue
> is fixed.

Yep.

-- 
Len Sorensen



Bug#842591: debootstrap-udeb: fails to validate InRelease (BADSIG)

2016-10-31 Thread Cyril Brulebois
Lennart Sorensen  (2016-10-31):
> On Sun, Oct 30, 2016 at 05:28:57PM +0100, Cyril Brulebois wrote:
> > The (re)addition of InRelease support broke debootstrap(-udeb) in a d-i
> > context. The sed|tr|sed dance doesn't kill the final newline, which
> > leads to a BAD signature.
> 
> The one I proposed certainly did.  It worked fine and was portable.
> Just a touch ugly perhaps.

No, the “certainly did” and “worked fine” bits are wrong.

And that's not just me, we've had users report it, Philip Hands saw it
as well. So no it did *NOT* work (in the specific case where it actually
matters).

> > My original proposal was to use head -c -1, which while not specified by
> > posix actually just works. Reasons include:
> >  1. Tests agree.
> >  2. busybox's coreutils/head.c has:
> > case 'c':
> > count_bytes = 1;
> > …
> > if (negative_N) {
> > if (count_bytes) {
> > print_except_N_last_bytes(fp, 
> > count);
> > } else {
> > print_except_N_last_lines(fp, 
> > count);
> > }
> > } else {
> > print_first_N(fp, count, count_bytes);
> > }
> 
> Well only if you have ENABLE_FEATURE_FANCY_HEAD and it was only added
> in 2013, so rather recent addition.

Well that's the case in Debian right now, even in d-i! So your “busybox
head does not appear to support it.” was wrong (that happens, no big
deal), and I'm not so fond of being called a liar when I report test
results for stuff I actually checked.

Anyway, back to getting the next d-i release ready now that this issue
is fixed.


KiBi.


signature.asc
Description: Digital signature


Bug#842591: debootstrap-udeb: fails to validate InRelease (BADSIG)

2016-10-31 Thread Lennart Sorensen
On Sun, Oct 30, 2016 at 05:28:57PM +0100, Cyril Brulebois wrote:
> Package: debootstrap-udeb
> Version: 1.0.85
> Severity: grave
> Justification: renders package unusable
> 
> The (re)addition of InRelease support broke debootstrap(-udeb) in a d-i
> context. The sed|tr|sed dance doesn't kill the final newline, which
> leads to a BAD signature.

The one I proposed certainly did.  It worked fine and was portable.
Just a touch ugly perhaps.

> My original proposal was to use head -c -1, which while not specified by
> posix actually just works. Reasons include:
>  1. Tests agree.
>  2. busybox's coreutils/head.c has:
> case 'c':
> count_bytes = 1;
>   …
> if (negative_N) {
> if (count_bytes) {
> print_except_N_last_bytes(fp, count);
> } else {
> print_except_N_last_lines(fp, count);
> }
> } else {
> print_first_N(fp, count, count_bytes);
> }

Well only if you have ENABLE_FEATURE_FANCY_HEAD and it was only added
in 2013, so rather recent addition.

> It might be suboptimal to use this for the time being, as it /might/
> limit portability. On the other hand, the idea was to get a d-i release
> out of the door.
> 
> I'll give it some thoughts in the upcoming hours, and decide how to fix.

-- 
Len Sorensen



Bug#842591: debootstrap-udeb: fails to validate InRelease (BADSIG)

2016-10-30 Thread Cyril Brulebois
Package: debootstrap-udeb
Version: 1.0.85
Severity: grave
Justification: renders package unusable

The (re)addition of InRelease support broke debootstrap(-udeb) in a d-i
context. The sed|tr|sed dance doesn't kill the final newline, which
leads to a BAD signature.

My original proposal was to use head -c -1, which while not specified by
posix actually just works. Reasons include:
 1. Tests agree.
 2. busybox's coreutils/head.c has:
case 'c':
count_bytes = 1;
…
if (negative_N) {
if (count_bytes) {
print_except_N_last_bytes(fp, count);
} else {
print_except_N_last_lines(fp, count);
}
} else {
print_first_N(fp, count, count_bytes);
}

It might be suboptimal to use this for the time being, as it /might/
limit portability. On the other hand, the idea was to get a d-i release
out of the door.

I'll give it some thoughts in the upcoming hours, and decide how to fix.


KiBi.