found 781657 1.2-7
tags 781657 + fixed-upstream
thanks

Re,


On 04/01/2015 02:14 PM, Thomas Liske wrote:
> The expected kernel version reported by needrestart is the first one...
> I need to review why i.e. 4.9 looses against 3.10.

the kernel version sorting was based on Sort::Naturally which does not
work since the rightmost integer found in the version string is used as
the primary sorting index. Therefore 4.0 will loose against any 3.x
(x>0) kernels :-/

Upstream has been fixed by porting the version comparing stuff from
Dpkg::Version into a simplified implementation in needrestart. This
results in the expected kernel version sorting order:

$VAR1 = [
          '4.20.0-rc6-tp520-btrfs-trim+',
          '4.20.0',
          '4.19.0-rc6-tp520-btrfs-trim+',
          '4.19.0',
          '4.10',
          '4.9',
          '4.4.0-foo',
          '4.4.0',
          '4.0.0-rc6-tp520-btrfs-trim+',
          '4.0.0',
          '4.0',
          '3.19.3-rc6-tp521-btrfs-trim+',
          '3.19.3-rc6-tp520-btrfs-trim+',
          '3.19.3-a7-tp521-btrfs-trim+',
          '3.19.3',
          '3.19.0-rc7-tp520+',
          '3.10',
          '3.9',
          '3.3',
          '2.6',
          ''
        ];

(4.20.0-rc6 wins against 4.20.0 which is expected since -rc6 could also
be a usual CONFIG_LOCALVERSION string)


HTH,
Thomas


> Thanks for reporting,
> Thomas
> 
> 
>> Thanks,
>> Martin
>>
>>
>>
>>
>> -- Package-specific info:
>> needrestart output:
>> Your outdated processes:
>> akonadi_agent_l[2501, 2532, 2502, 2515], yeah I know…
>>
>> checkrestart output:
>>
>>
>> -- System Information:
>> Debian Release: 8.0
>>   APT prefers unstable
>>   APT policy: (500, 'unstable'), (200, 'experimental')
>> Architecture: amd64 (x86_64)
>> Foreign Architectures: i386
>>
>> Kernel: Linux 4.0.0-rc6-tp520-btrfs-trim+ (SMP w/4 CPU cores; PREEMPT)
>> Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
>> Shell: /bin/sh linked to /bin/dash
>> Init: sysvinit (via /sbin/init)
>>
>> Versions of packages needrestart depends on:
>> ii  dpkg                       1.17.24
>> ii  libmodule-find-perl        0.12-1
>> ii  libmodule-scandeps-perl    1.16-1
>> ii  libproc-processtable-perl  0.51-1
>> ii  libsort-naturally-perl     1.03-1
>> ii  libterm-readkey-perl       2.32-1+b1
>> ii  perl                       5.20.2-3
>>
>> needrestart recommends no packages.
>>
>> Versions of packages needrestart suggests:
>> pn  libnotify-bin  <none>
>>
>> -- no debconf information
>>
> 


-- 

    ::  WWW:                         http://fiasko-nw.net/~thomas/  ::
   :::  Jabber:                   xmpp:tho...@jabber.fiasko-nw.net  :::
    ::  flickr:              http://www.flickr.com/photos/laugufe/  ::


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to