delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/05/03/03:25:14

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Thu, 3 May 2012 09:23:24 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: configure --prerfix=/
Message-ID: <20120503072324.GF3031@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <4FA21A6D DOT 3040500 AT samsung DOT com>
MIME-Version: 1.0
In-Reply-To: <4FA21A6D.3040500@samsung.com>
User-Agent: Mutt/1.5.21 (2010-09-15)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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

On May  3 09:41, Fedin Pavel wrote:
>  Supplying prefix=/ to configure script causes it to lock up. It
> doesn't output any single line, just freezes. Even Ctrl-C doesn't
> help.
>  I know this is maybe unusual, but i really know why i want to do
> it. And, in fact, this is a legitimate operation. So, i consider
> this to be a bug.

Yes, that's a bug in autoconf.  It doesn't fully respect POSIX pathname
rules.  What happens is that it simply attaches pathnames with a leading
slash to the prefix, for instance:

   ac_site_file1=$prefix/share/config.site

Now, if prefix is /usr, everything's ok:

   ac_site_file1=/usr/share/config.site

but if prefix -s just /:

   ac_site_file1=//share/config.site

Double slashes on Cygwin prefix a network path "//server/share", just
as in the UNC name convention.  This is valid per POSIX, see
http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap04.html

  4.12 Pathname Resolution
  [...]
  A pathname consisting of a single <slash> shall resolve to the root
  directory of the process. [...]
  A pathname that begins with two successive <slash> characters may be
  interpreted in an implementation-defined manner, although more than
  two leading <slash> characters shall be treated as a single <slash>
  character.

What you can try as a workaround is to use --prefix=''.  It should have
the expected result.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

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

- Raw text -


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