public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Jon Turney <jon.turney@dronecode.org.uk>
To: cygwin@cygwin.com
Cc: Jean-Paul Bouchet <jean-paul.bouchet@avignon.inra.fr>
Subject: Re: Installer of Cygwin 64 seems to freeze when executing /etc/postinstall/xlaunch.sh - version 2.874
Date: Mon, 06 Jun 2016 13:49:00 -0000	[thread overview]
Message-ID: <00afb531-4916-e073-69b2-1244804268a7@dronecode.org.uk> (raw)
In-Reply-To: <5751A1A1.5060603@avignon.inra.fr>

On 03/06/2016 16:26, Jean-Paul Bouchet wrote:
> May be is the value of PATH the problem?
> When I launch, by a double click on the bash.exe file, a cygwin bash
> shell (C:\cygwin64\bin\bash.exe) and I display $PATH, I don't find any
> cygwin directory in the list, but a list of windows directories:
> /cygdrive/c/Windows/system32:/cygdrive/c/Windows:/cygdrive/c/Windows/System32/Wbem:
> ...

As Ken Brown has explained, double-clicking bash.exe does not set the PATH.

You should run it from the "Cygwin Terminal" shortcut, which starts a 
login shell, which reads profile scripts, which set the PATH appropriately.

> So, when I execute in the cygwin bash shell  the command '/bin/sh -x
> /etc/postinstall/xlaunch.sh.done', I get the same errors than those I
> get when I execute 'C:\cygwin64\bin\sh -x
> /etc/postinstall/xlaunch.sh.done' in the windows command interpreter:
> the command 'uname' is unknown.
>
> If I change the value of PATH with PATH=/cygdrive/c/cygwin64/bin:$PATH
> and export PATH, the execution of 'sh -x
> /etc/postinstall/xlaunch.sh.done' don't give any errors.
>
> What is the value of PATH when the installation executes the set of
> postinstall scripts ?

setup cleans the PATH to start with '/bin:/usr/sbin:/sbin', and contain 
any directories in the existing PATH which start with the windows system 
directory (e.g. '/cygdrive/cWindows/System32')

Again, having an incorrect PATH doesn't reproduce the problem of the 
script freezing, so I don't think this is the underlying cause of the 
problem you see.

> On 03/06/2016 14:41, Jon Turney wrote:
>> On 02/06/2016 17:22, Jean-Paul Bouchet wrote:
>>> Please find attached the script /etc/postinstall/xlaunch.sh and the
>>> output of its execution (file postinstall_xlaunch.txt).
>>
>> Thanks.
>>
>> I guess this doesn't reproduce the problem (freezing), as this is just
>> what I would expect to see when running the script without the PATH set?
>>
>> Perhaps you could try again from a cygwin bash shell?

-- 
Jon Turney
Volunteer Cygwin/X X Server maintainer

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

      parent reply	other threads:[~2016-06-06 13:49 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <574DBD95.1060202@avignon.inra.fr>
2016-06-02 13:22 ` Jon Turney
2016-06-02 16:24   ` Jean-Paul Bouchet
2016-06-03 12:41     ` Jon Turney
2016-06-03 15:28       ` Jean-Paul Bouchet
2016-06-03 15:59         ` Ken Brown
2016-06-06 13:49         ` Jon Turney [this message]

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=00afb531-4916-e073-69b2-1244804268a7@dronecode.org.uk \
    --to=jon.turney@dronecode.org.uk \
    --cc=cygwin@cygwin.com \
    --cc=jean-paul.bouchet@avignon.inra.fr \
    /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).