Discussion:
[perl #61052] [BUG]: r33482 Can't run 'make realclean' in languages/perl6 directory
(too old to reply)
(via RT)
2008-12-04 16:51:21 UTC
Permalink
# New Ticket Created by publiustemp-***@yahoo.com
# Please include the string: [perl #61052]
# in the subject line of all future correspondence about this issue.
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=61052 >


This bug has been around for a while, but I've been too lazy to report it :)

My build tools automatically run a 'make realclean' if I type 'rebuild' in a directory with a Makefile. If you do that in languages/perl6, you can no longer run "make" in that directory. Doing an "svn up" doesn't help. Going back to the top level and running a 'make realclean && make' also doesn't help.

I know of no way to recover from this aside from doing a fresh checkout.


Cheers,
Ovid
--
Buy the book - http://www.oreilly.com/catalog/perlhks/
Tech blog - http://use.perl.org/~Ovid/journal/
Twitter - http://twitter.com/OvidPerl
Official Perl 6 Wiki - http://www.perlfoundation.org/perl6
Will Coleda
2008-12-04 22:00:36 UTC
Permalink
Post by (via RT)
# Please include the string: [perl #61052]
# in the subject line of all future correspondence about this issue.
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=61052 >
This bug has been around for a while, but I've been too lazy to report it :)
My build tools automatically run a 'make realclean' if I type 'rebuild' in a directory with a Makefile. If you do that in languages/perl6, you can no longer run "make" in that directory. Doing an "svn up" doesn't help. Going back to the top level and running a 'make realclean && make' also doesn't help.
I know of no way to recover from this aside from doing a fresh checkout.
Rerunning Configure.pl will recreate the language makefiles, but it's
overkill: Here's a snippet that does it:

perl -Ilib tools/dev/reconfigure.pl --step=gen::languages --languages=perl6

Tcl avoids this by having its own Configure.pl that does this one step
to generate a new copy of the Makefile.

http://code.google.com/p/partcl/source/browse/trunk/Configure.pl

So, in languages/tcl, you can do "make realclean; perl Configure.pl && make"

Regards.
--
Will "Coke" Coleda
Moritz Lenz
2008-12-04 22:10:51 UTC
Permalink
Post by (via RT)
# Please include the string: [perl #61052]
# in the subject line of all future correspondence about this issue.
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=61052 >
This bug has been around for a while, but I've been too lazy to report it :)
Actually I call it a feature ;-)
Post by (via RT)
My build tools automatically run a 'make realclean' if I type 'rebuild' in a directory with a Makefile.
If you do that in languages/perl6, you can no longer run "make" in
that directory.
Post by (via RT)
Doing an "svn up" doesn't help. Going back to the top level and
running a 'make realclean && make' also doesn't help.

the Makefile is generated by Makefile.PL (which in turn calls
Configure.pl), just like with any "normal" Perl package - the difference
is just that in this case Makefile.PL lives in the parrot root dir, not
in languages/perl6/

Maybe a symlink in languages/perl6/ to parrot's Makefile.PL could help?

(Just out of curiosity, do you need 'make realclean' in
languages/perl6/? Most of the time a simple 'make' works for me, or a
'make clean'. I never needed realclean in Rakudo, only in parrot so far).

Cheers,
Moritz
Ovid
2008-12-05 16:49:47 UTC
Permalink
----- Original Message ----
Post by Moritz Lenz
(Just out of curiosity, do you need 'make realclean' in
languages/perl6/? Most of the time a simple 'make' works for me, or a
'make clean'. I never needed realclean in Rakudo, only in parrot so far).
No, I don't need to do that. It comes from my 'rebuild' script and that's just finger memory on my part.


Cheers,
Ovid
--
Buy the book - http://www.oreilly.com/catalog/perlhks/
Tech blog - http://use.perl.org/~Ovid/journal/
Twitter - http://twitter.com/OvidPerl
Official Perl 6 Wiki - http://www.perlfoundation.org/perl6

Loading...