Package: lintian
Version: 2.127.0
Severity: normal
X-Debbugs-Cc: martin-eric.racine@iki.fi
In its current form, bin:dhcpcd-base ships script fragments at this path:
/usr/lib/dhcpcd/dhcpcd-run-hooks
/usr/lib/dhcpcd/dhcpcd-hooks/01-test
/usr/lib/dhcpcd/dhcpcd-hooks/20-resolv.conf
/usr/lib/dhcpcd/dhcpcd-hooks/30-hostname
/usr/lib/dhcpcd/dhcpcd-hooks/50-timesyncd.conf
The file dhcpcd-run-hooks is executable and it sources the content of /usr/lib/dhcpcd/dhcpcd-hooks.
Bug #1103429 suggests moving these to /usr/libexec. This would produce the following Lintian output:
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]
IMHO, Lintian should only check whether files at the root of /usr/libexec are executable. If a package ships any subdirectory, the check should be skipped for these files.