valgrind-if-available-3.18.1-1/0000755000000000000000000000000014253037107012752 5ustar valgrind-if-available-3.18.1-1/debian/0000755000000000000000000000000014253037107014174 5ustar valgrind-if-available-3.18.1-1/debian/changelog0000644000000000000000000000112014253037107016040 0ustar 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/control0000644000000000000000000000157214253036627015612 0ustar Source: valgrind-if-available Section: devel Priority: optional Maintainer: Adam Borowski Build-Depends: debhelper-compat (=13), valgrind [amd64 arm64 armhf i386 mips64el ppc64el 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 armhf i386 mips64el ppc64el 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/copyright0000644000000000000000000000162414202443060016123 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/rules0000755000000000000000000000015114253034616015253 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/0000755000000000000000000000000014253037107015474 5ustar valgrind-if-available-3.18.1-1/debian/source/format0000644000000000000000000000000414253035425016702 0ustar 1.0 valgrind-if-available-3.18.1-1/debian/source/lintian-overrides0000644000000000000000000000010114253036513021045 0ustar valgrind-if-available source: malformed-debian-changelog-version valgrind-if-available-3.18.1-1/debian/tests/0000755000000000000000000000000014202451356015336 5ustar valgrind-if-available-3.18.1-1/debian/tests/control0000644000000000000000000000010514202446243016734 0ustar Tests: threaded Depends: @, gcc, libc-dev Restrictions: allow-stderr valgrind-if-available-3.18.1-1/debian/tests/threaded0000755000000000000000000000060114202451354017037 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.c0000644000000000000000000000060514202444421017256 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; }