From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Vin Shelton Newsgroups: gmane.emacs.devel Subject: Re: Cannot Generate loaddefs.el on Solaris Date: Mon, 22 Sep 2003 21:14:16 -0400 Organization: The XEmacs Development Team Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <545adbgj6wg.fsf@icd.teradyne.com> <545y8wg27f5.fsf@icd.teradyne.com> <20030922233446.GC26980@fencepost> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1064280116 17986 80.91.224.253 (23 Sep 2003 01:21:56 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 23 Sep 2003 01:21:56 +0000 (UTC) Cc: Vin Shelton , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Tue Sep 23 03:21:54 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1A1bsI-0000Dd-00 for ; Tue, 23 Sep 2003 03:21:54 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1A1byL-0005EW-00 for ; Tue, 23 Sep 2003 03:28:09 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.22) id 1A1bpP-0005ed-Vz for emacs-devel@quimby.gnus.org; Mon, 22 Sep 2003 21:18:55 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22) id 1A1bpL-0005e9-Kh for emacs-devel@gnu.org; Mon, 22 Sep 2003 21:18:51 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22) id 1A1bpG-0005Zh-Sx for emacs-devel@gnu.org; Mon, 22 Sep 2003 21:18:49 -0400 Original-Received: from [207.172.4.62] (helo=smtp03.mrf.mail.rcn.net) by monty-python.gnu.org with esmtp (Exim 4.22) id 1A1bpG-0005ZK-IO; Mon, 22 Sep 2003 21:18:46 -0400 Original-Received: from 65-78-17-226.c3-0.nwt-ubr2.sbo-nwt.ma.cable.rcn.com ([65.78.17.226] helo=zion.rcn.com) by smtp03.mrf.mail.rcn.net with esmtp (Exim 3.35 #4) id 1A1bpF-0001nU-00; Mon, 22 Sep 2003 21:18:45 -0400 Original-Received: by zion.rcn.com (Postfix, from userid 500) id 28C201E087; Mon, 22 Sep 2003 21:14:16 -0400 (EDT) Original-To: Miles Bader In-Reply-To: <20030922233446.GC26980@fencepost> (Miles Bader's message of "Mon, 22 Sep 2003 19:34:46 -0400") Original-Lines: 36 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:16565 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:16565 Miles Bader writes: > On Mon, Sep 22, 2003 at 11:02:06AM -0400, Vin Shelton wrote: >> /bin/sh on Solaris has stricter syntax wrt the 'test' command than >> bash does. The ! (negation) operator cannot appear before the 'test' >> command. >> - if ! test -r $(lisp)/loaddefs.el; then \ >> + if test ! -r $(lisp)/loaddefs.el; then \ > > Note that the ! in the former case is actually a (posix) shell construct, not > a test operator. > > I'm not entirely comfortable with the ! test operator either, but a bit of > googling suggests that it's OK even on ancient systems, as long as the > following expression is not `weird.' > > (I always test my scripts for portability on sunos because sun seems to have > last updated some of their utilities in about 1985!) Miles, Thanks for the reply. I may have given you the wrong impression - namely that I was writing hypothetically. The actual situation is that the version in CVS does not work on the Solaris systems at work: loaddefs.el does not get created, and therefore emacs dumping does not work. (IIRC, the message is something like: "!: command not found".) When I apply the patch, loaddefs.el _does_ get created and I can successfully dump emacs. (BTW, I think the build started failing for me on or about September 12.) The systems in question are pretty much stock Solaris 5.8 and 5.5.1 systems. I'm pretty sure that /bin/sh on these Sparc Solaris systems is not POSIX-compliant. - Vin