<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Is there a command like "port clean", but which just reverses the
effect of "port destroot" but does not reverse the effect of "port
build"? <br>
</p>
<p>I am developing a portfile, and I'm at the stage where I debug
the destroot and post-destroot activities. I want a way to be able
to change the Portfile and retry "port destroot", without having
to do the configure and build phases over again. <br>
</p>
<p>Here is what has not worked:</p>
<ol>
<li>Edit Portfile, then command "sudo port destroot myport".
MacPorts notices that the Portfile has changed, does a "port
clean", and then redoes the configure and build phases
unnecessarily.</li>
<li>Edit Portfile, then command "sudo port -o destroot myport".
MacPorts disregards the change to the Portfile, but also thinks
that the destroot is complete, so does nothing.</li>
<li>Delete $(port work myport)/destroot/ dir, then command "sudo
port destroot myport". MacPorts appears not to notice that the
destroot/ dir is gone.</li>
<li>Edit Portfile, then command "sudo port clean --archive
myport", then command "sudo port -o destroot myport". Same
MacPorts behaviour as without the "port clean --archive".</li>
</ol>
<p>Is there a way to avoid the tedium of unnecessary configure and
build phases?</p>
Best regards,<br>
—Jim DeLaHunt
<p><br>
</p>
</body>
</html>