Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Feb 2004 22:20:12 -0500 (EST)
From:      Hendrik Scholz <hendrik@scholz.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        umeno@rr.iij4u.or.jp
Subject:   ports/63104: amd64-fix: games/pykawari
Message-ID:  <20040220032012.2796A39845@slurmcan.wormulon.net>
Resent-Message-ID: <200402200320.i1K3K50r017418@freefall.freebsd.org>

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

>Number:         63104
>Category:       ports
>Synopsis:       amd64-fix: games/pykawari
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Feb 19 19:20:05 PST 2004
>Closed-Date:
>Last-Modified:
>Originator:     Hendrik Scholz
>Release:        FreeBSD 5.2.1-RC amd64
>Organization:
>Environment:
System: FreeBSD slurmcan.wormulon.net 5.2.1-RC FreeBSD 5.2.1-RC #0: Sat Jan 31 12:38:34 GMT 2004 root@ngoc.NUXI.com:/usr/obj/usr/src/sys/GENERIC amd64


	
>Description:

bento:
http://bento.freebsd.org/errorlogs/amd64-5-latest/pykawari-8.1.0_1.log

- add -FPIC for amd64
- make do-build() recognize CFLAGS

I didn't test this on i386 so please make sure the PTHREAD_CFLAGS is ok
and in case it is not needed dump it :)

>How-To-Repeat:
	
>Fix:

	

--- pykawari-8.1.0_1.diff begins here ---
Index: Makefile
===================================================================
RCS file: /home/FreeBSD-CVS/ports/games/pykawari/Makefile,v
retrieving revision 1.3
diff -u -r1.3 Makefile
--- Makefile	5 Feb 2004 03:03:12 -0000	1.3
+++ Makefile	20 Feb 2004 03:17:43 -0000
@@ -35,10 +35,15 @@
 USE_X_PREFIX=	yes
 
 WRKSRC=		${WRKDIR}/kawari-${PORTVERSION:S/.//g}
-CFLAGS+=	${PTHREAD_CFLAGS}
+CFLAGS+=	${PTHREAD_CFLAGS} -fPIC
+
+.include <bsd.port.pre.mk>
+.if ${ARCH} == "amd64"
+CFLAGS+=	-fPIC
+.endif
 
 do-build:
-	(cd ${WRKSRC}/build/src; ${GMAKE} -f gcc.mak PYTHONBASE=${PYTHONBASE} PYTHON_VERSION=${PYTHON_VERSION} PTHREAD_LIBS=${PTHREAD_LIBS})
+	(cd ${WRKSRC}/build/src; CFLAGS="${CFLAGS}" ${GMAKE} -f gcc.mak PYTHONBASE=${PYTHONBASE} PYTHON_VERSION=${PYTHON_VERSION} PTHREAD_LIBS=${PTHREAD_LIBS})
 
 do-install:
 	${MKDIR} ${PREFIX}/share/kawari
@@ -47,4 +52,4 @@
 	${MKDIR} ${PREFIX}/libexec/ninix
 	${INSTALL_PROGRAM} ${WRKSRC}/build/mach/freebsd/_kawari8.so ${PREFIX}/libexec/ninix
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
--- pykawari-8.1.0_1.diff ends here ---


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



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