When I set LINTIAN_ROOT to something non-default, I expect that
/usr/share/lintian won't be on the search path. I think we should
completely ignore XDG_DATA_DIRS if LINTIAN_ROOT is set.
Obviously, I missed the most common use of LINTIAN_ROOT/--root.
Or maybe ignoring XDG_*_DIRS completely (and honouring only
XDG_*_HOME) is the way to go? That would make keeping backwards
compatiblity easier.
Of the two suggestions, I am more tempted towards ignoring
$XDG_DATA_DIRS if $LINTIAN_ROOT (or --root) is involved.