On Jun 17, 2011, at 8:37 AM, Jan Safranek wrote: > Hi, > > vanilla net-snmp 5.7.rc1 does not compile on Fedora 15 and rawhide. I > have quick & dirty specific patches in distro RPMs to make it work there. > > Now I finally got polished patches from Panu Matilainen, one of current > RPM developers, which adds support of all RPM versions between 4.1 and > 4.9 to Net-SNMP. It works well on everything between Fedora 15 and > RHEL4. I haven't tested anything older, it's still possible it works > there too. > > The patch itself is not that complicated, but I'd appreciate some > testing on non-Red Hat systems like SuSE and Mandriva. Any volunteers? >
Again and again and again:
Linking Berkeley DB into net-snmp, and re-jiggering this patch every time
either rpm or net-snmp is released, on every RPM based platform, is
plain and simply the wrong engineering approach.
Its a huge waste of time and energy to keep fiddling with RPM <-> net-snmp
to populate a HR-MIB imho.
The better engineering approach is to do what most other non-RPM platforms are
doing, which is to use simpler system calls like stat(2) and opendir(3)
and readdir(3) to populate the elements of a HRMIB.
Creating a NAME-VERSION-RELEASE.ARCH file and stamping with the package
install time is all that the HR-MIB needs.
This can be done in 30-50 lines of code in RPM, and retrofitted on
older platforms that somehow wish to upgrade net-snmp (but not
RPM) by adding a cron-driven script of 10-20 lines that touches a file.
I have sent this patch along like 3 times now, I can and will generate
the patch all over again again again if necessary to see the proper engineering
in place.
(aside)
I did in fact write the net-snmp <-> rpm patch in November 1998 … it was
the wrong implementation imho.
Yes or no (to net-snmp people):
Do you want a patch to simplify the net-snmp code, remove the linkage
to rpm libraries, or not?
Otherwise I cease to care about
73 de Jeff
> Jan
> <net-snmp-rpm-1.patch><net-snmp-rpm-2.patch>------------------------------------------------------------------------------
> EditLive Enterprise is the world's most technically advanced content
> authoring tool. Experience the power of Track Changes, Inline Image
> Editing and ensure content is compliant with Accessibility Checking.
> http://p.sf.net/sfu/ephox-dev2dev_______________________________________________
> Net-snmp-coders mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
smime.p7s
Description: S/MIME cryptographic signature
------------------------------------------------------------------------------ EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
