-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 This patch looks good to me. acked. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.15 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iEYEARECAAYFAlJpI9YACgkQrlYvE4MpobMYgACdFZicvDh4FHES7kvFYF1k7qVf k1cAniIz8EgX/WHf8V2EwdBdrTwAY0iD =FKva -----END PGP SIGNATURE-----
>From 647f35e357ce4ba4e486f91b31a2538b2d9c5673 Mon Sep 17 00:00:00 2001 From: Dan Walsh <dwalsh@xxxxxxxxxx> Date: Wed, 9 Oct 2013 14:17:07 -0400 Subject: [PATCH 02/74] Laurent Bigonville patch to allow overriding PATH Definitions in Makefiles --- checkpolicy/test/Makefile | 2 +- libselinux/src/Makefile | 2 +- libsepol/src/Makefile | 2 +- policycoreutils/gui/Makefile | 3 +++ policycoreutils/sestatus/Makefile | 2 +- policycoreutils/setfiles/Makefile | 2 +- 6 files changed, 8 insertions(+), 5 deletions(-) diff --git a/checkpolicy/test/Makefile b/checkpolicy/test/Makefile index 0731e89..63b4d24 100644 --- a/checkpolicy/test/Makefile +++ b/checkpolicy/test/Makefile @@ -3,7 +3,7 @@ # PREFIX ?= $(DESTDIR)/usr BINDIR=$(PREFIX)/bin -LIBDIR=$(PREFIX)/lib +LIBDIR ?= $(PREFIX)/lib INCLUDEDIR ?= $(PREFIX)/include CFLAGS ?= -g -Wall -W -Werror -O2 -pipe diff --git a/libselinux/src/Makefile b/libselinux/src/Makefile index c4f5d4c..2c29277 100644 --- a/libselinux/src/Makefile +++ b/libselinux/src/Makefile @@ -18,7 +18,7 @@ RUBYLIBVER ?= $(shell $(RUBY) -e 'print RUBY_VERSION.split(".")[0..1].join(".")' RUBYPLATFORM ?= $(shell $(RUBY) -e 'print RUBY_PLATFORM') RUBYINC ?= $(shell pkg-config --cflags ruby) RUBYINSTALL ?= $(LIBDIR)/ruby/site_ruby/$(RUBYLIBVER)/$(RUBYPLATFORM) -LIBBASE=$(shell basename $(LIBDIR)) +LIBBASE ?= $(shell basename $(LIBDIR)) LDFLAGS ?= -lpcre -lpthread diff --git a/libsepol/src/Makefile b/libsepol/src/Makefile index cd8e767..79de6dc 100644 --- a/libsepol/src/Makefile +++ b/libsepol/src/Makefile @@ -3,7 +3,7 @@ PREFIX ?= $(DESTDIR)/usr INCLUDEDIR ?= $(PREFIX)/include LIBDIR ?= $(PREFIX)/lib SHLIBDIR ?= $(DESTDIR)/lib -LIBBASE=$(shell basename $(LIBDIR)) +LIBBASE ?= $(shell basename $(LIBDIR)) VERSION = $(shell cat ../VERSION) LIBVERSION = 1 diff --git a/policycoreutils/gui/Makefile b/policycoreutils/gui/Makefile index b5abbb9..ea7d7e4 100644 --- a/policycoreutils/gui/Makefile +++ b/policycoreutils/gui/Makefile @@ -1,7 +1,10 @@ # Installation directories. PREFIX ?= ${DESTDIR}/usr +SYSCONFDIR ?= ${DESTDIR}/etc BINDIR ?= $(PREFIX)/bin SHAREDIR ?= $(PREFIX)/share/system-config-selinux +DATADIR ?= $(PREFIX)/share +MANDIR ?= $(PREFIX)/share/man TARGETS= \ booleansPage.py \ diff --git a/policycoreutils/sestatus/Makefile b/policycoreutils/sestatus/Makefile index c5db7a3..c04ff00 100644 --- a/policycoreutils/sestatus/Makefile +++ b/policycoreutils/sestatus/Makefile @@ -5,7 +5,7 @@ MANDIR = $(PREFIX)/share/man ETCDIR ?= $(DESTDIR)/etc LIBDIR ?= $(PREFIX)/lib -CFLAGS = -Werror -Wall -W +CFLAGS ?= -Werror -Wall -W override CFLAGS += -I$(PREFIX)/include -D_FILE_OFFSET_BITS=64 LDLIBS = -lselinux -L$(LIBDIR) diff --git a/policycoreutils/setfiles/Makefile b/policycoreutils/setfiles/Makefile index 4b44b3c..98f4f7d 100644 --- a/policycoreutils/setfiles/Makefile +++ b/policycoreutils/setfiles/Makefile @@ -8,7 +8,7 @@ AUDITH = $(shell ls /usr/include/libaudit.h 2>/dev/null) PROGRESS_STEP=$(shell grep "^\#define STAR_COUNT" restore.h | awk -S '{ print $$3 }') ABORT_ON_ERRORS=$(shell grep "^\#define ABORT_ON_ERRORS" setfiles.c | awk -S '{ print $$3 }') -CFLAGS = -g -Werror -Wall -W +CFLAGS ?= -g -Werror -Wall -W override CFLAGS += -I$(PREFIX)/include LDLIBS = -lselinux -lsepol -L$(LIBDIR) -- 1.8.3.1