Re: [PATCH v2] libselinux: introduce PCPREFIX substitute variable for .pc files

2018-01-08 Thread Marcus Folkesson
Hi, On Sun, Jan 07, 2018 at 09:38:58PM +0100, Nicolas Iooss wrote: > On Wed, Jan 3, 2018 at 10:13 PM, Marcus Folkesson > <marcus.folkes...@gmail.com> wrote: > > `prefix` in the .pc file may be messed up when using a buildsystem > > that has specified a sysroot as DEST

[PATCH v2 01/14] libsepol: build: follow standard semantics for DESTDIR and PREFIX

2018-01-16 Thread Marcus Folkesson
of DESTDIR and PREFIX more standard Signed-off-by: Marcus Folkesson <marcus.folkes...@gmail.com> --- README | 2 +- libsepol/include/Makefile | 4 ++-- libsepol/man/Makefile | 5 +++-- libsepol/src/Makefile | 7 +++ libsepol/src/libsepol.pc.in | 2 +- li

[PATCH v2 11/14] secilc: build: follow standard semantics for DESTDIR and PREFIX

2018-01-16 Thread Marcus Folkesson
Signed-off-by: Marcus Folkesson <marcus.folkes...@gmail.com> --- secilc/Makefile | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/secilc/Makefile b/secilc/Makefile index 1cac53e4..5b0a4852 100644 --- a/secilc/Makefile +++ b/secilc/Makefile @@ -1,8 +1,6 @@ -

[PATCH v2 12/14] semodule-utils: build: follow standard semantics for DESTDIR and PREFIX

2018-01-16 Thread Marcus Folkesson
Signed-off-by: Marcus Folkesson <marcus.folkes...@gmail.com> --- semodule-utils/semodule_expand/Makefile | 8 +++- semodule-utils/semodule_link/Makefile| 8 +++- semodule-utils/semodule_package/Makefile | 8 +++- 3 files changed, 9 insertions(+), 15 deletions(-) diff

[PATCH v2 09/14] restorecond: build: follow standard semantics for DESTDIR and PREFIX

2018-01-16 Thread Marcus Folkesson
Signed-off-by: Marcus Folkesson <marcus.folkes...@gmail.com> --- restorecond/Makefile | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/restorecond/Makefile b/restorecond/Makefile index ada94aeb..a2316947 100644 --- a/restorecond/Makefile +++ b/restorecond/Ma

[PATCH v2 10/14] sandbox: build: follow standard semantics for DESTDIR and PREFIX

2018-01-16 Thread Marcus Folkesson
Signed-off-by: Marcus Folkesson <marcus.folkes...@gmail.com> --- sandbox/Makefile | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/sandbox/Makefile b/sandbox/Makefile index 05c3d658..5a6b707a 100644 --- a/sandbox/Makefile +++ b/sandbox/Makefile @@ -1,14

[PATCH v2 14/14] build: add prefix for includes in top Makefile

2018-01-16 Thread Marcus Folkesson
Signed-off-by: Marcus Folkesson <marcus.folkes...@gmail.com> --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 6da7f7b7..74d662d4 100644 --- a/Makefile +++ b/Makefile @@ -19,8 +19,8 @@ else endif ifneq ($(DESTDIR),) -

[PATCH v2 06/14] mcstrans: build: follow standard semantics for DESTDIR and PREFIX

2018-01-16 Thread Marcus Folkesson
Signed-off-by: Marcus Folkesson <marcus.folkes...@gmail.com> --- mcstrans/man/Makefile | 3 ++- mcstrans/src/Makefile | 6 +++--- mcstrans/utils/Makefile | 6 +++--- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/mcstrans/man/Makefile b/mcstrans/man/Makefile index 8e

[PATCH v2 02/14] libselinux: build: follow standard semantics for DESTDIR and PREFIX

2018-01-16 Thread Marcus Folkesson
of DESTDIR and PREFIX more standard Signed-off-by: Marcus Folkesson <marcus.folkes...@gmail.com> --- libselinux/include/Makefile | 4 ++-- libselinux/man/Makefile | 7 --- libselinux/src/Makefile | 12 +--- libselinux/src/libselinux.pc.in | 2 +- libselinux

Rework of Makefiles v2

2018-01-16 Thread Marcus Folkesson
) Best regards Marcus Folkesson

[PATCH v2 03/14] libsemanage: build: follow standard semantics for DESTDIR and PREFIX

2018-01-16 Thread Marcus Folkesson
This patch solves the following issues: - DESTDIR is needed during compile time to compute library and header paths which it should not. - Installing with both DESTDIR and PREFIX set gives us odd paths - Make usage of DESTDIR and PREFIX more standard Signed-off-by: Marcus Folkesson

[PATCH v2 08/14] python: build: follow standard semantics for DESTDIR and PREFIX

2018-01-16 Thread Marcus Folkesson
Signed-off-by: Marcus Folkesson <marcus.folkes...@gmail.com> --- python/audit2allow/Makefile | 10 -- python/chcat/Makefile | 8 python/semanage/Makefile | 13 ++--- python/sepolgen/src/sepolgen/Makefile | 3 ++- python/se

[PATCH v2 05/14] gui: build: follow standard semantics for DESTDIR and PREFIX

2018-01-16 Thread Marcus Folkesson
Signed-off-by: Marcus Folkesson <marcus.folkes...@gmail.com> --- gui/Makefile | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/gui/Makefile b/gui/Makefile index cfe47405..5efd17d7 100644 --- a/gui/Makefile +++ b/gui/Makefile @@ -1,9 +1,9 @@ # Instal

[PATCH v2 04/14] checkpolicy: build: follow standard semantics for DESTDIR and PREFIX

2018-01-16 Thread Marcus Folkesson
This patch solves the following issues: - DESTDIR is needed during compile time to compute library and header paths which it should not. - Installing with both DESTDIR and PREFIX set gives us odd paths - Make usage of DESTDIR and PREFIX more standard Signed-off-by: Marcus Folkesson

[PATCH v2 07/14] policycoreutils: build: follow standard semantics for DESTDIR and PREFIX

2018-01-16 Thread Marcus Folkesson
Signed-off-by: Marcus Folkesson <marcus.folkes...@gmail.com> --- policycoreutils/hll/pp/Makefile | 7 ++- policycoreutils/load_policy/Makefile | 8 policycoreutils/man/Makefile | 3 ++- policycoreutils/newrole/Makefile | 8 policycoreutils/po/Ma

Re: [PATCH v2 02/14] libselinux: build: follow standard semantics for DESTDIR and PREFIX

2018-01-19 Thread Marcus Folkesson
Hi Nicolas! On Wed, Jan 17, 2018 at 11:12:56PM +0100, Nicolas Iooss wrote: > On Tue, Jan 16, 2018 at 9:23 PM, Marcus Folkesson > <marcus.folkes...@gmail.com> wrote: > > This patch solves the following issues: > > - The pkg-config files generates odd paths when usin

Re: [PATCH v2 08/14] python: build: follow standard semantics for DESTDIR and PREFIX

2018-01-17 Thread Marcus Folkesson
On Wed, Jan 17, 2018 at 05:38:06PM +0100, Petr Lautrbach wrote: > On Wed, Jan 17, 2018 at 11:43:58AM +0100, Marcus Folkesson wrote: > > Hi, > > > > On Wed, Jan 17, 2018 at 11:11:35AM +0100, Petr Lautrbach wrote: > > > On Tue, Jan 16, 2018 at 09:23:21PM

Re: [PATCH v2 08/14] python: build: follow standard semantics for DESTDIR and PREFIX

2018-01-17 Thread Marcus Folkesson
Hi, On Wed, Jan 17, 2018 at 11:11:35AM +0100, Petr Lautrbach wrote: > On Tue, Jan 16, 2018 at 09:23:21PM +0100, Marcus Folkesson wrote: > > Signed-off-by: Marcus Folkesson <marcus.folkes...@gmail.com> > > --- > > python/audit2allow/Makefile | 10 --

[PATCH 1/3] libsepol: build: follow standard semantics for DESTDIR and PREFIX

2018-01-12 Thread Marcus Folkesson
of DESTDIR and PREFIX more standard Signed-off-by: Marcus Folkesson <marcus.folkes...@gmail.com> --- README | 2 +- libsepol/include/Makefile | 4 ++-- libsepol/man/Makefile | 5 +++-- libsepol/src/Makefile | 23 +++ libsepol/src/libsepol

[PATCH 3/3] libsemanage: build: follow standard semantics for DESTDIR and PREFIX

2018-01-12 Thread Marcus Folkesson
This patch solves the following issues: - DESTDIR is needed during compile time to compute library and header paths which it should not. - Installing with both DESTDIR and PREFIX set gives us odd paths - Make usage of DESTDIR and PREFIX more standard Signed-off-by: Marcus Folkesson

Rework of Makefiles

2018-01-12 Thread Marcus Folkesson
Make usage of DESTDIR and PREFIX more standard However, DESTDIR is still needed in the "root" Makefile to make libsemanage to compile. But all components (libselinux, libsepol and libsemanage) can be compiled separatly with standard usage of DESTDIR and PREFIX. Thanks, Best regards

Re: [PATCH v4 01/15] libsepol: build: follow standard semantics for DESTDIR and PREFIX

2018-01-31 Thread Marcus Folkesson
On Wed, Jan 24, 2018 at 10:29:07PM +0100, Nicolas Iooss wrote: > On Wed, Jan 24, 2018 at 10:27 AM, Marcus Folkesson > <marcus.folkes...@gmail.com> wrote: > > This patch solves the following issues: > > - The pkg-config files generates odd paths when using DESTDIR with

[PATCH v5 01/15] libsepol: build: follow standard semantics for DESTDIR and PREFIX

2018-02-14 Thread Marcus Folkesson
of DESTDIR and PREFIX more standard Signed-off-by: Marcus Folkesson <marcus.folkes...@gmail.com> --- Notes: v5: - Only use $(DESTDIR) in install v4: - Introduce LDLIBS_LIBSEPOLA if LIBSEPOLA is not defined. v2: - Use separate directories for shared lib

[PATCH v5 12/15] secilc: build: follow standard semantics for DESTDIR and PREFIX

2018-02-14 Thread Marcus Folkesson
Signed-off-by: Marcus Folkesson <marcus.folkes...@gmail.com> --- Notes: v5: - Only use $(DESTDIR) in install v2: - Rework all packages (not just selinux/sepol/semanage) secilc/Makefile | 16 +++- 1 file changed, 7 insertions(+), 9 deletions(-) diff

[PATCH v5 15/15] build: setup buildpaths if DESTDIR is specified

2018-02-14 Thread Marcus Folkesson
Signed-off-by: Marcus Folkesson <marcus.folkes...@gmail.com> --- Notes: v4: - add LIBDIR to LDFLAGS if DESTDIR is specified - export LIBSEPOLA if DESTDIR is specified v3: - Add default prefix Makefile | 9 +++-- 1 file changed, 7 insertions

[PATCH v5 07/15] policycoreutils: build: follow standard semantics for DESTDIR and PREFIX

2018-02-14 Thread Marcus Folkesson
Signed-off-by: Marcus Folkesson <marcus.folkes...@gmail.com> --- Notes: v5: - Only use $(DESTDIR) in install v2: - Rework all packages (not just selinux/sepol/semanage) policycoreutils/hll/pp/Makefile | 9 +++-- policycoreutils/load_policy/Makefil

[PATCH v5 08/15] python: build: follow standard semantics for DESTDIR and PREFIX

2018-02-14 Thread Marcus Folkesson
Signed-off-by: Marcus Folkesson <marcus.folkes...@gmail.com> --- Notes: v5: - Only use $(DESTDIR) in install - Remove CFLAGS from linking rule v4: - move platform from platform specific to platform shared installation directory v3:

[PATCH v5 09/15] python: build: move modules from platform-specific to platform-shared

2018-02-14 Thread Marcus Folkesson
Signed-off-by: Marcus Folkesson <marcus.folkes...@gmail.com> --- python/semanage/Makefile | 2 +- python/sepolgen/src/sepolgen/Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/python/semanage/Makefile b/python/semanage/Makefile index a8465e62..5f

[PATCH v5 04/15] checkpolicy: build: follow standard semantics for DESTDIR and PREFIX

2018-02-14 Thread Marcus Folkesson
This patch solves the following issues: - DESTDIR is needed during compile time to compute library and header paths which it should not. - Installing with both DESTDIR and PREFIX set gives us odd paths - Make usage of DESTDIR and PREFIX more standard Signed-off-by: Marcus Folkesson

[PATCH v5 02/15] libselinux: build: follow standard semantics for DESTDIR and PREFIX

2018-02-14 Thread Marcus Folkesson
of DESTDIR and PREFIX more standard Signed-off-by: Marcus Folkesson <marcus.folkes...@gmail.com> --- Notes: v5: - Only use $(DESTDIR) in install v4: - move platform from platform specific to platform shared installation directory - Introduce LDLIBS_LIB

[PATCH v5 06/15] mcstrans: build: follow standard semantics for DESTDIR and PREFIX

2018-02-14 Thread Marcus Folkesson
Signed-off-by: Marcus Folkesson <marcus.folkes...@gmail.com> --- Notes: v5: - Only use $(DESTDIR) in install - Remove CFLAGS from linking rule - Do not override CFLAGS v3: - keep the possibility to specify LIBSEPOLA to make depending com

[PATCH v5 14/15] dbus: build: follow standard semantics for DESTDIR and PREFIX

2018-02-14 Thread Marcus Folkesson
Signed-off-by: Marcus Folkesson <marcus.folkes...@gmail.com> --- dbus/Makefile | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/dbus/Makefile b/dbus/Makefile index 9a6cc90e..53143aff 100644 --- a/dbus/Makefile +++ b/dbus/Makefile @@ -1,3 +1,5 @@ +PREFIX ?

[PATCH v5 13/15] semodule-utils: build: follow standard semantics for DESTDIR and PREFIX

2018-02-14 Thread Marcus Folkesson
Signed-off-by: Marcus Folkesson <marcus.folkes...@gmail.com> --- Notes: v5: - Only use $(DESTDIR) in install v2: - Rework all packages (not just selinux/sepol/semanage) semodule-utils/semodule_expand/Makefile | 12 +--- semodule-utils/semodule_link/Ma

Rework of makefiles v5

2018-02-14 Thread Marcus Folkesson
PREFIX=/myusr install or make DESTDIR=/tmp/myroot install Thanks for all feedback. Best regards Marcus Folkesson

Re: Rework of makefiles v5

2018-02-15 Thread Marcus Folkesson
Hi Nicolas, First of all, thank you for your review. On Wed, Feb 14, 2018 at 08:19:44PM +0100, Nicolas Iooss wrote: > On Wed, Feb 14, 2018 at 10:57 AM, Marcus Folkesson > <marcus.folkes...@gmail.com> wrote: > > I have updated the patchset. > > > > The biggest ch

Re: Rework of makefiles v5

2018-02-22 Thread Marcus Folkesson
On Wed, Feb 21, 2018 at 10:46:45PM +0100, Nicolas Iooss wrote: > On Thu, Feb 15, 2018 at 2:04 PM, Marcus Folkesson > <marcus.folkes...@gmail.com> wrote: > > Hi Nicolas, > > > > First of all, thank you for your review. > > > > On Wed, Feb 14, 201

[PATCH] libselinux: introduce PCPREFIX substitute variables for .pc files

2018-01-03 Thread Marcus Folkesson
. Therefor, introduce PCPREFIX to make it possible to generate a more customized .pc file. [1] https://buildroot.org/ Signed-off-by: Marcus Folkesson <marcus.folkes...@gmail.com> --- libselinux/src/Makefile | 5 +++-- libsemanage/src/Makefile | 5 +++-- libsepol/src/Makefile| 5 +++-- 3 files c

[PATCH v2] libselinux: introduce PCPREFIX substitute variable for .pc files

2018-01-03 Thread Marcus Folkesson
, introduce PCPREFIX to make it possible to generate a more customized .pc file. Signed-off-by: Marcus Folkesson <marcus.folkes...@gmail.com> --- v2: - Reword commit message to be easier to understand... libselinux/src/Makefile | 5 +++-- libsemanage/src/Makefile | 5 +++-- libsep

[PATCH v4 09/15] python: build: move modules from platform-specific to platform-shared

2018-01-24 Thread Marcus Folkesson
Signed-off-by: Marcus Folkesson <marcus.folkes...@gmail.com> --- python/semanage/Makefile | 2 +- python/sepolgen/src/sepolgen/Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/python/semanage/Makefile b/python/semanage/Makefile index 3e48b673..02

[PATCH v4 14/15] dbus: build: follow standard semantics for DESTDIR and PREFIX

2018-01-24 Thread Marcus Folkesson
Signed-off-by: Marcus Folkesson <marcus.folkes...@gmail.com> --- dbus/Makefile | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/dbus/Makefile b/dbus/Makefile index 9a6cc90e..53143aff 100644 --- a/dbus/Makefile +++ b/dbus/Makefile @@ -1,3 +1,5 @@ +PREFIX ?

[PATCH v4 06/15] mcstrans: build: follow standard semantics for DESTDIR and PREFIX

2018-01-24 Thread Marcus Folkesson
Signed-off-by: Marcus Folkesson <marcus.folkes...@gmail.com> --- mcstrans/man/Makefile | 3 ++- mcstrans/src/Makefile | 18 -- mcstrans/utils/Makefile | 22 -- 3 files changed, 30 insertions(+), 13 deletions(-) diff --git a/mcstrans/man/Make

Rework of Makefiles

2018-01-24 Thread Marcus Folkesson
Hello, I have updated the patchset. We had a problem with overriding LIBDIR. Please test to compile with: make DESTDIR=/tmp/myroot PREFIX=/myusr install or make DESTDIR=/tmp/myroot install Thanks to Nicolas and Petr for feedback. Changes: v4: - top Makefile: add LIBDIR to LDFLAGS if

[PATCH v4 03/15] libsemanage: build: follow standard semantics for DESTDIR and PREFIX

2018-01-24 Thread Marcus Folkesson
This patch solves the following issues: - DESTDIR is needed during compile time to compute library and header paths which it should not. - Installing with both DESTDIR and PREFIX set gives us odd paths - Make usage of DESTDIR and PREFIX more standard Signed-off-by: Marcus Folkesson

[PATCH v4 04/15] checkpolicy: build: follow standard semantics for DESTDIR and PREFIX

2018-01-24 Thread Marcus Folkesson
This patch solves the following issues: - DESTDIR is needed during compile time to compute library and header paths which it should not. - Installing with both DESTDIR and PREFIX set gives us odd paths - Make usage of DESTDIR and PREFIX more standard Signed-off-by: Marcus Folkesson

[PATCH v4 01/15] libsepol: build: follow standard semantics for DESTDIR and PREFIX

2018-01-24 Thread Marcus Folkesson
of DESTDIR and PREFIX more standard Signed-off-by: Marcus Folkesson <marcus.folkes...@gmail.com> --- README | 2 +- libsepol/include/Makefile | 4 ++-- libsepol/man/Makefile | 5 +++-- libsepol/src/Makefile | 7 +++ libsepol/src/libsepol.pc.in | 2 +- li

[PATCH v4 05/15] gui: build: follow standard semantics for DESTDIR and PREFIX

2018-01-24 Thread Marcus Folkesson
Signed-off-by: Marcus Folkesson <marcus.folkes...@gmail.com> --- gui/Makefile | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/gui/Makefile b/gui/Makefile index cfe47405..5efd17d7 100644 --- a/gui/Makefile +++ b/gui/Makefile @@ -1,9 +1,9 @@ # Instal

[PATCH v4 10/15] restorecond: build: follow standard semantics for DESTDIR and PREFIX

2018-01-24 Thread Marcus Folkesson
Signed-off-by: Marcus Folkesson <marcus.folkes...@gmail.com> --- restorecond/Makefile | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/restorecond/Makefile b/restorecond/Makefile index ada94aeb..a2316947 100644 --- a/restorecond/Makefile +++ b/restorecond/Ma

[PATCH v4 02/15] libselinux: build: follow standard semantics for DESTDIR and PREFIX

2018-01-24 Thread Marcus Folkesson
of DESTDIR and PREFIX more standard Signed-off-by: Marcus Folkesson <marcus.folkes...@gmail.com> --- libselinux/include/Makefile | 4 ++-- libselinux/man/Makefile | 7 --- libselinux/src/Makefile | 17 +++-- libselinux/src/libselinux.pc.in | 2 +- libselinux

[PATCH v4 08/15] python: build: follow standard semantics for DESTDIR and PREFIX

2018-01-24 Thread Marcus Folkesson
Signed-off-by: Marcus Folkesson <marcus.folkes...@gmail.com> --- python/audit2allow/Makefile | 19 --- python/chcat/Makefile | 8 python/semanage/Makefile | 11 +-- python/sepolgen/src/sepolgen/Makefile | 3 ++-

[PATCH v4 15/15] build: setup buildpaths if DESTDIR is specified

2018-01-24 Thread Marcus Folkesson
Signed-off-by: Marcus Folkesson <marcus.folkes...@gmail.com> --- Makefile | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 6da7f7b7..c238dbc8 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,4 @@ +PREFIX ?= /usr OPT_SUBDIRS ?= db

[PATCH v4 07/15] policycoreutils: build: follow standard semantics for DESTDIR and PREFIX

2018-01-24 Thread Marcus Folkesson
Signed-off-by: Marcus Folkesson <marcus.folkes...@gmail.com> --- policycoreutils/hll/pp/Makefile | 7 ++- policycoreutils/load_policy/Makefile | 8 policycoreutils/man/Makefile | 3 ++- policycoreutils/newrole/Makefile | 8 policycoreutils/po/Ma

[PATCH v4 13/15] semodule-utils: build: follow standard semantics for DESTDIR and PREFIX

2018-01-24 Thread Marcus Folkesson
Signed-off-by: Marcus Folkesson <marcus.folkes...@gmail.com> --- semodule-utils/semodule_expand/Makefile | 8 +++- semodule-utils/semodule_link/Makefile| 8 +++- semodule-utils/semodule_package/Makefile | 8 +++- 3 files changed, 9 insertions(+), 15 deletions(-) diff

[PATCH v4 12/15] secilc: build: follow standard semantics for DESTDIR and PREFIX

2018-01-24 Thread Marcus Folkesson
Signed-off-by: Marcus Folkesson <marcus.folkes...@gmail.com> --- secilc/Makefile | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/secilc/Makefile b/secilc/Makefile index 1cac53e4..5b0a4852 100644 --- a/secilc/Makefile +++ b/secilc/Makefile @@ -1,8 +1,6 @@ -

Rework of Makefiles v3

2018-01-22 Thread Marcus Folkesson
Hi all, I have updated the patchset. Please test to compile with: make DESTDIR=/tmp/myroot PREFIX=/myusr install or make DESTDIR=/tmp/myroot install As said before, the goal with this patchset is to clean up the Makefiles on unused symbols, use standard semantics and keep all the old

[PATCH v3 08/14] python: build: follow standard semantics for DESTDIR and PREFIX

2018-01-22 Thread Marcus Folkesson
Signed-off-by: Marcus Folkesson <marcus.folkes...@gmail.com> --- python/audit2allow/Makefile | 17 ++--- python/chcat/Makefile | 8 python/semanage/Makefile | 11 +-- python/sepolgen/src/sepolgen/Makefile | 3 ++-

[PATCH v3 11/14] secilc: build: follow standard semantics for DESTDIR and PREFIX

2018-01-22 Thread Marcus Folkesson
Signed-off-by: Marcus Folkesson <marcus.folkes...@gmail.com> --- secilc/Makefile | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/secilc/Makefile b/secilc/Makefile index 1cac53e4..5b0a4852 100644 --- a/secilc/Makefile +++ b/secilc/Makefile @@ -1,8 +1,6 @@ -

[PATCH v3 07/14] policycoreutils: build: follow standard semantics for DESTDIR and PREFIX

2018-01-22 Thread Marcus Folkesson
Signed-off-by: Marcus Folkesson <marcus.folkes...@gmail.com> --- policycoreutils/hll/pp/Makefile | 7 ++- policycoreutils/load_policy/Makefile | 8 policycoreutils/man/Makefile | 3 ++- policycoreutils/newrole/Makefile | 8 policycoreutils/po/Ma

[PATCH v3 12/14] semodule-utils: build: follow standard semantics for DESTDIR and PREFIX

2018-01-22 Thread Marcus Folkesson
Signed-off-by: Marcus Folkesson <marcus.folkes...@gmail.com> --- semodule-utils/semodule_expand/Makefile | 8 +++- semodule-utils/semodule_link/Makefile| 8 +++- semodule-utils/semodule_package/Makefile | 8 +++- 3 files changed, 9 insertions(+), 15 deletions(-) diff

[PATCH v3 09/14] restorecond: build: follow standard semantics for DESTDIR and PREFIX

2018-01-22 Thread Marcus Folkesson
Signed-off-by: Marcus Folkesson <marcus.folkes...@gmail.com> --- restorecond/Makefile | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/restorecond/Makefile b/restorecond/Makefile index ada94aeb..a2316947 100644 --- a/restorecond/Makefile +++ b/restorecond/Ma

[PATCH v3 10/14] sandbox: build: follow standard semantics for DESTDIR and PREFIX

2018-01-22 Thread Marcus Folkesson
Signed-off-by: Marcus Folkesson <marcus.folkes...@gmail.com> --- sandbox/Makefile | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/sandbox/Makefile b/sandbox/Makefile index 05c3d658..5a6b707a 100644 --- a/sandbox/Makefile +++ b/sandbox/Makefile @@ -1,14

[PATCH v3 05/14] gui: build: follow standard semantics for DESTDIR and PREFIX

2018-01-22 Thread Marcus Folkesson
Signed-off-by: Marcus Folkesson <marcus.folkes...@gmail.com> --- gui/Makefile | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/gui/Makefile b/gui/Makefile index cfe47405..5efd17d7 100644 --- a/gui/Makefile +++ b/gui/Makefile @@ -1,9 +1,9 @@ # Instal

[PATCH v3 06/14] mcstrans: build: follow standard semantics for DESTDIR and PREFIX

2018-01-22 Thread Marcus Folkesson
Signed-off-by: Marcus Folkesson <marcus.folkes...@gmail.com> --- mcstrans/man/Makefile | 3 ++- mcstrans/src/Makefile | 18 +++--- mcstrans/utils/Makefile | 20 ++-- 3 files changed, 27 insertions(+), 14 deletions(-) diff --git a/mcstrans/man/Makefile b/mc

[PATCH v3 01/14] libsepol: build: follow standard semantics for DESTDIR and PREFIX

2018-01-22 Thread Marcus Folkesson
of DESTDIR and PREFIX more standard Signed-off-by: Marcus Folkesson <marcus.folkes...@gmail.com> --- README | 2 +- libsepol/include/Makefile | 4 ++-- libsepol/man/Makefile | 5 +++-- libsepol/src/Makefile | 7 +++ libsepol/src/libsepol.pc.in | 2 +- li

[PATCH v3 04/14] checkpolicy: build: follow standard semantics for DESTDIR and PREFIX

2018-01-22 Thread Marcus Folkesson
This patch solves the following issues: - DESTDIR is needed during compile time to compute library and header paths which it should not. - Installing with both DESTDIR and PREFIX set gives us odd paths - Make usage of DESTDIR and PREFIX more standard Signed-off-by: Marcus Folkesson

[PATCH v3 02/14] libselinux: build: follow standard semantics for DESTDIR and PREFIX

2018-01-22 Thread Marcus Folkesson
of DESTDIR and PREFIX more standard Signed-off-by: Marcus Folkesson <marcus.folkes...@gmail.com> --- libselinux/include/Makefile | 4 ++-- libselinux/man/Makefile | 7 --- libselinux/src/Makefile | 14 +- libselinux/src/libselinux.pc.in | 2 +- libselinux

[PATCH v3 03/14] libsemanage: build: follow standard semantics for DESTDIR and PREFIX

2018-01-22 Thread Marcus Folkesson
This patch solves the following issues: - DESTDIR is needed during compile time to compute library and header paths which it should not. - Installing with both DESTDIR and PREFIX set gives us odd paths - Make usage of DESTDIR and PREFIX more standard Signed-off-by: Marcus Folkesson

[PATCH v3 14/14] build: add prefix for includes in top Makefile

2018-01-22 Thread Marcus Folkesson
Signed-off-by: Marcus Folkesson <marcus.folkes...@gmail.com> --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 6da7f7b7..6baea148 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,4 @@ +PREFIX ?= /usr OPT_SUBDIRS ?= dbus gui mc

Re: [PATCH v2 02/14] libselinux: build: follow standard semantics for DESTDIR and PREFIX

2018-01-23 Thread Marcus Folkesson
On Mon, Jan 22, 2018 at 09:50:36PM +0100, Nicolas Iooss wrote: > On 19/01/18 13:07, Marcus Folkesson wrote: > > Hi Nicolas! > > > > On Wed, Jan 17, 2018 at 11:12:56PM +0100, Nicolas Iooss wrote: > >> On Tue, Jan 16, 2018 at 9:23 PM, Marcus Folkesson > >

Re: [PATCH v3 08/14] python: build: follow standard semantics for DESTDIR and PREFIX

2018-01-23 Thread Marcus Folkesson
Hi Petr, On Tue, Jan 23, 2018 at 11:24:47AM +0100, Petr Lautrbach wrote: > On Sun, Jan 21, 2018 at 10:46:11PM +0100, Marcus Folkesson wrote: > > Signed-off-by: Marcus Folkesson <marcus.folkes...@gmail.com> > > --- > > python/audit2allow/Makefile | 17