public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Re: Installer of Cygwin 64 seems to freeze when executing /etc/postinstall/xlaunch.sh - version 2.874
       [not found] <574DBD95.1060202@avignon.inra.fr>
@ 2016-06-02 13:22 ` Jon Turney
  2016-06-02 16:24   ` Jean-Paul Bouchet
  0 siblings, 1 reply; 6+ messages in thread
From: Jon Turney @ 2016-06-02 13:22 UTC (permalink / raw)
  To: cygwin; +Cc: Jean-Paul Bouchet

On 31/05/2016 17:36, Jean-Paul Bouchet wrote:
> I try to install cygwin 64 on a windows 7 PC in order to let users open
> an X11 session via xlaunch  on a linux server (gdm3).
>
> I have selected only 3 components of X11 to complete the default
> selection : xinit, xlaunch and Xorg server.
>
> The installer seems to freeze when it executes /etc/postinstall/xlaunch.sh.
> Information about the progression of the installation is blocked during
> several minutes with 99% Cygwin - Setup
>
> If I don't cancel the installation, it seems to finish correctly.
>
> 17:36:33   running: C:\cygwin64\bin\bash.exe --norc --noprofile
> "/etc/postinstall/xlaunch.sh"
> 17:55:47   Changing gid to Administrators
>                  Ending cygwin install
>
> Is it a normal behaviour ?

Thanks for reporting this problem.

No, this is not normal or expected.

Perhaps you could manually run the postinstall script with 'sh -x 
/etc/postinstall/xlaunch.sh.done' to see where it is getting stuck?

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Installer of Cygwin 64 seems to freeze when executing /etc/postinstall/xlaunch.sh - version 2.874
  2016-06-02 13:22 ` Installer of Cygwin 64 seems to freeze when executing /etc/postinstall/xlaunch.sh - version 2.874 Jon Turney
@ 2016-06-02 16:24   ` Jean-Paul Bouchet
  2016-06-03 12:41     ` Jon Turney
  0 siblings, 1 reply; 6+ messages in thread
From: Jean-Paul Bouchet @ 2016-06-02 16:24 UTC (permalink / raw)
  To: cygwin

[-- Attachment #1: Type: text/plain, Size: 1235 bytes --]

Hello,
Please find attached the script /etc/postinstall/xlaunch.sh and the 
output of its execution (file postinstall_xlaunch.txt).
Thank you.
Best regards,
Jean-Paul Bouchet

On 02/06/2016 15:21, Jon Turney wrote:
> On 31/05/2016 17:36, Jean-Paul Bouchet wrote:
>> I try to install cygwin 64 on a windows 7 PC in order to let users open
>> an X11 session via xlaunch  on a linux server (gdm3).
>>
>> I have selected only 3 components of X11 to complete the default
>> selection : xinit, xlaunch and Xorg server.
>>
>> The installer seems to freeze when it executes 
>> /etc/postinstall/xlaunch.sh.
>> Information about the progression of the installation is blocked during
>> several minutes with 99% Cygwin - Setup
>>
>> If I don't cancel the installation, it seems to finish correctly.
>>
>> 17:36:33   running: C:\cygwin64\bin\bash.exe --norc --noprofile
>> "/etc/postinstall/xlaunch.sh"
>> 17:55:47   Changing gid to Administrators
>>                  Ending cygwin install
>>
>> Is it a normal behaviour ?
>
> Thanks for reporting this problem.
>
> No, this is not normal or expected.
>
> Perhaps you could manually run the postinstall script with 'sh -x 
> /etc/postinstall/xlaunch.sh.done' to see where it is getting stuck?
>


[-- Attachment #2: postinstall_xlaunch.txt --]
[-- Type: text/plain, Size: 1816 bytes --]

C:\cygwin64\bin\sh -x /etc/postinstall/xlaunch.sh.done

+ case $(uname -s ) in
++ uname -s
/etc/postinstall/xlaunch.sh.done: line 2: uname: command not found
++ /usr/bin/cygpath -P
+ /usr/bin/mkdir -p '/cygdrive/c/Users/jpbouchet/AppData/Roaming/Microsoft/Windows/Start Menu/Programs/Cygwin-X'
+ /usr/bin/mkshortcut -P -i /usr/bin/xlaunch.exe -n Cygwin-X/XLaunch -a '/usr/bin/bash.exe -l -c /usr/bin/xlaunch.exe' /usr/bin/run.exe
+ /usr/share/xlaunch/setupreg.sh add
/usr/share/Xlaunch/setupreg.sh: line 8: which: command not found
/usr/share/Xlaunch/setupreg.sh: line 8: cygpath: command not found
/usr/share/Xlaunch/setupreg.sh: line 9: which: command not found
/usr/share/Xlaunch/setupreg.sh: line 9: cygpath: command not found
/usr/share/Xlaunch/setupreg.sh: line 10: which: command not found
/usr/share/Xlaunch/setupreg.sh: line 10: cygpath: command not found
/usr/share/Xlaunch/setupreg.sh: line 14: which: command not found
/usr/share/Xlaunch/setupreg.sh: line 14: cygpath: command not found
/usr/share/Xlaunch/setupreg.sh: line 38: regtool: command not found
/usr/share/Xlaunch/setupreg.sh: line 39: regtool: command not found
/usr/share/Xlaunch/setupreg.sh: line 42: regtool: command not found
/usr/share/Xlaunch/setupreg.sh: line 43: regtool: command not found
/usr/share/Xlaunch/setupreg.sh: line 45: regtool: command not found
/usr/share/Xlaunch/setupreg.sh: line 46: regtool: command not found
/usr/share/Xlaunch/setupreg.sh: line 47: regtool: command not found
/usr/share/Xlaunch/setupreg.sh: line 49: regtool: command not found
/usr/share/Xlaunch/setupreg.sh: line 50: regtool: command not found
/usr/share/Xlaunch/setupreg.sh: line 51: regtool: command not found
/usr/share/Xlaunch/setupreg.sh: line 53: regtool: command not found
/usr/share/Xlaunch/setupreg.sh: line 54: regtool: command not found


[-- Attachment #3: xlaunch.sh.done --]
[-- Type: text/plain, Size: 412 bytes --]

# add a start menu shortcut
case $(uname -s) in *-WOW*) wow64=" (32-bit)" ;; esac
/usr/bin/mkdir -p "$(/usr/bin/cygpath $CYGWINFORALL -P)/Cygwin-X${wow64}"
/usr/bin/mkshortcut $CYGWINFORALL -P -i /usr/bin/xlaunch.exe -n "Cygwin-X${wow64}/XLaunch" -a "/usr/bin/bash.exe -l -c /usr/bin/xlaunch.exe" /usr/bin/run.exe

# add file association for opening and editing .xlaunch files
/usr/share/xlaunch/setupreg.sh add

[-- Attachment #4: Type: text/plain, Size: 218 bytes --]

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Installer of Cygwin 64 seems to freeze when executing /etc/postinstall/xlaunch.sh - version 2.874
  2016-06-02 16:24   ` Jean-Paul Bouchet
@ 2016-06-03 12:41     ` Jon Turney
  2016-06-03 15:28       ` Jean-Paul Bouchet
  0 siblings, 1 reply; 6+ messages in thread
From: Jon Turney @ 2016-06-03 12:41 UTC (permalink / raw)
  To: cygwin; +Cc: Jean-Paul Bouchet

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?


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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Installer of Cygwin 64 seems to freeze when executing /etc/postinstall/xlaunch.sh - version 2.874
  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
  0 siblings, 2 replies; 6+ messages in thread
From: Jean-Paul Bouchet @ 2016-06-03 15:28 UTC (permalink / raw)
  To: cygwin

Hello,
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: 
...

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 ?

Jean-Paul Bouchet

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


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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Installer of Cygwin 64 seems to freeze when executing /etc/postinstall/xlaunch.sh - version 2.874
  2016-06-03 15:28       ` Jean-Paul Bouchet
@ 2016-06-03 15:59         ` Ken Brown
  2016-06-06 13:49         ` Jon Turney
  1 sibling, 0 replies; 6+ messages in thread
From: Ken Brown @ 2016-06-03 15:59 UTC (permalink / raw)
  To: cygwin

On 6/3/2016 11:26 AM, Jean-Paul Bouchet wrote:
 > On 03/06/2016 14:41, Jon Turney wrote:
 >> Perhaps you could try again from a cygwin bash shell?
> Hello,
> 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)

This isn't what Jon meant by starting a Cygwin bash shell.  Do it by 
clicking on the Cygwin Terminal shortcut created by setup.  If it didn't 
create one, rerun setup.  On the last screen, check the box asking setup 
to create one.

Ken


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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Installer of Cygwin 64 seems to freeze when executing /etc/postinstall/xlaunch.sh - version 2.874
  2016-06-03 15:28       ` Jean-Paul Bouchet
  2016-06-03 15:59         ` Ken Brown
@ 2016-06-06 13:49         ` Jon Turney
  1 sibling, 0 replies; 6+ messages in thread
From: Jon Turney @ 2016-06-06 13:49 UTC (permalink / raw)
  To: cygwin; +Cc: Jean-Paul Bouchet

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-06-06 13:49 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <574DBD95.1060202@avignon.inra.fr>
2016-06-02 13:22 ` Installer of Cygwin 64 seems to freeze when executing /etc/postinstall/xlaunch.sh - version 2.874 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 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).