X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-6.8 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Message-ID: <4CAC8A1E.5090803@redhat.com> Date: Wed, 06 Oct 2010 08:39:26 -0600 From: Eric Blake User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.9) Gecko/20100921 Fedora/3.1.4-1.fc13 Mnenhy/0.8.3 Thunderbird/3.1.4 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: mintty postinstall failure - attn: cygutils maintainer References: <4CAC636E DOT 9070405 AT redhat DOT com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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 On 10/06/2010 06:28 AM, Andy Koppe wrote: > On 6 October 2010 12:54, Eric Blake wrote: >> Any reason why with my setup, mintty.sh exits with status 3 when run by >> setup.exe, but with status 0 when I run it by hand? /var/log/setup.log.full >> doesn't give any hints; what else can I try to debug the issue? > > Assuming you were installing for All Users, try setting > CYGWINFORALL=-A when running it by hand. Hmm, no I wasn't remembering to do that; but even when I add that in, I'm still getting status 0 by hand: $ CYGWINFORALL=-A sh -vx /etc/postinstall/mintty.sh ALL=$CYGWINFORALL + ALL=-A PROGS=$(/bin/cygpath -P $ALL) /bin/cygpath -P $ALL ++ /bin/cygpath -P -A + PROGS='/cygdrive/c/Documents and Settings/All Users/Start Menu/Programs' /bin/mkdir -p "$PROGS/Cygwin" && /bin/mkshortcut -P $ALL -n Cygwin/mintty -a - -d Terminal /bin/mintty && if [ "$ALL" ]; then /bin/chmod a+r "$PROGS/Cygwin/mintty.lnk" fi + /bin/mkdir -p '/cygdrive/c/Documents and Settings/All Users/Start Menu/Programs/Cygwin' + /bin/mkshortcut -P -A -n Cygwin/mintty -a - -d Terminal /bin/mintty + '[' -A ']' + /bin/chmod a+r '/cygdrive/c/Documents and Settings/All Users/Start Menu/Programs/Cygwin/mintty.lnk' But this time, I looked in /var/log/setup.log.full, and got this hint: 2010/10/06 08:25:18 running: k:\cygwin-2\bin\bash.exe --norc --noprofile /etc/postinstall/mintty.sh mkshortcut: Saving "C:\Documents and Settings\All Users\Start Menu\Programs\K:\cygwin-2\Cygwin\mintty.lnk" failed; does the target directory exist? 2010/10/06 08:25:18 abnormal exit: exit code=3 Hmm - this looks like it could be a bug in mkshortcut. Why is the '-n Cygwin/mintty' argument showing up as an absolute pathname appended to the tail of the start menu prefix? Is it a bug that is dependent on the current working directory? -- Eric Blake eblake AT redhat DOT com +1-801-349-2682 Libvirt virtualization library http://libvirt.org -- 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