Subject: Re: wscons support for various framebuffers (questions from NetBSD sparc newbie)
To: NetBSD/sparc Discussion List <port-sparc@NetBSD.org>
From: Greg A. Woods <woods@weird.com>
List: port-sparc
Date: 03/04/2007 20:22:19
At Sat, 3 Mar 2007 17:56:52 -0500,
Michael wrote:
> 
> Then you should probably read the XFree86's SBus code.

I wouldn't have had to if the naming conventions were not so blatantly
misleading....

Too much code copying and not enough re-factoring, me thinks!


But getting back to XFree86 on NetBSD/sparc.  Just where is it supposed
to come from anyway?  I did a build this afternoon of a very recent
rendition of the netbsd-3 branch for sparc and ended up with just and
only the following:

$ cd /build/woods/always/netbsd-3-sparc-ssv8-destdir-no-g/usr/X11R6/bin/  
$ ls -l X*
lrwxr-xr-x  1 woods  wheel       19 Mar  4 14:44 X -> /usr/X11R6/bin/Xsun
-r-xr-xr-x  1 woods  wheel  3290089 Mar  3 20:59 Xdmx
-r-xr-xr-x  1 woods  wheel    27494 Jun  9  2001 Xmark
-r-xr-xr-x  1 woods  wheel  5058610 Mar  3 20:59 Xnest
-r-xr-xr-x  1 woods  wheel  2833992 Mar  3 20:59 Xprt
-rwx--x--x  1 woods  wheel  4696696 Mar  3 20:59 Xsun
-rwx--x--x  1 woods  wheel  4911095 Mar  3 20:59 Xsun24
-rwx--x--x  1 woods  wheel  4519263 Mar  3 20:59 XsunMono
-r-xr-xr-x  1 woods  wheel  4598289 Mar  3 20:59 Xvfb

I see no XFree86.


There's something drastically wrong with the XsunMono binary built that
way too because it's drastically bigger than the one built from
xsrc-current on a sparc using the Imake build system:

$ cd netbsd-3-sparc-ssv8-destdir-no-g/usr/X11R6/bin/
$ sparc--netbsdelf-size XsunMono
   text    data     bss     dec     hex filename
3841400  394544  165248 4401192  432828 XsunMono


It should be not much different from these:

# size XsunM*
text    data    bss     dec     hex     filename
1942304 275700  115424  2333428 239af4  XsunMono
1788604 313244  81048   2182896 214ef0  XsunMono-r6.3

(the first one is from xsrc-current/xfree/xc, built using Imake on 1.6.2
and linked statically, the second from xsrc-1-6/xc on the same host, and
the second is the one I actually use of course because it doesn't suffer
from any of the major bugs in the xfree/xc version)

-- 
						Greg A. Woods

H:+1 416 218-0098 W:+1 416 489-5852 x122 VE3TCP RoboHack <woods@robohack.ca>
Planix, Inc. <woods@planix.com>       Secrets of the Weird <woods@weird.com>