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

Re: Bug#452316: Packages with empty directories

Neil Williams <codehelp@debian.org> writes:

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

Currently you have to remove the empty directory yourself in debian/rules
after running make install.  It's one of the standard things that we do
for Perl packages.  It would be nice to fix ExtUtils::MakeMaker to not
create it in the first place, but so far as I know, no one has written a

Russ Allbery (rra@debian.org)               <http://www.eyrie.org/~eagle/>

Reply to: