Dave Shield schrieb:
> On 07/03/2008, Thomas Anders wrote:
>> > CHANGES: build: BUG: 1823381: Use a sensible default MIBDIR path
>> > on Cygwin/MinGW
>> > (Should this be applied to other branches? If so, which?)

>> It just cleans up the PATH w/o really fixing a bug, right? If so, I'd say trunk only.

> Depends on how you categorise things.
> With the previous code, the default MIB path was set to something like:
> $HOME/.snmp/mibs:/usr/local/lib/snmp/mibs
> That ':' separator character apparently breaks MIB searching on
> Cygwin/MinGW builds. (At least according to an old mail thread).
> So this patch takes the coward's way out, and sets a single MIB directory.

For NETSNMP_DEFAULT_MIBS there's the following code in configure.in:

if test "x$PARTIALTARGETOS" = "xmingw32" -o "x$PARTIALTARGETOS" = "xmingw32msvc" -o "x$PARTIALTARGETOS" = "xcygwin"; then
# mingw32 and cygwin use ';' as the environment variable separator char
default_mibs=`echo "$default_mibs" | $SED 's/:/;/g'`

I guess a similar approach should be taken for NETSNMP_DEFAULT_MIBDIRS.
Then, still, is $HOME/.snmp/mibs a reasonable default for the personal mib directory on Cygwin/MinGW?


Thomas Anders (thomas.anders at blue-cable.de)

This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
Net-snmp-coders mailing list