From owner-freebsd-ports-bugs@FreeBSD.ORG Sat Aug 30 21:00:32 2003 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4E90516A4C0 for ; Sat, 30 Aug 2003 21:00:32 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 07CE443FFB for ; Sat, 30 Aug 2003 21:00:30 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h7V40UUp094479 for ; Sat, 30 Aug 2003 21:00:30 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h7V40Una094478; Sat, 30 Aug 2003 21:00:30 -0700 (PDT) Resent-Date: Sat, 30 Aug 2003 21:00:30 -0700 (PDT) Resent-Message-Id: <200308310400.h7V40Una094478@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, "Kang Liu" Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0BED216A4BF for ; Sat, 30 Aug 2003 20:51:16 -0700 (PDT) Received: from bjpu.edu.cn (egw.bjpu.edu.cn [202.112.78.77]) by mx1.FreeBSD.org (Postfix) with ESMTP id B873143FB1 for ; Sat, 30 Aug 2003 20:51:14 -0700 (PDT) (envelope-from liukang@bjpu.edu.cn) Received: (eyou gateway send program); Sun, 31 Aug 2003 11:52:26 +0800 Received: from unknown (HELO ssc) (unknown@211.150.182.194) by 202.112.78.77 with ; Sun, 31 Aug 2003 11:52:26 +0800 Message-Id: <000001c36f73$e86bd8d0$c2b696d3@ssc> Date: Sun, 31 Aug 2003 11:56:48 +0800 From: "Kang Liu" To: Subject: ports/56222: [patch] Fix compiler error in www/php-screw X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 31 Aug 2003 04:00:32 -0000 >Number: 56222 >Category: ports >Synopsis: [patch] Fix compiler error in www/php-screw >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Aug 30 21:00:30 PDT 2003 >Closed-Date: >Last-Modified: >Originator: Kang Liu >Release: FreeBSD 5.1-CURRENT i386 >Organization: Beijing University of Technology >Environment: System: FreeBSD 5.1-CURRENT i386 >Description: php-screw is not C99 compatible: the author use "exit()" while C99 forbid. >How-To-Repeat: Run make in ${PORTSDIR}/www/php-screw on a 5.1-current machine. (bento) >Fix: diff -ruN php-screw.orig/Makefile php-screw/Makefile --- php-screw.orig/Makefile Sat Jun 7 03:04:58 2003 +++ php-screw/Makefile Sun Aug 31 01:07:19 2003 @@ -7,6 +7,7 @@ PORTNAME= php-screw PORTVERSION= 1.2.1 +PORTREVISION= 1 CATEGORIES= www security MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ${PORTNAME} diff -ruN php-screw.orig/files/patch-tools::screw.c php-screw/files/patch-tools::screw.c --- php-screw.orig/files/patch-tools::screw.c Thu Jan 1 08:00:00 1970 +++ php-screw/files/patch-tools::screw.c Sun Aug 31 00:57:47 2003 @@ -0,0 +1,42 @@ +--- tools/screw.c.orig Sun Aug 31 00:55:45 2003 ++++ tools/screw.c Sun Aug 31 00:56:14 2003 +@@ -18,12 +18,12 @@ + + if (argc != 2) { + fprintf(stderr, "Usage: filename.\n"); +- exit(); ++ exit(1); + } + fp = fopen(argv[1], "r"); + if (fp == NULL) { + fprintf(stderr, "File not found(%s)\n", argv[1]); +- exit(); ++ exit(1); + } + + fstat(fileno(fp), &stat_buf); +@@ -36,13 +36,13 @@ + + if (memcmp(datap, PM9SCREW, PM9SCREW_LEN) == 0) { + fprintf(stderr, "Already Crypted(%s)\n", argv[1]); +- exit(); ++ exit(1); + } + + fp = fopen(oldfilename, "w"); + if (fp == NULL) { + fprintf(stderr, "Can not create backup file(%s)\n", oldfilename); +- exit(); ++ exit(1); + } + fwrite(datap, datalen, 1, fp); + fclose(fp); +@@ -56,7 +56,7 @@ + fp = fopen(argv[1], "w"); + if (fp == NULL) { + fprintf(stderr, "Can not create crypt file(%s)\n", oldfilename); +- exit(); ++ exit(1); + } + fwrite(PM9SCREW, PM9SCREW_LEN, 1, fp); + fwrite(newdatap, newdatalen, 1, fp); >Release-Note: >Audit-Trail: >Unformatted: