NetBSD Problem Report #48073

From www@NetBSD.org  Mon Jul 22 12:00:13 2013
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 6475770611
	for <gnats-bugs@gnats.NetBSD.org>; Mon, 22 Jul 2013 12:00:13 +0000 (UTC)
Message-Id: <20130722120011.AB7D470628@mollari.NetBSD.org>
Date: Mon, 22 Jul 2013 12:00:11 +0000 (UTC)
From: nils.netbsd@anotherhomepage.org
Reply-To: nils.netbsd@anotherhomepage.org
To: gnats-bugs@NetBSD.org
Subject: update sysutils/logrotate to 3.8.5
X-Send-Pr-Version: www-1.0

>Number:         48073
>Category:       pkg
>Synopsis:       update sysutils/logrotate to 3.8.5
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          closed
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Mon Jul 22 12:05:00 +0000 2013
>Closed-Date:    Sun Jul 28 11:27:06 +0000 2013
>Last-Modified:  Sun Jul 28 11:30:00 +0000 2013
>Originator:     Nils Ratusznik
>Release:        NetBSD-6.1
>Organization:
>Environment:
NetBSD dev.anotherhomepage.org 6.1 NetBSD 6.1 (XEN3_DOMU) amd64
>Description:
Pkgsrc version of logrotate is 3.8.4 in 2013Q2 and in current.
>How-To-Repeat:
Look in package source. Look at web page. Note version discrepancy.
>Fix:
Patches are made against 2013Q2 :
Patch for Makefile :
--- ../../sysutils/logrotate/Makefile   2013-07-11 13:14:47.000000000 +0200
+++ Makefile    2013-07-22 13:41:14.000000000 +0200
@@ -1,7 +1,7 @@
 # $NetBSD: Makefile,v 1.5 2013/05/07 20:30:22 gls Exp $
 #

-DISTNAME=              logrotate-3.8.4
+DISTNAME=              logrotate-3.8.5
 CATEGORIES=            sysutils
 MASTER_SITES=          https://fedorahosted.org/releases/l/o/logrotate/
 FETCH_USING=           curl

Patch for distinfo : 
--- ../../sysutils/logrotate/distinfo   2013-07-11 13:14:47.000000000 +0200
+++ distinfo    2013-07-22 13:51:35.000000000 +0200
@@ -1,8 +1,8 @@
 $NetBSD: distinfo,v 1.5 2013/05/07 20:30:22 gls Exp $

-SHA1 (logrotate-3.8.4.tar.gz) = 81d9aeefa6b1c77fe4917a87d9b771a60ff6b920
-RMD160 (logrotate-3.8.4.tar.gz) = 576ff6e1b05a54da14d208abe697b27c754cf881
-Size (logrotate-3.8.4.tar.gz) = 55610 bytes
+SHA1 (logrotate-3.8.5.tar.gz) = b3bd6eb5f84c243b328252db651e4826fd726b8b
+RMD160 (logrotate-3.8.5.tar.gz) = 759b1806ea08bd2c45bbc175ea1efaca255994b7
+Size (logrotate-3.8.5.tar.gz) = 57818 bytes
 SHA1 (patch-examples_logrotate-default) = df9671836392d99f2b31116aee18e51996dee173
 SHA1 (patch-examples_logrotate.cron) = 02981cb2b49e3f3f500fcb3db9b5dcb5fe62bddc
-SHA1 (patch-logrotate.8) = 7f6ff0fe636e15a2b2f03438fbaa012aa1a1eba0
+SHA1 (patch-logrotate.8) = 0bf7d9cfbc2f5dfff42a82b523926b9c8d0362a0

patch for PLIST : 
--- ../../sysutils/logrotate/PLIST      2013-02-21 12:15:32.000000000 +0100
+++ PLIST       2013-07-22 13:57:35.000000000 +0200
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.2 2013/01/10 18:16:29 wiz Exp $
+@comment $NetBSD$
 man/man5/logrotate.conf.5
 man/man8/logrotate.8
 sbin/logrotate
@@ -8,3 +8,4 @@
 share/doc/logrotate/README.Solaris
 share/examples/logrotate/logrotate.conf
 share/examples/logrotate/logrotate.cron
+@pkgdir etc/logrotate.d

patch for patches/patch-logrotate.8 : 
--- ../../sysutils/logrotate/patches/patch-logrotate.8  2013-02-21 12:15:32.000000000 +0100
+++ patches/patch-logrotate.8   2013-07-22 13:51:21.000000000 +0200
@@ -2,18 +2,18 @@

 Add pkgsrc paths compatibility

---- logrotate.8.orig   2011-08-31 12:39:04.000000000 +0000
+--- logrotate.8.orig   2013-06-10 12:02:36.000000000 +0000
 +++ logrotate.8
 @@ -59,7 +59,7 @@ and mail it to the recipient. The defaul
- \fB-s, -\-state <statefile>\fR
+ \fB\-s\fR, \fB\-\-state <statefile>\fR
  Tells \fBlogrotate\fR to use an alternate state file.  This is useful
  if logrotate is being run as a different user for various sets of
 -log files.  The default state file is \fI/var/lib/logrotate.status\fR.
-+log files.  The default state file is \fI@VARBASE@/log/logrotate.status\fR.
++log files.  The default state file is \fI@VARBASE@/db/logrotate.status\fR.

  .TP
- \fB-\-usage\fR
-@@ -499,10 +499,10 @@ Log files are rotated if the current yea
+ \fB\-\-usage\fR
+@@ -523,10 +523,10 @@ Log files are rotated if the current yea
  .SH FILES
  .PD 0
  .TP 27

Other files don't change.

>Release-Note:

>Audit-Trail:
From: Nils Ratusznik <nils.ratusznik@anotherhomepage.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/48073: update sysutils/logrotate to 3.8.5
Date: Mon, 22 Jul 2013 14:07:03 +0200 (CEST)

 Here is the changelog :

 3.8.4 -> 3.8.5
 	- Improved rotation during daylight saving time and between timezone
 	  changes.
 	- Fixed ACL setting problem caused by ext3 erroneously reporting ENOSYS
 	  instead of ENOSUP.
 	- Do not continue with rotation if state file is corrupted.
 	- Make logrotate.status creation atomic.
 	- Allow "hourly" rotation. See manpage for more information.
 	- Use "/bin/echo" in tests. Fixes tests execution in Dash.
 	- Do no try to parse config files bigger than 16MB.
 	- Improved manpage consistency and formatting.
 	- Fix race condition between acl_set_fd() and fchmod().

From: "OBATA Akio" <obache@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/48073 CVS commit: pkgsrc/sysutils/logrotate
Date: Sun, 28 Jul 2013 11:21:23 +0000

 Module Name:	pkgsrc
 Committed By:	obache
 Date:		Sun Jul 28 11:21:23 UTC 2013

 Modified Files:
 	pkgsrc/sysutils/logrotate: Makefile distinfo
 	pkgsrc/sysutils/logrotate/patches: patch-logrotate.8

 Log Message:
 Update logrotate to 3.8.5.
 Based on PR pkg/48073 by Nils Ratusznik.
 (drop FETCH_USING=curl, put distfile on ftp.n.o).

 3.8.4 -> 3.8.5
 	- Improved rotation during daylight saving time and between timezone
 	  changes.
 	- Fixed ACL setting problem caused by ext3 erroneously reporting ENOSYS
 	  instead of ENOSUP.
 	- Do not continue with rotation if state file is corrupted.
 	- Make logrotate.status creation atomic.
 	- Allow "hourly" rotation. See manpage for more information.
 	- Use "/bin/echo" in tests. Fixes tests execution in Dash.
 	- Do no try to parse config files bigger than 16MB.
 	- Improved manpage consistency and formatting.
 	- Fix race condition between acl_set_fd() and fchmod().


 To generate a diff of this commit:
 cvs rdiff -u -r1.5 -r1.6 pkgsrc/sysutils/logrotate/Makefile \
     pkgsrc/sysutils/logrotate/distinfo
 cvs rdiff -u -r1.2 -r1.3 pkgsrc/sysutils/logrotate/patches/patch-logrotate.8

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->closed
State-Changed-By: obache@NetBSD.org
State-Changed-When: Sun, 28 Jul 2013 11:27:06 +0000
State-Changed-Why:
Updated.  Thanks!


From: "OBATA Akio" <obache@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/48073: update sysutils/logrotate to 3.8.5
Date: Sun, 28 Jul 2013 20:25:36 +0900

 On Mon, 22 Jul 2013 21:05:00 +0900, <nils.netbsd@anotherhomepage.org> wrote:

 > patch for PLIST :
 > --- ../../sysutils/logrotate/PLIST      2013-02-21 12:15:32.000000000 +0100
 > +++ PLIST       2013-07-22 13:57:35.000000000 +0200
 > @@ -1,4 +1,4 @@
 > -@comment $NetBSD: PLIST,v 1.2 2013/01/10 18:16:29 wiz Exp $
 > +@comment $NetBSD$
 >  man/man5/logrotate.conf.5
 >  man/man8/logrotate.8
 >  sbin/logrotate
 > @@ -8,3 +8,4 @@
 >  share/doc/logrotate/README.Solaris
 >  share/examples/logrotate/logrotate.conf
 >  share/examples/logrotate/logrotate.cron
 > +@pkgdir etc/logrotate.d

 It is cared with OWN_DIRS, maybe not there if PKG_SYSCONFBASE != ${PREFIX}/etc.

 -- 
 OBATA Akio / obache@NetBSD.org

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.