This is the mail archive of the cygwin-developers mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: More: [1.7] packaging problem? Both /usr/bin/ and /usr/lib/ are non-empty


Eric Blake wrote:
> Are there any environment variables at play, like BASH_ENV?  Can we write
> a simple script that does at least:
> echo $- $0 "$@"
> shopt -p
> for i in 0 1 2 3; do test -t $i; echo $?; done
>
> to see if that sheds any light on the environment?  Can we even isolate
> whether it is the outer call to C:\cygwin-1.7\bin\bash.exe, or the inner
> call to #!/bin/sh when the script is executed, which is sourcing the rc file?

Here are the (abbreviated) results of running setup-1.7 with a 'fake'
package that contains two postinstall scripts with the contents above:
one has a /bin/bash shbang line, the other has a /bin/sh one. Note that
BOTH variants seem to execute $HOME/.bashrc once.

This is a "virgin" install on a new machine, but on a system where HOME
is set by corporate policy to a shared drive (H:\) and -- since I use
cygwin on other computers, that home directory contains .dotfiles.  I
installed using a local rsynced mirror of release-2, with my new "fake"
package added to it and setup-2.ini regenerated.  Does this give you any
blinding flashes of insight, Eric?

--
Chuck



2009/05/28 13:44:59 Starting cygwin install, version 2.625
...
2009/05/28 13:45:12 Selected local directory:
C:\TEMP\cygwin-local-1.7\cygwin
Found ini file - C:\TEMP\cygwin-local-1.7\cygwin/setup-2.ini
...
2009/05/28 13:59:58 running: C:\cygwin-1.7\bin\bash.exe --norc
--noprofile -c /etc/postinstall/xinit.sh
/cygdrive/h/.bashrc
/etc/postinstall/xinit.sh: line 1: /usr/bin/cygpath: No such file or
directory
/etc/postinstall/xinit.sh: line 1: /usr/bin/mkdir: No such file or
directory
/etc/postinstall/xinit.sh: line 2: /usr/bin/mkshortcut: No such file or
directory
2009/05/28 14:00:00 abnormal exit: exit code=127
2009/05/28 14:00:00 running: C:\cygwin-1.7\bin\bash.exe --norc
--noprofile -c /etc/postinstall/xpdf.sh
/cygdrive/h/.bashrc
2009/05/28 14:00:01 running: C:\cygwin-1.7\bin\bash.exe --norc
--noprofile -c /etc/postinstall/fake-bash.sh
/cygdrive/h/.bashrc
hB /etc/postinstall/fake-bash.sh
shopt -u cdable_vars
shopt -u cdspell
shopt -u checkhash
shopt -u checkwinsize
shopt -s cmdhist
shopt -u compat31
shopt -u dotglob
shopt -u execfail
shopt -u expand_aliases
shopt -u extdebug
shopt -u extglob
shopt -s extquote
shopt -u failglob
shopt -s force_fignore
shopt -u gnu_errfmt
shopt -u histappend
shopt -u histreedit
shopt -u histverify
shopt -s hostcomplete
shopt -u huponexit
shopt -u igncr
shopt -s interactive_comments
shopt -u lithist
shopt -u login_shell
shopt -u mailwarn
shopt -u no_empty_cmd_completion
shopt -u nocaseglob
shopt -u nocasematch
shopt -u nullglob
shopt -s progcomp
shopt -s promptvars
shopt -u restricted_shell
shopt -u shift_verbose
shopt -s sourcepath
shopt -u xpg_echo
1
1
1
1
2009/05/28 14:00:03 running: C:\cygwin-1.7\bin\bash.exe --norc
--noprofile -c /etc/postinstall/fake-sh.sh
/cygdrive/h/.bashrc
hB /etc/postinstall/fake-sh.sh
shopt -u cdable_vars
shopt -u cdspell
shopt -u checkhash
shopt -u checkwinsize
shopt -s cmdhist
shopt -u compat31
shopt -u dotglob
shopt -u execfail
shopt -s expand_aliases
shopt -u extdebug
shopt -u extglob
shopt -s extquote
shopt -u failglob
shopt -s force_fignore
shopt -u gnu_errfmt
shopt -u histappend
shopt -u histreedit
shopt -u histverify
shopt -s hostcomplete
shopt -u huponexit
shopt -u igncr
shopt -s interactive_comments
shopt -u lithist
shopt -u login_shell
shopt -u mailwarn
shopt -u no_empty_cmd_completion
shopt -u nocaseglob
shopt -u nocasematch
shopt -u nullglob
shopt -s progcomp
shopt -s promptvars
shopt -u restricted_shell
shopt -u shift_verbose
shopt -s sourcepath
shopt -u xpg_echo
1
1
1
1
2009/05/28 14:00:04 Changing gid to Administrators
2009/05/28 14:00:52 note: Installation Complete
2009/05/28 14:00:52 Ending cygwin install


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]