Lintian ReportsBETA

debian-rules-uses-special-shell-variable

The rules file use the make variable $(_).

According to Policy 4.9, 'invoking either of make -f debian/rules <...> or ./debian/rules <args...>' must result in identical behavior'. The $_ variable is an easy way to to violate that rule unwittingly.

If the rules file uses $(dir $(_)) to discover the directory containing the source package (for example, in order to implement the get-orig-source target) please replace it with $(dir $(firstword $(MAKEFILE_LIST))).

For more information please consult:

The tag is present in Lintian version 2.114.163. That is the most recent version we know about.

We use semantic versions. The patch number is a commit step indicator relative to the 2.114.0 release tag in our Git repository.

You can find the detection logic for this version at commit 8ab6976. For merge requests, please use the latest version in the Lintian check debian/rules.

Visibility: warning

Renamed from:
  • debian-rules-should-not-use-underscore-variable

The following 1 source packages in the archive triggered the tag 1 times (in any Lintian version).

There were no overrides.