* [Buildroot] [PATCH] valgrind: install to staging
@ 2015-07-02 15:52 Vicente Olivert Riera
2015-07-02 20:51 ` Yann E. MORIN
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Vicente Olivert Riera @ 2015-07-02 15:52 UTC (permalink / raw)
To: buildroot
This is necessary for some packages depending on valgrind, such as
libdrm which will fail with an error like this one:
checking for VALGRIND... no
checking whether to enable Valgrind support... configure: error:
Valgrind support required but not present
package/pkg-generic.mk:146: recipe for target
'/br/output/build/libdrm-2.4.62/.stamp_configured' failed
Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
---
package/valgrind/valgrind.mk | 1 +
1 file changed, 1 insertion(+)
diff --git a/package/valgrind/valgrind.mk b/package/valgrind/valgrind.mk
index cfce8da..f8f205e 100644
--- a/package/valgrind/valgrind.mk
+++ b/package/valgrind/valgrind.mk
@@ -11,6 +11,7 @@ VALGRIND_LICENSE = GPLv2 GFDLv1.2
VALGRIND_LICENSE_FILES = COPYING COPYING.DOCS
VALGRIND_CONF_OPTS = --disable-tls
VALGRIND_AUTORECONF = YES
+VALGRIND_INSTALL_STAGING = YES
# On ARM, Valgrind only supports ARMv7, and uses the arch part of the
# host tuple to determine whether it's being built for ARMv7 or
--
2.3.6
^ permalink raw reply related [flat|nested] 6+ messages in thread* [Buildroot] [PATCH] valgrind: install to staging 2015-07-02 15:52 [Buildroot] [PATCH] valgrind: install to staging Vicente Olivert Riera @ 2015-07-02 20:51 ` Yann E. MORIN 2015-07-02 21:42 ` Thomas Petazzoni 2015-07-02 21:47 ` Arnout Vandecappelle 2 siblings, 0 replies; 6+ messages in thread From: Yann E. MORIN @ 2015-07-02 20:51 UTC (permalink / raw) To: buildroot Vicente, All, On 2015-07-02 17:52 +0200, Vicente Olivert Riera spake thusly: > This is necessary for some packages depending on valgrind, such as > libdrm which will fail with an error like this one: > > checking for VALGRIND... no > checking whether to enable Valgrind support... configure: error: > Valgrind support required but not present > package/pkg-generic.mk:146: recipe for target > '/br/output/build/libdrm-2.4.62/.stamp_configured' failed > > Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com> Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Regards, Yann E. MORIN. > --- > package/valgrind/valgrind.mk | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/package/valgrind/valgrind.mk b/package/valgrind/valgrind.mk > index cfce8da..f8f205e 100644 > --- a/package/valgrind/valgrind.mk > +++ b/package/valgrind/valgrind.mk > @@ -11,6 +11,7 @@ VALGRIND_LICENSE = GPLv2 GFDLv1.2 > VALGRIND_LICENSE_FILES = COPYING COPYING.DOCS > VALGRIND_CONF_OPTS = --disable-tls > VALGRIND_AUTORECONF = YES > +VALGRIND_INSTALL_STAGING = YES > > # On ARM, Valgrind only supports ARMv7, and uses the arch part of the > # host tuple to determine whether it's being built for ARMv7 or > -- > 2.3.6 > > _______________________________________________ > buildroot mailing list > buildroot at busybox.net > http://lists.busybox.net/mailman/listinfo/buildroot -- .-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------' ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] [PATCH] valgrind: install to staging 2015-07-02 15:52 [Buildroot] [PATCH] valgrind: install to staging Vicente Olivert Riera 2015-07-02 20:51 ` Yann E. MORIN @ 2015-07-02 21:42 ` Thomas Petazzoni 2015-07-02 21:47 ` Arnout Vandecappelle 2 siblings, 0 replies; 6+ messages in thread From: Thomas Petazzoni @ 2015-07-02 21:42 UTC (permalink / raw) To: buildroot Dear Vicente Olivert Riera, On Thu, 2 Jul 2015 17:52:13 +0200, Vicente Olivert Riera wrote: > This is necessary for some packages depending on valgrind, such as > libdrm which will fail with an error like this one: > > checking for VALGRIND... no > checking whether to enable Valgrind support... configure: error: > Valgrind support required but not present > package/pkg-generic.mk:146: recipe for target > '/br/output/build/libdrm-2.4.62/.stamp_configured' failed > > Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com> > --- > package/valgrind/valgrind.mk | 1 + > 1 file changed, 1 insertion(+) Applied, thanks. Thomas -- Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] [PATCH] valgrind: install to staging 2015-07-02 15:52 [Buildroot] [PATCH] valgrind: install to staging Vicente Olivert Riera 2015-07-02 20:51 ` Yann E. MORIN 2015-07-02 21:42 ` Thomas Petazzoni @ 2015-07-02 21:47 ` Arnout Vandecappelle 2015-07-03 7:11 ` Peter Korsgaard 2 siblings, 1 reply; 6+ messages in thread From: Arnout Vandecappelle @ 2015-07-02 21:47 UTC (permalink / raw) To: buildroot On 07/02/15 17:52, Vicente Olivert Riera wrote: > This is necessary for some packages depending on valgrind, such as > libdrm which will fail with an error like this one: > > checking for VALGRIND... no > checking whether to enable Valgrind support... configure: error: > Valgrind support required but not present > package/pkg-generic.mk:146: recipe for target > '/br/output/build/libdrm-2.4.62/.stamp_configured' failed > > Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com> > --- > package/valgrind/valgrind.mk | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/package/valgrind/valgrind.mk b/package/valgrind/valgrind.mk > index cfce8da..f8f205e 100644 > --- a/package/valgrind/valgrind.mk > +++ b/package/valgrind/valgrind.mk > @@ -11,6 +11,7 @@ VALGRIND_LICENSE = GPLv2 GFDLv1.2 > VALGRIND_LICENSE_FILES = COPYING COPYING.DOCS > VALGRIND_CONF_OPTS = --disable-tls > VALGRIND_AUTORECONF = YES > +VALGRIND_INSTALL_STAGING = YES I wonder, are there going to be a lot of packages that will autodetect valgrind presence and will now start linking with it? Regards, Arnout > > # On ARM, Valgrind only supports ARMv7, and uses the arch part of the > # host tuple to determine whether it's being built for ARMv7 or > -- Arnout Vandecappelle arnout at mind be Senior Embedded Software Architect +32-16-286500 Essensium/Mind http://www.mind.be G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle GPG fingerprint: 7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] [PATCH] valgrind: install to staging 2015-07-02 21:47 ` Arnout Vandecappelle @ 2015-07-03 7:11 ` Peter Korsgaard 2015-07-03 7:26 ` Arnout Vandecappelle 0 siblings, 1 reply; 6+ messages in thread From: Peter Korsgaard @ 2015-07-03 7:11 UTC (permalink / raw) To: buildroot >>>>> "Arnout" == Arnout Vandecappelle <arnout@mind.be> writes: Hi, >> diff --git a/package/valgrind/valgrind.mk b/package/valgrind/valgrind.mk >> index cfce8da..f8f205e 100644 >> --- a/package/valgrind/valgrind.mk >> +++ b/package/valgrind/valgrind.mk >> @@ -11,6 +11,7 @@ VALGRIND_LICENSE = GPLv2 GFDLv1.2 >> VALGRIND_LICENSE_FILES = COPYING COPYING.DOCS >> VALGRIND_CONF_OPTS = --disable-tls >> VALGRIND_AUTORECONF = YES >> +VALGRIND_INSTALL_STAGING = YES > I wonder, are there going to be a lot of packages that will autodetect valgrind > presence and will now start linking with it? Do programs need to link against valgrind? I thought it only provided a header with some magic macros that somehow would direct valgrind to behave differently, but didn't do anything when not running through valgrind? In any case, if the user has enabled valgrind, then he/she presumably wants to enable valgrind support in all applicable packages, but we indeed will need to add valgrind as an optional dependency of those. I don't know how common it is to have explicit valgrind support though, I guess only a few packages have it. -- Bye, Peter Korsgaard ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] [PATCH] valgrind: install to staging 2015-07-03 7:11 ` Peter Korsgaard @ 2015-07-03 7:26 ` Arnout Vandecappelle 0 siblings, 0 replies; 6+ messages in thread From: Arnout Vandecappelle @ 2015-07-03 7:26 UTC (permalink / raw) To: buildroot On 07/03/15 09:11, Peter Korsgaard wrote: >>>>>> "Arnout" == Arnout Vandecappelle <arnout@mind.be> writes: > > Hi, > >>> diff --git a/package/valgrind/valgrind.mk b/package/valgrind/valgrind.mk > >> index cfce8da..f8f205e 100644 > >> --- a/package/valgrind/valgrind.mk > >> +++ b/package/valgrind/valgrind.mk > >> @@ -11,6 +11,7 @@ VALGRIND_LICENSE = GPLv2 GFDLv1.2 > >> VALGRIND_LICENSE_FILES = COPYING COPYING.DOCS > >> VALGRIND_CONF_OPTS = --disable-tls > >> VALGRIND_AUTORECONF = YES > >> +VALGRIND_INSTALL_STAGING = YES > > > I wonder, are there going to be a lot of packages that will autodetect valgrind > > presence and will now start linking with it? > > Do programs need to link against valgrind? I thought it only provided a > header with some magic macros that somehow would direct valgrind to > behave differently, but didn't do anything when not running through > valgrind? I'm not altogether sure, but I thought there were extra functions you could call when running through valgrind (these functions are in fact inline and detect whether you're running under valgrind or not). But you can only use these functions when valgrind headers are available, so a program that wants to use them will be slightly different when valgrind headers are available. The problem I'm worried about is reproducible builds, of course. When valgrind happens to be built earlier than your program, it will be different than when the program is built first. Of course, Fabio's per-package staging patch series (which I really should review...) will fix all that! > In any case, if the user has enabled valgrind, then he/she presumably > wants to enable valgrind support in all applicable packages, but we > indeed will need to add valgrind as an optional dependency of those. > > I don't know how common it is to have explicit valgrind support though, > I guess only a few packages have it. Probably, yes. But one or two, or a few dozen? That's a big difference... Perhaps someone who has all packages extracted could grep for valgrind in them? Regards, Arnout -- Arnout Vandecappelle arnout at mind be Senior Embedded Software Architect +32-16-286500 Essensium/Mind http://www.mind.be G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle GPG fingerprint: 7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2015-07-03 7:26 UTC | newest] Thread overview: 6+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2015-07-02 15:52 [Buildroot] [PATCH] valgrind: install to staging Vicente Olivert Riera 2015-07-02 20:51 ` Yann E. MORIN 2015-07-02 21:42 ` Thomas Petazzoni 2015-07-02 21:47 ` Arnout Vandecappelle 2015-07-03 7:11 ` Peter Korsgaard 2015-07-03 7:26 ` Arnout Vandecappelle
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox