Re: [Arsperl-devel] ARSperl package structure changes
Brought to you by:
jeffmurphy
From: jeff m. <jcm...@je...> - 2009-04-01 14:43:18
|
On Apr 1, 2009, at 3:58 AM, Thilo Stapff wrote: >> > > Are you sure? On my system (Windows XP), "_h2ph_pre.ph" and > "artypes.ph" > are almost empty. They contain only the statement "1;" so that they > can > be successfully loaded. The ARS::AR_XXXX_YYYYY constants are defined > in > ARSar-h.pm (which is also generated by Makefile.PL). Are things > generated differently on Unix systems? > Ah. I think the memory is coming back to me now... :-) # due to the endless confusion over h2ph, i'm including # a known-good copy in the arsperl distribution. the # -d should make it create _h2ph_pre in the current # directory incase you never ran h2ph before (as root) There might even be something in the mail archives about this. When you run h2ph, it'll create _h2ph_pre in the current dir. I then delete that file and replace it with the "1;" file because (I'm assuming) there must have been issues with parsing that file in the past. Instead of fiddling with the ARSar-h.pm file to strip the "require" at the top, I opt'd to replace the contents of _h2ph_pre with a "1;" Most people install Perl and don't run h2ph, so that file (_h2ph_pre) tends not to exist on systems until they install ARSperl (which runs h2ph for them). Basically, my sense is that we can't get rid of that file at this point. However, if you want to re-examine the h2ph process to see if _h2ph_pre can be removed, feel free. You'll need to test it on Windows and at least one Unix for the cases: 1. h2ph was already executed 2. h2ph has never been executed jeff |