X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: Yes, hits=5.5 required=5.0 tests=AWL,BAYES_20,RCVD_IN_DNSWL_NONE,TW_BV,TW_RX,TW_YG X-Spam-Check-By: sourceware.org MIME-Version: 1.0 Date: Tue, 16 Nov 2010 23:03:56 +0100 Message-ID: Subject: stripping/relocating cygwin distribution From: Alexandre Bezroutchko To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Hello, I use heavily stripped cygwin distribution, basically limited to selected executables, libraries, and supporting files. It works pretty well, but I am facing a strange problem on Windows 7. It can be very easily reproduced as following: 1) from cygwin shell, make a copy of c:\cygwin (here I'm grabbing a full copy, in practice I take much less, see the script below) # cp -r /cygdrive/c/cygwin /cygdrive/c/users/abb/ 2) from windows shell, invoke 'screen' in detached mode from the standard cygwin location C:\>cygwin\bin\screen -d -m The command will finish immediately, launching detached screen session in background (can be seel with 'screen -ls'). This is a correct behavior. 3) now run 'screen' from the copied cygwin directory C:\Users\abb\>cygwin\bin\screen -d -m It also works, but there is a side effect -- a new window empty with 'screen.exe' title appears. The window appears if I start the screen detached (-d -m) or I attach to a detached screen. The window does not appear if I start screen normally (without parameters). The window does not appear on XP at all. Any ideas about why this can possibly happen (and how to fix it) are greatly appreciated... Am I doing something fundamentally wrong by relocating/stripping cygwin distribution? I thought recent versions of cygwin should tolerate execution from alternative locations, as there is no more pathes hardcoded into the registry. Best regards, Alexandre Bezroutchko Gremwell bvba www.gremwell.com --- #!/bin/sh cygwin=../.magictree/cygwin for d in etc var/run usr/share bin tmp do mkdir -p $cygwin/$d done for f in cygwin1 cygintl-8 cygiconv-2 cygncurses-9 cyggcc_s-1 \ cygreadline7 cygncurses-10 cygcrypt-0 cygpcre-0 libW11 cyggmp-3 \ cygpopt-0 cygssp-0 cygcrypto-0.9.8 cygz do cp /bin/$f.dll $cygwin/bin/$f.dll done for f in [ basename cat cp cygpath dirname env expr false \ grep kill less ls mount mv nohup ps sh sleep tail true \ screen ssh rxvt egrep mkdir ssh-keygen dos2unix uname do cp /bin/$f.exe $cygwin/bin/$f.exe done touch $cygwin/var/run/utmp cp -rL /usr/share/terminfo $cygwin/usr/share cp /etc/screenrc $cygwin/etc --- -- 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