NetBSD Problem Report #50482

From www@NetBSD.org  Fri Nov 27 07:59:06 2015
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	(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 C0A66A6562
	for <gnats-bugs@gnats.NetBSD.org>; Fri, 27 Nov 2015 07:59:05 +0000 (UTC)
Message-Id: <20151127075904.84E76A65B7@mollari.NetBSD.org>
Date: Fri, 27 Nov 2015 07:59:04 +0000 (UTC)
From: richard@netbsd.org
Reply-To: richard@netbsd.org
To: gnats-bugs@NetBSD.org
Subject: verifypc uses invalid ASCII literal in script
X-Send-Pr-Version: www-1.0

>Number:         50482
>Category:       pkg
>Synopsis:       verifypc uses invalid ASCII literal in script
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    jmmv
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Nov 27 08:00:00 +0000 2015
>Closed-Date:    Tue Feb 20 03:00:33 +0000 2018
>Last-Modified:  Tue Feb 20 03:00:33 +0000 2018
>Originator:     Richard PALO
>Release:        current
>Organization:
>Environment:
SunOS omnis 5.11 omnidev-0-gd664f8e i86pc i386 i86pc

>Description:
verifypc has the following sequence:

    lines=$(cat ${log} | sort | uniq | tr ' ' '¬')
    for l in ${lines}; do
        pcname=$(echo ${l} | cut -d '¬' -f 1)
        pcop=$(echo ${l} | cut -d '¬' -f 2)
        pcver=$(echo ${l} | cut -d '¬' -f 3)

this is rejected by solaris tr in UTF-8 locales because '¬' 
(or '\254' here) is an invalid UTF-8 sequence (which would be '\302\254')
>How-To-Repeat:
set to any UTF-8 locale and invoke verifypc after minimally a bmake configure in a pkgsrc package directory
>Fix:
Either the chosen delimiter '¬' should be changed to be something less than '\200' or perhaps the locale could simply be forced to C or POSIX

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->jmmv
Responsible-Changed-By: wiz@NetBSD.org
Responsible-Changed-When: Fri, 27 Nov 2015 09:46:57 +0000
Responsible-Changed-Why:
Over to maintainer.


From: "David A. Holland" <dholland@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/50482 CVS commit: pkgsrc/pkgtools/verifypc
Date: Tue, 20 Feb 2018 02:55:15 +0000

 Module Name:	pkgsrc
 Committed By:	dholland
 Date:		Tue Feb 20 02:55:15 UTC 2018

 Modified Files:
 	pkgsrc/pkgtools/verifypc: Makefile
 	pkgsrc/pkgtools/verifypc/files: verifypc.sh

 Log Message:
 verifypc 1.7: adapt to a change in the log format produced by pkg-config,
 and while here, fix PR 50482 (verifypc uses invalid ASCII literal in script).

 also tidy some pkglint.


 To generate a diff of this commit:
 cvs rdiff -u -r1.15 -r1.16 pkgsrc/pkgtools/verifypc/Makefile
 cvs rdiff -u -r1.7 -r1.8 pkgsrc/pkgtools/verifypc/files/verifypc.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: dholland@NetBSD.org
State-Changed-When: Tue, 20 Feb 2018 03:00:33 +0000
State-Changed-Why:
fixed


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.