2008/5/22 Robert Davis <[EMAIL PROTECTED]>:
> From: Robert Davis [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, May 21, 2008 5:36 PM
> To: [email protected]
> Subject: a patch for cygwin cpan test
>
> The test of PAR::Packer fails and I think I found the fix.
> Basically the exe's produced from pp still depend on the cygwin dll's
> and setting the path to one directory prevents them from being found.
>
> --- 30-current_exec.t.org 2008-05-21 17:20:58.326089100 -0400
> +++ 30-current_exec.t 2008-05-21 17:33:38.579279500 -0400
> @@ -47,7 +47,7 @@
>
> my( $file, $path ) = fileparse( $EXEC );
>
> -my $out_path = do { local $ENV{PATH} = $path; qx($file); };
> +my $out_path = do { local $ENV{PATH} = "$path:$ENV{PATH}"; qx($file);
> };
>
> is( $out_path, $out_full, "Found the same file via PATH and full path"
> );
>
> After thinking about this the question is what the purpose of this test
> is. I think the purpose was to test whether a created exe is truly
> standalone. If that's the case then this can never succeed on cygwin and
> the test should probably be skipped.
Well, for a virgin system without cygwin installed and a truly
standalone par exe,
the list of needed dll's is fine, with the exception of unitialized
mounts points (registry)
and /etc/{passwd,groups}.
But the test case will not run on such a virgin system, and a virgin
system is very "virgin",
without users and mounts.
--
Reini Urban
http://phpwiki.org/ http://murbreak.at/