1 |
commit: 13ce42872eebb3cb30f4574dcbd3835d89794bdd |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jun 11 00:12:31 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jun 11 00:29:07 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=13ce4287 |
7 |
|
8 |
sys-cluster/sanlock: fix VariableScope (EROOT) |
9 |
|
10 |
EROOT is not defined in src_install. |
11 |
|
12 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
13 |
|
14 |
sys-cluster/sanlock/sanlock-3.8.2.ebuild | 22 ++++++++++++++++------ |
15 |
1 file changed, 16 insertions(+), 6 deletions(-) |
16 |
|
17 |
diff --git a/sys-cluster/sanlock/sanlock-3.8.2.ebuild b/sys-cluster/sanlock/sanlock-3.8.2.ebuild |
18 |
index 8426d4f6d3c..baada07ab2a 100644 |
19 |
--- a/sys-cluster/sanlock/sanlock-3.8.2.ebuild |
20 |
+++ b/sys-cluster/sanlock/sanlock-3.8.2.ebuild |
21 |
@@ -35,7 +35,7 @@ pkg_setup() { |
22 |
if linux_config_exists; then |
23 |
if ! linux_chkconfig_present SOFT_WATCHDOG; then |
24 |
ewarn "" |
25 |
- ewarn "$warning" |
26 |
+ ewarn "${warning}" |
27 |
ewarn "" |
28 |
fi |
29 |
else |
30 |
@@ -47,19 +47,29 @@ pkg_setup() { |
31 |
|
32 |
src_compile() { |
33 |
for d in wdmd src fence_sanlock reset; do |
34 |
- cd $d; emake; cd .. |
35 |
+ cd ${d} || die |
36 |
+ emake |
37 |
+ cd .. || die |
38 |
done |
39 |
+ |
40 |
if use python; then |
41 |
- cd python; python_foreach_impl emake; cd .. |
42 |
+ cd python || die |
43 |
+ python_foreach_impl emake |
44 |
+ cd .. || die |
45 |
fi |
46 |
} |
47 |
|
48 |
src_install() { |
49 |
for d in wdmd src fence_sanlock reset; do |
50 |
- cd $d; emake DESTDIR="${D}" LIBDIR="${EROOT}usr/$(get_libdir)" install; cd .. |
51 |
+ cd ${d} || die |
52 |
+ emake DESTDIR="${D}" LIBDIR="${EPREFIX}/usr/$(get_libdir)" install |
53 |
+ cd .. || die |
54 |
done |
55 |
+ |
56 |
if use python; then |
57 |
- cd python; python_foreach_impl emake DESTDIR="${D}" install; cd .. |
58 |
+ cd python || die |
59 |
+ python_foreach_impl emake DESTDIR="${D}" install |
60 |
+ cd .. || die |
61 |
fi |
62 |
|
63 |
# config |
64 |
@@ -78,7 +88,7 @@ src_install() { |
65 |
|
66 |
# systemd |
67 |
systemd_newunit init.d/sanlock.service.native sanlock.service |
68 |
- sed -i 's,^ExecStartPre=,#ExecStartPre=,' init.d/wdmd.service.native |
69 |
+ sed -i 's,^ExecStartPre=,#ExecStartPre=,' init.d/wdmd.service.native || die |
70 |
systemd_newunit init.d/wdmd.service.native wdmd.service |
71 |
systemd_dounit init.d/sanlk-resetd.service |
72 |
#systemd_dounit ${FILESDIR}/fence_sanlockd.service |