Openchrome on OBSD 4.2 working
Hi,

With a little bit of touching up I have managed to build and install the latest 
trunk Openchrome driver under OpenBSD 4.2 with its Xorg 7.2.0 - yay. And once I 
get the right monitor settings to solve the bandwidth problems I am sitting 
happily at 1280x1024 32bpp. Happy bunny.

For the record, the "fixes" I had to do were as follows:

1. src/Makefile.am - the svn revision buildcomment needs an extra \ before \n, 
otherwise the generated C macro spans 2 lines which is a no no and kills the 
build. This may a Linux/OpenBSD compiler default settings issue, but either way 
it just ain't C. Here is the svn diff for it:

Index: src/Makefile.am
===================================================================
--- src/Makefile.am     (revision 493)
+++ src/Makefile.am     (working copy)
@@ -90,7 +90,7 @@
        echo '#include "svnrelease.h"' > [EMAIL PROTECTED]; \
        elif [ -d .svn ]; then \
        echo '#define BUILDCOMMENT "(development build, at svn revision '\
-       "`svnversion -nc .. | sed -e s/^[^:]*://`"')\n"' > [EMAIL PROTECTED]; \
+       "`svnversion -nc .. | sed -e s/^[^:]*://`"')\\n"' > [EMAIL PROTECTED]; \
        else date +'#define BUILDCOMMENT "(development build, compiled on 
%c)\n"' > [EMAIL PROTECTED]; fi
 
        @(chmod 666 [EMAIL PROTECTED] 2> /dev/null || /bin/true)

While hacking this I also encountered an assumption that /bin/true exists - 
this is not so on OBSD, it's in /usr/bin, but if the buildcomment fix is in 
then this is not triggered.

2. The install assumes the X11 modules dir is in /usr/lib/xorg when on default 
install OBSD it is /usr/X11R6/lib - a link sorted that out for now.

3. The installer assumes the man path for the man page is /usr/man when it 
should be /usr/local/man, simply copied the file and removed the wrong 
directory.

And that is it - I haven't tried any of the fancy stuff, just using 2d windows, 
no TV, no video, etc.

If you want me to check build changes for OBSD compatibility I am more than 
happy to help.

TTFN

MW

----

Reply Link: 
<http://wiki.openchrome.org/tikiwiki/tiki-view_forum_thread.php?forumId=1&comments_parentId=4442#form>


_______________________________________________
openchrome-users mailing list
[email protected]
http://wiki.openchrome.org/mailman/listinfo/openchrome-users
Main page:
http://www.openchrome.org
Wiki:
http://wiki.openchrome.org
User Forum:
http://wiki.openchrome.org/tikiwiki/tiki-view_forum.php?forumId=1


Reply via email to