Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Jun 2012 18:13:02 GMT
From:      Matthieu Volat <mazhe@alkumuna.eu>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/169424: lp_solve installation on powerpc
Message-ID:  <201206251813.q5PID24r049444@red.freebsd.org>
Resent-Message-ID: <201206251820.q5PIK6Jr085592@freefall.freebsd.org>

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

>Number:         169424
>Category:       ports
>Synopsis:       lp_solve installation on powerpc
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jun 25 18:20:06 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Matthieu Volat
>Release:        9.0-RELEASE
>Organization:
>Environment:
FreeBSD click 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Wed Jan  4 08:17:39 UTC 2012     marcel@xserve.lan.xcllnt.net:/usr/obj/usr/src/sys/GENERIC  powerpc
>Description:
As of now, math/lp_solve building is marked as broken when building for the powerpc architecture as it does not install.

Using a macbook g4, I was able to build and install lp_solve if I removed the "broken" flag and added a section in the ${ARCH} selection block like that :

.if ${ARCH} == "i386" || ${ARCH} == "powerpc"
LPSOLVE_ARCH=   ux32
.else
LPSOLVE_ARCH=   ux64
.endif

No problem were seen : the executable seems to run fine.
>How-To-Repeat:
Try to make then make install math/lp_solve, there will be a complain about no ux64 directory found.
>Fix:
Set the LPSOVE_ARCH as ux32, see patch attached.

Patch attached with submission follows:

--- Makefile.orig	2012-06-25 20:10:30.000000000 +0200
+++ Makefile	2012-06-25 20:10:16.000000000 +0200
@@ -24,16 +24,12 @@
 
 .include <bsd.port.pre.mk>
 
-.if ${ARCH} == "i386"
+.if ${ARCH} == "i386" || ${ARCH} == "powerpc"
 LPSOLVE_ARCH=	ux32
 .else
 LPSOLVE_ARCH=	ux64
 .endif
 
-.if ${ARCH} == "powerpc"
-BROKEN=		Does not install on powerpc
-.endif
-
 post-patch:
 	@${FIND} ${WRKSRC} -name "ccc" | ${XARGS} ${REINPLACE_CMD} -e \
 		"s|^c=.*$$|c='${CC}'|g ; \


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



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