Package: aircrack-ng
Version: 1:1.7+git20230807.4bf83f1a-2
Severity: wishlist
Hello,
aircrack-ng declares "Depends: hwloc". The hwloc binary package ships
lstopo built with graphical output and therefore depends on libx11-6
and libcairo2. On a headless system (in my case a Raspberry Pi Zero 2 W
running Raspbian trixie, 512 MB RAM) this drags in ~20 packages of
X11/cairo/fontconfig/font libraries that are never used.
As far as I can tell aircrack-ng only needs the library:
- The aircrack-ng binary links against libhwloc.so.15, which is
already pulled in by ${shlibs:Depends} as libhwloc15.
- I unpacked the .deb and searched all shipped files (binaries and
scripts, including airmon-ng) for hwloc-calc, hwloc-bind, hwloc-ls,
hwloc-info and lstopo; there are no references.
- debian/changelog does not mention why the hwloc tools package was
added.
Install footprint on armhf (apt-get -s):
- current: 27 packages, ~29 MiB installed
- --no-install-recommends: 22 packages, ~14.5 MiB
- without the hwloc tools pkg: 5 packages, ~2.7 MiB
Suggested fix (either would work):
1. Drop "hwloc" from Depends and rely on ${shlibs:Depends} for
libhwloc15; optionally move hwloc to Suggests. Or
2. If the tools are wanted for diagnostics, use
"Depends: hwloc | hwloc-nox" (or Recommends) so headless systems
can choose hwloc-nox.
I have verified that aircrack-ng works with only libhwloc15 installed
(using a local dummy package that provides "hwloc"): aircrack-ng runs
and correctly detects CPU features and core count.
Thanks for maintaining the package.
-- System Information:
Debian Release: 13.6
Architecture: armhf (armv7l)
Foreign Architectures: arm64
Kernel: Linux 6.18.60+rpt-rpi-v7 (SMP w/4 CPU threads)
Kernel taint flags: TAINT_CRAP
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE
not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages aircrack-ng depends on:
ii ethtool 1:6.14.2-1
ii hwloc-dummy-nox [hwloc] 1.0
ii iw 6.9-1
ii libc6 2.41-12+rpt1+deb13u4
ii libgcc-s1 14.2.0-19+rpi1
ii libhwloc15 2.12.0-4
ii libnl-3-200 3.7.0-2
ii libnl-genl-3-200 3.7.0-2
ii libpcap0.8t64 1.10.5-2
ii libpcre2-8-0 10.46-1~deb13u3+rpi1
ii libsqlite3-0 3.46.1-7+deb13u2
ii libssl3t64 3.5.9-1~deb13u1+rpt1
ii libstdc++6 14.2.0-19+rpi1
ii python3 3.13.5-1
ii rfkill 2.41.5-0+deb13u1
ii usbutils 1:018-2
ii wireless-tools 30~pre9-18
ii zlib1g 1:1.3.dfsg+really1.3.1-1+deb13u1
Versions of packages aircrack-ng recommends:
pn ieee-data <none>
ii iproute2 6.15.0-1
Versions of packages aircrack-ng suggests:
pn gpsd <none>
-- no debconf information
Regards,
Vasundhar