From owner-freebsd-ports Fri Aug 10 3:20:15 2001 Delivered-To: freebsd-ports@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 0749A37B405 for ; Fri, 10 Aug 2001 03:20:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f7AAK2g68508; Fri, 10 Aug 2001 03:20:02 -0700 (PDT) (envelope-from gnats) Received: from cc92687-a.wlgrv1.pa.home.com (cc92687-a.wlgrv1.pa.home.com [24.5.63.190]) by hub.freebsd.org (Postfix) with ESMTP id D1E1837B405 for ; Fri, 10 Aug 2001 03:19:10 -0700 (PDT) (envelope-from root@cc92687-a.wlgrv1.pa.home.com) Received: (from root@localhost) by cc92687-a.wlgrv1.pa.home.com (8.11.5/8.11.5) id f7AAJAo52281; Fri, 10 Aug 2001 06:19:10 -0400 (EDT) (envelope-from root) Message-Id: <200108101019.f7AAJAo52281@cc92687-a.wlgrv1.pa.home.com> Date: Fri, 10 Aug 2001 06:19:10 -0400 (EDT) From: pat@databits.net Reply-To: pat@databits.net To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: ports/29593: Fix linker problems in games/battalion (Bento) Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 29593 >Category: ports >Synopsis: Fix linker problems in games/battalion (Bento) >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Fri Aug 10 03:20:01 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Patrick Li >Release: FreeBSD 4.4-PRERELEASE i386 >Organization: N/A >Environment: System: FreeBSD bottlenek 4.4-PRERELEASE FreeBSD 4.4-PRERELEASE #0: Sun Aug 5 00:29:13 EDT 2001 root@bottlenek:/usr/src/sys/compile/BOTTLENEK i386 >Description: Fix linker problems noted by bento. PR# 29313 exists from John Merryweather Cooper that can be closed now. It is regarding a battalion fix for bento like mine but his made unnecessary changes and renaming of patches that made the patch bigger and also it was not ptheads safe. this one uses variables ${PTHREAD_[LIBS,CFLAGS]} not hard coded -pthreads. >How-To-Repeat: N/A >Fix: diff -ruN /usr/ports/games/battalion/Makefile battalion/Makefile --- /usr/ports/games/battalion/Makefile Thu Aug 3 05:23:22 2000 +++ battalion/Makefile Fri Aug 10 00:56:08 2001 @@ -17,6 +17,8 @@ USE_X_PREFIX= yes USE_MESA= yes WRKSRC= ${WRKDIR}/battalionSource +MAKE_ENV= PTHREAD_LIBS="${PTHREAD_LIBS}" \ + PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" MAN6= battalion.6 diff -ruN /usr/ports/games/battalion/files/patch-aa battalion/files/patch-aa --- /usr/ports/games/battalion/files/patch-aa Sat Apr 1 19:57:01 2000 +++ battalion/files/patch-aa Fri Aug 10 00:55:32 2001 @@ -1,5 +1,5 @@ ---- Makefile.orig Thu Jan 16 16:31:58 1997 -+++ Makefile Wed Mar 29 13:08:11 1998 +--- Makefile.orig Thu Jan 16 11:31:58 1997 ++++ Makefile Fri Aug 10 00:51:07 2001 @@ -23,7 +23,7 @@ # (the program should compile with no warning messages - if you # see a warning message please let me know about it) @@ -46,7 +46,7 @@ # STEP 7: CHOOSE ANY OPTIMIZATIONS OR ADD ANY SPECIAL INCLUSIONS # ------------------------------------------------------------ -CFLAGS = -O -I/usr/local/X11/include -I/usr/demo/SOUND/ -I./. -+CFLAGS+= -I${X11BASE}/include -DPREFIX=\"${PREFIX}\" ++CFLAGS+= -I${X11BASE}/include -DPREFIX=\"${PREFIX}\" ${PTHREAD_CFLAGS} # STEP 8: ADD ANY SPECIAL LIBRARY PATHS @@ -55,7 +55,7 @@ OBJ = battalion.o audio.o net.o gprim.o graphics.o objects.o text.o update.o tk.o font.o -LIBS = -L./. -L/usr/X11R6/lib -lm -lX11 -lXext -+LIBS = -L./. -L${X11BASE}/lib -lm -lX11 -lXext -lcompat ++LIBS = -L./. -L${X11BASE}/lib -lm -lX11 -lXext -lcompat ${PTHREAD_LIBS} all: $(TARGET) >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message