develooper Front page | perl.perl6.internals | Postings from September 2005

[PATCH]: pmc2c.pl fails outside the build directory

Thread Next
From:
Bob Rogers
Date:
September 2, 2005 18:58
Subject:
[PATCH]: pmc2c.pl fails outside the build directory
Message ID:
17177.845.544695.403937@rgrjr.dyndns.org
   FWIW, pmc2c.pl fails outside the build directory with the following
error message:

	can't find file 'classes/default.dump' in path '.', '/usr/src/parrot/build_tools/..', '/usr/src/parrot/build_tools/../classes/' at /usr/src/parrot/build_tools/pmc2c.pl line 281.

The patch below seems to fix this.

   This came up because I am trying to build a dynamic PMC thusly:

	PARROT-BUILD-DYNCLASSES = perl ${PARROT-HOME}/build_tools/build_dynclasses.pl
	. . .
	dynclasses/character.c:		dynclasses/character.pmc
		${PARROT-BUILD-DYNCLASSES} generate dynclasses/character
	dynclasses/character.o:		dynclasses/character.c
		${PARROT-BUILD-DYNCLASSES} compile dynclasses/character
	dynclasses/character.so:	dynclasses/character.o
		${PARROT-BUILD-DYNCLASSES} linklibs dynclasses/character

But this only works if the build environment is still lying around.  Is
there a better way to do this?  Is there a plan for building third-party
PMC classes using an installed Parrot?

   TIA,

					-- Bob Rogers
					   http://rgrjr.dyndns.org/

------------------------------------------------------------------------
Index: pmc2c.pl
===================================================================
--- pmc2c.pl	(revision 9125)
+++ pmc2c.pl	(working copy)
@@ -638,7 +638,7 @@
         $all{$class} = $res;
     }
 
-    $all{default} = read_dump($include, "classes/default.pmc")
+    $all{default} = read_dump($include, "default.pmc")
         if not $all{default};
 
     my $vt = read_dump($include, "vtable.pmc");

Thread Next


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