[MacPorts] #36866: clhep @2.1.2.5 bypasses destroot when installing libCLHEP.dylib
MacPorts
noreply at macports.org
Thu Nov 15 03:18:39 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 mojca.miklavec.lists@…):
According to jmr (looking at gdbm):
{{{
--- Portfile
+++ Portfile
@@ -39,5 +39,14 @@ post-build {
}
}
+# clean the files bypassing destroot (a bug in 2.1.2.5)
+# may be removed in November 2013
+pre-activate {
+ foreach file {${prefix}/lib/libCLHEP.a ${prefix}/lib/libCLHEP.dylib}
{
+ if {[file exists ${file}] && [registry_file_registered ${file}] ==
"0"} {
+ delete ${file}
+ }
+}
+
livecheck.type regex
livecheck.regex {<b>([0-9.]+)</b>}
}}}
But I don't really understand why {{{[registry_file_registered ${file}] ==
"0"}}} is needed. I would only do
{{{
pre-activate {
foreach file {${prefix}/lib/libCLHEP.a ${prefix}/lib/libCLHEP.dylib} {
if [file exists ${file}] {
delete ${file}
}
}
}}}
--
Ticket URL: <https://trac.macports.org/ticket/36866#comment:10>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list