From nobody@FreeBSD.org  Wed Mar  6 20:57:14 2013
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1])
	by hub.freebsd.org (Postfix) with ESMTP id E90D56A1
	for <freebsd-gnats-submit@FreeBSD.org>; Wed,  6 Mar 2013 20:57:14 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id C1AEF7E2
	for <freebsd-gnats-submit@FreeBSD.org>; Wed,  6 Mar 2013 20:57:14 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.5/8.14.5) with ESMTP id r26KvDQf002166
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 6 Mar 2013 20:57:13 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.5/8.14.5/Submit) id r26KvD8P002165;
	Wed, 6 Mar 2013 20:57:13 GMT
	(envelope-from nobody)
Message-Id: <201303062057.r26KvD8P002165@red.freebsd.org>
Date: Wed, 6 Mar 2013 20:57:13 GMT
From: Olivier Cochard-Labbe <olivier@cochard.me>
To: freebsd-gnats-submit@FreeBSD.org
Subject: graphics/libGL : Fix complitation (not useability) on ARM
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         176705
>Category:       ports
>Synopsis:       graphics/libGL : Fix complitation (not useability) on ARM
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-x11
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Mar 06 21:00:02 UTC 2013
>Closed-Date:    
>Last-Modified:  Wed Mar 06 21:00:25 UTC 2013
>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/libGL.
Raspberry pi didn't support dri/libGL, but this pach (with graphics/dri patch that follow)  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	2013-03-04 14:14:41.558073315 +0000
+++ src/gallium/include/pipe/p_config.h	2013-03-04 14:15:38.767155403 +0000
@@ -136,6 +136,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:
Responsible-Changed-From-To: freebsd-ports-bugs->freebsd-x11 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Wed Mar 6 21:00:24 UTC 2013 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=176705 
>Unformatted:
