Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[perl #37898] [TODO] build parrot includes

0 views
Skip to first unread message

Leopold Toetsch

unread,
Dec 12, 2005, 7:51:55 AM12/12/05
to bugs-bi...@rt.perl.org
# New Ticket Created by Leopold Toetsch
# Please include the string: [perl #37898]
# in the subject line of all future correspondence about this issue.
# <URL: https://rt.perl.org/rt3/Ticket/Display.html?id=37898 >


Currently the files runtime/parrot/include/*.pasm are created during
Configure. But that isn't necessary or rather wrong as no dependencies
are honored.

We should have plain Makefile rules instead, e.g.:

runtime/parrot/include/iglobals.pasm: include/parrot/interpreter.h \

tools/build/gen_pasm_include.pl
tools/build/gen_pasm_include.pl $< > $@ # [1]

see also:

runtime/parrot/include/iglobals.pasm, config/gen/parrot_include.pl, and
grep for 'gen_from_enum' and 'gen_from_def' in parrot include files

[1] estimated syntax, the gen_pasm_include.pl is todo and new but can
simply be derived from the existing config step.

Thanks,
leo

Joshua Hoblitt

unread,
Dec 12, 2005, 10:52:47 PM12/12/05
to perl6-i...@perl.org
There are actually two config tests that generate files under
runtime/parrot/include.

config/gen/parrot_include.pm
config/auto/signal.pm

I think that config/auto/signal.pm needs to stay as a config test as
it's actually probing the system. Rerolling
config/gen/parrot_include.pm as a CLI util should be simple.

-J

--

Leopold Toetsch

unread,
Dec 13, 2005, 1:40:04 AM12/13/05
to Joshua Hoblitt, perl6-i...@perl.org

On Dec 13, 2005, at 4:52, Joshua Hoblitt wrote:

> There are actually two config tests that generate files under
> runtime/parrot/include.

Please reread the text, e.g.:

>> We should have plain Makefile rules instead, e.g.:
>>
>> runtime/parrot/include/iglobals.pasm: include/parrot/interpreter.h \
>>
>> tools/build/gen_pasm_include.pl
>> tools/build/gen_pasm_include.pl $< > $@ # [1]

leo

Joshua Hoblitt

unread,
Dec 13, 2005, 2:01:50 AM12/13/05
to Leopold Toetsch, perl6-i...@perl.org
On Tue, Dec 13, 2005 at 07:40:04AM +0100, Leopold Toetsch wrote:
>
> On Dec 13, 2005, at 4:52, Joshua Hoblitt wrote:
>
> >There are actually two config tests that generate files under
> >runtime/parrot/include.
>
> Please reread the text, e.g.:

Have you looked at what config/auto/signal.pm is actually doing?

-J

--

Leopold Toetsch

unread,
Dec 13, 2005, 4:00:52 AM12/13/05
to parrotbug...@parrotcode.org

On Dec 13, 2005, at 8:01, Joshua Hoblitt via RT wrote:

> Have you looked at what config/auto/signal.pm is actually doing?

Sorry, yes. signal.pasm is special and won't change much at all.

> -J

leo

James Keenan via RT

unread,
Mar 17, 2008, 7:42:14 PM3/17/08
to perl6-i...@perl.org
As part of cage cleaning, I am attempting to determine whether the
issues raised in this long untouched RT are still pertinent.

Here are mentions of 'runtime/parrot/include' in the config/ hierarchy.

$ fns config | xargs grep -n 'runtime/parrot/include'
config/auto/signal.pm:70: my $signalpasm =
"runtime/parrot/include/signal.pasm";
config/gen/makefiles/root.in:202: runtime/parrot/include/config.fpmc \
config/gen/makefiles/root.in:220: runtime/parrot/include/signal.pasm \
config/gen/makefiles/root.in:329: runtime/parrot/include/parrotlib.pbc \
config/gen/makefiles/root.in:581: runtime/parrot/include/parrotlib.pbc \
config/gen/makefiles/root.in:582: runtime/parrot/include/config.fpmc \
config/gen/makefiles/root.in:783:runtime/parrot/include/parrotlib.pbc:
runtime/parrot/library/parrotlib.pir $(PARROT)
config/gen/makefiles/root.in:786:runtime/parrot/include/config.fpmc :
myconfig config_lib.pasm $(MINIPARROT)
config/gen/makefiles/root.in:787: @echo Invoking Parrot to
generate runtime/parrot/include/config.fpmc --cross your fingers
config/gen/makefiles/root.in:832:$(SRC_DIR)/parrot_config.c :
runtime/parrot/include/config.fpmc \
config/gen/parrot_include.pm:10:Generates the F<runtime/parrot/include>
files.
config/gen/parrot_include.pm:28: description => q{Generating
runtime/parrot/include},
config/gen/parrot_include.pm:142:my $destdir = 'runtime/parrot/include';

Can anyone advise? Thank you very much.
kid51


0 new messages