From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10868 invoked by alias); 8 Apr 2010 21:16:35 -0000 Received: (qmail 10640 invoked by uid 22791); 8 Apr 2010 21:16:34 -0000 X-Spam-Check-By: sourceware.org Received: from pool-173-76-55-5.bstnma.fios.verizon.net (HELO cgf.cx) (173.76.55.5) by sourceware.org (qpsmtpd/0.83/v0.83-20-g38e4449) with ESMTP; Thu, 08 Apr 2010 21:16:29 +0000 Received: from ednor.cgf.cx (ednor.casa.cgf.cx [192.168.187.5]) by cgf.cx (Postfix) with ESMTP id AE23913C061; Thu, 8 Apr 2010 17:16:27 -0400 (EDT) Received: by ednor.cgf.cx (Postfix, from userid 201) id A56132B352; Thu, 8 Apr 2010 17:16:27 -0400 (EDT) Date: Thu, 08 Apr 2010 21:16:00 -0000 From: Christopher Faylor To: "'crossgcc@sourceware.org'" , 'Christopher Faylor' , "Motta, Frank" Subject: Re: statically linked replacement for cygpath - anyone got such a beast? Message-ID: <20100408211627.GA20434@ednor.casa.cgf.cx> Mail-Followup-To: "'crossgcc@sourceware.org'" , 'Christopher Faylor' , "Motta, Frank" References: <12B0DA0E346F5F4DAB11F715D19DC30E36B8AC54F7@usrtmbx01.corpusers.net> <20100407201030.GA25882@ednor.casa.cgf.cx> <12B0DA0E346F5F4DAB11F715D19DC30E36B8AC54F9@usrtmbx01.corpusers.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <12B0DA0E346F5F4DAB11F715D19DC30E36B8AC54F9@usrtmbx01.corpusers.net> User-Agent: Mutt/1.5.20 (2009-06-14) Mailing-List: contact crossgcc-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: crossgcc-owner@sourceware.org X-SW-Source: 2010-04/txt/msg00040.txt.bz2 On Thu, Apr 08, 2010 at 01:45:05PM -0400, Motta, Frank wrote: >Your concern about the license is admirable. This is the 2nd of my >posts that your leading statement was related to that subject. I am >unconcerned with the licensing and have shipped many products under the >same. Cygpath and cygwin are not getting shipped with this product. I >do want to be Cygwin compatible. An alternative to supporting Cygwin >is to say that Cygwin is non-compliant. And stipulate that to have >Cygwin installed voids the warranty and no support is provided. I had >begrudgingly taken this option for many of my products. I don't like >this alternative. > >The GPL 'make' utility is getting shipped and supported. Not all >'make's are alike and most fail to consider OS specific path naming. >So the make flow is wanting a method to consider that an advanced user >will use a posix like operating system or an emulation of it such as >Cygwin and MKS. A makefile which needs to consider OS variants would >need to mangle paths for the command line needs. A user may put within >the makefile a path that is of the form of DOS or posix. Since most >tools don't consider that they can be run on many OS' they may need to >be interpreted before it is passed as an argument. > >I need a program that can compile and run on windows and posix that can >mangle paths for the flavor that is in operation in the make flow at >this build time. This program needs to be aware of the standard name >mangling methods for the environments. Should the environment be >Cygwin then use of the built-in methods would improve compatibility. >The added value of gaining such the ability for this functionality >using existing code is that I can and must release it to public. If I >author it alone then I probably won't be able to release it into GPL >and it goes into the ether only for me to write it a 15th time when I >need it later. > >Also, if I can have the ability of determining if a statically linked >(DOS) executable is run from within a cygwin bash shell (presumably via >make). Then I can locate the existing facilities and put them to use >as well. The subject and body of your message implies that you are looking for a way to statically compile cygpath. I was responding to tell you that 1) It isn't possible and 2) You'd have GPL concerns if you did that. If you are just looking to figure out paths in a non-cygwin-make then I think your best bet would be to test for the existence of a cygpath and use that. cgf -- For unsubscribe information see http://sourceware.org/lists.html#faq