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

Bug#677049: [trivial] please don't hardcode /bin/sleep path



On 11.06.2012 19:45, Julien Cristau wrote:
> On Mon, Jun 11, 2012 at 14:21:05 +0400, Michael Tokarev wrote:
>> Two scripts in initramfs-tools currently hardcodes path to sleep
>> as /bin/sleep, because busybox sleep (which were used when
>> busybox is in used) didn't accept fractional secounds.  Fractional
>> secounds are accepted by busybox sleep since version 1:1.18.5-1,
>> so it is safe now to stop hardcoding the path.
>>
> It's not safe without Breaks on older busybox (or Depends on the newer
> one).

Yes it's not safe, I know.  I tried to understand whenever a versioned
Recommends does the trick (there's already a versioned recommends in
initramfs-tools against busybox), and, later, what does a versioned
recommends _does_, or a Breaks is needed instead.  So from a trivial
change in one package it turned into a bit less trivial question about
the package relationship.

/mjt



Reply to: