symlinks deleted by destroot

Jeremy Huddleston jeremyhu at macports.org
Sun Jun 21 12:21:26 PDT 2009


Has something in base recently decided to delete symlinks?

The Makefile is clearly doing:
ln -s /opt/local/lib/xulrunner/sdk/lib /path/to/my/destroot/opt/local/ 
lib/xulrunner/lib

I even put a sleep after it in the Makefile to verify that the  
symlinks were getting built (they were).  Then after my sleep exited,  
something deleted them. There not much after these symlinks are  
created in the log, and there is nothing special for destroot in the  
Portfile (just a one-liner post-destroot).  Here's the tail of the log  
starting with my sleep (at which point the symlinks were present):

/bin/sleep 60
.../work/mozilla-1.9.1/config/nsinstall -D .../work/destroot/opt/local/ 
etc/gre.d
.../work/mozilla-1.9.1/config/nsinstall -t -m 644  
1.9.1b4.system.conf .../work/destroot/opt/local/etc/gre.d
pkg_config_file: libxul.pc libxul-embedding.pc libxul-unstable.pc  
libxul-embedding-unstable.pc mozilla-js.pc mozilla-plugin.pc mozilla- 
gtkmozembed.pc mozilla-gtkmozembed-embedding.pc
.../work/mozilla-1.9.1/config/nsinstall -t -m 644 libxul.pc libxul- 
embedding.pc libxul-unstable.pc libxul-embedding-unstable.pc mozilla- 
js.pc mozilla-plugin.pc mozilla-gtkmozembed.pc mozilla-gtkmozembed- 
embedding.pc .../work/destroot/opt/local/lib/pkgconfig
gmake[1]: Leaving directory `.../work/mozilla-1.9.1/xulrunner/installer'
DEBUG: Executing proc-post-org.macports.destroot-destroot-0
DEBUG: Executing portdestroot::destroot_finish
DEBUG: checking for mtree violations

In another terminal, I was waiting for the symlink to be deleted:
while [[ -h lib ]]; do true; done ; echo "symlink deleted" >> ~/src/ 
macports-trunk/dports/devel/xulrunner-devel/destroot.log

and the "symlink deleted" got appended to the log just after "DEBUG:  
Executing portdestroot::destroot_finish"

Thoughts?

--Jeremy



More information about the macports-dev mailing list