Re: gtk+2 on 10.5 - dependency on libXdamage old version

Alexander Hansen <[email protected]> Sat, 17 Oct 2009 13:51:43 -0400
Newsgroups gmane.os.apple.fink.gnome
Message-ID <[email protected]>
Ilan Boaz wrote:
> Hello,
>
> I recently upgraded from 10.4 to 10.5 on a G5. I then installed  
> XQuartz 2.4.0, Xcode 3.1.3 (with the SDK package), and fink (0.29.10)  
> using selfupdate-rsync with the unstable branches.
>
> fink install gtk+2 broke with:
> powerpc-apple-darwin9-gcc-4.0.1: /usr/X11/lib/libXdamage.1.0.0.dylib:  
> No such file or directory
>
> In fact, libXdamage.1.0.0.dylib did not exist, but the newer  
> libXdamage.1.1.0.dylib does.
>  > ls -l /usr/X11/lib/libXdamage.*
> lrwxr-xr-x  1 root  wheel     18 Oct  6 17:13 /usr/X11/lib/libXdamage. 
> 1.1.0.dylib -> libXdamage.1.dylib
> -rwxr-xr-x  1 root  wheel  66768 Aug 12 01:32 /usr/X11/lib/libXdamage. 
> 1.dylib
> lrwxr-xr-x  1 root  wheel     18 Oct  6 17:13 /usr/X11/lib/ 
> libXdamage.dylib -> libXdamage.1.dylib
> -rwxr-xr-x  1 root  wheel    936 Sep  8  2007 /usr/X11/lib/libXdamage.la
>
> After many failed ideas and reading older posts related to ibXdamage. 
> 1.1.0.dylib, the following recipe solved the problem for me:
> 1. sudo ln -s /usr/X11/lib/libXdamage.1.1.0.dylib  libXdamage. 
> 1.0.0.dylib
> 2. fink update pango1 atk1 (gtk+2 depends on them).
> 3. fink scanpackages, fink index, fink clean, and fink selfupdate.
> 4. fink install gtk+2 gtk+2-dev -- this time it worked.
>
> I guess the symlink step was essential. If so, gtk+2 should look for  
> the newer libXdamage.1.1.0.dylib as well.
>
> At any rate, this recipe might help others who experience the same  
> problem.
>
> Boaz
>
>
>   

Don't send posts to "[email protected]".  That's
the address to use if you want to subscribe.

I believe this is due to some package from the binary distribution
having been built against a version of X11 that had

/usr/X11/lib/libXdamage.1.0.0.dylib

Really all that is needed from the recipe is step 1, "fink selfupdate"
from step 3, and step 4. 

"scanpackages" is completely irrelevant here, because all that does is
tell the apt database where your binaries are, and it's run
automatically after new packages get built by default. 
"fink index" is also generally not needed, because it gets run on every
"fink install" command.
"fink cleanup" doesn't do anything at all in this case, since it removes
only source tarballs and .deb files that are _older_ than what you're
trying to install.

pango1 isn't a real package anymore, and just installing gtk+2 should
update pango1-xft2-ft219 and atk1 for you.


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference