From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 100048 invoked by alias); 6 Jun 2016 13:49:13 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 100039 invoked by uid 89); 6 Jun 2016 13:49:12 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.2 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 spammy=click, Hx-spam-relays-external:ESMTPA X-HELO: out2-smtp.messagingengine.com Received: from out2-smtp.messagingengine.com (HELO out2-smtp.messagingengine.com) (66.111.4.26) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Mon, 06 Jun 2016 13:49:02 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id 805132187E; Mon, 6 Jun 2016 09:48:59 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute2.internal (MEProxy); Mon, 06 Jun 2016 09:48:59 -0400 Received: from [192.168.1.102] (host86-141-128-254.range86-141.btcentralplus.com [86.141.128.254]) by mail.messagingengine.com (Postfix) with ESMTPA id 8D147F29F3; Mon, 6 Jun 2016 09:48:58 -0400 (EDT) Subject: Re: Installer of Cygwin 64 seems to freeze when executing /etc/postinstall/xlaunch.sh - version 2.874 References: <574DBD95.1060202@avignon.inra.fr> <57505D42.9000908@avignon.inra.fr> <77a45ea2-150d-ec6d-7e29-dd2a94be8a97@dronecode.org.uk> <5751A1A1.5060603@avignon.inra.fr> From: Jon Turney Cc: Jean-Paul Bouchet To: cygwin@cygwin.com Reply-To: cygwin@cygwin.com Message-ID: <00afb531-4916-e073-69b2-1244804268a7@dronecode.org.uk> Date: Mon, 06 Jun 2016 13:49:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 MIME-Version: 1.0 In-Reply-To: <5751A1A1.5060603@avignon.inra.fr> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2016-06/txt/msg00061.txt.bz2 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