Re: rfc: net-snmp-config.h

2006-09-11 Thread Thomas Anders
Magnus Fromreide wrote: > On Fri, Aug 25, 2006 at 04:15:55PM +0200, Thomas Anders wrote: >> Robert Story wrote: >>> $ cvs diff configure.in >>> Index: configure.in >> [...] >>> +AC_CONFIG_HEADER(include/net-snmp/libtool-config.h) >>> AC_CONFIG_HEADER(include/net-snmp/net-snmp-config.h) >> I don't

Re: rfc: net-snmp-config.h

2006-08-26 Thread Thomas Anders
Wes Hardaker wrote: > What we *should* do is: [...] > 2) fix the incompatibilities when we can (removing the PACKAGE >variables is an excellent example). The attached patch uses AH_VERBATIM to make autoheader protect the PACKAGE_* variables in net-snmp-config.h[.in] in a way suitable for all b

Re: rfc: net-snmp-config.h

2006-08-26 Thread Magnus Fromreide
On Fri, Aug 25, 2006 at 04:15:55PM +0200, Thomas Anders wrote: > Robert Story wrote: > > $ cvs diff configure.in > > Index: configure.in > [...] > > +AC_CONFIG_HEADER(include/net-snmp/libtool-config.h) > > AC_CONFIG_HEADER(include/net-snmp/net-snmp-config.h) > > I don't think this'll work. autohe

Re: rfc: net-snmp-config.h

2006-08-25 Thread Magnus Fromreide
On Fri, Aug 25, 2006 at 04:15:55PM +0200, Thomas Anders wrote: > Robert Story wrote: > > $ cvs diff configure.in > > Index: configure.in > [...] > > +AC_CONFIG_HEADER(include/net-snmp/libtool-config.h) > > AC_CONFIG_HEADER(include/net-snmp/net-snmp-config.h) > > I don't think this'll work. autohe

Re: rfc: net-snmp-config.h

2006-08-25 Thread Robert Story
On Fri, 25 Aug 2006 16:15:55 +0200 Thomas wrote: TA> > Index: configure.in TA> [...] TA> > +AC_CONFIG_HEADER(include/net-snmp/libtool-config.h) TA> > AC_CONFIG_HEADER(include/net-snmp/net-snmp-config.h) TA> TA> I don't think this'll work. autoheader can only maintain a *single* TA> FILE.in (from

Re: rfc: net-snmp-config.h

2006-08-25 Thread Thomas Anders
Robert Story wrote: > $ cvs diff configure.in > Index: configure.in [...] > +AC_CONFIG_HEADER(include/net-snmp/libtool-config.h) > AC_CONFIG_HEADER(include/net-snmp/net-snmp-config.h) I don't think this'll work. autoheader can only maintain a *single* FILE.in (from a single acconfig.h). Splitting

Re: rfc: net-snmp-config.h

2006-08-23 Thread Dave Shield
On 23/08/06, Magnus Fromreide <[EMAIL PROTECTED]> wrote: > The problem with shipping of the HAVE_s is that they reflect the state on > the build machine as opposed to the install machine and in those days of > package managers the build and install machine often do differ. Good point. > This lead

Re: rfc: net-snmp-config.h

2006-08-22 Thread Magnus Fromreide
On Tue, Aug 22, 2006 at 09:26:03AM +0100, Dave Shield wrote: > > TA> It's a start, but I think our current approach of shipping all > > TA> autoconf variables in net-snmp-config.h is even more flawed than > > TA> that. See some random Debian bug (wrt. some other software) on the > > TA> topic: > >

Re: rfc: net-snmp-config.h

2006-08-22 Thread Dave Shield
On 22/08/06, Wes Hardaker <[EMAIL PROTECTED]> wrote: > DS> Something like > DS> #ifndef OMIT_PROBLEMATICAL_SETTINGS > > If we don't use those, I wouldn't include them by default... Fine. I was assuming that the default would be to provide the same set of definitions that we've always done (for bac

Re: rfc: net-snmp-config.h

2006-08-22 Thread Wes Hardaker
> "DS" == Dave Shield <[EMAIL PROTECTED]> writes: DS> Is it really that unimaginable that a different package might also DS> define LOGFILE? Sure! No, just kidding of course. DS> a) Net-SNMP-specific settings - stuff that's only meaningful to our code. DS> (e.g. DEFAULT_MIBDIRS, USE_REVERS

Re: rfc: net-snmp-config.h

2006-08-22 Thread Wes Hardaker
> "DS" == Dave Shield <[EMAIL PROTECTED]> writes: DS> Something like DS> #ifndef OMIT_PROBLEMATICAL_SETTINGS If we don't use those, I wouldn't include them by default... -- Wes Hardaker Sparta, Inc. - Using Tomcat but n

Re: rfc: net-snmp-config.h

2006-08-22 Thread Thomas Anders
Robert Story wrote: > On Wed, 16 Aug 2006 00:01:33 +0200 Thomas wrote: > TA> Another proposal that came up on IRC was to split net-snmp-config.h into > an > TA> external and an internal header file (with the PACKAGE_* variables being > TA> in the internal one, of course). > > I would like to see

Re: rfc: net-snmp-config.h

2006-08-22 Thread Dave Shield
On 22/08/06, Thomas Anders <[EMAIL PROTECTED]> wrote: > Agreed in general. Still, where would you suggest to put the PACKAGE_* > variables in that picture? c) They're clearly generically named, but the values are Net-SNMP specific. > Actually, they look too problematic to be put anywhere. :-(

Re: rfc: net-snmp-config.h

2006-08-22 Thread Thomas Anders
Dave Shield wrote: > As I see it, there are three general types of entry in the config.h file: > >a) Net-SNMP-specific settings - stuff that's only meaningful to our code. > (e.g. DEFAULT_MIBDIRS, USE_REVERSE_ASNENCODING, etc) [...] > b) Generic system-related settings > (e

Re: rfc: net-snmp-config.h

2006-08-22 Thread Dave Shield
> TA> It's a start, but I think our current approach of shipping all > TA> autoconf variables in net-snmp-config.h is even more flawed than > TA> that. See some random Debian bug (wrt. some other software) on the > TA> topic: > > TA> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=363173 Wes> We

Re: rfc: net-snmp-config.h

2006-08-22 Thread Thomas Anders
Magnus Fromreide wrote: > On Tue, Aug 22, 2006 at 12:03:05AM +0200, Thomas Anders wrote: >> Robert Story wrote: >>> On Fri, 18 Aug 2006 10:29:17 -0700 Wes wrote: >>> WH> And that's included automatically by what file? Or is included >>> WH> explicitly by what files? >>> >>> Well, as near as I can

Re: rfc: net-snmp-config.h

2006-08-21 Thread Magnus Fromreide
On Tue, Aug 22, 2006 at 12:03:05AM +0200, Thomas Anders wrote: > Robert Story wrote: > > On Fri, 18 Aug 2006 10:29:17 -0700 Wes wrote: > > WH> And that's included automatically by what file? Or is included > > WH> explicitly by what files? > > > > Well, as near as I can tell from cursory checking

Re: rfc: net-snmp-config.h

2006-08-21 Thread Wes Hardaker
> "TA" == Thomas Anders <[EMAIL PROTECTED]> writes: TA> It's a start, but I think our current approach of shipping all TA> autoconf variables in net-snmp-config.h is even more flawed than TA> that. See some random Debian bug (wrt. some other software) on the TA> topic: TA> http://bugs.debian.

Re: rfc: net-snmp-config.h

2006-08-21 Thread Thomas Anders
Robert Story wrote: > On Fri, 18 Aug 2006 10:29:17 -0700 Wes wrote: > WH> And that's included automatically by what file? Or is included > WH> explicitly by what files? > > Well, as near as I can tell from cursory checking, none of our code uses the > PACKAGE_* macros, so we could just not includ

Re: rfc: net-snmp-config.h

2006-08-21 Thread Robert Story
On Fri, 18 Aug 2006 10:29:17 -0700 Wes wrote: WH> And that's included automatically by what file? Or is included WH> explicitly by what files? Well, as near as I can tell from cursory checking, none of our code uses the PACKAGE_* macros, so we could just not include it anywhere until we need it.

Re: rfc: net-snmp-config.h

2006-08-18 Thread Wes Hardaker
> "RS" == Robert Story <[EMAIL PROTECTED]> writes: RS> $ cat include/net-snmp/libtool-config.h.in And that's included automatically by what file? Or is included explicitly by what files? -- Wes Hardaker Sparta, Inc. -

Re: rfc: net-snmp-config.h

2006-08-18 Thread Robert Story
On Thu, 17 Aug 2006 20:45:10 -0700 Wes wrote: WH> > "TA" == Thomas Anders <[EMAIL PROTECTED]> writes: WH> WH> TA> Then, I'd start with putting PACKAGE_* into the internal header WH> TA> file and work from there. Suggestions for additional entries are WH> TA> most welcome. WH> WH> I think one

Re: rfc: net-snmp-config.h

2006-08-17 Thread Wes Hardaker
> "TA" == Thomas Anders <[EMAIL PROTECTED]> writes: TA> Then, I'd start with putting PACKAGE_* into the internal header TA> file and work from there. Suggestions for additional entries are TA> most welcome. I think one of the things you should do is propose your total solution here... some o

Re: rfc: net-snmp-config.h

2006-08-17 Thread Thomas Anders
Wes Hardaker wrote: >> "TA" == Thomas Anders <[EMAIL PROTECTED]> writes: > > TA> The name of the additional header file is probably the last thing > TA> I'd object against if we solved the issue in question. Let's agree > TA> on splitting the two first. > > That's ok I'll object then. I obj

Re: rfc: net-snmp-config.h

2006-08-17 Thread Wes Hardaker
> "TA" == Thomas Anders <[EMAIL PROTECTED]> writes: TA> The name of the additional header file is probably the last thing TA> I'd object against if we solved the issue in question. Let's agree TA> on splitting the two first. That's ok I'll object then. I object to using config.h. Lets make

Re: rfc: net-snmp-config.h

2006-08-15 Thread Thomas Anders
Robert Story wrote: > On Wed, 16 Aug 2006 00:23:07 +0200 Thomas wrote: > TA> Hmmh, I actually prefer your original net-snmp-config-internal.h proposal > TA> since it's much more clear what to expect from this file, then. I'd be > TA> reluctant about re-using the old config.h name for something not

Re: rfc: net-snmp-config.h

2006-08-15 Thread Robert Story
On Wed, 16 Aug 2006 00:23:07 +0200 Thomas wrote: TA> Robert Story wrote: TA> > I'd propose going back to the original 'config.h' for the 'internal' file TA> > name. TA> TA> Hmmh, I actually prefer your original net-snmp-config-internal.h proposal TA> since it's much more clear what to expect from

Re: rfc: net-snmp-config.h

2006-08-15 Thread Thomas Anders
Robert Story wrote: > On Wed, 16 Aug 2006 00:01:33 +0200 Thomas wrote: > TA> Another proposal that came up on IRC was to split net-snmp-config.h into > an > TA> external and an internal header file (with the PACKAGE_* variables being > TA> in the internal one, of course). > > I would like to see

Re: rfc: net-snmp-config.h

2006-08-15 Thread Robert Story
On Wed, 16 Aug 2006 00:01:33 +0200 Thomas wrote: TA> Another proposal that came up on IRC was to split net-snmp-config.h into an TA> external and an internal header file (with the PACKAGE_* variables being TA> in the internal one, of course). I would like to see this resolved as well, and think th

rfc: net-snmp-config.h

2006-08-15 Thread Thomas Anders
-Coders, net-snmp-config.h currently contains a number of problematic variables like all the PACKAGE_* that shouldn't be defined in an external header file because it may easily interfere with the PACKAGE_* variables (even if internal) of another package that's using net-snmp. I'd really like to g