Skip Menu |

This queue is for tickets about the MacOSX-File CPAN distribution.

Report information
The Basics
Id: 4830
Status: resolved
Priority: 0/
Queue: MacOSX-File

People
Owner: Nobody in particular
Requestors: pp-lepew [...] swbell.net
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 0.66
Fixed in: (no value)



Subject: Building MacOSX::File on 10.3 (Panther)
The XS modules will not build under Panther unless the following changes are make to Catalog/Makefile.PL, Copy/Makefile.PL, Info/Makefile.PL and Spec/Makefile.PL: 1) Add the following before calling MakeMakefile() my $vers = `uname -r`; if ($vers =~ /^7/) { my $xdir = "/System/Library/Frameworks/CoreServices.framework/Frameworks /CarbonCore.framework"; $IncPath = qq(-I../ -I$xdir -I$xdir/Headers); } else { $IncPath = qq(-I../ -I/Developer/Headers/FlatCarbon); } 2) change the line INC => qq(-I../ -I/Developer/....) to INC => $IncPath, The include files are not in the same location, but the above code should allow them to build properly under Jaguar and Panther.
Subject: Building MacOSX::File on 10.3 (Panther) (patch attached)
From: jbisbee [...] cpan.org
[guest - Sun Jan 4 22:45:31 2004]: I've created a patch file to fix MacOSX::File breakage in Panther (Just followed pp- lepew@swbell.net instructions below) Show quoted text
> The XS modules will not build under Panther unless the following > changes are make to Catalog/Makefile.PL, Copy/Makefile.PL, > Info/Makefile.PL and Spec/Makefile.PL: > > 1) Add the following before calling MakeMakefile() > > my $vers = `uname -r`; > if ($vers =~ /^7/) { > my $xdir = > "/System/Library/Frameworks/CoreServices.framework/Frameworks > /CarbonCore.framework"; > $IncPath = qq(-I../ -I$xdir -I$xdir/Headers); > } else { > $IncPath = qq(-I../ -I/Developer/Headers/FlatCarbon); > } > > 2) change the line > INC => qq(-I../ -I/Developer/....) > to > INC => $IncPath, > > The include files are not in the same location, but the above code > should allow them to build properly under Jaguar and Panther. > > >
diff -Naur MacOSX-File-0.66/Catalog/Makefile.PL MacOSX-File-0.66.patched/Catalog/Makefile.PL --- MacOSX-File-0.66/Catalog/Makefile.PL Wed Apr 9 08:30:55 2003 +++ MacOSX-File-0.66.patched/Catalog/Makefile.PL Sun May 2 20:52:24 2004 @@ -5,6 +5,14 @@ # See lib/ExtUtils/MakeMaker.pm for details of how to influence # the contents of the Makefile that is written. +my $vers = `uname -r`; +if ($vers =~ /^7/) { + my $xdir = "/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework"; + $IncPath = qq(-I../ -I$xdir -I$xdir/Headers); +} else { + $IncPath = qq(-I../ -I/Developer/Headers/FlatCarbon); +} + WriteMakefile ( NAME => 'MacOSX::File::Catalog', @@ -12,5 +20,5 @@ PREREQ_PM => {}, # e.g., Module::Name => 1.1 LIBS => qq(), LDDLFLAGS => qq(-bundle -flat_namespace -undefined suppress -framework Carbon), - INC => qq(-I../ -I/Developer/Headers/FlatCarbon), + INC => $IncPath, ); diff -Naur MacOSX-File-0.66/Copy/Makefile.PL MacOSX-File-0.66.patched/Copy/Makefile.PL --- MacOSX-File-0.66/Copy/Makefile.PL Wed Apr 9 08:30:55 2003 +++ MacOSX-File-0.66.patched/Copy/Makefile.PL Sun May 2 20:52:02 2004 @@ -5,6 +5,14 @@ # See lib/ExtUtils/MakeMaker.pm for details of how to influence # the contents of the Makefile that is written. +my $vers = `uname -r`; +if ($vers =~ /^7/) { + my $xdir = "/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework"; + $IncPath = qq(-I../ -I$xdir -I$xdir/Headers); +} else { + $IncPath = qq(-I../ -I/Developer/Headers/FlatCarbon); +} + WriteMakefile ( NAME => 'MacOSX::File::Copy', @@ -12,5 +20,5 @@ PREREQ_PM => {}, # e.g., Module::Name => 1.1 LIBS => qq(), LDDLFLAGS => qq(-bundle -flat_namespace -undefined suppress -framework Carbon), - INC => qq(-I../ -I/Developer/Headers/FlatCarbon), + INC => $IncPath, ); diff -Naur MacOSX-File-0.66/Info/Makefile.PL MacOSX-File-0.66.patched/Info/Makefile.PL --- MacOSX-File-0.66/Info/Makefile.PL Wed Apr 9 08:30:55 2003 +++ MacOSX-File-0.66.patched/Info/Makefile.PL Sun May 2 20:53:43 2004 @@ -5,6 +5,14 @@ # See lib/ExtUtils/MakeMaker.pm for details of how to influence # the contents of the Makefile that is written. +my $vers = `uname -r`; +if ($vers =~ /^7/) { + my $xdir = "/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework"; + $IncPath = qq(-I../ -I$xdir -I$xdir/Headers); +} else { + $IncPath = qq(-I../ -I/Developer/Headers/FlatCarbon); +} + WriteMakefile ( NAME => 'MacOSX::File::Info', @@ -12,5 +20,5 @@ PREREQ_PM => {}, # e.g., Module::Name => 1.1 LIBS => qq(), LDDLFLAGS => qq(-bundle -flat_namespace -undefined suppress -framework Carbon), - INC => qq(-I../ -I/Developer/Headers/FlatCarbon), + INC => $IncPath, ); diff -Naur MacOSX-File-0.66/Spec/Makefile.PL MacOSX-File-0.66.patched/Spec/Makefile.PL --- MacOSX-File-0.66/Spec/Makefile.PL Wed Apr 9 08:30:55 2003 +++ MacOSX-File-0.66.patched/Spec/Makefile.PL Sun May 2 20:54:28 2004 @@ -5,6 +5,14 @@ # See lib/ExtUtils/MakeMaker.pm for details of how to influence # the contents of the Makefile that is written. +my $vers = `uname -r`; +if ($vers =~ /^7/) { + my $xdir = "/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework"; + $IncPath = qq(-I../ -I$xdir -I$xdir/Headers); +} else { + $IncPath = qq(-I../ -I/Developer/Headers/FlatCarbon); +} + WriteMakefile ( NAME => 'MacOSX::File::Spec', @@ -13,5 +21,5 @@ #LIBS => qq(-L../MoreFiles -lMoreFiles), LIBS => "", LDDLFLAGS => qq(-bundle -flat_namespace -undefined suppress -framework Carbon), - INC => qq(-I../ -I/Developer/Headers/FlatCarbon), + INC => $IncPath, );