Re: [RFC] gperf 2.7.2 vs 3.0.3 in FreeBSD
Nikos Ntarmos <ntarmos <at> ceid.upatras.gr>
2009-02-02 20:01:54 GMT
On Mon, Feb 02, 2009 at 04:50:25PM +0100, Pierre Habouzit wrote:
> On Mon, Feb 02, 2009 at 12:02:06AM +0000, Nikos Ntarmos wrote:
> > On Mon, Feb 02, 2009 at 01:59:56AM +0200, Nikos Ntarmos wrote:
> > > Hi all.
> > >
> > > I just stumbled upon this and thought I'd better ask here to save some
> > > time digging around the gperf internals. FreeBSD (for which I'm the port
> > > maintainer) has a gperf executable in the base system, identified as GNU
> > > gperf 2.7.2 in the 7-STABLE branch. There is also the devel/gperf port,
> > > containing GNU gperf 3.0.3. I'd like to keep the dependencies as low as
> > > possible for our package so I tried to generate tokenize.{c,h} with the
> > > base version. To start with, it required an extra -D argument as there
> > > were a couple of "duplicate" symbols. Now, the resulting .h file is
> > > identical among the two versions, but the (attached) .c file is
> > > obviously different. I'm running a version with the attached tokenize.c
> > > file. Can one of you gperf gurus out there see something notably wrong
> > > with it?
> > >
> > > Cheers.
> > >
> > > \n\n
> >
> > .... and the attachments... I'm testing the v2.7.2 one right now, which
> > is the one I'd ideally like to keep. However, I'm afraid of losing some
> > functionality somewhere. Not that I've seen something different so far.
>
> You won't lose anything, just have a slightly less efficient lookup in
> the worst case scenario, which you don't care about.
Thanks Pierre. I finally went the safe way and added a build-time
(Continue reading)