From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9871 invoked by alias); 21 Aug 2012 20:48:58 -0000 Received: (qmail 9863 invoked by uid 22791); 21 Aug 2012 20:48:57 -0000 X-SWARE-Spam-Status: No, hits=-5.2 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,TW_RX,TW_YG X-Spam-Check-By: sourceware.org Received: from mail-iy0-f171.google.com (HELO mail-iy0-f171.google.com) (209.85.210.171) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 21 Aug 2012 20:48:44 +0000 Received: by iabz25 with SMTP id z25so166653iab.2 for ; Tue, 21 Aug 2012 13:48:43 -0700 (PDT) Received: by 10.50.160.202 with SMTP id xm10mr14986685igb.10.1345582123256; Tue, 21 Aug 2012 13:48:43 -0700 (PDT) Received: from [192.168.0.100] (S0106000cf16f58b1.wp.shawcable.net. [24.79.200.150]) by mx.google.com with ESMTPS id ey10sm4517989igb.17.2012.08.21.13.48.41 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 21 Aug 2012 13:48:42 -0700 (PDT) Message-ID: <5033F431.5040402@users.sourceforge.net> Date: Wed, 22 Aug 2012 00:13:00 -0000 From: "Yaakov (Cygwin/X)" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:14.0) Gecko/20120713 Thunderbird/14.0 MIME-Version: 1.0 To: cygwin@cygwin.com Subject: Re: Oddity with cygport, debuginfo generation, and rxvt-unicode References: <5033C360.1060007@cwilson.fastmail.fm> In-Reply-To: <5033C360.1060007@cwilson.fastmail.fm> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 X-SW-Source: 2012-08/txt/msg00508.txt.bz2 On 2012-08-21 12:20, Charles Wilson wrote: > While rebuilding rxvt-unicode, I saw the following error during 'cygport > install': > > Preparing debuginfo source files: > realpath: unknown option -- p > Try `realpath --help' for more information. > 80 files > Preparing executables for UAC: > > > A little debugging showed that realpath is being invoked during > src_postinstall here: > > line 978:do > # make sure that paths with '../' don't leave srcdir > case $(realpath -m ${dbgsrc}) in > ${dbgsrcdir}/*) ;; > *) continue ;; > esac > > srcf=${dbgsrc#${dbgsrcdir}/} FWIW, readlink is now used in git instead of realpath, as the latter is not available in Fedora 16 or EL6, but the result should be the same. > I see that this line is hit many times, but here is the relevant sequence: > > ... > realpath -m realpath -m -pe > realpath: unknown option -- p > Try `realpath --help' for more information. > realpath -m s/IOM_MODULE/urxvt/g,s/IOM_CLASS/urxvt/g > realpath -m | > realpath -m /usr/src/debug/rxvt-unicode-X-9.07-2/src/../libev/ev++.h > ... > > Although only the second of these lines triggers the error message, each > of the first four is problematic. > > This looks like a bug in gcc/binutils to me; debug src paths shouldn't > include pipe line shell commands, should they? Not AFAIK. That is very odd, but I am able to duplicate it with your current package. > In the meantime, I think a fix like this for cygport would be appropriate: Could you confirm that just this change fixes this: - case $(realpath -m ${dbgsrc}) in + case $(readlink -m -- "${dbgsrc}") in > ...although I'm not sure if this might cause a problem if a filename > actually contains a shell redirection metacharacter (and the originating > project is always careful to appropriate quote that filename). And when was the last time you saw that? Yaakov -- 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