From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Aug 22 15:00:10 2007 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8CCD916A418 for ; Wed, 22 Aug 2007 15:00:10 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 5C08C13C46B for ; Wed, 22 Aug 2007 15:00:08 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.1/8.14.1) with ESMTP id l7MF07T6085596 for ; Wed, 22 Aug 2007 15:00:07 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.1/8.14.1/Submit) id l7MF07I0085595; Wed, 22 Aug 2007 15:00:07 GMT (envelope-from gnats) Resent-Date: Wed, 22 Aug 2007 15:00:07 GMT Resent-Message-Id: <200708221500.l7MF07I0085595@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Masanori OZAWA Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 368FD16A420 for ; Wed, 22 Aug 2007 14:50:39 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 247A613C491 for ; Wed, 22 Aug 2007 14:50:39 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.1/8.14.1) with ESMTP id l7MEocpL071539 for ; Wed, 22 Aug 2007 14:50:38 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.1/8.14.1/Submit) id l7MEocS6071538; Wed, 22 Aug 2007 14:50:38 GMT (envelope-from nobody) Message-Id: <200708221450.l7MEocS6071538@www.freebsd.org> Date: Wed, 22 Aug 2007 14:50:38 GMT From: Masanori OZAWA To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/115723: [PATCH] lang/neko: compile error fixed. X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Aug 2007 15:00:10 -0000 >Number: 115723 >Category: ports >Synopsis: [PATCH] lang/neko: compile error fixed. >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: Wed Aug 22 15:00:07 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Masanori OZAWA >Release: FreeBSD 6.2-RELEASE >Organization: ONGS Inc. >Environment: FreeBSD mithos.ongs.co.jp 6.2-RELEASE FreeBSD 6.2-RELEASE #0: Thu Jan 18 20:48:07 JST 2007 root@mithos.ongs.co.jp:/usr/obj/usr/src/sys/MITHOS i386 >Description: - compile error fixed. (6-RELEASE amd64, 7-CURRENT amd64) >How-To-Repeat: >Fix: diff -urBN neko.orig/Makefile neko/Makefile --- neko.orig/Makefile Tue Aug 21 15:13:33 2007 +++ neko/Makefile Wed Aug 22 23:10:09 2007 @@ -7,6 +7,7 @@ PORTNAME= neko PORTVERSION= 1.6.0 +PORTREVISION= 1 CATEGORIES= lang MASTER_SITES= http://nekovm.org/_media/ @@ -28,7 +29,9 @@ # Neko needs boehm-gc with POSIX thread support. BC_DIR!= cd ${PORTSDIR}/devel/boehm-gc && ${MAKE} -V WRKSRC +BC_MAKEARGS= BATCH=yes WITH_THREADING=true +BC_CFLAGS:= ${CFLAGS} CFLAGS= -I${WRKSRC} -I${PREFIX}/include LDFLAGS= -L${BC_DIR}/.libs -L${PREFIX}/lib LIBKEYNAME= @@ -91,6 +94,7 @@ .endif .if ${ARCH} == "amd64" +BC_CFLAGS+= -fPIC CFLAGS+= -D_64BITS -fPIC .endif @@ -137,7 +141,7 @@ pre-build: @(cd ${PORTSDIR}/devel/boehm-gc/ && \ - ${MAKE} BATCH=yes WITH_THREADING=true clean all) + ${MAKE} CFLAGS="${BC_CFLAGS}" ${BC_MAKEARGS} clean all) @${RM} -f ${BC_DIR}/.libs/*.so* @for BLIB in `${LS} ${BC_DIR}/.libs/libgc.*`; do \ ${MV} $${BLIB} `echo $${BLIB} | ${SED} -e 's/libgc/libnekogc/'`; \ >Release-Note: >Audit-Trail: >Unformatted: