[MacPorts] #20489: devel/caml-json-wheel installs file outside of destroot
#20489: devel/caml-json-wheel installs file outside of destroot -----------------------------+---------------------------------------------- Reporter: anil@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.7.1 Keywords: | Port: -----------------------------+---------------------------------------------- This small patch fixes it: {{{ Index: Portfile =================================================================== --- Portfile (revision 54590) +++ Portfile (working copy) @@ -26,6 +26,7 @@ port:caml-ocamlnet use_configure no +destroot.env-append BINDIR=${destroot}/${prefix}/bin post-patch { set ocaml_site_path [exec ocamlfind printconf destdir] }}} -- Ticket URL: <http://trac.macports.org/ticket/20489> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20489: devel/caml-json-wheel installs file outside of destroot -----------------------------+---------------------------------------------- Reporter: anil@… | Owner: snc@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.7.1 Keywords: | Port: caml-json-wheel -----------------------------+---------------------------------------------- Changes (by snc@…): * owner: macports-tickets@… => snc@… * status: new => assigned * port: => caml-json-wheel -- Ticket URL: <http://trac.macports.org/ticket/20489#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#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 snc@…): * status: assigned => closed * resolution: => fixed Comment: Committed in r54632. -- Ticket URL: <http://trac.macports.org/ticket/20489#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#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
#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 | ------------------------------+--------------------------------------------- Comment(by anil@…): thanks for the tips, all noted. -- Ticket URL: <http://trac.macports.org/ticket/20489#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts