Skip Menu |

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

Report information
The Basics
Id: 43549
Status: resolved
Priority: 0/
Queue: File-HomeDir

People
Owner: Nobody in particular
Requestors: TJENNESS [...] cpan.org
Cc:
AdminCc:

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



Subject: File::HomeDir does not work on Mac OSX with 64-bit perl
File::HomeDir's dependency on Mac::Files has a dependency on Mac::Carbon that can not work on 64-bit perl since Carbon does not have a 64-bit API (and never will). This is pretty disastrous since it breaks Bundle::CPAN. The irony is that all tests pass on File::HomeDir if I modify the code to not load the special Darwin module. At minimum would it be possible to change the Darwin detection code so that it includes a test for $Config{ptrsize} == 8. Presumably there are edge cases to HomeDir detection that forced the requirement on Mac::Files in the first place but at this point it would seem better in the short term to have it passing at all on 64-bit osx perl. I will file a Mac::Files bug report as well.
Patched in trunk to fallback to File::HomeDir::Unix if 64-bit on Darwin. -- David
Subject: File::HomeDir does not work reliably on Mac OSX with ANY perl [PATCH]
On Sun Mar 22 08:36:14 2009, DAGOLDEN wrote: Show quoted text
> Patched in trunk to fallback to File::HomeDir::Unix if 64-bit on Darwin.
I'd like to see this generalised. Mac::Files and Mac::Carbon haven't been updated since 2006. Have a long list of bug reports and lots of test failures on darwin: http://matrix.cpantesters.org/?dist=Mac-Carbon+0.77 The fix I've been using happily is --- lib/perl5/File/HomeDir.pm (revision 5048) +++ lib/perl5/File/HomeDir.pm (working copy) @@ -56,6 +56,10 @@ } elsif ( $^O eq 'darwin' ) { # Modern Max OS X $IMPLEMENTED_BY = 'File::HomeDir::Darwin'; + # fallback to File::HomeDir::Unix if File::HomeDir::Darwin + # doesn't actually work e.g. Mac::Files is missing or broken + $IMPLEMENTED_BY = 'File::HomeDir::Unix' + if not eval "require $IMPLEMENTED_BY; $IMPLEMENTED_BY->my_home"; } elsif ( $^O eq 'MacOS' ) { # Legacy Mac OS $IMPLEMENTED_BY = 'File::HomeDir::MacOS9';
Subject: Re: [rt.cpan.org #43549] File::HomeDir does not work reliably on Mac OSX with ANY perl [PATCH]
Date: Sat, 16 May 2009 15:08:02 +1000
To: bug-File-HomeDir [...] rt.cpan.org
From: Adam Kennedy <adamkennedybackup [...] gmail.com>
I'm not going to make the Darwin implementation fall back to Unix, as the behaviour and return values from every method other than the core ->my_home will change. What you need to do here is to bully pudge into breaking it all up into something more maintainable, just as I eventually managed to get ActiveState to do to libwin32. I've been telling him for years to do it, it just needs people that care to convince him to let them, and then execute. Adam K 2009/5/15 Tim_Bunce via RT <bug-File-HomeDir@rt.cpan.org>: Show quoted text
>       Queue: File-HomeDir >  Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=43549 > > > On Sun Mar 22 08:36:14 2009, DAGOLDEN wrote:
>> Patched in trunk to fallback to File::HomeDir::Unix if 64-bit on Darwin.
> > I'd like to see this generalised. > > Mac::Files and Mac::Carbon haven't been updated since 2006. Have a long list of bug reports > and lots of test failures on darwin: http://matrix.cpantesters.org/?dist=Mac-Carbon+0.77 > > The fix I've been using happily is > > --- lib/perl5/File/HomeDir.pm   (revision 5048) > +++ lib/perl5/File/HomeDir.pm   (working copy) > @@ -56,6 +56,10 @@ >  } elsif ( $^O eq 'darwin' ) { >        # Modern Max OS X >        $IMPLEMENTED_BY = 'File::HomeDir::Darwin'; > +        # fallback to File::HomeDir::Unix if File::HomeDir::Darwin > +        # doesn't actually work e.g. Mac::Files is missing or broken > +       $IMPLEMENTED_BY = 'File::HomeDir::Unix' > +            if not eval "require $IMPLEMENTED_BY; $IMPLEMENTED_BY->my_home"; >  } elsif ( $^O eq 'MacOS' ) { >        # Legacy Mac OS >        $IMPLEMENTED_BY = 'File::HomeDir::MacOS9'; > > > >
Subject: Re: [rt.cpan.org #43549] File::HomeDir does not work reliably on Mac OSX with ANY perl [PATCH]
Date: Fri, 15 May 2009 20:31:12 -1000
To: bug-File-HomeDir [...] rt.cpan.org
From: Tim Jenness <tjenness [...] cpan.org>
The problem with punting to Mac::Files is that File::HomeDir is used by CPAN and if it doesn't work you can't use CPAN on that perl. Splitting Mac::Files from Mac::Carbon and rewriting it to use Cocoa is the ideal solution (I have filed a bug with Mac::Carbon) but until that happens people who have a 64-bit perl can't use the cpan shell and that surely can't be a good thing. It is close to encouraging the CPAN distribution to implement its own version of File::HomeDir that just implements home directories (Without all the additional photos and movie directory support). Tim On Fri, May 15, 2009 at 7:08 PM, Adam Kennedy via RT < bug-File-HomeDir@rt.cpan.org> wrote: Show quoted text
> <URL: http://rt.cpan.org/Ticket/Display.html?id=43549 > > > I'm not going to make the Darwin implementation fall back to Unix, as > the behaviour and return values from every method other than the core > ->my_home will change. > > What you need to do here is to bully pudge into breaking it all up > into something more maintainable, just as I eventually managed to get > ActiveState to do to libwin32. > > I've been telling him for years to do it, it just needs people that > care to convince him to let them, and then execute. > > Adam K > > 2009/5/15 Tim_Bunce via RT <bug-File-HomeDir@rt.cpan.org>:
> > Queue: File-HomeDir > > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=43549 > > > > > On Sun Mar 22 08:36:14 2009, DAGOLDEN wrote:
> >> Patched in trunk to fallback to File::HomeDir::Unix if 64-bit on Darwin.
> > > > I'd like to see this generalised. > > > > Mac::Files and Mac::Carbon haven't been updated since 2006. Have a long
> list of bug reports
> > and lots of test failures on darwin:
> http://matrix.cpantesters.org/?dist=Mac-Carbon+0.77
> > > > The fix I've been using happily is > > > > --- lib/perl5/File/HomeDir.pm (revision 5048) > > +++ lib/perl5/File/HomeDir.pm (working copy) > > @@ -56,6 +56,10 @@ > > } elsif ( $^O eq 'darwin' ) { > > # Modern Max OS X > > $IMPLEMENTED_BY = 'File::HomeDir::Darwin'; > > + # fallback to File::HomeDir::Unix if File::HomeDir::Darwin > > + # doesn't actually work e.g. Mac::Files is missing or broken > > + $IMPLEMENTED_BY = 'File::HomeDir::Unix' > > + if not eval "require $IMPLEMENTED_BY;
> $IMPLEMENTED_BY->my_home";
> > } elsif ( $^O eq 'MacOS' ) { > > # Legacy Mac OS > > $IMPLEMENTED_BY = 'File::HomeDir::MacOS9'; > > > > > > > >
> >
Subject: Re: [rt.cpan.org #43549] File::HomeDir does not work reliably on Mac OSX with ANY perl [PATCH]
Date: Sat, 16 May 2009 18:15:01 +1000
To: bug-File-HomeDir [...] rt.cpan.org
From: Adam Kennedy <adamkennedybackup [...] gmail.com>
The dependency for CPAN.pm on File::HomeDir is SUPPOSED to be an optional dependency for exactly that reason. How are you getting yourself into the situation of "if it doesn't work you can't use CPAN on that perl"? Adam K 2009/5/16 TJENNESS via RT <bug-File-HomeDir@rt.cpan.org>: Show quoted text
>       Queue: File-HomeDir >  Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=43549 > > > The problem with punting to Mac::Files is that File::HomeDir is used by CPAN > and if it doesn't work you can't use CPAN on that perl.  Splitting > Mac::Files from Mac::Carbon and rewriting it to use Cocoa is the ideal > solution (I have filed a bug with Mac::Carbon) but until that happens people > who have a 64-bit perl can't use the cpan shell and that surely can't be a > good thing. It is close to encouraging the CPAN distribution to implement > its own version of File::HomeDir that just implements home directories > (Without all the additional photos and movie directory support). > > Tim > > On Fri, May 15, 2009 at 7:08 PM, Adam Kennedy via RT < > bug-File-HomeDir@rt.cpan.org> wrote: >
>> <URL: http://rt.cpan.org/Ticket/Display.html?id=43549 > >> >> I'm not going to make the Darwin implementation fall back to Unix, as >> the behaviour and return values from every method other than the core >> ->my_home will change. >> >> What you need to do here is to bully pudge into breaking it all up >> into something more maintainable, just as I eventually managed to get >> ActiveState to do to libwin32. >> >> I've been telling him for years to do it, it just needs people that >> care to convince him to let them, and then execute. >> >> Adam K >> >> 2009/5/15 Tim_Bunce via RT <bug-File-HomeDir@rt.cpan.org>:
>> >       Queue: File-HomeDir >> >  Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=43549 > >> > >> > On Sun Mar 22 08:36:14 2009, DAGOLDEN wrote:
>> >> Patched in trunk to fallback to File::HomeDir::Unix if 64-bit on Darwin.
>> > >> > I'd like to see this generalised. >> > >> > Mac::Files and Mac::Carbon haven't been updated since 2006. Have a long
>> list of bug reports
>> > and lots of test failures on darwin:
>> http://matrix.cpantesters.org/?dist=Mac-Carbon+0.77
>> > >> > The fix I've been using happily is >> > >> > --- lib/perl5/File/HomeDir.pm   (revision 5048) >> > +++ lib/perl5/File/HomeDir.pm   (working copy) >> > @@ -56,6 +56,10 @@ >> >  } elsif ( $^O eq 'darwin' ) { >> >        # Modern Max OS X >> >        $IMPLEMENTED_BY = 'File::HomeDir::Darwin'; >> > +        # fallback to File::HomeDir::Unix if File::HomeDir::Darwin >> > +        # doesn't actually work e.g. Mac::Files is missing or broken >> > +       $IMPLEMENTED_BY = 'File::HomeDir::Unix' >> > +            if not eval "require $IMPLEMENTED_BY;
>> $IMPLEMENTED_BY->my_home";
>> >  } elsif ( $^O eq 'MacOS' ) { >> >        # Legacy Mac OS >> >        $IMPLEMENTED_BY = 'File::HomeDir::MacOS9'; >> > >> > >> > >> >
>> >>
> > > > The problem with punting to Mac::Files is that File::HomeDir is used by CPAN and if it doesn't work you can't use CPAN on that perl.  Splitting Mac::Files from Mac::Carbon and rewriting it to use Cocoa is the ideal solution (I have filed a bug with Mac::Carbon) but until that happens people who have a 64-bit perl can't use the cpan shell and that surely can't be a good thing. It is close to encouraging the CPAN distribution to implement its own version of File::HomeDir that just implements home directories (Without all the additional photos and movie directory support). > > Tim > > On Fri, May 15, 2009 at 7:08 PM, Adam Kennedy via RT <bug-File-HomeDir@rt.cpan.org> wrote:
>> >> <URL: http://rt.cpan.org/Ticket/Display.html?id=43549 > >> >> I'm not going to make the Darwin implementation fall back to Unix, as >> the behaviour and return values from every method other than the core >> ->my_home will change. >> >> What you need to do here is to bully pudge into breaking it all up >> into something more maintainable, just as I eventually managed to get >> ActiveState to do to libwin32. >> >> I've been telling him for years to do it, it just needs people that >> care to convince him to let them, and then execute. >> >> Adam K >> >> 2009/5/15 Tim_Bunce via RT <bug-File-HomeDir@rt.cpan.org>:
>> >       Queue: File-HomeDir >> >  Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=43549 > >> > >> > On Sun Mar 22 08:36:14 2009, DAGOLDEN wrote:
>> >> Patched in trunk to fallback to File::HomeDir::Unix if 64-bit on Darwin.
>> > >> > I'd like to see this generalised. >> > >> > Mac::Files and Mac::Carbon haven't been updated since 2006. Have a long list of bug reports >> > and lots of test failures on darwin: http://matrix.cpantesters.org/?dist=Mac-Carbon+0.77 >> > >> > The fix I've been using happily is >> > >> > --- lib/perl5/File/HomeDir.pm   (revision 5048) >> > +++ lib/perl5/File/HomeDir.pm   (working copy) >> > @@ -56,6 +56,10 @@ >> >  } elsif ( $^O eq 'darwin' ) { >> >        # Modern Max OS X >> >        $IMPLEMENTED_BY = 'File::HomeDir::Darwin'; >> > +        # fallback to File::HomeDir::Unix if File::HomeDir::Darwin >> > +        # doesn't actually work e.g. Mac::Files is missing or broken >> > +       $IMPLEMENTED_BY = 'File::HomeDir::Unix' >> > +            if not eval "require $IMPLEMENTED_BY; $IMPLEMENTED_BY->my_home"; >> >  } elsif ( $^O eq 'MacOS' ) { >> >        # Legacy Mac OS >> >        $IMPLEMENTED_BY = 'File::HomeDir::MacOS9'; >> > >> > >> > >> >
>>
> > >
Subject: Re: [rt.cpan.org #43549] File::HomeDir does not work reliably on Mac OSX with ANY perl [PATCH]
Date: Fri, 15 May 2009 22:50:26 -1000
To: bug-File-HomeDir [...] rt.cpan.org
From: Tim Jenness <tjenness [...] cpan.org>
You are right. When this bug was filed it was not an optional dependency, but then I filed https://rt.cpan.org/Public/Bug/Display.html?id=44455 and the fix for that made it optional. So CPAN is no longer an issue and CPAN no longer insists on loading File::HomeDir. Tim On Fri, May 15, 2009 at 10:15 PM, Adam Kennedy via RT < bug-File-HomeDir@rt.cpan.org> wrote: Show quoted text
> <URL: http://rt.cpan.org/Ticket/Display.html?id=43549 > > > The dependency for CPAN.pm on File::HomeDir is SUPPOSED to be an > optional dependency for exactly that reason. > > How are you getting yourself into the situation of "if it doesn't work > you can't use CPAN on that perl"? > > Adam K > > 2009/5/16 TJENNESS via RT <bug-File-HomeDir@rt.cpan.org>:
> > Queue: File-HomeDir > > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=43549 > > > > > The problem with punting to Mac::Files is that File::HomeDir is used by
> CPAN
> > and if it doesn't work you can't use CPAN on that perl. Splitting > > Mac::Files from Mac::Carbon and rewriting it to use Cocoa is the ideal > > solution (I have filed a bug with Mac::Carbon) but until that happens
> people
> > who have a 64-bit perl can't use the cpan shell and that surely can't be
> a
> > good thing. It is close to encouraging the CPAN distribution to implement > > its own version of File::HomeDir that just implements home directories > > (Without all the additional photos and movie directory support). > > > > Tim > > > > On Fri, May 15, 2009 at 7:08 PM, Adam Kennedy via RT < > > bug-File-HomeDir@rt.cpan.org> wrote: > >
> >> <URL: http://rt.cpan.org/Ticket/Display.html?id=43549 > > >> > >> I'm not going to make the Darwin implementation fall back to Unix, as > >> the behaviour and return values from every method other than the core > >> ->my_home will change. > >> > >> What you need to do here is to bully pudge into breaking it all up > >> into something more maintainable, just as I eventually managed to get > >> ActiveState to do to libwin32. > >> > >> I've been telling him for years to do it, it just needs people that > >> care to convince him to let them, and then execute. > >> > >> Adam K > >> > >> 2009/5/15 Tim_Bunce via RT <bug-File-HomeDir@rt.cpan.org>:
> >> > Queue: File-HomeDir > >> > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=43549 > > >> > > >> > On Sun Mar 22 08:36:14 2009, DAGOLDEN wrote:
> >> >> Patched in trunk to fallback to File::HomeDir::Unix if 64-bit on
> Darwin.
> >> > > >> > I'd like to see this generalised. > >> > > >> > Mac::Files and Mac::Carbon haven't been updated since 2006. Have a
> long
> >> list of bug reports
> >> > and lots of test failures on darwin:
> >> http://matrix.cpantesters.org/?dist=Mac-Carbon+0.77
> >> > > >> > The fix I've been using happily is > >> > > >> > --- lib/perl5/File/HomeDir.pm (revision 5048) > >> > +++ lib/perl5/File/HomeDir.pm (working copy) > >> > @@ -56,6 +56,10 @@ > >> > } elsif ( $^O eq 'darwin' ) { > >> > # Modern Max OS X > >> > $IMPLEMENTED_BY = 'File::HomeDir::Darwin'; > >> > + # fallback to File::HomeDir::Unix if File::HomeDir::Darwin > >> > + # doesn't actually work e.g. Mac::Files is missing or broken > >> > + $IMPLEMENTED_BY = 'File::HomeDir::Unix' > >> > + if not eval "require $IMPLEMENTED_BY;
> >> $IMPLEMENTED_BY->my_home";
> >> > } elsif ( $^O eq 'MacOS' ) { > >> > # Legacy Mac OS > >> > $IMPLEMENTED_BY = 'File::HomeDir::MacOS9'; > >> > > >> > > >> > > >> >
> >> > >>
> > > > > > > > The problem with punting to Mac::Files is that File::HomeDir is used by
> CPAN and if it doesn't work you can't use CPAN on that perl. Splitting > Mac::Files from Mac::Carbon and rewriting it to use Cocoa is the ideal > solution (I have filed a bug with Mac::Carbon) but until that happens people > who have a 64-bit perl can't use the cpan shell and that surely can't be a > good thing. It is close to encouraging the CPAN distribution to implement > its own version of File::HomeDir that just implements home directories > (Without all the additional photos and movie directory support).
> > > > Tim > > > > On Fri, May 15, 2009 at 7:08 PM, Adam Kennedy via RT <
> bug-File-HomeDir@rt.cpan.org> wrote:
> >> > >> <URL: http://rt.cpan.org/Ticket/Display.html?id=43549 > > >> > >> I'm not going to make the Darwin implementation fall back to Unix, as > >> the behaviour and return values from every method other than the core > >> ->my_home will change. > >> > >> What you need to do here is to bully pudge into breaking it all up > >> into something more maintainable, just as I eventually managed to get > >> ActiveState to do to libwin32. > >> > >> I've been telling him for years to do it, it just needs people that > >> care to convince him to let them, and then execute. > >> > >> Adam K > >> > >> 2009/5/15 Tim_Bunce via RT <bug-File-HomeDir@rt.cpan.org>:
> >> > Queue: File-HomeDir > >> > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=43549 > > >> > > >> > On Sun Mar 22 08:36:14 2009, DAGOLDEN wrote:
> >> >> Patched in trunk to fallback to File::HomeDir::Unix if 64-bit on
> Darwin.
> >> > > >> > I'd like to see this generalised. > >> > > >> > Mac::Files and Mac::Carbon haven't been updated since 2006. Have a
> long list of bug reports
> >> > and lots of test failures on darwin:
> http://matrix.cpantesters.org/?dist=Mac-Carbon+0.77
> >> > > >> > The fix I've been using happily is > >> > > >> > --- lib/perl5/File/HomeDir.pm (revision 5048) > >> > +++ lib/perl5/File/HomeDir.pm (working copy) > >> > @@ -56,6 +56,10 @@ > >> > } elsif ( $^O eq 'darwin' ) { > >> > # Modern Max OS X > >> > $IMPLEMENTED_BY = 'File::HomeDir::Darwin'; > >> > + # fallback to File::HomeDir::Unix if File::HomeDir::Darwin > >> > + # doesn't actually work e.g. Mac::Files is missing or broken > >> > + $IMPLEMENTED_BY = 'File::HomeDir::Unix' > >> > + if not eval "require $IMPLEMENTED_BY;
> $IMPLEMENTED_BY->my_home";
> >> > } elsif ( $^O eq 'MacOS' ) { > >> > # Legacy Mac OS > >> > $IMPLEMENTED_BY = 'File::HomeDir::MacOS9'; > >> > > >> > > >> > > >> >
> >>
> > > > > >
> >
On Sat May 16 04:15:41 2009, adamkennedybackup@gmail.com wrote: Show quoted text
> The dependency for CPAN.pm on File::HomeDir is SUPPOSED to be an > optional dependency for exactly that reason. > > How are you getting yourself into the situation of "if it doesn't work > you can't use CPAN on that perl"?
If you have a brand-new Perl install (as I do because Snow Leopard ate my Perl), then you lose a lot of functionality on CPAN unless you install Bundle::CPAN. You can't do that easily because File::HomeDir doesn't install because it's looking for Mac::Carbon. Now I fell back to a 32 bit Perl and tried to install Mac::Carbon but now it won't install because it says my libxml2 is the wrong architecture. Trying to reinstall that under Mac Ports is a nightmare because of dependency hell. I've simply given up. What I did to work around this is to comment out a couple of lines in lib/File/HomeDir.pm: #} elsif ( $^O eq 'darwin' && $Config::Config{ptrsize} != 8 ) { # Modern Max OS X, but fallback to unix on 64 bit #$IMPLEMENTED_BY = 'File::HomeDir::Darwin'; Now it works just fine. Yes, this is the wrong thing to do and it hasn't solved all of my problems, but god, I'm sooooo much further along now that I've removed the Mac:: stumbling block. Cheers, Ovid
Subject: Re: [rt.cpan.org #43549] File::HomeDir does not work on Mac OSX with 64-bit perl
Date: Wed, 30 Sep 2009 11:39:21 +1000
To: bug-File-HomeDir [...] rt.cpan.org
From: Adam Kennedy <adamkennedybackup [...] gmail.com>
Not a huge amount I can do about this unfortunatley. If the most basic low level Mac interface modules don't build on Macs, then you have a bigger problem. I recommend taking over or forking the part of Mac::Carbon that File::HomeDir needs, and I'll happily switch File::HomeDir to use that instead. I find it continuously amazing that with all the incredibly smart Perl people on Mac, no work on Perl on Mac ever seems to get done... Adam K 2009/9/30 Curtis 'Ovid' Poe via RT <bug-File-HomeDir@rt.cpan.org>: Show quoted text
>       Queue: File-HomeDir >  Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=43549 > > > On Sat May 16 04:15:41 2009, adamkennedybackup@gmail.com wrote:
>> The dependency for CPAN.pm on File::HomeDir is SUPPOSED to be an >> optional dependency for exactly that reason. >> >> How are you getting yourself into the situation of "if it doesn't work >> you can't use CPAN on that perl"?
> > If you have a brand-new Perl install (as I do because Snow Leopard ate > my Perl), then you lose a lot of functionality on CPAN unless you > install Bundle::CPAN.  You can't do that easily because File::HomeDir > doesn't install because it's looking for Mac::Carbon.  Now I fell back > to a 32 bit Perl and tried to install Mac::Carbon but now it won't > install because it says my libxml2 is the wrong architecture.  Trying to > reinstall that under Mac Ports is a nightmare because of dependency > hell.  I've simply given up. > > What I did to work around this is to comment out a couple of lines in > lib/File/HomeDir.pm: > >  #} elsif ( $^O eq 'darwin' && $Config::Config{ptrsize} != 8 ) { >    # Modern Max OS X, but fallback to unix on 64 bit >    #$IMPLEMENTED_BY = 'File::HomeDir::Darwin'; > > Now it works just fine.  Yes, this is the wrong thing to do and it > hasn't solved all of my problems, but god, I'm sooooo much further along > now that I've removed the Mac:: stumbling block. > > Cheers, > Ovid >
CC: TJENNESS [...] cpan.org
Subject: Re: [rt.cpan.org #43549] File::HomeDir does not work on Mac OSX with 64-bit perl
Date: Tue, 29 Sep 2009 15:48:00 -1000
To: bug-File-HomeDir [...] rt.cpan.org
From: "tim.jenness" <tim.jenness [...] gmail.com>
I thought we fixed all this long ago? I thought File::HomeDir already skips Mac::Files dependency on 64-bit mode. I certainly didn't have a problem last time I tried. And yes the real fix is a Mac::Cocoa that works properly rather than Mac::Carbon that has been deprecated. Tim On Sep 29, 2009, at 3:39 PM, Reserved Local Account via RT wrote: Show quoted text
> <URL: http://rt.cpan.org/Ticket/Display.html?id=43549 > > > Not a huge amount I can do about this unfortunatley. > > If the most basic low level Mac interface modules don't build on Macs, > then you have a bigger problem. > > I recommend taking over or forking the part of Mac::Carbon that > File::HomeDir needs, and I'll happily switch File::HomeDir to use that > instead. > > I find it continuously amazing that with all the incredibly smart Perl > people on Mac, no work on Perl on Mac ever seems to get done... > > Adam K > > 2009/9/30 Curtis 'Ovid' Poe via RT <bug-File-HomeDir@rt.cpan.org>:
>> Queue: File-HomeDir >> Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=43549 > >> >> On Sat May 16 04:15:41 2009, adamkennedybackup@gmail.com wrote:
>>> The dependency for CPAN.pm on File::HomeDir is SUPPOSED to be an >>> optional dependency for exactly that reason. >>> >>> How are you getting yourself into the situation of "if it doesn't >>> work >>> you can't use CPAN on that perl"?
>> >> If you have a brand-new Perl install (as I do because Snow Leopard >> ate >> my Perl), then you lose a lot of functionality on CPAN unless you >> install Bundle::CPAN. You can't do that easily because File::HomeDir >> doesn't install because it's looking for Mac::Carbon. Now I fell >> back >> to a 32 bit Perl and tried to install Mac::Carbon but now it won't >> install because it says my libxml2 is the wrong architecture. >> Trying to >> reinstall that under Mac Ports is a nightmare because of dependency >> hell. I've simply given up. >> >> What I did to work around this is to comment out a couple of lines in >> lib/File/HomeDir.pm: >> >> #} elsif ( $^O eq 'darwin' && $Config::Config{ptrsize} != 8 ) { >> # Modern Max OS X, but fallback to unix on 64 bit >> #$IMPLEMENTED_BY = 'File::HomeDir::Darwin'; >> >> Now it works just fine. Yes, this is the wrong thing to do and it >> hasn't solved all of my problems, but god, I'm sooooo much further >> along >> now that I've removed the Mac:: stumbling block. >> >> Cheers, >> Ovid >>
>
-- Tim Jenness
Resolved a while back