Subject: Re: wm/compiz Mesa 6.5.2
To: None <M.Drochner@fz-juelich.de>
From: Gilles Dauphin <Gilles.Dauphin@enst.fr>
List: tech-pkg
Date: 04/25/2007 15:46:56
--Business_of_Ferrets_081_000
Content-Type: TEXT/plain; charset=us-ascii
Content-MD5: C0SsayrxY608uYo8rLsgnQ==


> X-Greylist: delayed 603 seconds by postgrey-1.27 at revol2.enst.fr; Wed, 25 
Apr 2007 01:16:06 CEST
> From: Matthias Drochner <M.Drochner@fz-juelich.de>
> To: Gilles.Dauphin@enst.fr
> Cc: tech-pkg@NetBSD.org
> Subject: Re: wm/compiz Mesa 6.5.2
> Date: Wed, 25 Apr 2007 01:05:59 +0200
> X-Mts: smtp
> X-imss-version: 2.046
> X-imss-result: Passed
> X-imss-approveListMatch: *@fz-juelich.de
> 
> 
> > compiz package need the latest Mesa6.5.2
> 
> Yes, I think I've mentioned this in the commit message.
> 
> > add a BUILDLINK_API_DEPENDS >=6.5.2
> 
> Actually, one can build compiz against the pkgsrc Mesa-6.4
> just fine. The resulting binary is OK, it just needs a Mesa-6.5
> libGL at runtime to work correctly. An LD_LIBRARY_PATH does it
> for me. I don't want to be anal here, but that's not an _API_
> dependency. Not even ABI, just some functional dependency pkgsrc
> has no means to express.
> 
> Updating Mesa will happen, but doing so in pkgsrc as a full
> dependency is expensive, so it couldn't be done before the
> Q1/07 branch.

First step to compiz on solaris:
I compile wip/MesaLib for Solaris10 amd64 (gcc412 -m64) with the following
 patch:

--Business_of_Ferrets_081_000
Content-Type: TEXT/plain; name=pgd-aa; charset=us-ascii; x-unix-mode=0644
Content-Description: pgd-aa
Content-MD5: W5zK6ShC/BFJnAzpo3Bu2Q==

--- Makefile.pkgsrc	Tue Apr 24 19:25:55 2007
+++ Makefile	Tue Apr 24 19:26:50 2007
@@ -146,7 +146,7 @@
 sunos5-v9 \
 sunos5-v9-static \
 ultrix-gcc:
-	@ if [ -e configs/current ] ; then \
+	@ if [ -f configs/current ] ; then \
 		echo "Please run 'make realclean' before changing configs" ; \
 		exit 1 ; \
 	fi

--Business_of_Ferrets_081_000
Content-Type: TEXT/plain; name=pgd-ab; charset=us-ascii; x-unix-mode=0644
Content-Description: pgd-ab
Content-MD5: gha9hRJ0NHhWrVSpcsr52w==

--- include/GL/glext.h.orig	Sat Sep 16 06:11:02 2006
+++ include/GL/glext.h	Wed Apr 25 15:24:41 2007
@@ -3167,6 +3167,7 @@
 #include <inttypes.h>
 #elif defined(__sun__)
 #include <inttypes.h>
+#ifndef _INT64_TYPE /* if it is define don't redefine */
 #if defined(__STDC__)
 #if defined(__arch64__)
 typedef long int int64_t;
@@ -3176,6 +3177,8 @@
 typedef unsigned long long int uint64_t;
 #endif /* __arch64__ */
 #endif /* __STDC__ */
+#endif /* _INT64_TYPE */
+
 #elif defined( __VMS )
 #include <inttypes.h>
 #elif defined(__SCO__) || defined(__USLC__)

--Business_of_Ferrets_081_000
Content-Type: TEXT/plain; name=pgd-ac; charset=us-ascii; x-unix-mode=0644
Content-Description: pgd-ac
Content-MD5: gIpeHG90y/URcjOjqIZlXg==

--- include/GL/glxext.h.pkgsrc	Wed Apr 25 14:54:25 2007
+++ include/GL/glxext.h	Wed Apr 25 15:28:28 2007
@@ -349,6 +349,7 @@
 #include <inttypes.h>
 #elif defined(__sun__)
 #include <inttypes.h>
+#ifndef _INT64_TYPE /* if it is define don't redefine */
 #if defined(__STDC__)
 #if defined(__arch64__) || defined(_LP64)
 typedef long int int64_t;
@@ -358,6 +359,7 @@
 typedef unsigned long long int uint64_t;
 #endif /* __arch64__ */
 #endif /* __STDC__ */
+#endif /* _INT64_TYPE */
 #elif defined( __VMS ) || defined(__sgi)
 #include <inttypes.h>
 #elif defined(__SCO__) || defined(__USLC__)

--Business_of_Ferrets_081_000--