Subject: [grant@NetBSD.org: Re: x11-links and Solaris]
To: None <mlh@goathill.org>
From: grant beattie <grant@NetBSD.org>
List: tech-pkg
Date: 09/19/2003 11:32:02
--8w3uRX/HFJGApMzv
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

that's what I get for honouring reply-to.. a nice bounce ;-)

(sorry for the dupe)

g.


--8w3uRX/HFJGApMzv
Content-Type: message/rfc822
Content-Disposition: inline

Date: Fri, 19 Sep 2003 11:29:12 +1000
From: grant beattie <grant@NetBSD.org>
To: mlh@goatnospamhill.org
Cc: tech-pkg@NetBSD.org
Subject: Re: x11-links and Solaris
Message-ID: <20030919012912.GD18445@fang>
References: <slrnbmkf95.4in.MLH@tiamat.goathill.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <slrnbmkf95.4in.MLH@tiamat.goathill.org>
User-Agent: Mutt/1.4i

On Fri, Sep 19, 2003 at 02:06:54AM +0000, MLH wrote:

> /usr/bin/cat /usr/pkgsrc/pkgtools/x11-links/files/openwin | /usr/xpg4/bin/grep
> -v "^#" | /usr/bin/sort -u |                              while read file; do
> if [ -e /usr/openwin/$file ]; then                      /usr/bin/ln -fs
> /usr/openwin/$file
> /export/home/pkgsrc/pkgtools/x11-links/work/share/x11-links/$file;
> /usr/ucb/echo "share/x11-links/$file"           >>
> /export/home/pkgsrc/pkgtools/x11-links/work/.PLIST_SRC.files;
> fi;                                                     done
> /bin/sh: test: argument expected
> *** Error code 1
> 
> Stop.
> bmake: stopped in /usr/pkgsrc/pkgtools/x11-links
> 
> Any ideas on what exactly isn't getting substituted here?

the -e test operator only works with xpg4/bin/sh, not /bin/sh.

I've modified the x11-links package to use ${TEST}, which fixes this
on Solaris (and should work everywhere).

grant.


--8w3uRX/HFJGApMzv--