1 |
commit: 8f8e9edcf9e2fe40aef8246bee1ada6b979a96bc |
2 |
Author: Craig Andrews <candrews <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun May 13 01:51:07 2018 +0000 |
4 |
Commit: Craig Andrews <candrews <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun May 13 01:51:43 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8f8e9edc |
7 |
|
8 |
app-admin/needrestart: Fix detection of Gentoo kernels |
9 |
|
10 |
https://github.com/liske/needrestart/pull/113 |
11 |
Closes: https://bugs.gentoo.org/654958 |
12 |
Package-Manager: Portage-2.3.36, Repoman-2.3.9 |
13 |
|
14 |
.../needrestart-3.1-gentoo-kernel-detection.patch | 24 ++++++++++++ |
15 |
app-admin/needrestart/needrestart-3.1-r1.ebuild | 45 ++++++++++++++++++++++ |
16 |
2 files changed, 69 insertions(+) |
17 |
|
18 |
diff --git a/app-admin/needrestart/files/needrestart-3.1-gentoo-kernel-detection.patch b/app-admin/needrestart/files/needrestart-3.1-gentoo-kernel-detection.patch |
19 |
new file mode 100644 |
20 |
index 00000000000..6b8c221098b |
21 |
--- /dev/null |
22 |
+++ b/app-admin/needrestart/files/needrestart-3.1-gentoo-kernel-detection.patch |
23 |
@@ -0,0 +1,24 @@ |
24 |
+From bbd98c32fb5d33f42d1b9257f55a07d62b8de164 Mon Sep 17 00:00:00 2001 |
25 |
+From: Craig Andrews <candrews@××××××××××××.com> |
26 |
+Date: Mon, 7 May 2018 11:28:33 -0400 |
27 |
+Subject: [PATCH] [Kernel] Include /boot/kernel* while looking for linux kernel |
28 |
+ images |
29 |
+ |
30 |
+Fixes kernel detection on Gentoo |
31 |
+--- |
32 |
+ perl/lib/NeedRestart/Kernel/Linux.pm | 2 +- |
33 |
+ 1 file changed, 1 insertion(+), 1 deletion(-) |
34 |
+ |
35 |
+diff --git a/perl/lib/NeedRestart/Kernel/Linux.pm b/perl/lib/NeedRestart/Kernel/Linux.pm |
36 |
+index 6f284f3..69a919c 100644 |
37 |
+--- a/perl/lib/NeedRestart/Kernel/Linux.pm |
38 |
++++ b/perl/lib/NeedRestart/Kernel/Linux.pm |
39 |
+@@ -131,7 +131,7 @@ sub nr_kernel_check_real($$) { |
40 |
+ } grep { |
41 |
+ # filter initrd images |
42 |
+ (!m@^/boot/init@); |
43 |
+- } (</boot/vmlinu*>, </boot/*.img>); |
44 |
++ } (</boot/vmlinu*>, </boot/*.img>, </boot/kernel*>); |
45 |
+ |
46 |
+ $ui->progress_prep(scalar keys %kfiles, __ 'Scanning linux images...'); |
47 |
+ |
48 |
|
49 |
diff --git a/app-admin/needrestart/needrestart-3.1-r1.ebuild b/app-admin/needrestart/needrestart-3.1-r1.ebuild |
50 |
new file mode 100644 |
51 |
index 00000000000..d3e017750bd |
52 |
--- /dev/null |
53 |
+++ b/app-admin/needrestart/needrestart-3.1-r1.ebuild |
54 |
@@ -0,0 +1,45 @@ |
55 |
+# Copyright 1999-2018 Gentoo Foundation |
56 |
+# Distributed under the terms of the GNU General Public License v2 |
57 |
+ |
58 |
+EAPI=6 |
59 |
+ |
60 |
+if [[ ${PV} == "9999" ]] ; then |
61 |
+ EGIT_REPO_URI="https://github.com/liske/${PN}.git" |
62 |
+ inherit git-r3 |
63 |
+ SRC_URI="" |
64 |
+ KEYWORDS="" |
65 |
+else |
66 |
+ SRC_URI="https://github.com/liske/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
67 |
+ KEYWORDS="~amd64 ~x86" |
68 |
+fi |
69 |
+ |
70 |
+DESCRIPTION="Restart daemons after library updates" |
71 |
+HOMEPAGE="https://fiasko-nw.net/~thomas/tag/needrestart.html https://github.com/liske/needrestart" |
72 |
+ |
73 |
+SLOT="0" |
74 |
+LICENSE="GPL-2+" |
75 |
+ |
76 |
+RDEPEND=" |
77 |
+ >=sys-apps/sed-4.2.2 |
78 |
+ dev-lang/perl:= |
79 |
+ dev-perl/libintl-perl |
80 |
+ dev-perl/Module-Find |
81 |
+ dev-perl/Module-ScanDeps |
82 |
+ dev-perl/Proc-ProcessTable |
83 |
+ dev-perl/Sort-Naturally |
84 |
+ dev-perl/TermReadKey |
85 |
+ sys-apps/init-system-helpers |
86 |
+" |
87 |
+DEPEND="${RDEPEND} |
88 |
+ sys-devel/gettext |
89 |
+" |
90 |
+ |
91 |
+PATCHES=( |
92 |
+ "${FILESDIR}/${P}-gentoo-kernel-detection.patch" |
93 |
+) |
94 |
+ |
95 |
+src_install() { |
96 |
+ default |
97 |
+ doman man/*.1 |
98 |
+ dodoc -r ex |
99 |
+} |