NetBSD Problem Report #55581
From www@netbsd.org Mon Aug 17 15:05:09 2020
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 "mail.NetBSD.org CA" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id C914A1A9239
for <gnats-bugs@gnats.NetBSD.org>; Mon, 17 Aug 2020 15:05:08 +0000 (UTC)
Message-Id: <20200817150507.A8CEE1A9246@mollari.NetBSD.org>
Date: Mon, 17 Aug 2020 15:05:07 +0000 (UTC)
From: joern.clausen@uni-bielefeld.de
Reply-To: joern.clausen@uni-bielefeld.de
To: gnats-bugs@NetBSD.org
Subject: pkgtools/pkg_chk throws warning with new(er) gawk
X-Send-Pr-Version: www-1.0
>Number: 55581
>Category: pkg
>Synopsis: pkgtools/pkg_chk throws warning with new(er) gawk
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: abs
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Aug 17 15:10:00 +0000 2020
>Closed-Date:
>Last-Modified: Tue Oct 13 06:54:30 +0000 2020
>Originator: Joern Clausen
>Release:
>Organization:
Bielefeld University
>Environment:
>Description:
On Solaris 11.4, pkg_chk throws a warning:
$ pkg_chk -aun
gawk: cmd. line:43: warning: regexp escape sequence `\=' is not a known regexp operator
Otherwise, it seems to work fine, but it is unclear when and how the failing regex might have consequences.
gawk on Solaris 11.4 is fairly recent, the same version is available via pkgsrc:
$ /usr/bin/gawk --version
GNU Awk 5.0.1, API: 2.0 (GNU MPFR 3.1.5, GNU MP 6.1.2)
Copyright (C) 1989, 1991-2019 Free Software Foundation.
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: pkg-manager->abs
Responsible-Changed-By: wiz@NetBSD.org
Responsible-Changed-When: Tue, 18 Aug 2020 07:43:18 +0000
Responsible-Changed-Why:
Over to maintainer
From: =?UTF-8?Q?Clausen=2c_J=c3=b6rn?= <joern.clausen@uni-bielefeld.de>
To: <gnats-bugs@netbsd.org>, <pkg-manager@netbsd.org>,
<pkgsrc-bugs@netbsd.org>, <gnats-admin@netbsd.org>
Cc:
Subject: Re: pkg/55581 (pkgtools/pkg_chk throws warning with new(er) gawk)
Date: Wed, 7 Oct 2020 16:13:29 +0200
I'm not sure if it's better to open another PR or attach it to this, but
now "mk/checksum/checksum.awk" is also affected:
$ bmake
=> Bootstrap dependency digest>=20010302: found digest-20190127
gawk: /opt/pkgsrc/pkg-hrz/pkgsrc/mk/checksum/checksum.awk:129: warning:
regexp escape sequence `\#' is not a known regexp operator
=> Checksum SHA1 OK for wireshark-3.2.7.tar.xz
=> Checksum RMD160 OK for wireshark-3.2.7.tar.xz
=> Checksum SHA512 OK for wireshark-3.2.7.tar.xz
Again, this is Solaris 11.4, and gawk is
$ /usr/bin/gawk --version
GNU Awk 5.0.1, API: 2.0 (GNU MPFR 3.1.5, GNU MP 6.1.2)
Copyright (C) 1989, 1991-2019 Free Software Foundation.
--
Jörn Clausen
BITS - Bielefelder IT-Servicezentrum
https://www.uni-bielefeld.de/bits
From: "Jonathan Perkin" <jperkin@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/55581 CVS commit: pkgsrc/mk/checksum
Date: Wed, 7 Oct 2020 18:09:52 +0000
Module Name: pkgsrc
Committed By: jperkin
Date: Wed Oct 7 18:09:52 UTC 2020
Modified Files:
pkgsrc/mk/checksum: checksum.awk
Log Message:
checksum.awk: Avoid warnings with newer gawk.
Reported by Jörn Clausen in PR#55581.
To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 pkgsrc/mk/checksum/checksum.awk
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
From: Jonathan Perkin <jperkin@joyent.com>
To: gnats-bugs@netbsd.org
Cc: abs@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org,
joern.clausen@uni-bielefeld.de
Subject: Re: pkg/55581 (pkgtools/pkg_chk throws warning with new(er) gawk)
Date: Wed, 7 Oct 2020 19:10:33 +0100
* On 2020-10-07 at 15:15 BST, Clausen, Jörn wrote:
> I'm not sure if it's better to open another PR or attach it to this, but
> now "mk/checksum/checksum.awk" is also affected:
>
> $ bmake
> => Bootstrap dependency digest>=20010302: found digest-20190127
> gawk: /opt/pkgsrc/pkg-hrz/pkgsrc/mk/checksum/checksum.awk:129: warning:
> regexp escape sequence `\#' is not a known regexp operator
Thanks, fixed.
--
Jonathan Perkin - Joyent, Inc. - www.joyent.com
State-Changed-From-To: open->closed
State-Changed-By: maya@NetBSD.org
State-Changed-When: Tue, 13 Oct 2020 01:22:33 +0000
State-Changed-Why:
Assuming it is fixed from jperkin's response. Let me know if it is not.
From: =?UTF-8?Q?Clausen=2c_J=c3=b6rn?= <joern.clausen@uni-bielefeld.de>
To: <gnats-bugs@netbsd.org>, <abs@netbsd.org>, <pkgsrc-bugs@netbsd.org>,
<gnats-admin@netbsd.org>, <maya@netbsd.org>
Cc:
Subject: Re: pkg/55581 (pkgtools/pkg_chk throws warning with new(er) gawk)
Date: Tue, 13 Oct 2020 08:35:42 +0200
> Assuming it is fixed from jperkin's response. Let me know if it is not.
I knew I should have opened another PR :)
The problem with mk/checksum/checksum.awk has been fixed. After checking
this change, I took a superficial look at pkg_chk to see if the fix
could be similar. Unfortunately, here the source of the error it is not
as obvious, and is still present.
--
Jörn Clausen
BITS - Bielefelder IT-Servicezentrum
https://www.uni-bielefeld.de/bits
State-Changed-From-To: closed->open
State-Changed-By: maya@NetBSD.org
State-Changed-When: Tue, 13 Oct 2020 06:54:30 +0000
State-Changed-Why:
Not fixed
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.