Date: Thu, 4 Nov 2004 17:10:24 GMT From: Frerich Raabe <raabe@kde.org> To: freebsd-ports-bugs@FreeBSD.org Subject: Re: ports/71832: Default Valgrind suppresion files for different FreeBSD releases Message-ID: <200411041710.iA4HAOaG026219@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/71832; it has been noted by GNATS. From: Frerich Raabe <raabe@kde.org> To: freebsd-gnats-submit@FreeBSD.org Cc: Subject: Re: ports/71832: Default Valgrind suppresion files for different FreeBSD releases Date: Thu, 4 Nov 2004 18:05:27 +0100 --PEIAKu/WMn1b1Hv9 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi, I attached a patch to the devel/valgrind port which is functionally equivalent to the last patch I sent, but does not need any external script such as make-suppressions.sh IMHO it's thus superior to the last patch and supersedes it. - Frerich --PEIAKu/WMn1b1Hv9 Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="valgrind.diff" 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 Fri Oct 15 03:53:23 2004 @@ -68,9 +68,17 @@ ${INSTALL_DATA} ${WRKSRC}/coregrind/vg_unistd.h \ ${PREFIX}/include/valgrind + yes | ${PREFIX}/bin/valgrind --tool=memcheck --gen-suppressions=yes true \ + | ${REINPLACE_CMD} -e 's,.*{$,{,' \ + | ${GREP} -v '^=' \ + > ${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 --PEIAKu/WMn1b1Hv9--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200411041710.iA4HAOaG026219>