Postinstall Problem with 01bash.bat

Christopher Tate christopher.tate@gmail.com
Sun Dec 17 06:14:00 GMT 2006


On 12/16/06, Eric Blake <ebb9@byu.net> wrote:
> According to Christopher Tate on 12/16/2006 7:51 PM:
> >
> > First, I should point out that having run setup.exe has now left
> > cygwin in an unusable state; i can't launch a bash shell in order to
> > run the commands specified.
>
> Why not?  Your ls results show bash exists, so what are the symptoms that
> prove it won't run?

Double-clicking on the Cygwin launch icon brings up the window as
expected, but hung before the prompt appears, with the blinking cursor
indicator at the top left of the window.  ^C has no effect.  Clicking
the window's close box causes the cursor blink to stop and the window
to hang entirely.  After a few seconds, Windows brings up the "Windows
cannot end this program" dialog, at which point "End Now" kills it off
successfully.

While the window is visible but hung, there are three bash.exe and one
sh.exe process running, according to Task Manager.  All four of these
processes go away after I click "End Now."

> > grep -C5 00bash /var/log/setup.log.full says it's uninstalling 3.2.9,
> > then installing from bash-3.2.9-9.tar.bz2, then abnormal exit (exit
> > code = 0) from postinstall\00bash.sh, *then* running 01bash.bat. (full
> > output attached rather than quoted here).
>
> Everything sounds correct so far.  What does 'cat
> /etc/postinstall/01bash.bat*' show?

C:\cygwin>cat /etc/postinstall/01bash.bat*
@echo off
rem Bash postinstall script.  Since setup.exe 2.457.2.2 insists on using
rem /bin/sh, and .bat scripts don't know about cygwin paths, this is a
rem two-stage install: /etc/postinstall/00bash.sh updates this script, then
rem this sources the real /etc/profile.d/00bash.sh with bash.  setup.exe
rem 2.510.2.2 and beyond use /bin/bash, so in 2007, it might be time to swap
rem back to a single postinstall shell script, instead of the .bat hack.

C:\cygwin\bin\bash.exe -c '. /etc/profile.d/00bash.sh postinstall'
@echo off
rem Bash postinstall script.  Since setup.exe 2.457.2.2 insists on using
rem /bin/sh, and .bat scripts don't know about cygwin paths, this is a
rem two-stage install: /etc/postinstall/00bash.sh updates this script, then
rem this sources the real /etc/profile.d/00bash.sh with bash.

C:\cygwin\bin\bash.exe -c '. /etc/profile.d/00bash.sh'

> > ls -l /bin/{ba,}sh.exe:
> > -rwxr-x---+ 1 ctate mkgroup-l-d 484864 Dec 15 13:44 /bin/bash.exe
> > -rwxr-x---+ 1 ctate mkgroup-l-d 451072 Dec 26  2005 /bin/sh.exe
>
> Hmm, you really need to run mkpasswd/mkgroup to populate /etc/passwd and
> /etc/groups properly.  Maybe that is part of your problem.

For "you" meaning "setup.exe and its subprograms," I assume.  :)

(Background here: I installed cygwin a year or so ago and have been
using it reliably since.  It occurred to me that I might want to take
advantage of a year of updates, so I downloaded the current setup.exe
and ran it, expecting the usual patch/upgrade outcome.  Alas, it was
not to be....)

> > 2006/12/16 15:58:13 running: cmd.exe /c C:\cygwin\etc\postinstall\01bash.bat
> > 2006/12/16 16:07:11 mbox note: Installation Complete
>
> Hmm, no 01bash.bat output.  What does 'grep -C 5 00bash
> /var/log/setup.log' state?

2006/12/16 11:27:04 xorg-x11-xwin-gl
2006/12/16 11:27:04 xpdf
2006/12/16 11:27:04 xwinwm
2006/12/16 11:27:04 zip
2006/12/16 11:27:04 zsh
2006/12/16 11:27:04 running: C:\cygwin\bin\bash.exe -c
/etc/postinstall/00bash.sh
2006/12/16 11:27:09 abnormal exit: exit code=0
2006/12/16 11:27:09 running: cmd.exe /c C:\cygwin\etc\postinstall\01bash.bat
2006/12/16 11:32:15 mbox note: Installation Complete
2006/12/16 11:32:17 Ending cygwin install
2006/12/16 11:33:22 Starting cygwin install, version 2.510.2.2
--
2006/12/16 11:33:41 xorg-x11-xwin-gl
2006/12/16 11:33:41 xpdf
2006/12/16 11:33:41 xwinwm
2006/12/16 11:33:41 zip
2006/12/16 11:33:41 zsh
2006/12/16 11:33:42 running: C:\cygwin\bin\bash.exe -c
/etc/postinstall/00bash.sh
2006/12/16 11:33:42 abnormal exit: exit code=0
2006/12/16 11:33:42 running: cmd.exe /c C:\cygwin\etc\postinstall\01bash.bat
2006/12/16 11:34:56 mbox note: Installation Complete
2006/12/16 11:34:57 Ending cygwin install
2006/12/16 15:57:36 Starting cygwin install, version 2.510.2.2
--
2006/12/16 15:58:12 xorg-x11-xwin-gl
2006/12/16 15:58:12 xpdf
2006/12/16 15:58:12 xwinwm
2006/12/16 15:58:12 zip
2006/12/16 15:58:12 zsh
2006/12/16 15:58:12 running: C:\cygwin\bin\bash.exe -c
/etc/postinstall/00bash.sh
2006/12/16 15:58:13 abnormal exit: exit code=0
2006/12/16 15:58:13 running: cmd.exe /c C:\cygwin\etc\postinstall\01bash.bat
2006/12/16 16:07:11 mbox note: Installation Complete
2006/12/16 16:07:12 Ending cygwin install

(Repeated several times, as you can see; once per repeat attempt to do
the install.)

-- 
chris tate
ctate@acm.org

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



More information about the Cygwin mailing list