[MacPorts] #28251: caml-findlib: add pre-deactivate code
#28251: caml-findlib: add pre-deactivate code -------------------------------------+-------------------------------------- Reporter: ryandesign@… | Owner: mww@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: caml-findlib -------------------------------------+-------------------------------------- caml-findlib prints this message during installation: {{{ ---> Activating caml-findlib @1.2.6_0 ## Adding line `/opt/local/lib/ocaml/site-lib/stublibs' to file /opt/local/lib/ocaml/ld.conf ## Be sure to remove this line if you uninstall caml-findlib ---> Cleaning caml-findlib }}} And the portfile contains this commented-out block of code: {{{ # pre-deactivate doesn't actually exist # which annoys me, because it means I can't remove the line I added to ld.conf #pre-deactivate { # # remove our stublibs dir path from ld.conf # set ocamlfind_destdir [file normalize ${prefix}/lib/ocaml/site- lib/stublibs] # set ldconfpath ${destroot}[exec ${destroot}${prefix}/bin/ocamlfind printconf ldconf] # set ldconfoutpath [file dirname $ldconfpath]/.[file tail $ldconfpath]~ # if {[file exists $ldconfpath]} then { # set ldconf [open $ldconfpath r] # set ldconfout [open $ldconfoutpath w] # while {[gets $ldconf line] != -1} { # if {![string equal $line $ocamlfind_destdir]} { # puts $ldconfout $line # } # } # close $ldconfout # close $ldconf # file rename -force $ldconfoutpath $ldconfpath # } #} }}} MacPorts does support pre-deactivate code blocks now, as long as the user is using the sqlite registry. So caml-findlib should not print this message, and should remove the line it added in post-activate, unless the user is still using the flat registry. See other existing ports having pre-deactivate blocks for suggestions of how this can be done. -- Ticket URL: <https://trac.macports.org/ticket/28251> MacPorts <http://www.macports.org/> Ports system for Mac OS
#28251: caml-findlib: add pre-deactivate code --------------------------------------+------------------------------------- Reporter: ryandesign@… | Owner: mww@… Type: enhancement | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Resolution: fixed | Keywords: Port: caml-findlib | --------------------------------------+------------------------------------- Changes (by jmr@…): * status: new => closed * resolution: => fixed Comment: r77742 -- Ticket URL: <https://trac.macports.org/ticket/28251#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts