Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 7 Jul 2006 20:20:04 GMT
From:      Michael Johnson <ahze@FreeBSD.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        dyeske@yahoo.com
Subject:   ports/99897: [PATCH] graphics/blender-devel: [fix build on sparc64]
Message-ID:  <200607072020.k67KK4Sx096926@blueherron.ahze.net>
Resent-Message-ID: <200607080020.k680KJ4W026042@freefall.freebsd.org>

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

>Number:         99897
>Category:       ports
>Synopsis:       [PATCH] graphics/blender-devel: [fix build on sparc64]
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jul 08 00:20:19 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Michael Johnson
>Release:        
>Organization:
>Environment:
>Description:
- Fix build on sparc64

Added file(s):
- files/patch-source_blender_blenlib_intern_storage.c

Port maintainer (dyeske@yahoo.com) is cc'd.

Generated with FreeBSD Port Tools 0.77
>How-To-Repeat:
>Fix:

--- blender-devel-2.40.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/graphics/blender-devel/Makefile,v
retrieving revision 1.21
diff -u -r1.21 Makefile
--- Makefile	7 May 2006 23:45:51 -0000	1.21
+++ Makefile	7 Jul 2006 20:13:05 -0000
@@ -33,10 +33,6 @@
 
 .include <bsd.port.pre.mk>
 
-.if ${ARCH} == "sparc64"
-BROKEN=		"Does not compile on sparc64"
-.endif
-
 pre-everything::
 .if !defined(WITH_OPTIMIZED_CFLAGS)
 	@${ECHO_MSG} "You can enable additional compilation optimizations"
Index: files/patch-source_blender_blenlib_intern_storage.c
===================================================================
RCS file: files/patch-source_blender_blenlib_intern_storage.c
diff -N files/patch-source_blender_blenlib_intern_storage.c
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ files/patch-source_blender_blenlib_intern_storage.c	7 Jul 2006 20:13:05 -0000
@@ -0,0 +1,20 @@
+--- source/blender/blenlib/intern/storage.c.orig	Fri Jul  7 14:15:04 2006
++++ source/blender/blenlib/intern/storage.c	Fri Jul  7 14:17:47 2006
+@@ -50,7 +50,7 @@
+ #include <time.h>
+ #include <sys/stat.h>
+ 
+-#if !defined(linux) && (defined(__sgi) || defined(__sun__) || defined(__sun) || defined(__sparc) || defined(__sparc__))
++#if !defined(__FreeBSD__) && !defined(linux) && (defined(__sgi) || defined(__sun__) || defined(__sun) || defined(__sparc) || defined(__sparc__))
+ #include <sys/statfs.h>
+ #endif
+ 
+@@ -194,7 +194,7 @@
+ #ifdef __BeOS
+ 	return -1;
+ #endif
+-#if !defined(linux) && (defined (__sgi) || defined (__sun__) || defined (__sun) || defined(__sparc) || defined(__sparc__))
++#if !defined(__FreeBSD__) && !defined(linux) && (defined (__sgi) || defined (__sun__) || defined (__sun) || defined(__sparc) || defined(__sparc__))
+ 
+ 	if (statfs(name, &disk, sizeof(struct statfs), 0)){
+ 		/* printf("diskfree: Couldn't get information about %s.\n",dir); */
--- blender-devel-2.40.patch ends here ---

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



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