severity 781657 important
tags 781657 pending,upstream
thanks
Hi Martin,
On 04/01/2015 12:21 PM, Martin Steigerwald wrote:
> Maybe it gets confused by the + in kernel version? It may be that it sees
> this as part of a regular expression. Don´t remember whether I had the
> same issue with the 3.19-rc7 version which also has a +.
>
> Kernels are built by make-kpkg from kernel-package 13.014+nmu1, which seems
> to add the + on versions patched manually (so that they diff from the git
> checkout).
the + should not be a problem. I've created a small test bed using the
version comparission from needrestart (which is based on Sort::Naturally):
$VAR1 = [
'4.20.0-rc6-tp520-btrfs-trim+',
'4.20.0',
'4.19.0-rc6-tp520-btrfs-trim+',
'4.19.0',
'4.10',
'3.19.3-rc6-tp520-btrfs-trim+',
'3.19.3',
'3.19.0-rc7-tp520+',
'3.10',
'4.9',
'4.4.0-foo',
'4.4.0',
'4.0.0-rc6-tp520-btrfs-trim+',
'4.0.0',
'4.0',
'3.9',
'3.3',
'2.6'
];
The expected kernel version reported by needrestart is the first one...
I need to review why i.e. 4.9 looses against 3.10.
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:[email protected] :::
:: flickr: http://www.flickr.com/photos/laugufe/ ::
#!/usr/bin/perl
use Data::Dumper;
use Sort::Naturally;
my @v = reverse nsort qw(
3.19.3
3.19.3-rc6-tp520-btrfs-trim+
3.3
2.6
4.0
4.0.0
4.4.0
4.4.0-foo
4.19.0
4.20.0
4.0.0-rc6-tp520-btrfs-trim+
4.20.0-rc6-tp520-btrfs-trim+
4.19.0-rc6-tp520-btrfs-trim+
3.19.0-rc7-tp520+
3.10
3.9
4.10
4.9
);
print Dumper(\@v);