* [PATCH oe-core] valgrind: add powerpc to the compatible host and add eglibc-dbg in rdepends
@ 2011-12-28 6:55 b19537
2011-12-28 9:14 ` Paul Eggleton
0 siblings, 1 reply; 16+ messages in thread
From: b19537 @ 2011-12-28 6:55 UTC (permalink / raw)
To: openembedded-core
From: Zhenhua Luo <b19537@freescale.com>
1. add powerpc into the compatible host list
2. valgrind requires the non-stripped eglibc libraries, so add eglibc-dbg
into RDEPENDS
Signed-off-by: Zhenhua Luo <b19537@freescale.com>
---
meta/recipes-devtools/valgrind/valgrind_3.6.1.bb | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/meta/recipes-devtools/valgrind/valgrind_3.6.1.bb b/meta/recipes-devtools/valgrind/valgrind_3.6.1.bb
index 021caa8..f3cf5b2 100644
--- a/meta/recipes-devtools/valgrind/valgrind_3.6.1.bb
+++ b/meta/recipes-devtools/valgrind/valgrind_3.6.1.bb
@@ -7,7 +7,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=c46082167a314d785d012a244748d803 \
file://include/valgrind.h;beginline=1;endline=56;md5=13a71cedba99112334d8596162aec37e \
file://COPYING.DOCS;md5=8fdeb5abdb235a08e76835f8f3260215"
DEPENDS = "virtual/libx11"
-PR = "r1"
+PR = "r2"
SRC_URI = "http://www.valgrind.org/downloads/valgrind-${PV}.tar.bz2 \
file://fix_issue_caused_by_ccache.patch \
@@ -17,7 +17,7 @@ SRC_URI = "http://www.valgrind.org/downloads/valgrind-${PV}.tar.bz2 \
SRC_URI[md5sum] = "2c3aa122498baecc9d69194057ca88f5"
SRC_URI[sha256sum] = "49bdcc4fbcf060049b5f0dcfd8a187a6e90e0b0e57309f633b64e44430726a0e"
-COMPATIBLE_HOST = '(i.86|x86_64).*-linux'
+COMPATIBLE_HOST = '(i.86|x86_64|powerpc|ppc|powerpc64|ppc64).*-linux'
inherit autotools
@@ -26,3 +26,5 @@ EXTRA_OEMAKE = "-w"
PARALLEL_MAKE = ""
FILES_${PN}-dbg += "${libdir}/${PN}/*/.debug/*"
+
+RDEPENDS += "eglibc-dbg"
--
1.7.0.4
^ permalink raw reply related [flat|nested] 16+ messages in thread* Re: [PATCH oe-core] valgrind: add powerpc to the compatible host and add eglibc-dbg in rdepends
2011-12-28 6:55 [PATCH oe-core] valgrind: add powerpc to the compatible host and add eglibc-dbg in rdepends b19537
@ 2011-12-28 9:14 ` Paul Eggleton
2011-12-28 10:01 ` Luo Zhenhua-B19537
2011-12-28 20:20 ` Phil Blundell
0 siblings, 2 replies; 16+ messages in thread
From: Paul Eggleton @ 2011-12-28 9:14 UTC (permalink / raw)
To: openembedded-core
On Wednesday 28 December 2011 14:55:08 b19537@freescale.com wrote:
> +RDEPENDS += "eglibc-dbg"
So I might be completely off-base here having never tried it, but what if
you're using uclibc?
Cheers,
Paul
--
Paul Eggleton
Intel Open Source Technology Centre
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PATCH oe-core] valgrind: add powerpc to the compatible host and add eglibc-dbg in rdepends
2011-12-28 9:14 ` Paul Eggleton
@ 2011-12-28 10:01 ` Luo Zhenhua-B19537
2011-12-28 10:18 ` Paul Eggleton
2011-12-28 20:20 ` Phil Blundell
1 sibling, 1 reply; 16+ messages in thread
From: Luo Zhenhua-B19537 @ 2011-12-28 10:01 UTC (permalink / raw)
To: Paul Eggleton, openembedded-core@lists.openembedded.org
Cc: McClintock Matthew-B29882, Garg Vakul-B16394
Hello Paul,
May I know what's the concern with eglibc instead of uclibc?
Best Regards,
Zhenhua
> -----Original Message-----
> From: Paul Eggleton [mailto:paul.eggleton@linux.intel.com]
> Sent: Wednesday, December 28, 2011 5:15 PM
> To: openembedded-core@lists.openembedded.org
> Cc: Luo Zhenhua-B19537
> Subject: Re: [OE-core] [PATCH oe-core] valgrind: add powerpc to the compatible
> host and add eglibc-dbg in rdepends
>
> On Wednesday 28 December 2011 14:55:08 b19537@freescale.com wrote:
> > +RDEPENDS += "eglibc-dbg"
>
> So I might be completely off-base here having never tried it, but what if you're
> using uclibc?
>
> Cheers,
> Paul
>
> --
>
> Paul Eggleton
> Intel Open Source Technology Centre
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PATCH oe-core] valgrind: add powerpc to the compatible host and add eglibc-dbg in rdepends
2011-12-28 10:01 ` Luo Zhenhua-B19537
@ 2011-12-28 10:18 ` Paul Eggleton
2011-12-28 10:32 ` Koen Kooi
0 siblings, 1 reply; 16+ messages in thread
From: Paul Eggleton @ 2011-12-28 10:18 UTC (permalink / raw)
To: openembedded-core
Cc: McClintock Matthew-B29882, Garg Vakul-B16394, Luo Zhenhua-B19537
On Wednesday 28 December 2011 10:01:13 Luo Zhenhua-B19537 wrote:
> May I know what's the concern with eglibc instead of uclibc?
So my concern is, if you add a runtime dependency on eglibc-dbg to valgrind
and you've selected uclibc instead, it will force installation of eglibc when
you install valgrind (not to mention building it when you build valgrind);
this is almost certainly not what you want.
If a dependency on the libc debug packages is really needed you could do
something this instead:
RRECOMMENDS_${PN} += "${TCLIBC}-dbg"
(I suggest using RRECOMMENDS here rather than RDEPENDS in case here is no such
debug package for the user's selected libc.)
Cheers,
Paul
--
Paul Eggleton
Intel Open Source Technology Centre
^ permalink raw reply [flat|nested] 16+ messages in thread* Re: [PATCH oe-core] valgrind: add powerpc to the compatible host and add eglibc-dbg in rdepends
2011-12-28 10:18 ` Paul Eggleton
@ 2011-12-28 10:32 ` Koen Kooi
2011-12-28 12:15 ` Martin Jansa
0 siblings, 1 reply; 16+ messages in thread
From: Koen Kooi @ 2011-12-28 10:32 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
Cc: McClintock Matthew-B29882, Garg Vakul-B16394, Luo Zhenhua-B19537
[-- Attachment #1: Type: text/plain, Size: 802 bytes --]
Op 28 dec. 2011, om 11:18 heeft Paul Eggleton het volgende geschreven:
> On Wednesday 28 December 2011 10:01:13 Luo Zhenhua-B19537 wrote:
>> May I know what's the concern with eglibc instead of uclibc?
>
> So my concern is, if you add a runtime dependency on eglibc-dbg to valgrind
> and you've selected uclibc instead, it will force installation of eglibc when
> you install valgrind (not to mention building it when you build valgrind);
> this is almost certainly not what you want.
>
> If a dependency on the libc debug packages is really needed you could do
> something this instead:
>
> RRECOMMENDS_${PN} += "${TCLIBC}-dbg"
Or:
RECOMMENDS_libc-glibc = "glibc-dbg"
I'm not sure which one is better, but I wanted to point out the libc overrides :)
regards,
Koen
[-- Attachment #2: Message signed with OpenPGP using GPGMail --]
[-- Type: application/pgp-signature, Size: 169 bytes --]
^ permalink raw reply [flat|nested] 16+ messages in thread* Re: [PATCH oe-core] valgrind: add powerpc to the compatible host and add eglibc-dbg in rdepends
2011-12-28 10:32 ` Koen Kooi
@ 2011-12-28 12:15 ` Martin Jansa
2011-12-28 19:16 ` McClintock Matthew-B29882
0 siblings, 1 reply; 16+ messages in thread
From: Martin Jansa @ 2011-12-28 12:15 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
Cc: McClintock Matthew-B29882, Garg Vakul-B16394, Luo Zhenhua-B19537
[-- Attachment #1: Type: text/plain, Size: 1272 bytes --]
On Wed, Dec 28, 2011 at 11:32:13AM +0100, Koen Kooi wrote:
>
> Op 28 dec. 2011, om 11:18 heeft Paul Eggleton het volgende geschreven:
>
> > On Wednesday 28 December 2011 10:01:13 Luo Zhenhua-B19537 wrote:
> >> May I know what's the concern with eglibc instead of uclibc?
> >
> > So my concern is, if you add a runtime dependency on eglibc-dbg to valgrind
> > and you've selected uclibc instead, it will force installation of eglibc when
> > you install valgrind (not to mention building it when you build valgrind);
> > this is almost certainly not what you want.
> >
> > If a dependency on the libc debug packages is really needed you could do
> > something this instead:
> >
> > RRECOMMENDS_${PN} += "${TCLIBC}-dbg"
>
> Or:
>
> RECOMMENDS_libc-glibc = "glibc-dbg"
with extra R and PN, right?
RRECOMMENDS_${PN}_libc-glibc = "glibc-dbg"
Regards,
> I'm not sure which one is better, but I wanted to point out the libc overrides :)
>
> regards,
>
> Koen
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
--
Martin 'JaMa' Jansa jabber: Martin.Jansa@gmail.com
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 205 bytes --]
^ permalink raw reply [flat|nested] 16+ messages in thread* Re: [PATCH oe-core] valgrind: add powerpc to the compatible host and add eglibc-dbg in rdepends
2011-12-28 12:15 ` Martin Jansa
@ 2011-12-28 19:16 ` McClintock Matthew-B29882
2011-12-29 2:20 ` Luo Zhenhua-B19537
0 siblings, 1 reply; 16+ messages in thread
From: McClintock Matthew-B29882 @ 2011-12-28 19:16 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
Cc: McClintock Matthew-B29882, Garg Vakul-B16394, Luo Zhenhua-B19537
On Wed, Dec 28, 2011 at 6:15 AM, Martin Jansa <martin.jansa@gmail.com> wrote:
>> > If a dependency on the libc debug packages is really needed you could do
>> > something this instead:
>> >
>> > RRECOMMENDS_${PN} += "${TCLIBC}-dbg"
This seems better since it include uclibc if that was selected...
>>
>> Or:
>>
>> RECOMMENDS_libc-glibc = "glibc-dbg"
>
> with extra R and PN, right?
> RRECOMMENDS_${PN}_libc-glibc = "glibc-dbg"
This is only provided by eglibc now, so it leaves out uclibc... I think...
-M
^ permalink raw reply [flat|nested] 16+ messages in thread* Re: [PATCH oe-core] valgrind: add powerpc to the compatible host and add eglibc-dbg in rdepends
2011-12-28 19:16 ` McClintock Matthew-B29882
@ 2011-12-29 2:20 ` Luo Zhenhua-B19537
0 siblings, 0 replies; 16+ messages in thread
From: Luo Zhenhua-B19537 @ 2011-12-29 2:20 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
Cc: McClintock Matthew-B29882, Garg Vakul-B16394
Thanks for the good suggestions, a new version will be submitted.
Best Regards,
Zhenhua
> -----Original Message-----
> From: McClintock Matthew-B29882
> Sent: Thursday, December 29, 2011 3:39 AM
> To: Patches and discussions about the oe-core layer
> Cc: McClintock Matthew-B29882; Garg Vakul-B16394; Luo Zhenhua-B19537
> Subject: Re: [OE-core] [PATCH oe-core] valgrind: add powerpc to the compatible
> host and add eglibc-dbg in rdepends
>
> On Wed, Dec 28, 2011 at 6:15 AM, Martin Jansa <martin.jansa@gmail.com> wrote:
> >> > If a dependency on the libc debug packages is really needed you
> >> > could do something this instead:
> >> >
> >> > RRECOMMENDS_${PN} += "${TCLIBC}-dbg"
>
> This seems better since it include uclibc if that was selected...
>
> >>
> >> Or:
> >>
> >> RECOMMENDS_libc-glibc = "glibc-dbg"
> >
> > with extra R and PN, right?
> > RRECOMMENDS_${PN}_libc-glibc = "glibc-dbg"
>
> This is only provided by eglibc now, so it leaves out uclibc... I think...
>
>
> -M
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PATCH oe-core] valgrind: add powerpc to the compatible host and add eglibc-dbg in rdepends
2011-12-28 9:14 ` Paul Eggleton
2011-12-28 10:01 ` Luo Zhenhua-B19537
@ 2011-12-28 20:20 ` Phil Blundell
2011-12-29 2:19 ` Luo Zhenhua-B19537
1 sibling, 1 reply; 16+ messages in thread
From: Phil Blundell @ 2011-12-28 20:20 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
On Wed, 2011-12-28 at 09:14 +0000, Paul Eggleton wrote:
> On Wednesday 28 December 2011 14:55:08 b19537@freescale.com wrote:
> > +RDEPENDS += "eglibc-dbg"
>
> So I might be completely off-base here having never tried it, but what if
> you're using uclibc?
I don't really understand why valgrind is doing that at all. Aside from
the missing _${PN} thing (which I think is a QA warning, which in turn
makes me wonder how well tested this really is) it seems as though the
libc debug symbols should be Suggests at most. I don't think it's
reasonable to drag them in as a hard dependency for valgrind.
p.
^ permalink raw reply [flat|nested] 16+ messages in thread* Re: [PATCH oe-core] valgrind: add powerpc to the compatible host and add eglibc-dbg in rdepends
2011-12-28 20:20 ` Phil Blundell
@ 2011-12-29 2:19 ` Luo Zhenhua-B19537
2012-01-03 11:44 ` Phil Blundell
0 siblings, 1 reply; 16+ messages in thread
From: Luo Zhenhua-B19537 @ 2011-12-29 2:19 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
Cc: McClintock Matthew-B29882, Garg Vakul-B16394
> -----Original Message-----
> From: openembedded-core-bounces@lists.openembedded.org [mailto:openembedded-
> core-bounces@lists.openembedded.org] On Behalf Of Phil Blundell
> Sent: Thursday, December 29, 2011 4:20 AM
>
> On Wed, 2011-12-28 at 09:14 +0000, Paul Eggleton wrote:
> > On Wednesday 28 December 2011 14:55:08 b19537@freescale.com wrote:
> > > +RDEPENDS += "eglibc-dbg"
> >
> > So I might be completely off-base here having never tried it, but what
> > if you're using uclibc?
>
> I don't really understand why valgrind is doing that at all.
[Luo Zhenhua-B19537] The reason is that valgrind requires non-stripped libraries of glibc during running.
Best Regards,
Zhenhua
^ permalink raw reply [flat|nested] 16+ messages in thread
end of thread, other threads:[~2012-01-04 15:45 UTC | newest]
Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-28 6:55 [PATCH oe-core] valgrind: add powerpc to the compatible host and add eglibc-dbg in rdepends b19537
2011-12-28 9:14 ` Paul Eggleton
2011-12-28 10:01 ` Luo Zhenhua-B19537
2011-12-28 10:18 ` Paul Eggleton
2011-12-28 10:32 ` Koen Kooi
2011-12-28 12:15 ` Martin Jansa
2011-12-28 19:16 ` McClintock Matthew-B29882
2011-12-29 2:20 ` Luo Zhenhua-B19537
2011-12-28 20:20 ` Phil Blundell
2011-12-29 2:19 ` Luo Zhenhua-B19537
2012-01-03 11:44 ` Phil Blundell
[not found] ` <065BBB7616BCE543832A2EF096986B94018AA0@039-SN2MPN1-011.039d.mgd.msft.net>
2012-01-04 4:07 ` McClintock Matthew-B29882
[not found] ` <065BBB7616BCE543832A2EF096986B94018AC3@039-SN2MPN1-011.039d.mgd.msft.net>
2012-01-04 4:26 ` McClintock Matthew-B29882
[not found] ` <065BBB7616BCE543832A2EF096986B94018ADB@039-SN2MPN1-011.039d.mgd.msft.net>
2012-01-04 4:39 ` McClintock Matthew-B29882
2012-01-04 5:25 ` Khem Raj
2012-01-04 15:38 ` Richard Purdie
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox