Mail Archives: cygwin/2008/08/09/11:44:11
Andry wrote on 09 August 2008 13:26:
> Hello cygwin,
>
> I found 2 missed components which fixes postinstall errors: "ash" and
> "tar".
Yes, I noticed this bug myself just the other day when doing a completely
fresh install during setup.exe testing.
> If tar is used in postinstall scripts, but ash is not, and i
> don't know why ash fixes run of "base-files-profile.sh" and etc
> scripts:
'ash' is used to set up '/bin/sh' (by copying another shell to the new
name in the postinstalls script), so it is used implicitly by many
postinstall scripts.
The problem is:
Installing file cygfile:///usr/share/man/man1/which.1.gz
2008/08/05 00:49:19 Installing
file://C:\new.cyg.pkg/http%3a%2f%2fftp.heanet.ie%2fpub%2fcygwin%2f/release/_
update-info-dir/_update-info-dir-00744-1.tar.bz2
Installing file cygfile:///etc/
Installing file cygfile:///etc/postinstall/
Installing file cygfile:///etc/postinstall/update-info-dir.sh
2008/08/05 00:49:19 Visited: 38 nodes out of 1104.
2008/08/05 00:49:19 Dependency ordered install:
... that dependency order isn't the entirely right thing to do here.
2008/08/05 00:49:19 terminfo
See, although everything depends at the lowest level on terminfo, ...
2008/08/05 00:49:19 libintl3
2008/08/05 00:49:19 libiconv2
2008/08/05 00:49:19 texinfo
2008/08/05 00:49:19 _update-info-dir
2008/08/05 00:49:19 libncurses8
2008/08/05 00:49:19 libreadline6
2008/08/05 00:49:19 bash
... bash included ...
2008/08/05 00:49:19 base-passwd
2008/08/05 00:49:19 cygwin
2008/08/05 00:49:19 libintl8
2008/08/05 00:49:19 alternatives
2008/08/05 00:49:19 ash
... and ash too ...
2008/08/05 00:49:19 crypt
2008/08/05 00:49:19 gawk
2008/08/05 00:49:19 tzcode
2008/08/05 00:49:19 coreutils
2008/08/05 00:49:19 findutils
2008/08/05 00:49:19 sed
2008/08/05 00:49:19 base-files
2008/08/05 00:49:19 libbz2_1
2008/08/05 00:49:19 bzip2
2008/08/05 00:49:19 libpopt0
2008/08/05 00:49:19 cygutils
2008/08/05 00:49:19 groff
2008/08/05 00:49:19 gzip
2008/08/05 00:49:19 termcap
2008/08/05 00:49:19 libpcre0
2008/08/05 00:49:19 less
2008/08/05 00:49:19 man
2008/08/05 00:49:19 cygwin-doc
2008/08/05 00:49:19 editrights
2008/08/05 00:49:19 grep
2008/08/05 00:49:19 login
2008/08/05 00:49:19 rebase
2008/08/05 00:49:19 run
2008/08/05 00:49:19 tar
2008/08/05 00:49:19 which
2008/08/05 00:49:19 running: C:\cygwin\bin\bash.exe -c
/etc/postinstall/terminfo.sh
/usr/bin/bash: /etc/postinstall/terminfo.sh: /bin/sh: bad interpreter: No
such file or directory
... you /really/ need sh.exe to already be there when you start running
postinstall scripts ...
2008/08/05 00:49:20 abnormal exit: exit code=126
2008/08/05 00:49:20 running: C:\cygwin\bin\bash.exe -c
/etc/postinstall/update-info-dir.sh
/usr/bin/bash: /etc/postinstall/update-info-dir.sh: /bin/sh: bad
interpreter: No such file or directory
2008/08/05 00:49:20 abnormal exit: exit code=126
... and indeed bash as well, or it all goes wrong ....
2008/08/05 00:49:20 running: C:\cygwin\bin\bash.exe -c
/etc/postinstall/00bash.sh
2008/08/05 00:49:20 /etc/profile.d/00bash.sh: Attempting to update
/bin/sh.exe
`/bin/bash.exe' -> `/bin/sh.exe'
... ok, but it's a bit late now ...
2008/08/05 00:49:20 running: C:\cygwin\bin\bash.exe -c
/etc/postinstall/passwd-grp.sh
2008/08/05 00:49:21 running: C:\cygwin\bin\bash.exe -c
/etc/postinstall/00ash.sh
2008/08/05 00:49:21 running: C:\cygwin\bin\bash.exe -c
/etc/postinstall/coreutils.sh
/etc/postinstall/coreutils.sh: Using the default version of /etc/DIR_COLORS
(/etc/defaults/etc/DIR_COLORS)
2008/08/05 00:49:21 running: C:\cygwin\bin\bash.exe -c
/etc/postinstall/findutils.sh
... subsequent scripts run ok, but what about those early ones, eh?
I'll try and think up a fix for this. In the meantime, you can work
around the problem by running setup.exe again; choose "Instll from local
directory", and just click "Next" all the way through to the package
chooser. Click "View" until you get the "Category" view, then click on the
word "Default" next to the top-level "All" category twice, pausing each time
until it changes - first to "Install", then to "Reinstall". Then just click
'Next' and let it go, it should repair your installation for you now there's
a good shell available.
cheers,
DaveK
--
Can't think of a witty .sigline today....
--
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 -