From 19f36c037e1d197e6e88d656fdd2ec3fa046d74e Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Mon, 6 Jan 2025 22:34:29 +0000 Subject: [PATCH] valgrind: New package For debugging shit. Signed-off-by: Michael Tremer --- valgrind/valgrind.nm | 66 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 valgrind/valgrind.nm diff --git a/valgrind/valgrind.nm b/valgrind/valgrind.nm new file mode 100644 index 000000000..c9730761f --- /dev/null +++ b/valgrind/valgrind.nm @@ -0,0 +1,66 @@ +############################################################################### +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # +############################################################################### + +name = valgrind +version = 3.24.0 +release = 1 + +groups = Development/Debuggers +url = https://valgrind.org/ +license = GPL +summary = Tool to help find memory-management problems in programs + +description + Valgrind is an instrumentation framework for building dynamic analysis + tools. There are Valgrind tools that can automatically detect many + memory management and threading bugs, and profile your programs in + detail. You can also use Valgrind to build new tools. +end + +source_dl = https://sourceware.org/pub/valgrind/ +sources = %{thisapp}.tar.bz2 + +build + requires + autoconf + automake + docbook-dsssl + docbook-xsl + docbook-utils + gdb + perl + end + + # valgrind cannot be compiled with stack protection enabled as it + # implements its own functions. + CFLAGS += -fno-stack-protector + + # The linker fails to find memcpy without this flag + LTO_CFLAGS = + + prepare_cmds + ./autogen.sh + end + + configure += \ + --enable-only64bit \ + --enable-lto=yes + + test + make check + end +end + +packages + package %{name} + + package %{name}-devel + template DEVEL + end + + package %{name}-debuginfo + template DEBUGINFO + end +end -- 2.47.3