[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#701477: lintian: Should it support XDG?



On 2013-03-05 21:36, Jakub Wilk wrote:
> * Niels Thykier <niels@thykier.net>, 2013-03-03, 16:32:
>> Supporting XDG_CONFIG_{HOME,DIRS} can be done fairly easily, see
>> attached patch (which is bluntly assuming we are dropping
>> LINTIAN_ROOT/lintianrc).
> 
> Looks good to me. (Although I wonder why loading File::BaseDir is
> guarded by eval. libfile-basedir-perl is in Depends, so there's no
> reason for the import to fail. Or am I missing something?)
> 

Well, it wasn't added to Build-Depends.  Also I was hoping I could avoid
having to ask DSA to install another package on lintian.d.o, which
lintian wouldn't actually need.
  However, I just added liblist-moreutils-perl, so I would have to nag
DSA now anyway...

>>> 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.
> 
> Fair enough.
> 

Perhaps a graceful solution to this would be to have use
of--root/LINTIAN_ROOT imply --no-user-dirs.
  Given the primary use for these options are/will be to test/develop
Lintian, user directories (by default) will probably just be in the way?

~Niels


Reply to: