[OE-core] [PATCH] lttng: Add tracing group when building lttng-tools

Mehaffey, John John_Mehaffey at mentor.com
Tue Mar 10 04:15:07 UTC 2015


From: Burton, Ross [ross.burton at intel.com]
Sent: Monday, March 09, 2015 1:57 PM
To: Mehaffey, John
Cc: openembedded-core at lists.openembedded.org; mehaf at gedanken.com
Subject: Re: [OE-core] [PATCH] lttng: Add tracing group when building lttng-tools

> On 27 February 2015 at 02:17, Mehaffey, John <John_Mehaffey at mentor.com> wrote:
> > +inherit autotools-brokensep ptest pkgconfig adduser
>
> Did you mean useradd?  Or is adduser something Mentor-specific?
>
> Ross

No, it was just a typo in transcribing from a .bbappend :(

Here is the corrected version:

>From e65f1e31d1f5691c676da3fb33d7c3feab4ef74c Mon Sep 17 00:00:00 2001
From: John Mehaffey <mehaf at gedanken.com>
Date: Thu, 26 Feb 2015 10:51:28 -0800
Subject: [OE-core] [PATCH] lttng: Add tracing group when building lttng-tools

The lttng subsystem issues a warning if there is no
group 'tracing' when it it started.

Signed-off-by: John Mehaffey <mehaf at gedanken.com>
---
 meta/recipes-kernel/lttng/lttng-tools_2.6.0.bb | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/meta/recipes-kernel/lttng/lttng-tools_2.6.0.bb b/meta/recipes-kernel/lttng/lttng-tools_2.6.0.bb
index 15125e3..f0969b5 100644
--- a/meta/recipes-kernel/lttng/lttng-tools_2.6.0.bb
+++ b/meta/recipes-kernel/lttng/lttng-tools_2.6.0.bb
@@ -30,7 +30,10 @@ SRC_URI = "git://git.lttng.org/lttng-tools.git;branch=stable-2.6 \
 
 S = "${WORKDIR}/git"
 
-inherit autotools-brokensep ptest pkgconfig
+inherit autotools-brokensep ptest pkgconfig useradd
+
+USERADD_PACKAGES = "${PN}"
+GROUPADD_PARAM_${PN} = "tracing"
 
 export KERNELDIR="${STAGING_KERNEL_DIR}"
 
-- 
1.9.1




More information about the Openembedded-core mailing list