Opened 10 years ago

Closed 10 years ago

#44640 closed defect (fixed)

p5-wx: fails to install when Xcode is not at /Applications/Xcode.app

Reported by: watsodw Owned by: mojca (Mojca Miklavec)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: mf2k (Frank Schima)
Port: p5-wx

Description

See log

Attachments (3)

main.log (69.9 KB) - added by watsodw 10 years ago.
p5-wx-resttool.diff (1.1 KB) - added by mojca (Mojca Miklavec) 10 years ago.
clipboard.png (28.4 KB) - added by mojca (Mojca Miklavec) 10 years ago.
Failed to create the clipboard. (error 13: Permission denied)

Download all attachments as: .zip

Change History (13)

Changed 10 years ago by watsodw

Attachment: main.log added

comment:1 Changed 10 years ago by mf2k (Frank Schima)

Cc: mojca@… removed
Owner: changed from macports-tickets@… to mojca@…
Port: p5-wx added; p5.16-wx removed

comment:2 Changed 10 years ago by mojca (Mojca Miklavec)

I have the binary in

/Applications/Xcode.app/Contents/Developer/Tools/Rez

on 10.7. For some reason 10.9 sets

cd cpp/wxPerl.osx && make RESTOOLDIR='/Developer/Tools' ARCH_FLAGS=''

and then tries to use $(RESTOOLDIR)/Rez which fails.

comment:3 Changed 10 years ago by mojca (Mojca Miklavec)

Version: 2.3.1

comment:4 Changed 10 years ago by mojca (Mojca Miklavec)

Summary: p5.16-wx fails upgradep-wx: fails to upgrade on 10.8 and later

comment:5 Changed 10 years ago by mojca (Mojca Miklavec)

Summary: p-wx: fails to upgrade on 10.8 and laterp5-wx: fails to upgrade on 10.8 and later

comment:6 Changed 10 years ago by mojca (Mojca Miklavec)

Cc: mf2k@… added

comment:7 Changed 10 years ago by mojca (Mojca Miklavec)

I need some help with this ticket. I would like to know why RESTTOOLDIR ends up being set with a weird value.

On 10.7 it's RESTOOLDIR='/Applications/Xcode.app/Contents/Developer/Tools'. The file build/Wx/build/MakeMaker/MacOSX_GCC.pm contains:

my $tools43 = '/Applications/Xcode.app/Contents/Developer/Tools';
my $restoolpath = ( -d $tools43 ) ? $tools43 : '/Developer/Tools';

so apparently the value ends up being wrong as long as /Applications/Xcode.app/Contents/Developer/Tools doesn't exist?

Can you please try the following patch:

  • build/Wx/build/MakeMaker/MacOSX_GCC.pm

    old new die "Please set MACOSX_DEPLOYMENT_TARGET to 10.3 or above" 
    1010    if $ENV{MACOSX_DEPLOYMENT_TARGET} && $ENV{MACOSX_DEPLOYMENT_TARGET} < 10.3;
    1111
    1212my $tools43 = '/Applications/Xcode.app/Contents/Developer/Tools';
    13 my $restoolpath = ( -d $tools43 ) ? $tools43 : '/Developer/Tools';
     13my $restoolpath = '/usr/bin';
    1414
    1515sub configure_core {
    1616  my $this = shift;

Changed 10 years ago by mojca (Mojca Miklavec)

Attachment: p5-wx-resttool.diff added

Changed 10 years ago by mojca (Mojca Miklavec)

Attachment: clipboard.png added

Failed to create the clipboard. (error 13: Permission denied)

comment:8 Changed 10 years ago by mojca (Mojca Miklavec)

Summary: p5-wx: fails to upgrade on 10.8 and laterp5-wx: fails to install when Xcode is not at /Applications/Xcode.app

comment:9 Changed 10 years ago by mojca (Mojca Miklavec)

I didn't get any feedback at all, but I nevertheless committed r124467. If there are any problems, please report. This needs to be reported upstream.

comment:10 Changed 10 years ago by mojca (Mojca Miklavec)

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.