#1134483 lintian: false positive maintainer-script-calls-service

#1134483#5
Date:
2026-04-20 18:48:45 UTC
From:
To:
Hi,

Since version, lintian returns 4 maintainer-script-calls-service errors
for the libc6 package:

E: libc6: maintainer-script-calls-service "{service" [preinst:201]
E: libc6: maintainer-script-calls-service "{service" [postinst:63]
E: libc6: maintainer-script-calls-service "{service" [postinst:128]
E: libc6: maintainer-script-calls-service "{service" [postinst:137]

That said looking at the corresponding line this seems like false
positive as those line correctly use invoke-rc.d as described in the tag
and in the debian policy:

E: libc6: maintainer-script-calls-service "{service" [preinst:201]

    invoke-rc.d ${service} status >/dev/null 2>/dev/null && status=0 || status=$?


E: libc6: maintainer-script-calls-service "{service" [postinst:63]

    invoke-rc.d ${service} status >/dev/null 2>/dev/null && status=0 || status=$?


E: libc6: maintainer-script-calls-service "{service" [postinst:128]

    if invoke-rc.d ${service} reload > /dev/null 2>&1; then

E: libc6: maintainer-script-calls-service "{service" [postinst:137]

    if invoke-rc.d ${service} restart > /dev/null 2>&1; then


In turns that make the salsa pipeline to fail as this is an error [1].

Regards
Aurelien

[1] https://salsa.debian.org/glibc-team/glibc/-/jobs/9441004

#1134483#8
Date:
2026-04-26 15:27:03 UTC
From:
To:
Hello,

Bug #1134483 in lintian reported by you has been fixed in the
Git repository and is awaiting an upload. You can see the commit
message below and you can check the diff of the fix at:

https://salsa.debian.org/lintian/lintian/-/commit/20e116003be36f3944c3c0c3ce005cc02c091d5b
The current logic is a very generic solution for a complicated problem.
We are just detecting occurrence of `service` command without considering
rest of the context around it.

Change regex to require space after "service" to avoid false positives
using service as variable (Closes: #1134483). As this can keep leading
to FP, mark it experimental.
------------------------------------------------------------------------

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/1134483