Subject: pkg/22931: gtk2/Xrender problems
To: None <gnats-bugs@gnats.netbsd.org>
From: None <recht@NetBSD.org>
List: netbsd-bugs
Date: 09/24/2003 17:01:41
>Number:         22931
>Category:       pkg
>Synopsis:       gtk2/Xrender problems
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Sep 24 15:02:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Marc Recht
>Release:        NetBSD 1.6ZC
>Organization:
	
>Environment:
	
	
System: NetBSD leeloo.intern.geht.de 1.6ZC NetBSD 1.6ZC (LEELOO) #0: Tue Sep 23 22:33:25 CEST 2003 root@leeloo.intern.geht.de:/usr/obj/sys/arch/i386/compile/LEELOO i386
Architecture: i386
Machine: i386
>Description:
Since the Xrender/Xft2 changesa libgdk-x11-2.0.so gets build against
${LOCALBASE}/lib/libXrender.so.1 and ${X11BASE}/lib/libXrender.so.1 :

leeloo# ldd /usr/pkg/lib/libgdk-x11-2.0.so
/usr/pkg/lib/libgdk-x11-2.0.so:
         -lm.0 => /usr/lib/libm387.so.0
         -lm.0 => /usr/lib/libm.so.0
         -lintl.0 => /usr/lib/libintl.so.0
         -lglib-2.0.200 => /usr/pkg/lib/libglib-2.0.so.200
         -lgmodule-2.0.200 => /usr/pkg/lib/libgmodule-2.0.so.200
         -lgobject-2.0.200 => /usr/pkg/lib/libgobject-2.0.so.200
         -lpthread.0 => /usr/lib/libpthread.so.0
         -lgthread-2.0.200 => /usr/pkg/lib/libgthread-2.0.so.200
         -lgdk_pixbuf-2.0.200 => /usr/pkg/lib/libgdk_pixbuf-2.0.so.200
         -lX11.6 => /usr/X11R6/lib/libX11.so.6
         -lXext.6 => /usr/X11R6/lib/libXext.so.6
>How-To-Repeat:
	
>Fix:
Maybe check for Xrender>=0.8 to pick up XFree's libXrender (may break on XFree < 4.3). 
Bump the shared library version of pkgsrc's Xrender.
	
>Release-Note:
>Audit-Trail:
>Unformatted:
 	
 	
 >>>         -lXrender.1 => /usr/X11R6/lib/libXrender.so.1
          -lXrandr.2 => /usr/X11R6/lib/libXrandr.so.2
          -lXi.6 => /usr/X11R6/lib/libXi.so.6
          -lfreetype.9 => /usr/X11R6/lib/libfreetype.so.9
          -lexpat.4 => /usr/pkg/lib/libexpat.so.4
          -lfontconfig.1 => /usr/pkg/lib/libfontconfig.so.1
 >>>         -lXrender.1 => /usr/pkg/lib/libXrender.so.1
          -lXft.2 => /usr/pkg/lib/libXft.so.2
          -lpango-1.0.200 => /usr/pkg/lib/libpango-1.0.so.200
          -lpangoxft-1.0.200 => /usr/pkg/lib/libpangoxft-1.0.so.200
          -lpangox-1.0.200 => /usr/pkg/lib/libpangox-1.0.so.200
 
 Because of that gtk2 is linked against both Xrender libs and also every
 gtk2 application.
 The reason that the Xrender is used from pkgsrc at all and not the version
 of the installed XFree 4.3 is:
 BUILDLINK_DEPENDS.Xrender= Xrender>=0.8.2
 in the Xft2's buildlink2.mk. (Xrender has only a major and a minor number
 in the header (0.8 for the XFree 4.3 version)).