Control: tags -1 +patch

Here's a patch to implement this metapackage.

It has to be arch:any as dpkg-dev resolves architectures at package build
time rather than during install.

I've filed it as
https://salsa.debian.org/debian/valgrind/-/merge_requests/2
if you prefer that over a patch.


Meow!
-- 
⢀⣴⠾⠻⢶⣦⠀ .--[ Makefile ]
⣾⠁⢠⠒⠀⣿⡁ # beware of races
⢿⡄⠘⠷⠚⠋⠀ all: pillage burn
⠈⠳⣄⠀⠀⠀⠀ `----
>From 8818a51733b07db7732ec208992aa79e5618fd7a Mon Sep 17 00:00:00 2001
From: Adam Borowski <kilob...@angband.pl>
Date: Tue, 29 Dec 2020 01:20:32 +0100
Subject: [PATCH] Add a metapackage: valgrind-if-available

---
 debian/control | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/debian/control b/debian/control
index c2672040..c515e266 100644
--- a/debian/control
+++ b/debian/control
@@ -68,3 +68,12 @@ Description: instrumentation framework for building dynamic analysis tools (MPI
  .
  This package provides the "mpiwrap" library for debugging distributed-memory
  applications which use the MPI message passing standard.
+
+Package: valgrind-if-available
+Architecture: any
+Depends: valgrind [amd64 arm64 armhf i386 mips mipsel mips64 mips64el powerpc ppc64 ppc64el s390x x32]
+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, explicitely
+ listing it as a [Build-]Depend is cumbersome and prone to being outdated.
+ Instead, you may use this metapackage.
-- 
2.30.0.rc2

Reply via email to