richardphibel / rpms / systemd

Forked from rpms/systemd 2 years ago
Clone
803fb7
From 685ddafd9e3c5f548e02e38633f366ff453f918b Mon Sep 17 00:00:00 2001
803fb7
From: Martin Pitt <martin.pitt@ubuntu.com>
803fb7
Date: Tue, 24 Feb 2015 14:30:10 +0100
803fb7
Subject: [PATCH] bootchart: fix default init path
803fb7
803fb7
Commit 6e1bf7ab99 used the wrong directory; we need rootlibexecdir, not
803fb7
rootlibdir, as the latter is something like /lib/x86_64-linux-gnu/ on
803fb7
multi-arch systems.
803fb7
803fb7
https://launchpad.net/bugs/1423867
803fb7
(cherry picked from commit a804d849b3c2199bc25d1d4e65fc119fa4d7d0e2)
803fb7
---
803fb7
 Makefile.am               | 1 +
803fb7
 src/bootchart/bootchart.c | 2 +-
803fb7
 2 files changed, 2 insertions(+), 1 deletion(-)
803fb7
803fb7
diff --git a/Makefile.am b/Makefile.am
803fb7
index bf65b2406..2e6455f6e 100644
803fb7
--- a/Makefile.am
803fb7
+++ b/Makefile.am
803fb7
@@ -199,6 +199,7 @@ AM_CPPFLAGS = \
803fb7
 	-DKEXEC=\"$(KEXEC)\" \
803fb7
 	-DLIBDIR=\"$(libdir)\" \
803fb7
 	-DROOTLIBDIR=\"$(rootlibdir)\" \
803fb7
+	-DROOTLIBEXECDIR=\"$(rootlibexecdir)\" \
803fb7
 	-DTEST_DIR=\"$(abs_top_srcdir)/test\" \
803fb7
 	-I $(top_srcdir)/src \
803fb7
 	-I $(top_builddir)/src/shared \
803fb7
diff --git a/src/bootchart/bootchart.c b/src/bootchart/bootchart.c
803fb7
index 64a384bac..175be6868 100644
803fb7
--- a/src/bootchart/bootchart.c
803fb7
+++ b/src/bootchart/bootchart.c
803fb7
@@ -76,7 +76,7 @@ int sysfd=-1;
803fb7
 #define DEFAULT_HZ 25.0
803fb7
 #define DEFAULT_SCALE_X 100.0 /* 100px = 1sec */
803fb7
 #define DEFAULT_SCALE_Y 20.0  /* 16px = 1 process bar */
803fb7
-#define DEFAULT_INIT ROOTLIBDIR "/systemd/systemd"
803fb7
+#define DEFAULT_INIT ROOTLIBEXECDIR "/systemd"
803fb7
 #define DEFAULT_OUTPUT "/run/log"
803fb7
 
803fb7
 /* graph defaults */