From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Dec 16 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 ESMTPS id 8E25367B for ; Mon, 16 Dec 2013 18:10:01 +0000 (UTC) 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 6C9C41903 for ; Mon, 16 Dec 2013 18:10:01 +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 rBGIA1GG015781 for ; Mon, 16 Dec 2013 18:10:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id rBGIA13x015779; Mon, 16 Dec 2013 18:10:01 GMT (envelope-from gnats) Resent-Date: Mon, 16 Dec 2013 18:10:01 GMT Resent-Message-Id: <201312161810.rBGIA13x015779@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 ESMTPS id 1EC2F3D6 for ; Mon, 16 Dec 2013 18:04:53 +0000 (UTC) Received: from omta02.auone-net.jp (mail-or2-f145.auone-net.jp [111.87.219.145]) by mx1.freebsd.org (Postfix) with ESMTP id E71EC188C for ; Mon, 16 Dec 2013 18:04:52 +0000 (UTC) Received: from coppermine.my.domain (ZT030106.ppp.dion.ne.jp [59.128.30.106]) by omta02.auone-net.jp (au one net mail) with ESMTP id EEC9F1560060 for ; Tue, 17 Dec 2013 03:04:50 +0900 (JST) Message-Id: <20131217024951.c525df219094d8d28929c090@yahoo.com> Date: Tue, 17 Dec 2013 02:49:51 +0900 From: KATO Tsuguru To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/184812: japanese/kpcal: Fix build with clang X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Dec 2013 18:10:01 -0000 X-List-Received-Date: Mon, 16 Dec 2013 18:10:01 -0000 X-List-Received-Date: Mon, 16 Dec 2013 18:10:01 -0000 >Number: 184812 >Category: ports >Synopsis: japanese/kpcal: 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 Dec 16 18:10:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: KATO Tsuguru >Release: FreeBSD 8.4-RELEASE-p4 i386 >Organization: >Environment: >Description: - Fix build with clang New file: files/patch-conv.c files/patch-kpcal.c >How-To-Repeat: >Fix: diff -urN /usr/ports/japanese/kpcal/Makefile japanese/kpcal/Makefile --- /usr/ports/japanese/kpcal/Makefile 2013-11-06 21:58:46.000000000 +0900 +++ japanese/kpcal/Makefile 2013-12-17 00:00:00.000000000 +0900 @@ -5,8 +5,7 @@ PORTVERSION= 2.0 PORTREVISION= 2 CATEGORIES= japanese -MASTER_SITES= ${MASTER_SITE_LOCAL} -MASTER_SITE_SUBDIR= yoichi +MASTER_SITES= LOCAL/yoichi PATCH_SITES= http://www.tamaru.kuee.kyoto-u.ac.jp/~tsuchiya/misc/kpcal/ PATCHFILES= ${PORTNAME}-${PORTVERSION}-20040518.patch @@ -16,14 +15,13 @@ COMMENT= Make Calendar in Postscript format ALL_TARGET= kpcal -MAN1= kpcal.1 -PLIST_FILES= bin/kpcal -NO_STAGE= yes -post-patch: - ${REINPLACE_CMD} -e 's/long/time_t/' ${WRKSRC}/kpcal.c +PLIST_FILES= bin/kpcal man/man1/kpcal.1.gz + do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/kpcal ${LOCALBASE}/bin - ${INSTALL_MAN} ${WRKSRC}/kpcal.1 ${LOCALBASE}/man/man1 + (cd ${WRKSRC} && ${INSTALL_PROGRAM} kpcal \ + ${STAGEDIR}${PREFIX}/bin) + (cd ${WRKSRC} && ${INSTALL_MAN} kpcal.1 \ + ${STAGEDIR}${MANPREFIX}/man/man1) .include diff -urN /usr/ports/japanese/kpcal/files/patch-conv.c japanese/kpcal/files/patch-conv.c --- /usr/ports/japanese/kpcal/files/patch-conv.c 1970-01-01 09:00:00.000000000 +0900 +++ japanese/kpcal/files/patch-conv.c 2013-12-17 00:00:00.000000000 +0900 @@ -0,0 +1,8 @@ +--- conv.c.orig ++++ conv.c +@@ -1,4 +1,5 @@ + #include ++#include + + #define TRUE (1) + #define FALSE (0) diff -urN /usr/ports/japanese/kpcal/files/patch-kpcal.c japanese/kpcal/files/patch-kpcal.c --- /usr/ports/japanese/kpcal/files/patch-kpcal.c 1970-01-01 09:00:00.000000000 +0900 +++ japanese/kpcal/files/patch-kpcal.c 2013-12-17 00:00:00.000000000 +0900 @@ -0,0 +1,55 @@ +--- kpcal.c.orig ++++ kpcal.c +@@ -5,6 +5,8 @@ + */ + + #include ++#include ++#include + #include + #include + #include +@@ -28,6 +30,7 @@ + static char daynum_font[64] = DAYNUM_DEFAULT_FONT; + + extern void ConvertString(); ++extern void pmonth(); + + FILE *cfp = NULL; + int year; +@@ -35,7 +38,7 @@ + + char *getenv(); + +-main(argc, argv) ++int main(argc, argv) + int argc; + char **argv; + { +@@ -46,7 +49,7 @@ + register char *cp; + char *cfile = NULL; + char cbuf[80]; +- long t, time(); ++ time_t t, time(); + int errflg = 0; + int nocal = 0; + int m; +@@ -86,7 +89,7 @@ + exit(1); + } + +- t = time((long *)0); ++ t = time((time_t *)0); + lt = localtime(&t); + + /* +@@ -150,7 +153,7 @@ + /* + * pmonth - do calendar for month "m" + */ +-pmonth(m) ++void pmonth(m) + int m; + { + register char **s; >Release-Note: >Audit-Trail: >Unformatted: