NetBSD Problem Report #43823
From www@NetBSD.org Tue Aug 31 20:14:18 2010
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by www.NetBSD.org (Postfix) with ESMTP id E936C63BC45
for <gnats-bugs@gnats.NetBSD.org>; Tue, 31 Aug 2010 20:14:17 +0000 (UTC)
Message-Id: <20100831201417.B6BF863BBC7@www.NetBSD.org>
Date: Tue, 31 Aug 2010 20:14:17 +0000 (UTC)
From: sd4dfg2@hotmail.com
Reply-To: sd4dfg2@hotmail.com
To: gnats-bugs@NetBSD.org
Subject: bug in p5-Time-modules - perl 5.12
X-Send-Pr-Version: www-1.0
>Number: 43823
>Category: pkg
>Synopsis: bug in p5-Time-modules - perl 5.12
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Aug 31 20:15:01 +0000 2010
>Closed-Date: Sun Jun 19 12:07:01 +0000 2011
>Last-Modified: Sun Jun 19 12:07:01 +0000 2011
>Originator: RobQ
>Release: Solaris 2.10
>Organization:
>Environment:
>Description:
After building perl 5.12 and rebuilding all my p5- packages I get this error when I call parsedate in p5-Time-modules:
Use of uninitialized value $ampm in uc at /usr/pkg/lib/perl5/vendor_perl/5.12.0/Time/ParseDate.pm line 733, <$PIPE> line 272.
If you google you can see automated cpan tests reporting it too, including one that seems to email the author. I don't see any fixes posted on cpan.
>How-To-Repeat:
>Fix:
I think the fix is to check that $ampm is defined on line 733 before comparing it to "AM", just like is done on line 732 when it's compared to "PM".
>Release-Note:
>Audit-Trail:
From: "OBATA Akio" <obache@netbsd.org>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/43823: bug in p5-Time-modules - perl 5.12
Date: Fri, 25 Feb 2011 20:56:16 +0900
On Wed, 01 Sep 2010 05:15:01 +0900, <sd4dfg2@hotmail.com> wrote:
> Use of uninitialized value $ampm in uc at /usr/pkg/lib/perl5/vendor_perl/5.12.0/Time/ParseDate.pm line 733, <$PIPE> line 272.
>
> If you google you can see automated cpan tests reporting it too, including one that seems to email the author. I don't see any fixes posted on cpan.
>> How-To-Repeat:
>
>> Fix:
> I think the fix is to check that $ampm is defined on line 733 before comparing it to "AM", just like is done on line 732 when it's compared to "PM".
This one?
https://rt.cpan.org/Public/Bug/Display.html?id=60705
--
OBATA Akio / obache@NetBSD.org
From: Rob Q <sd4dfg2@hotmail.com>
To: <gnats-bugs@netbsd.org>
Cc:
Subject: RE: pkg/43823: bug in p5-Time-modules - perl 5.12
Date: Fri, 8 Apr 2011 11:02:04 -0400
--_a37e3471-3073-4d58-b226-c14bd6f7ff95_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Yes.
=
--_a37e3471-3073-4d58-b226-c14bd6f7ff95_
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<html>
<head>
<style><!--
.hmmessage P
{
margin:0px=3B
padding:0px
}
body.hmmessage
{
font-size: 10pt=3B
font-family:Tahoma
}
--></style>
</head>
<body class=3D'hmmessage'>
Yes.<br> </body>
</html>=
--_a37e3471-3073-4d58-b226-c14bd6f7ff95_--
From: "OBATA Akio" <obache@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/43823 CVS commit: pkgsrc/time/p5-Time-modules
Date: Sun, 19 Jun 2011 12:04:47 +0000
Module Name: pkgsrc
Committed By: obache
Date: Sun Jun 19 12:04:47 UTC 2011
Modified Files:
pkgsrc/time/p5-Time-modules: Makefile distinfo
Log Message:
Update p5-Time-modules to 2011.0517.
(contains fixes for PR#43823).
2011.0517:
Bugfix from Sophie Hamilton: call tzset() when changing timezones.
Bugfix: bail out of tests cleanly when tzset doesn't work.
2011.0505:
Bugfix: make sure $ampm is defined so no undefined string warnings
are issued.
Honor the GMT flag when parsing time specs. Patch from
kris at shannon.id.au.
Bugfix: RT#31477 noon & midnight would match in the middle of strings.
Added %v conversion for Time::CTime
Added tests to disprove invalid bug reports.
To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 pkgsrc/time/p5-Time-modules/Makefile
cvs rdiff -u -r1.1.1.1 -r1.2 pkgsrc/time/p5-Time-modules/distinfo
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, 19 Jun 2011 12:07:01 +0000
State-Changed-Why:
Fixed by upstream 2011.0505 and updated to 2011.0517 in pkgsrc.
>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.