delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/03/22/11:33:46

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
Message-ID: <3C9B5C2B.5BA29020@csksoftware.com>
Date: Fri, 22 Mar 2002 17:30:35 +0100
From: "Johan Bezem" <jbezem AT csksoftware DOT com>
Reply-To: CygWin Mailing List <cygwin AT cygwin DOT com>
Organization: CSK Software AG
X-Mailer: Mozilla 4.79 [en] (WinNT; U)
X-Accept-Language: en
MIME-Version: 1.0
To: CygWin Mailing List <cygwin AT cygwin DOT com>
Subject: Re: Strange behaviour of vpath with dos paths
References: <3C7D11A2 DOT 8070202 AT s3group DOT com> <3C9A058D DOT FFABFA63 AT csksoftware DOT com> <20020321192615 DOT GO14885 AT redhat DOT com> <3C9B0614 DOT A05EBE8D AT csksoftware DOT com> <20020322142407 DOT GD20338 AT redhat DOT com>
X-Virus-Scanned: by AMaViS snapshot-20010407

Christopher Faylor wrote:
<SNIP>
> That means you send the ChangeLog entry (not the diff of a ChangeLog
> entry) and patch in clear text so that the barrier to inspecting your
> work is minimal.  This is standard across every project that I am
> aware of.

Sorry for the attachment then. Here it's once again.

Regards,

Johan Bezem
CSK Software AG

### ChangeLog ###
2002-03-20 Johan Bezem <j DOT bezem AT computer DOT org>

* vpath.c (build_vpaths_list) [__CYGWIN__]: Added conversion of DOS-like pathname for GPATH variable to canonical form.

* read.c (read_makefile) [__CYGWIN__]: Added conversion of DOS-like pathname for vpath directive to canonical form.

### vpath.c-patch ###
--- vpath.orig.c	Fri Mar 22 10:50:38 2002
+++ vpath.c	Wed Mar 20 16:50:35 2002
@@ -144,6 +144,20 @@ build_vpath_lists ()
 	 will still be nil if P contains no existing directories.  */
       vpaths = 0;
 
+      /* CYGNUS LOCAL Cygwin */
+      /* FIXME: should this conversion only take place when in unixy_mode? */
+#ifdef __CYGWIN__
+      /* if a win32 VPATH path list, convert to posix path list */
+      if (!cygwin_posix_path_list_p (p))
+        {
+          posixp = (char *)
+                   alloca (cygwin_win32_to_posix_path_list_buf_size (p));
+          cygwin_win32_to_posix_path_list (p, posixp);
+          p = posixp;
+        }
+#endif /* __CYGWIN__ */
+      /* END CYGNUS LOCAL */
+
       /* Parse P.  */
       construct_vpath_list ("%", p);
 
### read.c-patch ###
--- read.orig.c	Fri Mar 22 10:51:07 2002
+++ read.c	Wed Mar 20 16:51:36 2002
@@ -648,6 +648,21 @@ read_makefile (filename, flags)
 	  else
 	    /* No pattern means remove all previous selective VPATH's.  */
 	    pattern = 0;
+
+    /* CYGNUS LOCAL Cygwin */
+    /* FIXME: should this conversion only take place when in unixy_mode? */
+#ifdef __CYGWIN__
+    /* if a win32 VPATH path list, convert to posix path list */
+    if (!cygwin_posix_path_list_p (p))
+      {
+        register char *posixp = (char *)
+                                alloca (cygwin_win32_to_posix_path_list_buf_size (p));
+        cygwin_win32_to_posix_path_list (p, posixp);
+        p = posixp;
+      }
+#endif /* __CYGWIN__ */
+    /* END CYGNUS LOCAL */
+
 	  construct_vpath_list (pattern, p);
 	  if (pattern != 0)
 	    free (pattern);

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.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