board/csky: fixup gdb instructions in readme.txt
[buildroot-gz.git] / package / policycoreutils / 0004-Change-sepolicy-python-install-arguments-to-be-a-var.patch
blob636b722b7006030fc5f8f670eeb2bbd212836f86
1 From 27fd1c85ca95b5d66ab0241a08242a75b60b375c Mon Sep 17 00:00:00 2001
2 From: Adam Duskett <Aduskett@gmail.com>
3 Date: Thu, 14 Jul 2016 13:22:57 -0400
4 Subject: [PATCH] Change sepolicy python install arguments to be a variable
6 To allow the python install arguments to be overwritten, change the
7 arguments to be a variable. This also cleans up the DESTDIR detection a
8 little bit.
10 Updated to work with version 2.5
12 Signed-off-by: Clayton Shotwell <clayton.shotwell@rockwellcollins.com>
13 Signed-off-by: Adam Duskett <AdamDuskett@outlook.com>
14 Signed-off-by: Adam Duskett <Aduskett@gmail.com>
15 ---
16 policycoreutils/sepolicy/Makefile | 5 ++++-
17 1 file changed, 4 insertions(+), 1 deletion(-)
19 diff --git a/sepolicy/Makefile b/sepolicy/Makefile
20 index a16f8de..2013301 100644
21 --- a/sepolicy/Makefile
22 +++ b/sepolicy/Makefile
23 @@ -1,4 +1,7 @@
24 PYTHON ?= python
25 +ifneq ($(DESTDIR),)
26 +PYTHON_INSTALL_ARGS ?= --root $(DESTDIR)
27 +endif
29 # Installation directories.
30 PREFIX ?= $(DESTDIR)/usr
31 @@ -32,7 +35,7 @@ test:
32 @$(PYTHON) test_sepolicy.py -v
34 install:
35 - $(PYTHON) setup.py install `test -n "$(DESTDIR)" && echo --root $(DESTDIR)`
36 + $(PYTHON) setup.py install $(PYTHON_INSTALL_ARGS)
37 [ -d $(BINDIR) ] || mkdir -p $(BINDIR)
38 install -m 755 sepolicy.py $(BINDIR)/sepolicy
39 (cd $(BINDIR); ln -sf sepolicy sepolgen)
40 --
41 2.7.4