1 |
commit: 0345b7745b75bb80608bd5dc7e8694affca8a75a |
2 |
Author: Alexey Shvetsov <alexxy <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jul 3 20:26:51 2011 +0000 |
4 |
Commit: Alexey Shvetsov <alexxy <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jul 3 20:26:51 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=0345b774 |
7 |
|
8 |
Fix cgroup location |
9 |
|
10 |
(Portage version: 2.2.0_alpha43/git/Linux x86_64, signed Manifest commit with key F82F92E6) |
11 |
|
12 |
--- |
13 |
sys-cluster/slurm/slurm-2.2.7.ebuild | 10 ++++++++++ |
14 |
1 files changed, 10 insertions(+), 0 deletions(-) |
15 |
|
16 |
diff --git a/sys-cluster/slurm/slurm-2.2.7.ebuild b/sys-cluster/slurm/slurm-2.2.7.ebuild |
17 |
index 21a3aeb..4bc31bd 100644 |
18 |
--- a/sys-cluster/slurm/slurm-2.2.7.ebuild |
19 |
+++ b/sys-cluster/slurm/slurm-2.2.7.ebuild |
20 |
@@ -31,6 +31,16 @@ pkg_setup() { |
21 |
enewuser slurm -1 -1 /var/spool/slurm slurm |
22 |
} |
23 |
|
24 |
+src_prepare() { |
25 |
+ # gentoo uses /sys/fs/cgroup instead of /dev/cgroup |
26 |
+ sed -e 's:/dev/cgroup:/sys/fs/cgroup:g' \ |
27 |
+ -i "${S}/doc/man/man5/cgroup.conf.5" \ |
28 |
+ -i "${S}/etc/cgroup.conf.example" \ |
29 |
+ -i "${S}/etc/cgroup.release_agent" \ |
30 |
+ -i "${S}/src/plugins/proctrack/cgroup/xcgroup.h" \ |
31 |
+ || die |
32 |
+} |
33 |
+ |
34 |
src_configure() { |
35 |
local myconf=( |
36 |
--sysconfdir="${EPREFIX}/etc/${PN}" |