On Thu, 17 Apr 2025 16:36:43 +0300 =?UTF-8?Q?Martin=2D=C3=89ric_Racine?= <[email protected]> wrote: > to 17.4.2025 klo 16.27 Laurent Bigonville ([email protected]) kirjoitti: > > > > Package: dhcpcd-base > > Version: 1:10.1.0-9 > > Severity: wishlist > > > > Hello, > > > > I see that dhcpcd installs hooks in /usr/lib/dhcpcd/ but today, debian > > allows to install executable files in /usr/libexec and a lot of packages > > are doing so. > > > > Would be a good idea to move the dhcpcd-run-hooks and the dhcpcd-hooks > > directory to /usr/libexec > > > > To achieve this, just remove the --libexecdir flag in debian/rules > > The problem is that since hooks are not executable scripts per-se, > merely script fragments, Lintian responds with: > > W: dhcpcd-base: executable-not-elf-or-script [usr/libexec/dhcpcd-hooks/*]
I'd really like to hear Lintian maintainers' opinion on this one. W: dhcpcd-base: executable-not-elf-or-script [usr/libexec/dhcpcd-hooks/01-test] W: dhcpcd-base: executable-not-elf-or-script [usr/libexec/dhcpcd-hooks/20-resolv.conf] W: dhcpcd-base: executable-not-elf-or-script [usr/libexec/dhcpcd-hooks/30-hostname] W: dhcpcd-base: executable-not-elf-or-script [usr/libexec/dhcpcd-hooks/50-timesyncd.conf] None of the above have any shebang, because they are merely script fragments sourced by /usr/libexec/dhcpcd-run-hooks (which has the expected shebang). Could Lintian perhaps not report the above warning if the files are in a subdirectory of /usr/libexec? Martin-Éric

