Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 May 2003 15:06:54 +1000 (EST)
From:      Tony Maher <tonymaher@optushome.com.au>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/52013: Update port (maintainer): biology/crimap
Message-ID:  <200305100506.h4A56s9s093284@dt.home>
Resent-Message-ID: <200305100510.h4A5ACG3080476@freefall.freebsd.org>

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

>Number:         52013
>Category:       ports
>Synopsis:       Update port (maintainer): biology/crimap
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Fri May 09 22:10:12 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator:     Tony Maher
>Release:        FreeBSD 4.8-STABLE i386
>Organization:
>Environment:
System: FreeBSD dt.home 4.8-STABLE FreeBSD 4.8-STABLE #2: Wed Apr 16 13:00:01 EST 2003 root@dt.home:/usr/obj/usr/src/sys/DT i386


>Description:
	Bento complains when building this port.
	http://bento.freebsd.org/errorlogs/i386-5-full/crimap-2.4.log

	The port currently builds ok on 4-stable and 5-current
	but fails on bento as it was using gcc 3.3 on that run.

	Since gcc 3.3 will be introduced soon, patch it so it works
	Also make Makefile respect ${CC} and ${CFLAGS}.

	Tested with 4-stable, 5-current and 5-current gcc33

>How-To-Repeat:

>Fix:

diff -ruN crimap.orig/Makefile crimap/Makefile
--- crimap.orig/Makefile	Fri Feb 21 22:01:32 2003
+++ crimap/Makefile	Sat May 10 09:19:53 2003
@@ -16,13 +16,20 @@
 COMMENT=	Creation of multilocus linkage maps
 
 NO_WRKSUBDIR=	true
+USE_REINPLACE=	yes
 
 PROGRAMS=	crimap
 EXAMPLES=	chr7a.gen demo.dat
+EXIT_PATCH=	e_ped.c get_log.c our_allo.c our_orde.c
+
+post-patch:
+.for file in ${EXIT_PATCH}
+	${REINPLACE_CMD} -e 's|exit\ *()|exit(0)|' ${WRKSRC}/${file}
+.endfor
 
 do-build:
 	cd ${WRKSRC}; \
-	cc -O -o crimap *.c -lm
+	${CC} ${CFLAGS} -o crimap *.c -lm
 
 do-install:
 .for file in ${PROGRAMS}
>Release-Note:
>Audit-Trail:
>Unformatted:



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