NetBSD Problem Report #50843

From www@NetBSD.org  Wed Feb 24 04:00:46 2016
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.NetBSD.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id BB8CA7A227
	for <gnats-bugs@gnats.NetBSD.org>; Wed, 24 Feb 2016 04:00:46 +0000 (UTC)
Message-Id: <20160224040045.99FCD7ACD7@mollari.NetBSD.org>
Date: Wed, 24 Feb 2016 04:00:45 +0000 (UTC)
From: dean@av8.net
Reply-To: dean@av8.net
To: gnats-bugs@NetBSD.org
Subject: Seems libmagic is broken.
X-Send-Pr-Version: www-1.0

>Number:         50843
>Category:       lib
>Synopsis:       Seems libmagic is broken.
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    lib-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Feb 24 04:05:00 +0000 2016
>Originator:     Dean Anderson
>Release:        7.0
>Organization:
Av8 Internet, Inc
>Environment:
NetBSD engine6 7.0 NetBSD 7.0 (AV8_XEN3_DOMU) #1: Tue Jan 26 20:59:13 EST 2016  root@efsnfs1.boscp.av8.net:/usr/src/sys/arch/amd64/compile/AV8_XEN3_DOMU amd64
$
>Description:
The netbsd7.0 file command has a bug:


$ file /var/tmp/gnu-make-4.1-build001-build/x86-64.netbsd.7.0/gcc493/source/make-4.1/po/vi.po 
/var/tmp/gnu-make-4.1-build001-build/x86-64.netbsd.7.0/gcc493/source/make-4.1/po/vi.po: ERROR: line 59: regex error 16 for `^\s*except.*:', (invalid argument to regex routine)

This was not a problem in netbsd 6.1.5.

I found this using perl's libmagic package, but its not a bug in the perl package, 
>How-To-Repeat:
download
http://ftp.gnu.org/gnu/make/make-4.1.tar.gz
configure and build. 
>Fix:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.