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

Re: Packages with empty directories

Daniel Schepler wrote:
> On Tuesday 20 November 2007 11:20:17 pm Michael Biebl wrote:
>> Imho adding a lintian check for empty /usr/bin, /usr/sbin, /usr/lib and
>> /usr/include directories (as created by dh-make) would be a good start.
> I wrote a lintian check implementing the conservative approach, and submitted 
> a patch as bug #452316.  It lists empty directories matching directories from 
> base-files, as well as any empty subdirectories of
> /usr/include, /usr/share/man, and some others where they clearly make no 
> sense.

The only problem with the patch is that /usr/lib/perl5/ is often
included just by creating a perl package. I've tried to get rid of it
but it *is* created during 'make install' by use ExtUtils::MakeMaker;
but it is not necessarily used by package files. Another problem is that
the creation of the directory often doesn't show up in the build log - I
can force it by running make install without sudo or a prefix:

Warning: You do not have permissions to install into
/usr/local/lib/perl/5.8.8 at /usr/share/perl/5.8/ExtUtils/Install.pm
line 114.
mkdir /usr/local/share/perl/5.8.8/XML: Permission denied at
/usr/share/perl/5.8/ExtUtils/Install.pm line 176

It seems that ExtUtils::MakeMaker insists on using both /usr/lib/perl5
and /usr/share/perl5 whether the module itself uses them or not.

Maybe someone from the Debian Perl group can show me where I'm going
wrong or maybe CDBS can check for empty directories but everytime I
remove debian/tmp/usr/lib/perl5, it gets recreated, despite not having
any mention of it in the package files.


Neil Williams

Attachment: signature.asc
Description: OpenPGP digital signature

Reply to: