Gentoo Archives: gentoo-commits

From: Jason Zaman <gentoo@×××××××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/hardened-refpolicy:master commit in: support/
Date: Wed, 03 Dec 2014 12:54:58
Message-Id: 1417554549.393b946b07d418fccf66759420c2210fe9475cc1.perfinion@gentoo
1 commit: 393b946b07d418fccf66759420c2210fe9475cc1
2 Author: Nicolas Iooss <nicolas.iooss <AT> m4x <DOT> org>
3 AuthorDate: Sun Nov 23 15:34:33 2014 +0000
4 Commit: Jason Zaman <gentoo <AT> perfinion <DOT> com>
5 CommitDate: Tue Dec 2 21:09:09 2014 +0000
6 URL: http://sources.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=393b946b
7
8 Create tmp directory when compiling a .mod.fc file in a modular way
9
10 When compiling modules using support/Makefile.devel (which is installed
11 in /usr/share/selinux/*/include/Makefile) with "make -j9", the build
12 fails because tmp/ does not exist.
13
14 Add the missing command to create tmp/ when running tmp/%.mod.fc target.
15
16 Gentoo bug: https://bugs.gentoo.org/show_bug.cgi?id=530178
17
18 ---
19 support/Makefile.devel | 1 +
20 1 file changed, 1 insertion(+)
21
22 diff --git a/support/Makefile.devel b/support/Makefile.devel
23 index b96e9b3..ae52932 100644
24 --- a/support/Makefile.devel
25 +++ b/support/Makefile.devel
26 @@ -158,6 +158,7 @@ tmp/%.mod: $(m4support) tmp/all_interfaces.conf %.te
27 $(verbose) $(CHECKMODULE) -m $(@:.mod=.tmp) -o $@
28
29 tmp/%.mod.fc: $(m4support) %.fc
30 + @test -d $(@D) || mkdir -p $(@D)
31 $(verbose) $(M4) $(M4PARAM) $^ > $@
32
33 %.pp: tmp/%.mod tmp/%.mod.fc