Subject: Solaris: native Xrender not recognized
To: None <tech-pkg@NetBSD.org>
From: Hubert Feyrer <hubert@feyrer.de>
List: tech-pkg
Date: 06/15/2005 19:18:01
leaving aside that pkgsrc/mk/buildlink3/imake-check has on Solaris, there 
are problems recognizing the builtin Xrender. There is a Xrender.h 
present, but the problem's deeper, as not even the OpenWindows Version is 
recorded properly in BUILTIN_X11_VERSION.native - this also happens for 
Irix and OSF/1. The patch to version.mk is a cludge which the variable to 
_something_. It's not ready for primetime.

With BUILTIN_X11_VERSION.native set, pkgsrc/x11/Xrender/builtin.mk then 
doesn't know how to determine if Xrender is present on the named 
OpenWindows version, as no corresponding 
_BLTN_XRENDER_${_version_}.openwin variable is set. Again this is also the 
case for other systems like Irix etc. The second patch below does 
_something_ here again, but it's also more an indicator where to fill in 
real data, and not ready for use too.

I don't know how to determine the OpenWindows Version here, else I could 
at least tell one version that has Xrender - fwiw, I'm running Solaris 
9/x86 here, somewhat patched.


  - Hubert


Index: version.mk
===================================================================
RCS file: /cvsroot/pkgsrc/pkgtools/x11-links/version.mk,v
retrieving revision 1.1
diff -u -r1.1 version.mk
--- version.mk	1 Jun 2005 18:03:08 -0000	1.1
+++ version.mk	15 Jun 2005 17:11:24 -0000
@@ -24,12 +24,16 @@
  BUILTIN_X11_VERSION.native=	${BUILTIN_X11_VERSION.XFree86}
  .  elif !empty(X11BASE:M*openwin)
  BUILTIN_X11_TYPE.native=	openwin
+BUILTIN_X11_VERSION.native=	unknown
  .  elif ${OPSYS} == "IRIX"
  BUILTIN_X11_TYPE.native=	xsgi
+BUILTIN_X11_VERSION.native=	unknown
  .  elif ${OPSYS} == "OSF1"
  BUILTIN_X11_TYPE.native=	xdec
+BUILTIN_X11_VERSION.native=	unknown
  .  else
  BUILTIN_X11_TYPE.native=	unknown
+BUILTIN_X11_VERSION.native=	unknown
  .  endif
  .endif
  MAKEVARS+=	BUILTIN_X11_VERSION.native
Index: Xrender/builtin.mk
===================================================================
RCS file: /cvsroot/pkgsrc/x11/Xrender/builtin.mk,v
retrieving revision 1.11
diff -u -r1.11 builtin.mk
--- Xrender/builtin.mk	3 Jun 2005 19:12:50 -0000	1.11
+++ Xrender/builtin.mk	15 Jun 2005 17:17:46 -0000
@@ -42,6 +42,7 @@
  				4.3.[1-8][0-9]* 4.3.9[0-8]*		\
  				4.3.99.* 4.[4-9]* 4.[1-9][0-9]*
  _BLTN_XRENDER_0.8.xorg=		6.[7-9]* 6.[1-9][0-9]*
+_BLTN_XRENDER_0.8.openwin=	unknown
  .  for _version_ in ${_BLTN_XRENDER_VERSIONS}
  .    for _pattern_ in ${_BLTN_XRENDER_${_version_}.${BUILTIN_X11_TYPE.${X11_TYPE}}}
  .      if !empty(BUILTIN_X11_VERSION.${X11_TYPE}:M${_pattern_})