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