This is a discussion on Re: SF.net SVN: net-snmp: [16845] trunk/net-snmp - SNMP ; 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 ...
Dave Shield schrieb:
> On 07/03/2008, Thomas Anderswrote:
>> > 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
ENV_SEPARATOR=";"
NETSNMP_DEFAULT_MIBS=`echo "$NETSNMP_DEFAULT_MIBS" | $SED 's/:/;/g'`
default_mibs=`echo "$default_mibs" | $SED 's/:/;/g'`
else
ENV_SEPARATOR=":"
fi
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
--
Thomas Anders (thomas.anders at blue-cable.de)
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/...et-snmp-coders