X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS X-Spam-Check-By: sourceware.org To: cygwin AT cygwin DOT com From: Andrew Schulman Subject: Re: argp? Date: Tue, 20 Sep 2011 13:03:23 -0400 Lines: 29 Message-ID: References: <20110920163443 DOT GA19467 AT ednor DOT casa DOT cgf DOT cx> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive: encrypt 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 Mon, Sep 19, 2011 at 04:43:45AM -0400, Andrew Schulman wrote: > >I'd like to use argp[1] in a Cygwin program, but I see that it's not > >implemented in Cygwin. The catgets and cpio packages have apparently > >imported it statically into their source, and advice on the net is to > >import their implementations. > > > >Is there a particular reason that argp isn't available in Cygwin, or has it > >just never been important enough for someone to bring it in? Would people > >be receptive to having it available as a separate package, say libargp? > > > >[1] http://www.gnu.org/s/hello/manual/libc/Argp.html > > Looks like this would have to be implemented from scratch since LGPLed code > is not allowed in Cygwin. The argp implementation in newlib apparently is > just a copy of the glibc code. > > I was going to just pull in any *bsd version of this that I could find but > I don't see a non LGPLed version in freebsd, netbsd, or openbsd. > > So: PTC. Ugh. That's a bummer. Packaging argp as libargp for Cygwin - I was getting ready to do that. Reimplementing it from scratch - no way can I tackle that. Now I'm looking in the argp sources used in catgets and cpio. Comparing them, it appears that catgets is using LGPL code from 2004, while cpio uses GPL code from 2010. I just looked at cpio upstream, and sure enough, it includes a GPL argp implementation. I'll look into packaging it. -- 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