public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Christoph Herdeg <CHERDEG@de.ibm.com>
To: cygwin@cygwin.com
Subject: -11: Problem at 1st start when "cygwin.bat" is run by Nullsoft-Installer
Date: Thu, 10 Apr 2008 08:25:00 -0000	[thread overview]
Message-ID: <OF095BCD61.E9CDAC5C-ONC1257427.002AD48F-C1257427.002AE6F9@de.ibm.com> (raw)


Hello List,

We have made up an unattended installer package for cygwin using Nullsoft
Installer. This package works on all x32 and x64 versions of Windows 2000,
XP and Server 2003. Testing with Windows Server 2008 we discovered a
problem: At the end of the installation, cygwin.bat is executed by the
Nullsoft Installer. Normally bash should open and all shellscripts residing
in /etc/profile.d should be run automagically (the script /etc/profile
collects and runs them). In our case it doesn't - at least on 1st start -
instead the following error message is displayed:

"bash: cannot create temp file for here document: Bad address"

Then bash jumps to the standard prompt. If we now start cygwin a 2nd time
by executing cygwin.bat (directly or via the desktop icon), the scripts in
/etc/profile.d are run as they are proposed to. Also they are run normally,
if the Nullsoft Installer exits before starting cygwin.bat and we start the
batch manually (directly or via the desktop icon).

Upgrading the package "base-files-3.7-1.tar.bz2" to unpack a modified
/etc/profile resulted that the $TMP and $TEMP variables seem to be
correctly set to "/cygdrive/c/Users/ADMINI~1/AppData/Local/Temp". Setting
an FullAccess-ACL for the Windows user "everyone" on this directory didn't
change the behaviour. Using "set -x" in the modified /etc/profile did not
produce any other errors.

- Is it possible that Cygwin's mapping of
"c:\Users\ADMINI~1/AppData/Local/Temp" to
"/cygdrive/c/Users/ADMINI~1/AppData/Local/Temp" doesn't yet exist at the
time the error occurs?
- Are there any known changes between the previous Windows versions and
Windows Server 2008 being able to cause a different behaviour when "a
program is started manually" vs. "a program is started by another program";
eg. different User / security / environmental context?
- Would it be possible for the Cygwin developers to implement the usage of
a /tmp independet from it's windows pendant to cure this?
- Are there any other steps I could try or does anyone of you perhaps have
a solution?

We are using Cygwin on over 1200 machines. It maybe well a workaround to
let the Nullsoft Installer exit without executing cygwin.bat and doing this
manually, but that is -surely comprehensible- no way for us.

Thank you very much,

Regards,

Chris


--
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/

             reply	other threads:[~2008-04-10  7:49 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-10  8:25 Christoph Herdeg [this message]
2008-04-10  9:38 ` Corinna Vinschen
2008-04-10 10:51   ` Christoph Herdeg
2008-04-10 11:05   ` Christoph Herdeg
2008-04-10 15:00     ` Corinna Vinschen
2008-04-10 17:04   ` Christopher Faylor
2008-04-11  8:22     ` Christoph Herdeg
2008-04-11  8:54       ` Corinna Vinschen
2008-04-11  9:05         ` Christoph Herdeg
2008-04-11  9:31           ` Corinna Vinschen
2008-04-11 14:58             ` Christoph Herdeg
2008-04-11 15:03               ` Corinna Vinschen
2008-04-11 15:07               ` Mark J. Reed
2008-04-11 14:46         ` Christoph Herdeg
2008-04-11 15:00           ` Corinna Vinschen
2008-04-11 15:48       ` Christopher Faylor
2008-04-15 19:01 ` -11: Problem at 1st start when "cygwin.bat" is run by Nullsoft-Installer (SOLVED) Christoph Herdeg
2008-04-10 20:27 -11: Problem at 1st start when "cygwin.bat" is run by Nullsoft-Installer Matt Seitz (matseitz)
2008-04-11 15:59 ` Christopher Faylor
2008-04-11 16:05   ` Corinna Vinschen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=OF095BCD61.E9CDAC5C-ONC1257427.002AD48F-C1257427.002AE6F9@de.ibm.com \
    --to=cherdeg@de.ibm.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).