Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#18797 closed defect (fixed)

py25-matplotlib dependency fails on Tiger

Reported by: jjstickel@… Owned by: skymoo (Adam Mercer)
Priority: Normal Milestone:
Component: ports Version: 1.7.0
Keywords: Cc: jmroot (Joshua Root)
Port: py25-matplotlib

Description

The Portfile for py25-matplotlib (and matplotlib portfile for other python versions) has a dependency for "port:py25-pyobjc2-cocoa". This dependency cannot be installed on Tiger. Here is a patch that removes this dependency for Darwin < 9.

Attachments (2)

Portfile.diff (418 bytes) - added by jjstickel@… 15 years ago.
matplotlib-Tiger.diff (1.2 KB) - added by skymoo (Adam Mercer) 15 years ago.
use pyobjc2 only on Leopard

Download all attachments as: .zip

Change History (16)

Changed 15 years ago by jjstickel@…

Attachment: Portfile.diff added

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

Owner: changed from macports-tickets@… to ram@…

comment:2 Changed 15 years ago by skymoo (Adam Mercer)

Cc: jmr@… added

In that case the Cocoa backends won't work on Tiger so a further patch to disable the Cocoa backends will be needed in addition to this.

How does the build of py25-pyobjc2-cocoa fail on Leopard?

Josh: Do you know of any problem with py25-pyobjc2-cocoa on Tiger?

comment:3 in reply to:  2 Changed 15 years ago by skymoo (Adam Mercer)

Replying to ram@…:

How does the build of py25-pyobjc2-cocoa fail on Leopard?

Sorry, that should say Tiger.

comment:4 Changed 15 years ago by jjstickel@…

In both the py25-pyobjc2 and py25-pyobjc2-cocoa Portfiles, there is:

if {${os.major} < 9} {
    pre-fetch {
        return -code error "PyObjC 2.0 requires Mac OS X 10.5"
    }
}

I think there was a trac ticket or email thread (not sure now) that explained the reason for this. There exists py25-pyobjc that supposedly works on Tiger (but not Leopard), but there is no py25-pyobjc-cocoa port.

comment:5 Changed 15 years ago by skymoo (Adam Mercer)

Got it. I'll look into how to disable the Cocoa backends on Tiger.

comment:6 Changed 15 years ago by jmroot (Joshua Root)

The deps need to be done as in e.g. py25-game. Prior to PyObjcC 2.0 the core and framework wrappers were not separate.

Fortunately upstream will soon (finally) be doing a proper release, and it looks like it will be Tiger compatible.

comment:7 Changed 15 years ago by skymoo (Adam Mercer)

Can you try the attached patch to see if it builds, and the Cocoa backends work, on Tiger?

Changed 15 years ago by skymoo (Adam Mercer)

Attachment: matplotlib-Tiger.diff added

use pyobjc2 only on Leopard

comment:8 Changed 15 years ago by jjstickel@…

The port builds and the CocoaAgg backend works now (although it crashed after I used the save file option). Probably this fix should be pushed to the py-matplotlib port.

comment:9 in reply to:  8 Changed 15 years ago by jjstickel@…

Replying to jjstickel@…:

The port builds and the CocoaAgg backend works now (although it crashed after I used the save file option). Probably this fix should be pushed to the py-matplotlib port.

This was on Tiger.

comment:10 in reply to:  8 ; Changed 15 years ago by skymoo (Adam Mercer)

Replying to jjstickel@…:

The port builds and the CocoaAgg backend works now (although it crashed after I used the save file option).

Great, any backtrace for the crash?

comment:11 Changed 15 years ago by skymoo (Adam Mercer)

fix commited to py-matplotlib and py25-matplotlib in r48002

comment:12 in reply to:  10 Changed 15 years ago by jjstickel@…

Replying to ram@…:

Replying to jjstickel@…:

The port builds and the CocoaAgg backend works now (although it crashed after I used the save file option).

Great, any backtrace for the crash?

No. It was a segmentation fault. Since I plan to be using the WXAgg backend (more features), I do not have the interest to help debug the cocoa backend.

Thanks for the fix to the Portfile, though.

comment:13 Changed 15 years ago by skymoo (Adam Mercer)

Resolution: fixed
Status: newclosed

comment:14 Changed 15 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.