delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/10/01/09:48:31

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
From: "Hannu E K Nevalainen \(garbage mail\)" <garbage_collector AT telia DOT com>
To: <cygwin AT cygwin DOT com>
Subject: RE: Postinstall hangs with bash
Date: Wed, 1 Oct 2003 15:48:11 +0200
Message-ID: <NGBBLLIAMFLGJEOAJCCEKEMADEAA.garbage_collector@telia.com>
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
In-Reply-To: <20031001094149.GI7711@linux_rln.harvest>
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165

> From: Ronald Landheer-Cieslak

> On Wed, Oct 01, 2003 at 03:11:40AM +0200, Bertalan Fodor wrote:
> > I've overwritten sh.exe with bash.exe
> Don't do that.
>
> > With this setting cygpath hangs in myPostinstall.sh:
> >
> > ROOT=$(cygpath -w /)
> >
> > It is interesting.
> >
> > Using sh it is ok.
> $ ROOT=$(cygpath -w /)
> $ echo $ROOT
> D:\cygwin
>
> WFM
>
> rlc

I have a similar issue, reported by others too...

 The strange thing here seems to be that it works from the shell.
But NOT when the same script runs from setup.exe

 /etc/postinstall/XFree86-bin-icons.sh
and
 /etc/preremove/XFree86-bin-icons.sh

both call "/usr/X11R6/bin/XFree86-bin-icons.sh"  (+" -d" for remove)

$ head -1 /usr/X11R6/bin/XFree86-bin-icons.sh
#! /bin/bash

(Hmm... does that #!<SPACE>/bin/bash have an impact? Nahh?)

This script does ". /etc/X11/icon-list" where you find:

	# This is the root for the icon creation.
	TOPFOLDER="$(cygpath -A -P)/Cygwin-XFree86"

This works nicely from bash, but fails (i.e. hangs) when setup.exe launches
it. You can see cygpath.exe, hanging around forever, from the Windows task
manager. Kill it and the install process proceeds. (that particular script
fails!)

I've done attempts at debugging this, but time has been a huge limitation so
far. IIUC I need to mess around with setup.ini and that particular package.
I need to read up on how this is supposed to work; has not happened yet.


My cygwin is all the latest running as Administrator on W2K SP4+, residing
on a FAT32 partition. I'm using setup.exe 2.415

$ uname -a
CYGWIN_NT-5.0 P450 1.5.5(0.94/3/2) 2003-09-20 16:31 i686 unknown unknown
Cygwin

$ getfacl `which cygpath`
# file: /usr/bin/cygpath
# owner: Hannu
# group: user
user::rwx
group::r-x
other:r-x
mask:rwx

$ command ls -lan `which cygpath`
-rwxr-xr-x    1 500      513         14336 Sep 20 22:32 /usr/bin/cygpath

$ cygpath --version
cygpath (cygwin) 1.29
Path Conversion Utility
Copyright 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.
Compiled on Sep 20 2003

$

/Hannu E K Nevalainen, B.Sc. EE - 59?16.37'N, 17?12.60'E
-- UTC+01, DST -> UTC+02  --
--END OF MESSAGE--


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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019