FreeBSD Bugzilla – Attachment 46843 Details for
Bug 71832
Default Valgrind suppresion files for different FreeBSD releases
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
devel-valgrind.diff
devel-valgrind.diff (text/x-diff; charset="iso-8859-1"), 2.51 KB, created by
Frerich Raabe
on 2004-09-21 02:59:41 UTC
(
hide
)
Description:
devel-valgrind.diff
Filename:
MIME Type:
Creator:
Frerich Raabe
Created:
2004-09-21 02:59:41 UTC
Size:
2.51 KB
patch
obsolete
>diff -ruN /usr/ports/devel/valgrind/Makefile devel/valgrind/Makefile >--- /usr/ports/devel/valgrind/Makefile Thu Sep 2 07:15:19 2004 >+++ devel/valgrind/Makefile Tue Sep 21 03:54:57 2004 >@@ -68,9 +68,14 @@ > ${INSTALL_DATA} ${WRKSRC}/coregrind/vg_unistd.h \ > ${PREFIX}/include/valgrind > >+ ${SCRIPTDIR}/make-suppressions.sh ${PREFIX}/bin/valgrind \ >+ > ${WRKDIR}/freebsd-default.supp >+ ${INSTALL_DATA} ${WRKDIR}/freebsd-default.supp \ >+ ${PREFIX}/etc >+ > @${ECHO} "" > @${ECHO} "" >- @${CAT} ${PKGMESSAGE} >+ @${CAT} ${PKGMESSAGE} | ${SED} -e 's,%%PREFIX%%,${PREFIX},g' > @${ECHO} "" > > .include <bsd.port.post.mk> >diff -ruN /usr/ports/devel/valgrind/pkg-message devel/valgrind/pkg-message >--- /usr/ports/devel/valgrind/pkg-message Sun Jul 25 19:01:59 2004 >+++ devel/valgrind/pkg-message Tue Sep 21 03:56:06 2004 >@@ -7,3 +7,14 @@ > > As a workaround you can use the devel/valgrind-snapshot port, which is > based on a more recent snapshot. >+ >+Note2: A sample suppression file was installed to \ >+ %%PREFIX%%/etc/freebsd-default.supp. It makes Valgrind hide warnings >+ caused by flawed code sequences - if any - in your system libraries, >+ so that you can concentrate on the warnings issued for your own code. >+ >+ To use these suppressions, either pass >+ --suppressions=%%PREFIX%%/etc/freebsd-default.supp >+ to Valgrind on the commandline, or add that line to your >+ ~/.valgrindrc file, which is the recommended way. >+ >diff -ruN /usr/ports/devel/valgrind/pkg-plist devel/valgrind/pkg-plist >--- /usr/ports/devel/valgrind/pkg-plist Wed Sep 1 18:27:20 2004 >+++ devel/valgrind/pkg-plist Tue Sep 21 03:39:28 2004 >@@ -36,6 +36,7 @@ > lib/valgrind/xfree-3.supp > lib/valgrind/xfree-4.supp > libdata/pkgconfig/valgrind.pc >+etc/freebsd-default.supp > %%PORTDOCS%%%%DOCSDIR%%/ac_main.html > %%PORTDOCS%%%%DOCSDIR%%/cc_main.html > %%PORTDOCS%%%%DOCSDIR%%/cg_main.html >diff -ruN /usr/ports/devel/valgrind/scripts/make-suppressions.sh devel/valgrind/scripts/make-suppressions.sh >--- /usr/ports/devel/valgrind/scripts/make-suppressions.sh Thu Jan 1 01:00:00 1970 >+++ devel/valgrind/scripts/make-suppressions.sh Tue Sep 21 03:40:24 2004 >@@ -0,0 +1,18 @@ >+#!/bin/sh >+myself=`basename $0` >+sandbox=`mktemp -d -q /tmp/$myself.XXXXXX` >+if [ $? -ne 0 ]; then >+ echo "$0: Cannot generate temporary directory." >+ exit 1 >+fi >+ >+curdir=$PWD >+ >+cd $sandbox >+echo 'int main(){}' > mini.c >+cc -o mini mini.c >+yes | $1 --tool=memcheck --gen-suppressions=yes ./mini > supp 2>&1 >+perl -p -e 's,.*{$,{,' supp | grep -v '^=' >+ >+cd $curdir >+rm -rf $sandbox
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 71832
: 46843 |
46844