ports/169424: lp_solve installation on powerpc

Matthieu Volat mazhe at alkumuna.eu
Mon Jun 25 18:20:07 UTC 2012


>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 at 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:



More information about the freebsd-ports-bugs mailing list