[MacPorts] #36866: clhep @2.1.2.5 bypasses destroot when installing libCLHEP.dylib
MacPorts
noreply at macports.org
Thu Nov 15 13:16:53 PST 2012
#36866: clhep @2.1.2.5 bypasses destroot when installing libCLHEP.dylib
-------------------------------------+---------------------------------
Reporter: mojca.miklavec.lists@… | Owner: cristiano.fontana@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.1.2
Resolution: | Keywords:
Port: clhep |
-------------------------------------+---------------------------------
Comment (by macsforever2000@…):
@mojca: Your code does not work for me. I am not able to get this to work.
Here is my latest attempt:
{{{
pre-activate {
foreach file {lib/libCLHEP.a lib/libCLHEP.dylib} {
set filepath ${prefix}/${file}
puts ${filepath}
if {[file exists ${filepath}]} {
puts "file exists!"
if {[registry_file_registered ${filepath}] == "0"} {
puts "file is in registry"
if {[catch {delete ${filepath}}]} {
ui_warn "Cannot delete ${filepath}; please remove it
manually"
}
} else {
puts "file is NOT in registry!"
}
} else {
puts "file does NOT exist!!!"
}
}
}
}}}
What happens is that the correct filename appears for each file, but the
{{{file exists}}} condition does not pass even though the file definitely
does exist on my computer and is not registered. Ideas anyone?
--
Ticket URL: <https://trac.macports.org/ticket/36866#comment:11>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list