develooper Front page | perl.perl5.porters | Postings from March 2009

Re: distclean and ext (was Re: restructuring ext (Re: merging make_ext and make_ext_cross))

Thread Previous | Thread Next
Nicholas Clark
March 25, 2009 09:05
Re: distclean and ext (was Re: restructuring ext (Re: merging make_ext and make_ext_cross))
Message ID:
On Sun, Feb 15, 2009 at 11:29:30AM +0100, demerphq wrote:
> 2009/2/12 Nicholas Clark <>:

> > 2: I believe I've created debris for make distclean. Right now Makefile.SH,
> >   win32/Makefile, win32/ and vms/descrip_mms.template *each* have
> >   to be taught how to delete every file installed from ext to lib
> >   As I understand it, MakeMaker doesn't deal with them, because it assumes
> >   that deleting blib/ in the extension directory will do the job for "clean".
> >
> >   I think we need to find a solution to this, to eliminate four-fold
> >   complexity (and errors and omissions) in the Makefiles, but I'm not yet sure
> >   what it is.
> >
> >   I think that the simplest thing that could possibly work is to delete the
> >   *files*, and then have a general sweeper that removes all empty directories,
> >   on the not-unreasonable assumption that the build added them, because the
> >   distribution contains no empty directories.
> Maybe a script that deletes anything in lib that is also in ext?
> Find all files in the ext, calculate a sha1 and length of their
> contents. Scan lib similarly, anything with the same SHA1 and length
> in both directories gets deleted out of lib. Any directory made empty
> by this process should itself also be deleted.
> Does that sound sane?

sha1 won't be viable, as whatever does the deleting needs to run under
miniperl, and so can't load dynamic modules. I was thinking more of figuring
out the files that will get copied to lib before the event, at Makefile.PL
generation time.

Nicholas Clark

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About