pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: pkg/34976: sysutils/xentools30 fails "test ==" portability check
The following reply was made to PR pkg/34976; it has been noted by GNATS.
From: Manuel Bouyer <bouyer%antioche.eu.org@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: pkg-manager%NetBSD.org@localhost, gnats-admin%NetBSD.org@localhost,
pkgsrc-bugs%NetBSD.org@localhost
Subject: Re: pkg/34976: sysutils/xentools30 fails "test ==" portability check
Date: Thu, 2 Nov 2006 20:20:09 +0100
On Thu, Nov 02, 2006 at 01:00:02PM +0000, kre%munnari.OZ.AU@localhost wrote:
> >Number: 34976
> >Category: pkg
> >Synopsis: sysutils/xentools30 fails "test ==" portability check
> >Confidential: no
> >Severity: serious
> >Priority: medium
> >Responsible: pkg-manager
> >State: open
> >Class: sw-bug
> >Submitter-Id: net
> >Arrival-Date: Thu Nov 02 13:00:02 +0000 2006
> >Originator: Robert Elz
> >Release: NetBSD 3.99.15 (pkgsrc current today)
> >Organization:
> Prince Of Songkla University
> >Environment:
> System: NetBSD jade.coe.psu.ac.th 3.99.15 NetBSD 3.99.15
> (GENERIC-1.696-20060125) #8: Wed Jan 25 04:59:39 ICT 2006
> kre%jade.coe.psu.ac.th@localhost:/usr/obj/current/kernels/JADE_ASUS i386
> Architecture: i386
> Machine: i386
> >Description:
> Scripts in sysutils/xentools30 apparently were written on a linux
> system where (for whatever weird reason) users are being taught that
> "test x == y" is the correct way to write scripts.
>
> >How-To-Repeat:
> Attempt to build sysutils/xentools30 on a system with
> PKG_DEVELOPER=yes (and a pgksrc version recent enough to
> have the "test ==" posrability check included).
>
> (I'm actually using today's pkgsrc, and pkg_comp,
> with libkver, and NetBSD-3.0 release sets installed,
> just for complete info - I doubt any of that is relevant)
>
> Expect to see ...
>
> => Checking for portability problems in extracted files
> ERROR: [check-portability.sh] => Found test ... == ...:
> ERROR: [check-portability.sh] examples/blktap: if [ "$command" == 'add' ]
> ERROR: [check-portability.sh] examples/block: if [ "$mode" == 'w' ]
> ERROR: [check-portability.sh] examples/block: if [ "$d" == "$devmm" ]
> ERROR: [check-portability.sh] examples/block: if [ "$d" == "$devmm" ]
> ERROR: [check-portability.sh] examples/block: if [ "$mode" == 'w' ]
> ERROR: [check-portability.sh] examples/block: if [ "$m" == 'w' ]
> ERROR: [check-portability.sh] examples/block: [ "$FRONTEND_UUID" ==
> "$othervm" ]
> ERROR: [check-portability.sh] examples/block: if [ "$mode" == '!' ]
> ERROR: [check-portability.sh] examples/block: if [ "$result" == 'guest' ]
> ERROR: [check-portability.sh] examples/block: if [ "$mode" == 'w' ]
> ERROR: [check-portability.sh] examples/block: if [ "$mode" == 'w' ] && !
> stat "$file" -c %A | grep -q w
> ERROR: [check-portability.sh] examples/block: if [ "$mode" == '!' ]
> ERROR: [check-portability.sh] examples/block: if [ "$d" == "$dev" ]
> ERROR: [check-portability.sh] examples/block: if [ "$f" == "$file" ]
> ERROR: [check-portability.sh] examples/block: if [ "$loopdev" == '' ]
> ERROR: [check-portability.sh] examples/block: if [ "$loopdev" == '' ]
> ERROR: [check-portability.sh] examples/vif-route: if [ "$command" ==
> "online" ]
> ERROR: [check-portability.sh] examples/vif-nat: if [ "$ip" == "" ]
> ERROR: [check-portability.sh] examples/vif-nat: if [ "$command" == "online" ]
> ERROR: [check-portability.sh] examples/external-device-migrate: if [ "$1" ==
> "-step" ]; then
> ERROR: [check-portability.sh] examples/external-device-migrate: elif [ "$1"
> == "-host" ]; then
> ERROR: [check-portability.sh] examples/external-device-migrate: elif [ "$1"
> == "-domname" ]; then
> ERROR: [check-portability.sh] examples/external-device-migrate: elif [ "$1"
> == "-type" ]; then
> ERROR: [check-portability.sh] examples/external-device-migrate: elif [ "$1"
> == "-subtype" ]; then
> ERROR: [check-portability.sh] examples/external-device-migrate: elif [ "$1"
> == "-recover" ]; then
> ERROR: [check-portability.sh] examples/external-device-migrate: elif [ "$1"
> == "-help" ]; then
> ERROR: [check-portability.sh] examples/external-device-migrate: if [ "$step"
> == "" -o "$host" == "" -o "$typ" == "" -o
> "$domname" == "" ]; then
> ERROR: [check-portability.sh] examples/external-device-migrate: if [
> "$recover" == "1" ]; then
> ERROR: [check-portability.sh] examples/vif-bridge: if [ "$command" ==
> "online" ]
> *** Error code 1
>
> Stop.
>
> >Fix:
> Add patches to change all of those == operators to =
No, none of these scripts are used on a NetBSD system. There's already too many
patches in xentools30/. The way to go is to use CHECK_PORTABILITY_SKIP here
(but I can't do it right now)
--
Manuel Bouyer <bouyer%antioche.eu.org@localhost>
NetBSD: 26 ans d'experience feront toujours la difference
--
Home |
Main Index |
Thread Index |
Old Index