Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 24 Apr 2010 19:27:05 GMT
From:      Andreas Tobler <andreast-list@fgznet.ch>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/146020: [patch] make OpenExr build on powerpc
Message-ID:  <201004241927.o3OJR5EC004064@www.freebsd.org>
Resent-Message-ID: <201004241930.o3OJU4Zh075258@freefall.freebsd.org>

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

>Number:         146020
>Category:       ports
>Synopsis:       [patch] make OpenExr 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:30:04 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@wolfram.andreas.nets:/usr/obj/export/devel/fbsd/src/sys/ANDREAST_ppc_pb  powerpc
>Description:
OpenExr does not build on powerpc due to some bogus dumpspecs in the Makefile.
>How-To-Repeat:

>Fix:
The attached patch does fix this issue, tested on powerpc and i386

Patch attached with submission follows:

--- Makefile.orig	2010-04-24 20:52:15.000000000 +0200
+++ Makefile	2010-04-24 21:11:33.000000000 +0200
@@ -28,7 +28,7 @@
 
 # must be explicitely linked with -l{thr|pthread}
 CONFIGURE_ENV=	LDFLAGS="${PTHREAD_LIBS}"
-PTHREAD_LIBS+=	`${CC} -dumpspecs | ${GREP} -m 1 pthread | ${SED} -e 's|^.*%{\!pg: %{pthread:|| ; s|}.*$$||' || ${TRUE}`
+PTHREAD_LIBS+= `${CC} -dumpspecs | ${GREP} -m 1 '%{\!pg: %{pthread:' | ${SED} -e 's|^.*%{\!pg: %{pthread:|| ; s|}.*$$||' || ${TRUE}`
 
 WRKSRC=		${WRKDIR}/${DISTNAME}
 
@@ -47,8 +47,5 @@
 #.endif
 #.endif
 
-.if ${ARCH} == "powerpc"
-BROKEN=		Does not configure on powerpc
-.endif
 
 .include <bsd.port.post.mk>


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



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