[MacPorts] #38229: birdfont: LSOpenURLsWithRole() failed with error -10810 for the file /Applications/MacPorts/BirdFont.app.
MacPorts
noreply at macports.org
Wed Feb 27 18:59:08 PST 2013
#38229: birdfont: LSOpenURLsWithRole() failed with error -10810 for the file
/Applications/MacPorts/BirdFont.app.
--------------------------+------------------------------
Reporter: ryandesign@… | Owner: johan.mattsson@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.1.3
Keywords: | Port: birdfont
--------------------------+------------------------------
Trying to open the birdfont application fails with:
{{{
$ open /Applications/MacPorts/BirdFont.app
LSOpenURLsWithRole() failed with error -10810 for the file
/Applications/MacPorts/BirdFont.app.
}}}
This is because
/Applications/MacPorts/BirdFont.app/Contents/MacOS/birdfont.sh does not
have the execute bit set.
There is a bug in the install script, which runs:
{{{
subprocess.check_call ('cp -r build/BirdFont.app ' + dest +
'/Applications/', shell=True)
}}}
First, the use of the cp "-r" option is "strongly discouraged" according
to the manpage. Use "-R" instead. Also, use "-p" to preserve permissions.
(Don't use "-a", which combines -R and -P and -p, because although that's
what you want, it doesn't exist on Tiger.) But this is not the cause of
the problem in our case because in the MacPorts portfile we don't use
that; we use a post-destroot block to copy the app manually. So the wrong
permissions are already happening on that file during the build phase.
--
Ticket URL: <https://trac.macports.org/ticket/38229>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list