Blame SOURCES/0024-bootchart-fix-default-init-path.patch

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