Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH][V2] perf: split package
@ 2014-07-21  2:03 Chong Lu
  2014-07-21 10:16 ` Jacob Kroon
  2014-07-23 17:34 ` Jacob Kroon
  0 siblings, 2 replies; 4+ messages in thread
From: Chong Lu @ 2014-07-21  2:03 UTC (permalink / raw)
  To: openembedded-core

Currently, perf can't split to perf-archive, perf-tests, perf-python and
perf-perl. All files are included in perf package.
Change the files paths to make split successfully and add perf package
RDEPEND on the other four to keep it consistent.

Signed-off-by: Chong Lu <Chong.Lu@windriver.com>
---
 meta/recipes-kernel/perf/perf.bb | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/meta/recipes-kernel/perf/perf.bb b/meta/recipes-kernel/perf/perf.bb
index 20968f9..9f9741e 100644
--- a/meta/recipes-kernel/perf/perf.bb
+++ b/meta/recipes-kernel/perf/perf.bb
@@ -157,6 +157,7 @@ PACKAGE_ARCH = "${MACHINE_ARCH}"
 PACKAGES =+ "${PN}-archive ${PN}-tests ${PN}-perl ${PN}-python"
 
 RDEPENDS_${PN} += "elfutils"
+RDEPENDS_${PN} ?= "${PN}-archive ${PN}-tests ${PN}-python ${PN}-perl"
 RDEPENDS_${PN}-archive =+ "bash"
 RDEPENDS_${PN}-python =+ "bash python"
 RDEPENDS_${PN}-perl =+ "bash perl perl-modules"
@@ -166,10 +167,10 @@ RSUGGESTS_${PN} += "${PN}-archive ${PN}-tests ${RSUGGESTS_SCRIPTING}"
 
 FILES_${PN} += "${libexecdir}/perf-core ${exec_prefix}/libexec/perf-core ${libdir}/traceevent"
 FILES_${PN}-dbg += "${libdir}/python*/site-packages/.debug"
-FILES_${PN}-archive = "${libdir}/perf/perf-core/perf-archive"
-FILES_${PN}-tests = "${libdir}/perf/perf-core/tests"
-FILES_${PN}-python = "${libdir}/python*/site-packages ${libdir}/perf/perf-core/scripts/python"
-FILES_${PN}-perl = "${libdir}/perf/perf-core/scripts/perl"
+FILES_${PN}-archive = "${exec_prefix}/libexec/perf-core/perf-archive"
+FILES_${PN}-tests = "${exec_prefix}/libexec/perf-core/tests"
+FILES_${PN}-python = "${libdir}/python*/site-packages ${exec_prefix}/libexec/perf-core/scripts/python"
+FILES_${PN}-perl = "${exec_prefix}/libexec/perf-core/scripts/perl"
 
 
 INHIBIT_PACKAGE_DEBUG_SPLIT="1"
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH][V2] perf: split package
  2014-07-21  2:03 [PATCH][V2] perf: split package Chong Lu
@ 2014-07-21 10:16 ` Jacob Kroon
  2014-07-23 17:34 ` Jacob Kroon
  1 sibling, 0 replies; 4+ messages in thread
From: Jacob Kroon @ 2014-07-21 10:16 UTC (permalink / raw)
  To: Chong Lu; +Cc: openembedded-core

[-- Attachment #1: Type: text/plain, Size: 553 bytes --]

On Mon, Jul 21, 2014 at 4:03 AM, Chong Lu <Chong.Lu@windriver.com> wrote:

> Currently, perf can't split to perf-archive, perf-tests, perf-python and
> perf-perl. All files are included in perf package.
> Change the files paths to make split successfully and add perf package
> RDEPEND on the other four to keep it consistent.
>

Could it be that this is depending on which kernel version is building ?
I'm using Freescales 3.10.17 kernel, and my perf packages do have perl
scripts in perf-perl, python scripts in perl-python, etc.

/Jacob

[-- Attachment #2: Type: text/html, Size: 959 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH][V2] perf: split package
  2014-07-21  2:03 [PATCH][V2] perf: split package Chong Lu
  2014-07-21 10:16 ` Jacob Kroon
@ 2014-07-23 17:34 ` Jacob Kroon
  2014-07-24  1:48   ` Chong Lu
  1 sibling, 1 reply; 4+ messages in thread
From: Jacob Kroon @ 2014-07-23 17:34 UTC (permalink / raw)
  To: Chong Lu; +Cc: openembedded-core

[-- Attachment #1: Type: text/plain, Size: 1076 bytes --]

On Mon, Jul 21, 2014 at 4:03 AM, Chong Lu <Chong.Lu@windriver.com> wrote:

> Currently, perf can't split to perf-archive, perf-tests, perf-python and
> perf-perl. All files are included in perf package.
> Change the files paths to make split successfully and add perf package
> RDEPEND on the other four to keep it consistent.
>
> Signed-off-by: Chong Lu <Chong.Lu@windriver.com>
> ---
>  meta/recipes-kernel/perf/perf.bb | 9 +++++----
>  1 file changed, 5 insertions(+), 4 deletions(-)
>
> diff --git a/meta/recipes-kernel/perf/perf.bb b/meta/recipes-kernel/perf/
> perf.bb
> index 20968f9..9f9741e 100644
> --- a/meta/recipes-kernel/perf/perf.bb
> +++ b/meta/recipes-kernel/perf/perf.bb
> @@ -157,6 +157,7 @@ PACKAGE_ARCH = "${MACHINE_ARCH}"
>  PACKAGES =+ "${PN}-archive ${PN}-tests ${PN}-perl ${PN}-python"
>
>  RDEPENDS_${PN} += "elfutils"
> +RDEPENDS_${PN} ?= "${PN}-archive ${PN}-tests ${PN}-python ${PN}-perl"
>

Is this correct ? First RDEPENDS is appended "elfutils", won't this make it
pointless to add a default value in the line below ?

[-- Attachment #2: Type: text/html, Size: 1752 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH][V2] perf: split package
  2014-07-23 17:34 ` Jacob Kroon
@ 2014-07-24  1:48   ` Chong Lu
  0 siblings, 0 replies; 4+ messages in thread
From: Chong Lu @ 2014-07-24  1:48 UTC (permalink / raw)
  To: Jacob Kroon; +Cc: openembedded-core

[-- Attachment #1: Type: text/plain, Size: 1478 bytes --]


On 07/24/2014 01:34 AM, Jacob Kroon wrote:
> On Mon, Jul 21, 2014 at 4:03 AM, Chong Lu <Chong.Lu@windriver.com 
> <mailto:Chong.Lu@windriver.com>> wrote:
>
>     Currently, perf can't split to perf-archive, perf-tests,
>     perf-python and
>     perf-perl. All files are included in perf package.
>     Change the files paths to make split successfully and add perf package
>     RDEPEND on the other four to keep it consistent.
>
>     Signed-off-by: Chong Lu <Chong.Lu@windriver.com
>     <mailto:Chong.Lu@windriver.com>>
>     ---
>      meta/recipes-kernel/perf/perf.bb <http://perf.bb> | 9 +++++----
>      1 file changed, 5 insertions(+), 4 deletions(-)
>
>     diff --git a/meta/recipes-kernel/perf/perf.bb <http://perf.bb>
>     b/meta/recipes-kernel/perf/perf.bb <http://perf.bb>
>     index 20968f9..9f9741e 100644
>     --- a/meta/recipes-kernel/perf/perf.bb <http://perf.bb>
>     +++ b/meta/recipes-kernel/perf/perf.bb <http://perf.bb>
>     @@ -157,6 +157,7 @@ PACKAGE_ARCH = "${MACHINE_ARCH}"
>      PACKAGES =+ "${PN}-archive ${PN}-tests ${PN}-perl ${PN}-python"
>
>      RDEPENDS_${PN} += "elfutils"
>     +RDEPENDS_${PN} ?= "${PN}-archive ${PN}-tests ${PN}-python ${PN}-perl"
>
>
> Is this correct ? First RDEPENDS is appended "elfutils", won't this 
> make it pointless to add a default value in the line below ?
Please ignore this patch, I just test in kernel 3.14, but maybe it 
depend on kernel version.

Thanks
Chong

[-- Attachment #2: Type: text/html, Size: 3168 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-07-24  1:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-21  2:03 [PATCH][V2] perf: split package Chong Lu
2014-07-21 10:16 ` Jacob Kroon
2014-07-23 17:34 ` Jacob Kroon
2014-07-24  1:48   ` Chong Lu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox