#974677 bin-sbin-mismatch: false positive when using variables

#974677#5
Date:
2020-11-13 16:29:51 UTC
From:
To:
Dear Maintainer,

I run lintian on lbdb package, which results in following two wrong
lintian warnings:

X: lbdb: bin-sbin-mismatch usr/bin/lbdb-fetchaddr bin/lbdb_dotlock -> usr/bin/lbdb_dotlock
X: lbdb: bin-sbin-mismatch usr/lib/lbdb/lbdb-munge bin/lbdb_dotlock -> usr/bin/lbdb_dotlock

These two warnings are incorrect, in two ways:
- they have nothing to do with sbin, as you can see in the output above
- I use variables in these scripts, which isn't noticed by lintian

In lbdb-fetchaddr the code (generated by autoconf) is:

prefix=/usr
exec_prefix=${prefix}
dotlock=${exec_prefix}/bin/lbdb_dotlock

lintian seems to think that this is /bin/lbdb_dotlock, but as you can
see, /usr/bin/lbdb_dotlock is called.


Same in in lbdb-munge:

prefix=/usr
exec_prefix=${prefix}
dotlock=${exec_prefix}/bin/lbdb_dotlock


Greetings
Roland

#974677#10
Date:
2020-11-13 17:26:31 UTC
From:
To:
Hi Roland,

Yes, the tag became a misnomer when we simplified the directory check
to cover a missing '/usr' component, as well. The intent was to cover
usr-bin-merge issues also, which relate directly to the spirit of the
tag (although not to the name).

That is a far bigger and potentially insurmountable issue. The
functionality of the tag was already impaired by gcc's SHF_MERGE
feature. The tag should probably be retired.

Kind regards
Felix Lechner