From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Nov 8 09:20:02 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 1163916A41A for ; Thu, 8 Nov 2007 09:20:02 +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 CB00D13C4B8 for ; Thu, 8 Nov 2007 09:20:01 +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 lA89K1Od006233 for ; Thu, 8 Nov 2007 09:20:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.1/8.14.1/Submit) id lA89K1mA006232; Thu, 8 Nov 2007 09:20:01 GMT (envelope-from gnats) Resent-Date: Thu, 8 Nov 2007 09:20:01 GMT Resent-Message-Id: <200711080920.lA89K1mA006232@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, Sunry Chen Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7CCFE16A417 for ; Thu, 8 Nov 2007 09:12:03 +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 5E6B513C4B3 for ; Thu, 8 Nov 2007 09:12:03 +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 lA89BjmY001882 for ; Thu, 8 Nov 2007 09:11:45 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.1/8.14.1/Submit) id lA89Bjuh001881; Thu, 8 Nov 2007 09:11:45 GMT (envelope-from nobody) Message-Id: <200711080911.lA89Bjuh001881@www.freebsd.org> Date: Thu, 8 Nov 2007 09:11:45 GMT From: Sunry Chen To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/117912: [patch]chines/hanzim: Fix segmentation fault caused by strcmp none exist variable 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: Thu, 08 Nov 2007 09:20:02 -0000 >Number: 117912 >Category: ports >Synopsis: [patch]chines/hanzim: Fix segmentation fault caused by strcmp none exist variable >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: Thu Nov 08 09:20:01 UTC 2007 >Closed-Date: >Last-Modified: >Originator: Sunry Chen >Release: FreeBSD 6.2-STABLE i386 >Organization: Shenzhen Institute of Technology >Environment: FreeBSD www.525183.com 6.2-STABLE FreeBSD 6.2-STABLE #8: Tue Sep 18 23:01:05 CST 2007 hplc@www.525183.com:/usr/obj/usr/src/sys/MYKERNEL i386 >Description: Segmentation fault caused by strcmp none exist variable. >How-To-Repeat: Just run it without any option. >Fix: Judge if there's option before strcmp it. Patch attached with submission follows: diff -ruN hanzim.orig/Makefile hanzim/Makefile --- hanzim.orig/Makefile 2007-11-08 15:57:27.000000000 +0800 +++ hanzim/Makefile 2007-11-08 16:10:14.000000000 +0800 @@ -10,11 +10,14 @@ PORTVERSION= 1.3 PORTREVISION= 2 CATEGORIES= chinese tk84 -MASTER_SITES= http://kamares.ucsd.edu/~arobert/Files/Chinese/ +MASTER_SITES= http://kamares.ucsd.edu/~arobert/Files/Chinese/ \ + http://www.525183.com/freebsd/hanzim/ \ + http://www.chinatinco.com/freebsd/hanzim/ \ + http://525183.serverbox.org/freebsd/hanzim/ MASTER_SITE_SUBDIR= . Old EXTRACT_SUFX= .tgz -MAINTAINER= ports@FreeBSD.org +MAINTAINER= sunrychen@gmail.com COMMENT= A Chinese character learning-aid program BUILD_DEPENDS+= wish8.4:${PORTSDIR}/x11-toolkits/tk84 diff -ruN hanzim.orig/files/patch-hanzim.c hanzim/files/patch-hanzim.c --- hanzim.orig/files/patch-hanzim.c 2007-11-08 15:57:27.000000000 +0800 +++ hanzim/files/patch-hanzim.c 2007-11-08 16:36:52.000000000 +0800 @@ -1,11 +1,11 @@ ---- hanzim.c.orig Wed Mar 20 01:34:31 2002 -+++ hanzim.c Sat Jun 14 09:20:04 2003 +--- ./hanzim.c.orig 2002-03-20 14:34:31.000000000 +0800 ++++ ./hanzim.c 2007-11-08 16:33:14.000000000 +0800 @@ -204,6 +204,16 @@ main(int argc, char *argv[]) { Tcl_Interp *interp; +/* hanzim need a running XFree to do its initial setup, rectify */ -+ if (!(strcmp(argv[1], "-port-install"))) ++ if (argc>1 && !(strcmp(argv[1], "-port-install"))) + { + char *portdatadir = "%%PREFIX%%/lib/hanzim"; + init_vars(portdatadir); >Release-Note: >Audit-Trail: >Unformatted: