Bug#642047: [private/generate-profiles.pl] doesn't work without LINTIAN_ROOT set

September 18th, 2011 - 07:10 pm ET by Jakub Wilk | Report spam
Package: lintian
Version: 2.5.3
Severity: wishlist

If LINTIAN_ROOT is unset private/generate-profiles.pl just dies:

$ private/generate-profiles.pl
Use of uninitialized value $ENV{"LINTIAN_ROOT"} in concatenation (.) or string at private/generate-profiles.pl line 19.
Can't locate Lintian/Data.pm in @INC (@INC contains: /lib /etc/perl /usr/local/lib/perl/5.12.4 /usr/local/share/perl/5.12.4 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.12 /usr/share/perl/5.12 /usr/local/lib/site_perl .) at private/generate-profiles.pl line 20.
BEGIN failed--compilation aborted at private/generate-profiles.pl line 20.

This is a bit annoying and also inconsistent with behavior of other
private/ scripts (which either don't care about LINTIAN_ROOT at all or
at least default to the current working directory if the variable is
unset).

Jakub Wilk



To UNSUBSCRIBE, email to debian-bugs-dist-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
email Follow the discussionReplies 1 replyReplies Make a reply

Similar topics

Replies

#1 Niels Thykier
September 19th, 2011 - 06:50 am ET | Report spam
On 2011-09-19 01:04, Jakub Wilk wrote:
Package: lintian
Version: 2.5.3
Severity: wishlist

If LINTIAN_ROOT is unset private/generate-profiles.pl just dies:

$ private/generate-profiles.pl
Use of uninitialized value $ENV{"LINTIAN_ROOT"} in concatenation (.) or
string at private/generate-profiles.pl line 19.
Can't locate Lintian/Data.pm in @INC (@INC contains: /lib /etc/perl
/usr/local/lib/perl/5.12.4 /usr/local/share/perl/5.12.4 /usr/lib/perl5
/usr/share/perl5 /usr/lib/perl/5.12 /usr/share/perl/5.12
/usr/local/lib/site_perl .) at private/generate-profiles.pl line 20.
BEGIN failed--compilation aborted at private/generate-profiles.pl line 20.

This is a bit annoying and also inconsistent with behavior of other
private/ scripts (which either don't care about LINTIAN_ROOT at all or
at least default to the current working directory if the variable is
unset).




Done as a part of commit d8a1449a3409ae51eb7a5c005dc7115d07f6edf3. I am
closing this now, since it is not a "public" script so users (and most
downstream developers) are unlikely to have any benefit from this. :)

~Niels




To UNSUBSCRIBE, email to
with a subject of "unsubscribe". Trouble? Contact
email Follow the discussion Replies Reply to this message
Help Create a new topicReplies Make a reply
Search Make your own search