valgrind-if-available-3.18.1-1/0000775000000000000000000000000014716645201012760 5ustar valgrind-if-available-3.18.1-1/debian/0000775000000000000000000000000014716645201014202 5ustar valgrind-if-available-3.18.1-1/debian/changelog0000664000000000000000000000154714716645201016063 0ustar valgrind-if-available (3.18.1-1-1ubuntu1) plucky; urgency=medium * Do not build for ppc64el as it produces false "Invalid read" reports if 32KB buffers are located on the stack (LP: #2088460) -- Julian Andres Klode Mon, 18 Nov 2024 15:09:05 +0100 valgrind-if-available (3.18.1-1-1) unstable; urgency=medium * Upgrade format from "3.0 (quilt)" to 1.0, allowing to properly refer to version of valgrind this package was tested with. * Duplicate autopkgtests during build, as some archs don't have any CI. * Drop mipsel as valgrind disagrees about blah blah baseline Loongson. -- Adam Borowski Fri, 17 Jun 2022 10:41:43 +0200 valgrind-if-available (3.18.1) unstable; urgency=medium * Initial release (Closes: #1005324, #928184) -- Adam Borowski Mon, 14 Feb 2022 13:14:26 +0100 valgrind-if-available-3.18.1-1/debian/control0000664000000000000000000000166214716645201015612 0ustar Source: valgrind-if-available Section: devel Priority: optional Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Adam Borowski Build-Depends: debhelper-compat (=13), valgrind [amd64 arm64 i386 mips64el s390x powerpc ppc64] Standards-Version: 4.6.0 Rules-Requires-Root: no Vcs-Git: https://salsa.debian.org/debian/valgrind-if-available.git Vcs-Browser: https://salsa.debian.org/debian/valgrind-if-available Package: valgrind-if-available Architecture: any Depends: ${misc:Depends}, valgrind [amd64 arm64 i386 mips64el s390x powerpc ppc64] Description: dependency package to pull in Valgrind if it's available This metapackage installs Valgrind on architectures where it is available. As the list of archs where Valgrind works changes quite often, explicitly listing it as a [Build-]Depend is cumbersome and prone to being outdated. Instead, you may use this metapackage. valgrind-if-available-3.18.1-1/debian/copyright0000664000000000000000000000162414716645201016140 0ustar Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Files: * Copyright: 2022 Adam Borowski License: GPL-2+ This package is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. . This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this program. If not, see . On Debian systems, the complete text of the GNU General Public License version 2 can be found in "/usr/share/common-licenses/GPL-2". valgrind-if-available-3.18.1-1/debian/rules0000775000000000000000000000015114716645201015257 0ustar #!/usr/bin/make -f %: dh $@ override-dh_auto_test: cd debian/tests && AUTOPKGTEST_TMP=/tmp ./threaded valgrind-if-available-3.18.1-1/debian/source/0000775000000000000000000000000014716645201015502 5ustar valgrind-if-available-3.18.1-1/debian/source/format0000664000000000000000000000000414716645201016707 0ustar 1.0 valgrind-if-available-3.18.1-1/debian/source/lintian-overrides0000664000000000000000000000010114716645201021053 0ustar valgrind-if-available source: malformed-debian-changelog-version valgrind-if-available-3.18.1-1/debian/tests/0000775000000000000000000000000014716645201015344 5ustar valgrind-if-available-3.18.1-1/debian/tests/control0000664000000000000000000000010514716645201016743 0ustar Tests: threaded Depends: @, gcc, libc-dev Restrictions: allow-stderr valgrind-if-available-3.18.1-1/debian/tests/threaded0000775000000000000000000000060114716645201017047 0ustar #!/bin/sh set -e if ! which valgrind >/dev/null; then printf '\e[36mNo valgrind, no fail.\e[0m\n' exit 0 fi cc -Wall -O3 -g -o "$AUTOPKGTEST_TMP"/⁊ debian/tests/threaded.c -pthread # ... and helgrind is currently broken, joy! for TOOL in memcheck drd helgrind; do printf '\e[36mChecking \e[96m%s\e[0m\n' "$TOOL" valgrind --tool="$TOOL" "$AUTOPKGTEST_TMP"/⁊ done valgrind-if-available-3.18.1-1/debian/tests/threaded.c0000664000000000000000000000060514716645201017271 0ustar #include #include #include #define NTHREADS 2 static void * worker(void *arg) { printf("Thread %ld\n", (intptr_t)arg); return NULL; } int main() { pthread_t th[NTHREADS]; for (int i = 0; i < NTHREADS; i++) pthread_create(&th[i], NULL, worker, (void *)(intptr_t)i); for (int i = 0; i < NTHREADS; i++) pthread_join(th[i], NULL); return 0; }