Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.bugs.dist > #1111324

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

From Bill Allombert <ballombe@debian.org>
Newsgroups linux.debian.bugs.dist
Subject Bug#1011284: popularity-contest: d/postinst: remove bash dependency, fix shellcheck
Date 2022-07-29 15:30 +0200
Message-ID <EOydX-eCms-7@gated-at.bofh.it> (permalink)
References <EoPWN-gxRQ-5@gated-at.bofh.it> <EoPWN-gxRQ-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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
>   bash -c 'echo $RANDOM'
> ‒ patch 1 replaces the latter with the former;
> od is part of coreutils, and -d is a legacy switch so it's available on
> all implementations (and we already use it as a fallback for hostid
> generation).

Hello нaб,

There should be a provision to work on systems when /dev/urandom is not 
available, as there is for MY_HOSTID.

Cheers,
-- 
Bill. <ballombe@debian.org>

Imagine a large red swirl here. 

Back to linux.debian.bugs.dist | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Bug#1011284: popularity-contest: d/postinst: remove bash dependency, fix shellcheck Bill Allombert <ballombe@debian.org> - 2022-07-29 15:30 +0200
  Bug#1011284: popularity-contest: d/postinst: remove bash dependency, fix shellcheck наб <nabijaczleweli@nabijaczleweli.xyz> - 2022-07-29 20:10 +0200
    Bug#1011284: popularity-contest: d/postinst: remove bash dependency, fix shellcheck наб <nabijaczleweli@nabijaczleweli.xyz> - 2022-08-01 13:50 +0200

csiph-web