ports/146019: [patch] make stlport 5.1.5 build on powerpc

Andreas Tobler andreast-list at fgznet.ch
Sat Apr 24 19:10:02 UTC 2010


>Number:         146019
>Category:       ports
>Synopsis:       [patch] make stlport 5.1.5 build on powerpc
>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:   Sat Apr 24 19:10:00 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Andreas Tobler
>Release:        -CURRENT
>Organization:
none
>Environment:
FreeBSD wolfram.andreas.nets 9.0-CURRENT FreeBSD 9.0-CURRENT #1 r206757M: Mon Apr 19 19:38:56 CEST 2010     root at wolfram.andreas.nets:/usr/obj/export/devel/fbsd/src/sys/ANDREAST_ppc_pb  powerpc
>Description:
devel/stlport does not build on powerpc.
>How-To-Repeat:

>Fix:
the Attached patch fixes that.
Remove the txt extension and place it under files.

Patch attached with submission follows:

--- stlport/stl/config/features.h.orig	2007-08-18 22:45:42.000000000 +0200
+++ stlport/stl/config/features.h	2010-04-24 20:43:17.000000000 +0200
@@ -174,7 +174,8 @@
 
 #if !defined (_STLP_BIG_ENDIAN) && !defined (_STLP_LITTLE_ENDIAN)
 #  if defined (_MIPSEB) || defined (__sparc) || defined (_AIX) || \
-      defined (__hpux) || defined (macintosh) || defined (_MAC)
+      defined (__hpux) || defined (macintosh) || defined (_MAC) || \
+      defined (__powerpc__)
 #    define _STLP_BIG_ENDIAN 1
 #  elif defined (__i386) || defined (_M_IX86) || defined (_M_ARM) || \
         defined (__amd64__) || defined (_M_AMD64) || defined (__x86_64__) || \
@@ -218,7 +219,7 @@
 #endif
 
 /* Operating system recognition (basic) */
-#if defined (__unix) || defined (__linux__) || defined (__QNX__) || defined (_AIX)  || defined (__NetBSD__) || defined(__OpenBSD__) || defined (__Lynx__)
+#if defined (__unix) || defined (__linux__) || defined (__QNX__) || defined (_AIX)  || defined (__NetBSD__) || defined(__OpenBSD__) || defined (__Lynx__) || defined(__FreeBSD__)
 #  define _STLP_UNIX 1
 #elif defined(macintosh) || defined (_MAC)
 #  define _STLP_MAC  1
@@ -305,6 +306,7 @@
 #endif
 
 #if (defined (_REENTRANT) || defined (_THREAD_SAFE) || \
+    (defined (_POSIX_THREADS) && defined (__FreeBSD__)) && \
     (defined (_POSIX_THREADS) && defined (__OpenBSD__))) && \
     !defined (_STLP_THREADS)
 #  define _STLP_THREADS


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



More information about the freebsd-ports-bugs mailing list