Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 Mar 2013 20:59:07 GMT
From:      Olivier Cochard-Labbe <olivier@cochard.me>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/176703: graphics/dri : Fix complitation (not useability) on ARM
Message-ID:  <201303062059.r26Kx7Hl002344@red.freebsd.org>
Resent-Message-ID: <201303062100.r26L02p5074491@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         176703
>Category:       ports
>Synopsis:       graphics/dri : Fix complitation (not useability) on ARM
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Mar 06 21:00:01 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Olivier Cochard-Labbe
>Release:        current
>Organization:
>Environment:
FreeBSD raspberry-pi.local 10.0-CURRENT FreeBSD 10.0-CURRENT #0 r247613M: Sat Mar  2 16:03:10 JST 2013     aoyama@fbs.local:/usr/obj-rpi-clang/arm.armv6/usr/src/sys/RPI-B-test18  arm
>Description:
For compiling x11/xorg-minimal on raspberry pi, I had to patch graphics/dri.
Raspberry pi didn't support dri, but this patch (with the previous graphics/libGL patch ) permit to compile (and start) xorg-minimal without complain.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

--- src/gallium/include/pipe/p_config.h.orig	2011-10-15 00:43:58.000000000 +0000
+++ src/gallium/include/pipe/p_config.h	2013-03-04 10:07:11.944997956 +0000
@@ -129,6 +129,15 @@
 # define PIPE_ARCH_BIG_ENDIAN
 #endif
 
+#elif defined(__FreeBSD__)
+#include <machine/endian.h>
+
+#if defined(_LITTLE_ENDIAN)
+# define PIPE_ARCH_LITTLE_ENDIAN
+#elif defined(_BIG_ENDIAN)
+# define PIPE_ARCH_BIG_ENDIAN
+#endif
+
 #else
 
 #if defined(PIPE_ARCH_X86) || defined(PIPE_ARCH_X86_64)


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201303062059.r26Kx7Hl002344>