delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/12/16/23:12:10

X-Spam-Check-By: sourceware.org
Message-ID: <918c01e60612162011h4bce98dftdc647e4830f1c43e@mail.gmail.com>
Date: Sat, 16 Dec 2006 20:11:54 -0800
From: "Christopher Tate" <christopher DOT tate AT gmail DOT com>
Reply-To: ctate AT acm DOT org
To: cygwin AT cygwin DOT com
Subject: Re: Postinstall Problem with 01bash.bat
In-Reply-To: <4584BE0F.4050706@byu.net>
MIME-Version: 1.0
References: <918c01e60612161607m2809a84dua3929813c74ee18c AT mail DOT gmail DOT com> <4584AA15 DOT 6060206 AT byu DOT net> <918c01e60612161851x59f61d1cvb87e00e50826748e AT mail DOT gmail DOT com> <4584BE0F DOT 4050706 AT byu DOT net>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

On 12/16/06, Eric Blake <ebb9 AT byu DOT 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 AT acm DOT 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/

- Raw text -


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