From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from 93-97-173-237.zone5.bethere.co.uk ([93.97.173.237] helo=tim.rpsys.net) by linuxtogo.org with esmtp (Exim 4.72) (envelope-from ) id 1Tr8UH-0001HZ-Aj for openembedded-core@lists.openembedded.org; Fri, 04 Jan 2013 15:43:10 +0100 Received: from localhost (localhost [127.0.0.1]) by tim.rpsys.net (8.13.6/8.13.8) with ESMTP id r04ERqnU020852; Fri, 4 Jan 2013 14:27:52 GMT Received: from tim.rpsys.net ([127.0.0.1]) by localhost (tim.rpsys.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 32489-05; Fri, 4 Jan 2013 14:27:47 +0000 (GMT) Received: from [192.168.3.10] ([192.168.3.10]) (authenticated bits=0) by tim.rpsys.net (8.13.6/8.13.8) with ESMTP id r04ERe9F020841 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO); Fri, 4 Jan 2013 14:27:42 GMT Message-ID: <1357309662.28649.127.camel@ted> From: Richard Purdie To: "Maxin B. John" Date: Fri, 04 Jan 2013 14:27:42 +0000 In-Reply-To: <1357299055-56828-1-git-send-email-maxin.john@enea.com> References: <1357299055-56828-1-git-send-email-maxin.john@enea.com> X-Mailer: Evolution 3.2.3-0ubuntu6 Mime-Version: 1.0 X-Virus-Scanned: amavisd-new at rpsys.net Cc: yocto@yoctoproject.org, scott.a.garman@intel.com, openembedded-core@lists.openembedded.org Subject: Re: [PATCH] latencytop: add sudo as runtime dependency X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Jan 2013 14:43:17 -0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit On Fri, 2013-01-04 at 12:30 +0100, Maxin B. John wrote: > From: "Maxin B. John" > > Latencytop needs superuser privileges. The latencytop plugin in > eclipse invokes it as 'sudo latencytop'. So, it will be good to > include sudo as a runtime dependency. > > Signed-off-by: Maxin B. John > --- > meta/recipes-kernel/latencytop/latencytop_0.5.bb | 3 +++ > 1 files changed, 3 insertions(+), 0 deletions(-) > > diff --git a/meta/recipes-kernel/latencytop/latencytop_0.5.bb b/meta/recipes-kernel/latencytop/latencytop_0.5.bb > index 3e35bf9..a148a47 100644 > --- a/meta/recipes-kernel/latencytop/latencytop_0.5.bb > +++ b/meta/recipes-kernel/latencytop/latencytop_0.5.bb > @@ -7,6 +7,9 @@ LIC_FILES_CHKSUM = "file://latencytop.c;endline=23;md5=ee9ea9b1415356e5734adad4a > > DEPENDS = "virtual/libintl ncurses glib-2.0 ${@base_contains('DISTRO_FEATURES', 'x11', 'gtk+', '', d)}" > > +# latencytop and it's eclipse support need sudo > +RDEPENDS_${PN} = "sudo" > + > PR = "r3" Shouldn't the eclipse support RDEPEND on sudo, not latencytop? There are several ways you could run latencytop without sudo... Following this logic, we'd add an RDEPENDS on sudo for every app that could possibly need root privs. Cheers, Richard