diff options
author | Wolfram Sang <w.sang@pengutronix.de> | 2013-01-07 08:21:52 +0100 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2013-02-05 18:54:16 +0100 |
commit | fe26bd0dd52c93eba1fe7867fd765cd4be3486e6 (patch) | |
tree | 412175fdee80231f8ecd4e7a40bcb2b4f9a8630f /patches/policycoreutils-2.1.13/0001-restorecond-use-pkg-config.patch | |
parent | f807d796a9be89c66ec1b04415d39538ddae8f59 (diff) | |
download | ptxdist-fe26bd0dd52c93eba1fe7867fd765cd4be3486e6.tar.gz ptxdist-fe26bd0dd52c93eba1fe7867fd765cd4be3486e6.tar.xz |
policycoreutils: add package
Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'patches/policycoreutils-2.1.13/0001-restorecond-use-pkg-config.patch')
-rw-r--r-- | patches/policycoreutils-2.1.13/0001-restorecond-use-pkg-config.patch | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/patches/policycoreutils-2.1.13/0001-restorecond-use-pkg-config.patch b/patches/policycoreutils-2.1.13/0001-restorecond-use-pkg-config.patch new file mode 100644 index 000000000..89ff58637 --- /dev/null +++ b/patches/policycoreutils-2.1.13/0001-restorecond-use-pkg-config.patch @@ -0,0 +1,34 @@ +From: Wolfram Sang <w.sang@pengutronix.de> +Date: Mon, 14 Jan 2013 20:04:50 +0100 +Subject: [PATCH] restorecond: use pkg-config + +...instead of hard coding paths. + +Signed-off-by: Wolfram Sang <w.sang@pengutronix.de> +Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> +--- + restorecond/Makefile | 8 ++++---- + 1 file changed, 4 insertions(+), 4 deletions(-) + +diff --git a/restorecond/Makefile b/restorecond/Makefile +index 3074542..16e60e8 100644 +--- a/restorecond/Makefile ++++ b/restorecond/Makefile +@@ -10,13 +10,13 @@ autostart_DATA = sealertauto.desktop + INITDIR = $(DESTDIR)/etc/rc.d/init.d + SELINUXDIR = $(DESTDIR)/etc/selinux + +-DBUSFLAGS = -DHAVE_DBUS -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/lib/dbus-1.0/include +-DBUSLIB = -ldbus-glib-1 -ldbus-1 ++DBUSFLAGS = -DHAVE_DBUS `pkg-config --cflags dbus-glib-1` ++DBUSLIB = `pkg-config --libs dbus-glib-1` + + CFLAGS ?= -g -Werror -Wall -W +-override CFLAGS += -I$(PREFIX)/include $(DBUSFLAGS) -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/lib/glib-2.0/include ++override CFLAGS += $(DBUSFLAGS) + +-LDLIBS += -lselinux $(DBUSLIB) -lglib-2.0 -L$(LIBDIR) ++LDLIBS += -lselinux $(DBUSLIB) + + all: restorecond + |