Hi Brian,

Inline-0.34 couldn't make test on perl 5.6.0 on Mac OS X, because for 
some
reason mkdir() refuses to work if the pathname ends with a slash. Hence:


diff -ruN Inline-0.34.old/Inline.pm Inline-0.34/Inline.pm
--- Inline-0.34.old/Inline.pm   Tue May  1 09:07:01 2001
+++ Inline-0.34/Inline.pm       Fri May 18 10:55:16 2001
@@ -1050,6 +1050,7 @@
      my $dir = shift;
      my $mode = shift || 0777;
      ($dir) = ($dir =~ /(.*)/) if UNTAINT;
+    chop $dir if substr($dir, -1) eq '/';
      return mkdir($dir, $mode);
  }


Now it does 'make test' ok. By the way, the following install ok:

* Inline::Struct
* Inline::ASM (but then there are are no tests)
* Inline::Java
* Inline::Filters

Inline::CPP had a 'make test' problem, which unfortunately I don't have
time to investigate now.

Inline::CPR also had the trailing slash problem, and here's the patch:

diff -ruN Inline-CPR-0.11.old/bin/synopsis.PL Inline-
CPR-0.11/bin/synopsis.PL
--- Inline-CPR-0.11.old/bin/synopsis.PL Tue Dec 19 19:05:28 2000
+++ Inline-CPR-0.11/bin/synopsis.PL     Fri May 18 13:20:03 2001
@@ -3,7 +3,7 @@

  my $bin = shift @ARGV;

-mkpath "./examples/";
+mkpath "./examples";
  open OUT, "> ./examples/synopsis.cpr"
    or die "Can't open./examples/synopsis.pl for output\n";
  print OUT <<END;


Please note that I've only tested the patched versions on Mac OS X, but
due to the minor nature of them they ought to work on other platforms as
well. Still, you never know.

I didn't try to install Inline::Tcl or Inline::Python.

I'm really looking forward to using the Inline modules on OSX now...
In particular, it'd be good to use the Java 2D graphics classes from
within Perl. I'll report back on success (or failure) when there are
some results.

Marcel

--
my int ($x, $y, $z, $n); $x**$n + $y**$n = $z**$n is insoluble if $n > 2;
I have discovered a truly remarkable proof which this signature is too
short to contain.      (20 Aug 2001: Pierre de Fermat's 400th birthday)

Reply via email to