develooper Front page | perl.perl5.porters | Postings from September 2014

[perl #122820] 'make distclean' defect

Thread Previous
From:
James E Keenan via RT
Date:
September 22, 2014 02:08
Subject:
[perl #122820] 'make distclean' defect
Message ID:
rt-4.0.18-27515-1411351670-987.122820-15-0@perl.org
On Sun Sep 21 18:40:52 2014, craig.a.berry@gmail.com wrote:
> The problem could be readily reduced to:
> 
> $ ./miniperl -Ilib make_ext.pl --target=all Exporter MAKE="make"
> $ ./miniperl -Ilib make_ext.pl --target=distclean Exporter MAKE="make"
> $ ls lib/Exporter.pm
> 
> and observing that lib/Exporter.pm was still there after it was
> created by the first command and should have been (but wasn't) cleaned
> up by the second command.
> 
> Fixed in 9fa5aa91434.
> 

I'm amazed that Craig solved this so quickly.

Craig's patch assumes -- correctly, IMO -- that 'make distclean' and 'git clean -dfx' have slightly different objectives.  Going back to the example I provided in section III.B above, I:

* Placed in my working directory a small shell script, mydebugconfigure.sh, wrapping around Configure.
* Configured with this script, built and test perl at blead (9fa5aa9143).
* Said: 'make distclean'.
* Then said: 'git clean -dfxn' to perform a dry-run of what 'git clean -dfx' would still deem needing removal to keep git happy:
#####
$ git clean -dfxn
Would remove mydebugconfigure.sh
#####

This DWIMs for me.

Thank you very much.
-- 
James E Keenan (jkeenan@cpan.org)

---
via perlbug:  queue: perl5 status: open
https://rt.perl.org/Ticket/Display.html?id=122820

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About