From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Oct 7 18:10:01 2013 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id EDEB8EB for ; Mon, 7 Oct 2013 18:10:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id D13B926A7 for ; Mon, 7 Oct 2013 18:10:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r97IA0Ha057805 for ; Mon, 7 Oct 2013 18:10:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r97IA06m057799; Mon, 7 Oct 2013 18:10:00 GMT (envelope-from gnats) Resent-Date: Mon, 7 Oct 2013 18:10:00 GMT Resent-Message-Id: <201310071810.r97IA06m057799@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, KATO Tsuguru Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 57521D7C for ; Mon, 7 Oct 2013 18:00:25 +0000 (UTC) (envelope-from tkato432@yahoo.com) Received: from omta02.auone-net.jp (mail-or1-f17.auone-net.jp [106.187.231.17]) by mx1.freebsd.org (Postfix) with ESMTP id 2AEC92616 for ; Mon, 7 Oct 2013 18:00:25 +0000 (UTC) Received: from coppermine.my.domain (ZT029202.ppp.dion.ne.jp [59.128.29.202]) by omta02.auone-net.jp (au one net mail) with ESMTP id 6F9F615600BF for ; Tue, 8 Oct 2013 03:00:23 +0900 (JST) Message-Id: <20131008025041.77c9c6818374c3e80ccac142@yahoo.com> Date: Tue, 8 Oct 2013 02:50:41 +0900 From: KATO Tsuguru To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/182797: games/xdeblock: Fix build with clang X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Oct 2013 18:10:01 -0000 >Number: 182797 >Category: ports >Synopsis: games/xdeblock: Fix build with clang >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Mon Oct 07 18:10:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: KATO Tsuguru >Release: FreeBSD 8.4-RELEASE-p3 i386 >Organization: >Environment: >Description: - Fix build with clang >How-To-Repeat: >Fix: diff -urN /usr/ports/games/xdeblock/Makefile games/xdeblock/Makefile --- /usr/ports/games/xdeblock/Makefile 2013-09-22 04:10:17.000000000 +0900 +++ games/xdeblock/Makefile 2013-10-08 00:00:00.000000000 +0900 @@ -17,14 +17,14 @@ USE_XORG= xpm NO_INSTALL_MANPAGES= yes -NO_STAGE= yes post-patch: @${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/main.c do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/xdeblo ${PREFIX}/bin - @${MKDIR} ${PREFIX}/lib/X11/xdeblock/mapf - ${CHMOD} 777 ${PREFIX}/lib/X11/xdeblock/mapf - ${INSTALL_DATA} ${WRKSRC}/mapf/*.txt ${PREFIX}/lib/X11/xdeblock/mapf + (cd ${WRKSRC} && ${INSTALL_PROGRAM} xdeblo ${STAGEDIR}${PREFIX}/bin) + @${MKDIR} ${STAGEDIR}${PREFIX}/lib/X11/xdeblock/mapf + ${CHMOD} 777 ${STAGEDIR}${PREFIX}/lib/X11/xdeblock/mapf + (cd ${WRKSRC}/mapf && ${INSTALL_DATA} *.txt \ + ${STAGEDIR}${PREFIX}/lib/X11/xdeblock/mapf) .include diff -urN /usr/ports/games/xdeblock/files/patch-ab games/xdeblock/files/patch-ab --- /usr/ports/games/xdeblock/files/patch-ab 2013-06-21 03:49:04.000000000 +0900 +++ games/xdeblock/files/patch-ab 2013-10-08 00:00:00.000000000 +0900 @@ -1,5 +1,5 @@ -*** main.c.orig Sat Nov 16 14:37:16 1996 ---- main.c Thu Jan 15 00:00:00 2000 +*** main.c.orig +--- main.c *************** *** 66,72 **** /*** set s_map ***/ @@ -17,3 +17,37 @@ for(i =1; i < argc; i++) { +*************** +*** 584,590 **** + break; + case 1: /**** game continue ****/ + if(nowDataRec.nowMap.continueCount < 0) +! return; + gameMainFlg.demoFlg = False; + gameMainFlg.useContinue = True; + nowDataRec.nowMap.continueCount --; +--- 584,590 ---- + break; + case 1: /**** game continue ****/ + if(nowDataRec.nowMap.continueCount < 0) +! return(True); + gameMainFlg.demoFlg = False; + gameMainFlg.useContinue = True; + nowDataRec.nowMap.continueCount --; +*************** +*** 855,861 **** + } + + +! void main(argc,argv) + int argc; + char *argv[]; + { +--- 855,861 ---- + } + + +! int main(argc,argv) + int argc; + char *argv[]; + { >Release-Note: >Audit-Trail: >Unformatted: