[MacPorts] #20489: devel/caml-json-wheel installs file outside of destroot
MacPorts
noreply at macports.org
Fri Jul 31 10:36:44 PDT 2009
#20489: devel/caml-json-wheel installs file outside of destroot
------------------------------+---------------------------------------------
Reporter: anil@… | Owner: snc@…
Type: defect | Status: closed
Priority: Normal | Milestone:
Component: ports | Version: 1.7.1
Resolution: fixed | Keywords:
Port: caml-json-wheel |
------------------------------+---------------------------------------------
Changes (by ryandesign@…):
* cc: ryandesign@… (added)
Comment:
Jeremy, I corrected the log message from r54632. This wasn't an mtree
violation; it was that the port installed a file directly into
${prefix}/bin, outside of ${destroot}.
Anil, a few notes:
* Since this changes what files are registered to the port, you must
increase the port's revision (if you are not already increasing the
version)
* There's no need to put a slash before ${prefix} because ${prefix}
already begins with a slash
* Using code I copied from my lisaem port, I added a pre-activate phase
to remove the rogue file from ${prefix}/bin if it's there; otherwise, the
user would get this message:
{{{
---> Activating caml-json-wheel @1.0.6_1
Error: Target org.macports.activate returned: Image error:
/opt/local/bin/jsoncat already exists and does not belong to a registered
port. Unable to activate port caml-json-wheel.
Error: Status 1 encountered during processing.
}}}
I committed these changes in r54686.
--
Ticket URL: <http://trac.macports.org/ticket/20489#comment:3>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list