ports/118922: biology/blat : fix build on other than i386

Motomichi Matsuzaki mzaki at biol.s.u-tokyo.ac.jp
Fri Dec 21 07:10:01 UTC 2007


>Number:         118922
>Category:       ports
>Synopsis:       biology/blat : fix build on other than i386
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Dec 21 07:10:00 UTC 2007
>Closed-Date:
>Last-Modified:
>Originator:     Motomichi Matsuzaki
>Release:        6.2-RELEASE-p8
>Organization:
>Environment:
FreeBSD amnesia 6.2-RELEASE-p4 FreeBSD 6.2-RELEASE-p4 #0: Thu Apr 26 15:04:52 UTC 2007     root at amd64-builder.daemonology.net:/usr/obj/usr/src/sys/SMP  amd64
>Description:
The port biology/blat has marked as BROKEN on platforms other than i386.
The reason is the makefiles depends on an environmental variable MACHTYPE,
which is not defined in amd64 but in i386.

>How-To-Repeat:

>Fix:


Patch attached with submission follows:

diff -ruN blat.orig/Makefile blat/Makefile
--- blat.orig/Makefile	Wed Dec  5 08:08:55 2007
+++ blat/Makefile	Fri Dec 21 15:31:58 2007
@@ -20,7 +20,7 @@
 USE_GCC=	3.4+
 MAKEFILE=	makefile
 WRKSRC=		${WRKDIR}/${PORTNAME}Src
-MAKE_ENV+=	HOME="${WRKSRC}/${BINDIR}"
+MAKE_ENV+=	HOME="${WRKSRC}/${BINDIR}" MACHTYPE="${ARCH}"
 
 SUB_FILES=	pkg-message
 
@@ -28,14 +28,14 @@
 		pslPretty pslReps pslSort twoBitInfo twoBitToFa
 
 post-patch:
-	@${MKDIR} ${WRKSRC}/bin/${MACHTYPE}
-	@${MKDIR} ${WRKSRC}/lib/${MACHTYPE}
+	@${MKDIR} ${WRKSRC}/bin/${ARCH}
+	@${MKDIR} ${WRKSRC}/lib/${ARCH}
 	@${REINPLACE_CMD} -E 's,^(CC|CFLAGS)=,\1 ?=,g' \
 		${WRKSRC}/inc/common.mk
 
 do-install:
 .for exe in ${EXECUTABLES}
-	${INSTALL_PROGRAM} ${WRKSRC}/bin/${MACHTYPE}/${exe} ${PREFIX}/bin
+	${INSTALL_PROGRAM} ${WRKSRC}/bin/${ARCH}/${exe} ${PREFIX}/bin
 .endfor
 	${MKDIR} ${DATADIR}/webBlat
 	${INSTALL_PROGRAM} ${WRKSRC}/webBlat/webBlat ${DATADIR}/webBlat
@@ -52,10 +52,6 @@
 
 .if ${OSVERSION} >= 700042
 BROKEN=		Does not compile with GCC 4.2
-.endif
-
-.if ${ARCH} != "i386"
-BROKEN=		Does not compile
 .endif
 
 .include <bsd.port.post.mk>


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



More information about the freebsd-ports-bugs mailing list