Bug#1011284: popularity-contest: d/postinst: remove bash dependency, fix shellcheck

2022-08-01 Thread наб
Hi! Sorry, I had a brain-fart last time. Instead of trying to do something weird, we can just use The Program That Generates Random Numbers: shuf appeared in coreutils 6.1 (2006-08-19) and is available under busybox. Attached is a much simpler patchset that does the same thing but just uses shuf

Bug#1011284: popularity-contest: d/postinst: remove bash dependency, fix shellcheck

2022-07-29 Thread наб
Hi! On Fri, Jul 29, 2022 at 03:25:12PM +0200, Bill Allombert wrote: > There should be a provision to work on systems when /dev/urandom is not > available, as there is for MY_HOSTID. It seemed like /dev/urandom was the universal fallback, so I didn't write a fallback originally. Attaching updated

Bug#1011284: popularity-contest: d/postinst: remove bash dependency, fix shellcheck

2022-07-29 Thread Bill Allombert
On Thu, May 19, 2022 at 05:05:43PM +0200, наб wrote: > Source: popularity-contest > Version: 1.74 > Severity: wishlist > Tags: patch > > Dear Maintainer, > > d/postinst hard-depends on bash to generate random days/hours/minutes; > however, > od -d -An -N2 /dev/urandom > is equivalent to > bas

Bug#1011284: popularity-contest: d/postinst: remove bash dependency, fix shellcheck

2022-05-19 Thread наб
Source: popularity-contest Version: 1.74 Severity: wishlist Tags: patch Dear Maintainer, d/postinst hard-depends on bash to generate random days/hours/minutes; however, od -d -An -N2 /dev/urandom is equivalent to bash -c 'echo $RANDOM' ‒ patch 1 replaces the latter with the former; od is part