On Thu, Jan 6, 2011 at 6:29 PM, Matt Sergeant <matt@...> wrote:
> I'm not sure what I did. I was trying to get "Build and Archive" working
> (it moaned about not having DWARF symbols or something), and now when I
> run dvdspanner it tries to pick up perl 5.10 libraries.
...
> What did I do wrong?
Nothing - it's a bug, a remnant of my aborted attempt at 5.10 support.
Fortunately, there's an easy workaround - while there's no 5.10
support bundle, there *is* support for a CamelBones.plist file that
lists the Perl versions your app supports:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CBSupportedPerls</key>
<array>
<string>5.8.9</string>
<string>5.8.8</string>
<string>5.8.6</string>
</array>
</dict>
</plist>
The way the version-checking works is:
1. If there is no .plist, the default list of supported Perl
versions is: 5.10.0 (this is the bug), 5.8.9, 5.8.8, 5.8.6.
2. Check user defaults for the value of the "Version" key in the
com.apple.versioner.perl domain, and use that *if* it appears in the
list of supported Perls.
3. If no Version key exists, or if it refers to an unsupported Perl
version, check for a support bundle from the list of supported
versions, in the order listed.
4. A value for the "perl" key in the org.camelbones domain overrides
all of this. This key refers to a perl binary (i.e.
/usr/bin/perl5.8.6), not just a version number. The binary is executed
(via NSTask) with run a one-liner that prints the version & arch
strings in a format that matches that of the support bundle file
names.
sherm--
--
Cocoa programming in Perl:
http://camelbones.sourceforge.net
|