X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,TW_YG,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Date: Sun, 6 May 2012 02:57:58 +0200 (CEST) From: Mikulas Patocka To: cygwin AT cygwin DOT com Subject: Setup cannot execute install scripts Message-ID: User-Agent: Alpine 2.00 (DEB 1167 2008-08-23) X-Personality-Disorder: Schizoid MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Hi I have a problem with cygwin setup.exe. Every time I run setup and the setup upgrades something, the setup is trying to run scripts at the end. These scripts fail (it happens after almost every upgrade of some package). The file /var/log/setup.log.full contains these error messages: 2012/05/03 03:48:53 running: cmd.exe /c "C:\Cygwin\etc\postinstall\autorebase.bat" dash: 0: Can't open /bin/rebaseall 2012/05/03 03:48:53 abnormal exit: exit code=127 2012/05/03 03:48:53 running: C:\Cygwin\bin\bash.exe --norc --noprofile "/etc/postinstall/tcsh.sh" bash.exe: warning: could not find /tmp, please create! /usr/bin/bash: /etc/postinstall/tcsh.sh: No such file or directory 2012/05/03 03:48:53 abnormal exit: exit code=127 2012/05/03 03:48:53 running: C:\Cygwin\bin\bash.exe --norc --noprofile "/etc/postinstall/update-info-dir.sh" bash.exe: warning: could not find /tmp, please create! /usr/bin/bash: /etc/postinstall/update-info-dir.sh: No such file or directory 2012/05/03 03:48:54 abnormal exit: exit code=127 When I run setup again, the failures happen again. I tried to add "bin\ls /" , "bin\ls /bin" and "bin\cygpath -w /" to autorebase.bat (and execute setup.exe again, so that it runs modified autorebase.bat) and the result is this: bin/ls: cannot access /: No such file or directory bin/ls: cannot access /bin: No such file or directory C:\Cygwin --- so cygpath is showing the correct path (cygwin is installed in C:\Cygwin), but ls and other utilities cannot access the root directory. When I run "bin\ls /cygdrive/c", it works --- prints the content of drive C. When I start a window with just "cmd.exe" and execute autorebase.bat manually (cmd.exe /c "C:\Cygwin\etc\postinstall\autorebase.bat"), it works. When the same script is executed from setup.exe, it doesn't work --- "ls" cannot find "/" and dash cannot find "/bin/rebaseall". When I run some cygwin session (just a bash shell) and run setup.exe simultaneously, script failures don't happen (but the setup can't upgrade cygwin1.dll and can't rebase it because it is open). It looks like there is some bug in the setup (I have the latest setup 2.774), when it is run as just the only cygwin session, it misconfigures filesystem, so that any programs spawned from setup.exe cannot access cygwin root. Do you have some idea what is causing it, or what should I try to debug it? Mikulas -- 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