delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/08/12/20:14:54

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=0.1 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE
X-Spam-Check-By: sourceware.org
Message-ID: <4C648E6C.5070705@ntlworld.com>
Date: Fri, 13 Aug 2010 01:14:36 +0100
From: cy DOT 20 DOT superconductor AT xoxy DOT net
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-GB; rv:1.9.1.11) Gecko/20100711 Thunderbird/3.0.6
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: bash postinstall script returns an error
X-Spamgourmet:
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

I was going to mention passwd-grp.sh, but I see there's already a thread 
for that, so I'll move right on to the next one.

When I run setup.exe I always get an error for the bash.sh postinstall 
script, it seems to be on the line of:

/bin/test -e /dev/stdin  || ln -s /proc/self/fd/0 /dev/stdin  || result=1

I'm not so clear as to why this fails. test returns a status of 1 when 
the script is run by the installer, and yet /dev/stdin does exist. 
setup.log.full contains a predictable "ln: creating symbolic link 
`/dev/stdin': File exists".

If I run the postinstall script manually, test gives a status of 0, 
stdin is left alone and the script runs to the end successfully - it 
only fails when run from inside the installer (2.712) for me. I've tried 
invoking bash for the script using the same switches as those reported 
in setup.log.full, but it still runs fine when done manually.

If I remove /dev/stdin /dev/stdout and /dev/stderr the installer runs 
through fine.

The result isn't a big problem since the files exist, but it does seem odd.

Paul




--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019