Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 481120

Summary: x11-libs/libdrm: automagic dependency on dev-util/valgrind
Product: Gentoo Linux Reporter: Franz Trischberger <franz.trischberger>
Component: [OLD] LibraryAssignee: Gentoo X packagers <x11>
Status: RESOLVED FIXED    
Severity: normal CC: siarhei.siamashka
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Franz Trischberger 2013-08-15 06:48:47 UTC
emerge valgrind && emerge -1 libdrm
[snip]
checking for native atomic primitives... Intel
checking for PCIACCESS... yes
checking for VALGRIND... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
[snap]

I do not exactly know what this does. (I think it will enable suppressions for certain calls to not trigger false positives, e.g. "hidden" frees etc.) But I think there should be a USE-Flag to toggle the DEP.
A quick grep in my build logs showed quite some hits:
vim-core, notmuch, udev, mpd, gst-plugins-ffmpeg, systemd, xapian, ruby. Also gcc checks for valgrind, but I do not have a gcc-build.log from after I first installed valgrind, so those checks return "no".

Probably a TRACKER bug would be great to find all those automagics. And add a global valgrind USE-Flag.
Comment 1 Matt Turner gentoo-dev 2013-08-19 17:51:52 UTC
(In reply to Franz Fellner from comment #0)
> I do not exactly know what this does. (I think it will enable suppressions
> for certain calls to not trigger false positives, e.g. "hidden" frees etc.)

This is right.

> But I think there should be a USE-Flag to toggle the DEP.

Does anyone know how the emitted suppressions work?
Comment 2 SpanKY gentoo-dev 2015-03-20 08:12:40 UTC
should be all set now in the tree; thanks for the report!

Commit message: Add USE=valgrind to control inclusion of memory hints
http://sources.gentoo.org/x11-libs/libdrm/libdrm-2.4.59-r1.ebuild?rev=1.1
http://sources.gentoo.org/x11-libs/libdrm/metadata.xml?r1=1.2&r2=1.3