Hi Charles. This discussion belongs on the macports-users mailing list so I'm directing it back there, but see my answers below. On Nov 16, 2007, at 10:27, Charles Rich wrote:
On Nov 16, 2007, at 5:04 AM, Ryan Schmidt wrote:
On Nov 15, 2007, at 20:49, Charles Rich wrote:
On Nov 14, 2007, at 4:31 PM, William Davis wrote:
On Nov 14, 2007, at 2:01 PM, Charles Rich wrote:
Here's the error:
sudo port upgrade xfig ---> Fetching xfig ---> Verifying checksum(s) for xfig ---> Extracting xfig ---> Applying patches to xfig ---> Configuring xfig ---> Building xfig with target all ---> Staging xfig into destroot Error: Target org.macports.destroot returned: error deleting "/ opt/local/var/macports/build/ _opt_local_var_macports_sources_rsync.macports.org_release_ports_g raphics_xfig/work/destroot/usr/X11R6/lib/X11/app-defaults": directory not empty
The directory has two files: Fig and Fig-color
I tried redoing this multiple times and variations (with -f, etc.), but to no avail.
sudo port -d clean xfig
then try upgrading again.
Cleaning and reinstalling was one of the first variations I tried. No difference in behavior. I think it is must be a bug in the install script for xfig?
xfig installs fine for me. But I believe I encountered this problem too, back when I had the XFree86 port installed. IIRC uninstalling XFree86 and using Apple's X11 instead was the workaround.
But it would be nice if the port would work with both environments, and you should file a bug about this in Trac. Be sure to assign it to the port's maintainer. Instructions on filing bugs are here:
http://trac.macosforge.org/projects/macports/wiki/TracTicketing
Hi Ryan, Thanks for the advice. I did in fact install xfig before Apple X11, which means Macports installed xFree86. So I uninstalled xFree86, cleaned xfig and did a new install, and got the following warnings. Can you tell me what they mean?
sudo port clean xfig ---> Cleaning xfig ~> sudo port install xfig ---> Fetching xfig ---> Verifying checksum(s) for xfig ---> Extracting xfig ---> Applying patches to xfig ---> Configuring xfig ---> Building xfig with target all ---> Staging xfig into destroot Warning: violation by /etc Warning: violation by /usr Warning: xfig violates the layout of the ports-filesystems! Warning: Please fix or indicate this misbehavior (if it is intended), it will be an error in future releases! ---> Installing xfig 3.2.5_1 ---> Activating xfig 3.2.5_1 ---> Cleaning xfig
This means the maintainer of the port has not yet resolved this issue: http://trac.macports.org/projects/macports/ticket/12738
Also, when I tried to run xfig, I got the following error:
~> xfig dyld: Library not loaded: /usr/X11R6/lib/libXt.6.dylib Referenced from: /opt/local/lib/libXaw3d.7.dylib Reason: Incompatible library version: libXaw3d.7.dylib requires version 6.1.0 or later, but libXt.6.dylib provides version 6.0.0 Trace/BPT trap ~>
Your help is very much appreciated,
C. Rich
P.S. I am running 10.4.11.
That means libXaw3d.7.dylib was built back when XFree86 was installed. XFree86 provided version 6.1.0 of libXt.6.dylib. But now you're using Apple's X11 which is older and only provides version 6.0.0 of libXt.6.dylib. Therefore libXaw3d.7.dylib needs to be rebuilt. You can use "port provides /opt/local/lib/libXaw3d.7.dylib" to discover which port provides that library. It turns out it's the Xaw3d port. So you should rebuild Xaw3d with "sudo port -ncuf upgrade Xaw3d". You may find other ports that were built against the libraries provided by XFree86 which now have to be rebuilt to use the libraries provided by Apple's X11.