From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Jul 18 04:30:18 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 5DD1337B401 for ; Fri, 18 Jul 2003 04:30:18 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8829343F93 for ; Fri, 18 Jul 2003 04:30:17 -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 h6IBUGUp098950 for ; Fri, 18 Jul 2003 04:30:16 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h6IBUGF7098949; Fri, 18 Jul 2003 04:30:16 -0700 (PDT) Resent-Date: Fri, 18 Jul 2003 04:30:16 -0700 (PDT) Resent-Message-Id: <200307181130.h6IBUGF7098949@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, Kirill Ponomarew Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E366937B401 for ; Fri, 18 Jul 2003 04:24:24 -0700 (PDT) Received: from office.LF.net (office.LF.net [212.9.190.165]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4240F43FBD for ; Fri, 18 Jul 2003 04:24:24 -0700 (PDT) (envelope-from krion@voodoo.oberon.net) Received: from voodoo.oberon.net ([212.118.165.100]) by office.LF.net with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.20) id 19dTLa-000EXU-Fv for FreeBSD-gnats-submit@freebsd.org; Fri, 18 Jul 2003 13:24:22 +0200 Received: from krion by voodoo.oberon.net with local (Exim 4.20) id 19dTLa-000HFm-UV; Fri, 18 Jul 2003 13:24:22 +0200 Message-Id: Date: Fri, 18 Jul 2003 13:24:22 +0200 From: Kirill Ponomarew Sender: Kirill Ponomarew To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 cc: ycheng@sinica.edu.tw Subject: ports/54613: Update sysutils/logrotate: fix build with gcc-3.3 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: Fri, 18 Jul 2003 11:30:18 -0000 >Number: 54613 >Category: ports >Synopsis: Update sysutils/logrotate: fix build with gcc-3.3 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Fri Jul 18 04:30:16 PDT 2003 >Closed-Date: >Last-Modified: >Originator: Kirill Ponomarew >Release: FreeBSD 4.8-STABLE i386 >Organization: Oberon.net >Environment: >Description: Update sysutils/logrotate: fix build with gcc-3.3 Reported by bento: http://bento.freebsd.org/errorlogs/i386-5-latest/logrotate-3.5.2.log >How-To-Repeat: >Fix: diff -urN logrotate.orig/files/patch-ac logrotate/files/patch-ac --- logrotate.orig/files/patch-ac Thu Dec 30 13:35:51 1999 +++ logrotate/files/patch-ac Thu Jan 1 01:00:00 1970 @@ -1,22 +0,0 @@ ---- logrotate.c.orig Thu Jun 17 04:37:19 1999 -+++ logrotate.c Wed Dec 29 11:31:57 1999 -@@ -1,9 +1,7 @@ --#include - #include - #include - #include - #include --#include - #include - #include - #include -@@ -457,6 +455,9 @@ - hasErrors = 1; - } - } -+ -+ message(MESS_DEBUG, "sleep 10 to wait daemon close log\n"); -+ sleep(10); - - if (!hasErrors && !log->rotateCount) { - message(MESS_DEBUG, "removing rotated log (rotateCount == 0)"); diff -urN logrotate.orig/files/patch-logrotate.c logrotate/files/patch-logrotate.c --- logrotate.orig/files/patch-logrotate.c Thu Jan 1 01:00:00 1970 +++ logrotate/files/patch-logrotate.c Fri Jul 18 13:20:50 2003 @@ -0,0 +1,43 @@ +--- logrotate.c.orig Fri Aug 4 20:27:38 2000 ++++ logrotate.c Fri Jul 18 15:20:13 2003 +@@ -1,9 +1,7 @@ +-#include + #include + #include + #include + #include +-#include + #include + #include + #include +@@ -395,8 +393,7 @@ + if (log->pre && !(log->flags & LOG_FLAG_SHAREDSCRIPTS)) { + message(MESS_DEBUG, "running prerotate script\n"); + if (runScript(log->files[logNum], log->pre)) { +- fprintf(errorFile, "error running prerotate script -- +- leaving old log in place\n"); ++ fprintf(errorFile, "error running prerotate script -- leaving old log in place\n"); + hasErrors = 1; + } + } +@@ -471,6 +468,9 @@ + } + } + ++ message(MESS_DEBUG, "sleep 10 to wait daemon close log\n"); ++ sleep(10); ++ + if (!hasErrors && !log->rotateCount) { + message(MESS_DEBUG, "removing rotated log (rotateCount == 0)"); + if (unlink(finalName)) { +@@ -634,8 +634,8 @@ + if (log->pre && (log->flags & LOG_FLAG_SHAREDSCRIPTS)) { + message(MESS_DEBUG, "running shared prerotate script\n"); + if (runScript(log->pattern, log->pre)) { +- fprintf(errorFile, "error running shared prerotate script for %s-- +- leaving old logs in place\n", log->pattern); ++ fprintf(errorFile, "error running shared prerotate script for %s-- " ++ "leaving old logs in place\n", log->pattern); + hasErrors = 1; + } + } >Release-Note: >Audit-Trail: >Unformatted: