NetBSD Problem Report #43992

From www@NetBSD.org  Fri Oct 22 03:09:45 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 CF1B063B91F
	for <gnats-bugs@gnats.NetBSD.org>; Fri, 22 Oct 2010 03:09:44 +0000 (UTC)
Message-Id: <20101022030944.63C9C63B906@www.NetBSD.org>
Date: Fri, 22 Oct 2010 03:09:44 +0000 (UTC)
From: yakina@club.dsb.jp
Reply-To: yakina@club.dsb.jp
To: gnats-bugs@NetBSD.org
Subject: security/mozilla-rootcerts need update and bugfix
X-Send-Pr-Version: www-1.0

>Number:         43992
>Category:       pkg
>Synopsis:       security/mozilla-rootcerts need update and bugfix
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          closed
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Fri Oct 22 03:10:01 +0000 2010
>Closed-Date:    Fri Oct 22 11:49:55 +0000 2010
>Last-Modified:  Fri Oct 22 11:49:55 +0000 2010
>Originator:     Makoto Yamakura
>Release:        DragonFly BSD 2.9 i386; pkgsrc-current
>Organization:
>Environment:
DragonFly t42.local 2.9-DEVELOPMENT DragonFly v2.9.0.10.g66abcd-DEVELOPMENT #18: Wed Oct 20 14:57:57 JST 2010     root@t42.local:/usr/obj/usr/src/sys/T42KERNEL  i386
>Description:
mozilla-rootcerts file have been updated.
CVS_ID "@(#) $RCSfile: certdata.txt,v $ $Revision: 1.65 $ $Date: 2010/08/27 15:45:14 $"

With that new certdata.txt, mozilla-rootcerts rehash failed.
>How-To-Repeat:
# /usr/pkg/sbin/mozilla-rootcerts -f certdata.txt extract
(snip)

# /usr/pkg/sbin/mozilla-rootcerts rehash
(snip)
mozilla-rootcert-149.pem => 381ce4dd.0
mozilla-rootcert-15.pem => 5ad8a5d6.0
mozilla-rootcert-150.pem => 24ad0b63.0
expr: syntax error
expr: syntax error
expr: syntax error
...

>Fix:
This patch should fix the bug;

--- mozilla-rootcerts.orig     2010-09-25 16:05:31 +0900
+++ mozilla-rootcerts   2010-10-22 11:48:02 +0900
@@ -72,7 +72,7 @@
                        ${ECHO} 1>&2 "WARNING: Skipping duplicate certificate $_pemfile"
                        return
                fi
-               suffix=`${EXPR} $suffix + 1`
+               _suffix=`${EXPR} $_suffix + 1`
        done
 }


>Release-Note:

>Audit-Trail:
From: "Thomas Klausner" <wiz@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/43992 CVS commit: pkgsrc/security/mozilla-rootcerts
Date: Fri, 22 Oct 2010 10:41:50 +0000

 Module Name:	pkgsrc
 Committed By:	wiz
 Date:		Fri Oct 22 10:41:50 UTC 2010

 Modified Files:
 	pkgsrc/security/mozilla-rootcerts: Makefile distinfo
 	pkgsrc/security/mozilla-rootcerts/files: mozilla-rootcerts.sh

 Log Message:
 Update to 20100827. Set LICENSE.

 Fix bug reported by Makoto Yamakura in PR 43992.


 To generate a diff of this commit:
 cvs rdiff -u -r1.4 -r1.5 pkgsrc/security/mozilla-rootcerts/Makefile
 cvs rdiff -u -r1.2 -r1.3 pkgsrc/security/mozilla-rootcerts/distinfo
 cvs rdiff -u -r1.2 -r1.3 \
     pkgsrc/security/mozilla-rootcerts/files/mozilla-rootcerts.sh

 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: reed@NetBSD.org
State-Changed-When: Fri, 22 Oct 2010 11:49:55 +0000
State-Changed-Why:
wiz fixed.


>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.