From owner-freebsd-ports Sun Mar 7 14:17: 8 1999 Delivered-To: freebsd-ports@freebsd.org Received: from jade.chc-chimes.com (jade.chc-chimes.com [206.67.97.83]) by hub.freebsd.org (Postfix) with ESMTP id 2C06914DE8; Sun, 7 Mar 1999 14:17:00 -0800 (PST) (envelope-from billf@jade.chc-chimes.com) Received: from localhost (billf@localhost) by jade.chc-chimes.com (8.8.8/8.8.8) with SMTP id RAA21925; Sun, 7 Mar 1999 17:17:16 -0500 (EST) (envelope-from billf@jade.chc-chimes.com) Date: Sun, 7 Mar 1999 17:17:16 -0500 (EST) From: Bill Fumerola To: "Kenneth D. Merry" Cc: committers@FreeBSD.org, ports@FreeBSD.org Subject: Re: getopt In-Reply-To: <199903071820.LAA73812@panzer.plutotech.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Sun, 7 Mar 1999, Kenneth D. Merry wrote: > > 'getopt' is not included in the base tree (it's a GNU thing) and many > > ports depend on it. There have been proposed solutions to fix this > > (ports/8838), but none of them feel right to me. > > getopt(3) is included in the base tree. It's in libc. It isn't GNU getopt, > though. [This is to Nate too] I meant getopt_long or whatever the linux 'addon' was, I know getopt is libc. > > Would the best solution be rolling a getopt library and then making it a > > port? Should I proceed with this? > > I think that any port that just assumes that the system getopt is GNU > getopt is making a bad assumption. I suppose the ports in question are > probably Linux-based, 'eh? Yes. Portablity isn't something most programs created in Linux seem to care about recently. > > NOTE: I am not talking about /usr/src/usr.bin/getopt, I am talking about: > > bash-2.01$ pwd ; ls getopt* > > /usr/src/gnu/usr.bin/diff > > getopt.c getopt.h getopt1.c > > > > Comments? I'd hate to do this the wrong way. > > Well, I suppose that making it a port is probably the most acceptable > solution. Don't just go on my opinion, though...see what other folks have > to say. - bill fumerola - billf@chc-chimes.com - BF1560 - computer horizons corp - - ph:(800) 252-2421 - bfumerol@computerhorizons.com - billf@FreeBSD.org - To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message