debian/control: add iproute2 to build dependencies

Test scripts like qa/tasks/cephfs/mount.py expect the ip command to be
available in the container environment. Without it, tests fail with:

```
  /bin/bash: line 1: ip: command not found

  File "/ceph/qa/tasks/cephfs/mount.py", line 96, in cleanup_stale_netnses_and_bridge
    p = remote.run(args=['ip', 'netns', 'list'],
  ...
  teuthology.exceptions.CommandFailedError: Command failed with status 127: 'ip netns list'
```

Add iproute2 to the debian package build dependencies when the
<pkg.ceph.check> build profile is enabled. This ensures the package is
available during container-based builds, since buildcontainer-setup.sh
→ script/run-make.sh → install-deps.sh → debian/control → generated
dependency package chain respects build profiles configured via
`FOR_MAKE_CHECK` and `WITH_CRIMSON` environment variables set in
Dockerfile.build.

Signed-off-by: Kefu Chai <k.chai@proxmox.com>
(cherry picked from commit 599922aa58)
This commit is contained in:
Kefu Chai 2025-12-24 13:55:26 +08:00 committed by Kefu Chai
parent c8f58f36a0
commit b56db22597

1
debian/control vendored
View File

@ -21,6 +21,7 @@ Build-Depends: automake,
golang,
gperf,
g++ (>= 11),
iproute2 <pkg.ceph.check>,
javahelper,
jq <pkg.ceph.check>,
jsonnet <pkg.ceph.check>,