Am 24.03.19 um 07:33 schrieb Helmut Grohne:
> Control: reopen -1
> 
> On Thu, Mar 21, 2019 at 12:54:04AM +0000, Debian Bug Tracking System wrote:
>>    * Fix possible infinite loop. (Closes: #924291)
> 
> Thank you for the timely fix. Unfortunately, it doesn't work as the
> variables are improperly escaped. The build continues to loop.
> 
> The patch has:
> 
> +     attempts=32; until ./mkkey $(KEYFILE) "Client Of Win" $(DESC) $(MAKER) 
> $(COMMENT) "inl,standard2"; do attempts=$(attempts - 1); test $(attempts) -le 
> 0 && exit 1; sleep 1; done
> 
> It tries to interpolate make variables named "attempts - 1" and
> "attempts". Those are empty so the test expression always fails. With
> proper escaping it looks like this:
> 
> +     attempts=32; until ./mkkey $(KEYFILE) "Client Of Win" $(DESC) $(MAKER) 
> $(COMMENT) "inl,standard2"; do attempts=$$((attempts - 1)); test $$(attempts) 
> -le 0 && exit 1; sleep 1; done
> 
> The double $ is unescaped by make to a single $ and the double braces
> are required to perform arithmetic in shell.

I have just uploaded a corrected version. Please provide a patch next
time that can be applied right away. Your original proposed solution
didn't work either and even caused a FTBFS:


attempts=32; until ./mkkey ...; do attempts=$((attempts - 1)); test
$attempts -le 0 && exit 1; sleep 1; done

Unfortunately I didn't remember the double dollar sign in makefiles too.

Regards,

Markus

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to