NetBSD Problem Report #28899
From woods@building.weird.com Fri Jan 7 22:39:17 2005
Return-Path: <woods@building.weird.com>
Received: from building.weird.com (building.weird.com [204.92.254.24])
by narn.netbsd.org (Postfix) with ESMTP id 2BD6D63B400
for <gnats-bugs@gnats.netbsd.org>; Fri, 7 Jan 2005 22:39:17 +0000 (UTC)
Message-Id: <m1Cn2lH-0024ffC@building.weird.com>
Date: Fri, 7 Jan 2005 17:39:15 -0500 (EST)
From: "Greg A. Woods" <woods@weird.com>
Reply-To: "Greg A. Woods" <woods@planix.com>
To: gnats-bugs@netbsd.org
Subject: minor fixes for cdpack's cdgen.awk compatability problems
X-Send-Pr-Version: 3.95
>Number: 28899
>Category: pkg
>Synopsis: minor fixes for cdpack's cdgen.awk compatability problems
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: pkg-manager
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Jan 07 22:42:01 +0000 2005
>Closed-Date: Sun Jan 09 15:34:40 +0000 2005
>Last-Modified: Sun Jan 09 15:36:00 +0000 2005
>Originator: Greg A. Woods
>Release: NetBSD
>Organization:
Planix, Inc.; Toronto, Ontario; Canada
>Environment:
System: NetBSD
>Description:
The cdgen.awk script in the pkgtools/cdpack makes use of one
non-portable GNU Awk feature which can trivially be changed to
gain 100% portability and compatability with any POSIX AWK.
>How-To-Repeat:
try running cdpack on any system with The One True AWK.
>Fix:
Index: pkgtools/cdpack/files/cdgen.awk
===================================================================
RCS file: /cvs/master/m-NetBSD/main/pkgsrc/pkgtools/cdpack/files/cdgen.awk,v
retrieving revision 1.4
diff -u -r1.4 cdgen.awk
--- pkgtools/cdpack/files/cdgen.awk 5 Feb 2003 15:01:57 -0000 1.4
+++ pkgtools/cdpack/files/cdgen.awk 7 Jan 2005 22:34:21 -0000
@@ -116,7 +117,7 @@
}
- now = strftime("%a %b %d %H:%M:%S %Z %Y");
+ "date" | getline now;
printf("%s starting %28s\n",prog,now);
@@ -406,7 +406,7 @@
close(cdlist);
- now = strftime("%a %b %d %H:%M:%S %Z %Y");
+ "date" | getline now;
printf("%s finished on %28s\n",prog,now);
printf("\n");
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: dmcmahill@netbsd.org
State-Changed-When: Sun, 09 Jan 2005 15:34:40 +0000
State-Changed-Why:
patch applied. Thanks.
From: Dan McMahill <dmcmahill@netbsd.org>
To: gnats-bugs@netbsd.org
Cc:
Subject: PR/28899 CVS commit: pkgsrc/pkgtools/cdpack/files
Date: Sun, 9 Jan 2005 15:33:09 +0000 (UTC)
Module Name: pkgsrc
Committed By: dmcmahill
Date: Sun Jan 9 15:33:09 UTC 2005
Modified Files:
pkgsrc/pkgtools/cdpack/files: cdgen.awk
Log Message:
use "date" | getline now instead of the gawk strftime() extension. Improves
portability. Patch provided by Greg Woods in PR pkg/28899.
To generate a diff of this commit:
cvs rdiff -r1.4 -r1.5 pkgsrc/pkgtools/cdpack/files/cdgen.awk
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
>Unformatted:
(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.