On Jun 10, 2011, at 9:10 AM, Wes Hardaker wrote: >>>>>> On Fri, 10 Jun 2011 07:55:20 -0400, Jeff Johnson <[email protected]> said: > > JJ> And net-snmp has a patch to avoid being trapped by RPM PI > JJ> incompatibilities for many years now. See the archives (and I think > JJ> the patch is still in Gentoo). > > Hmm... we'll have to go searching for it. >
If interested, I'll dig out the details for you all over again. When
I first asked
All the patch does is revert to what is used everywhere _EXCEPT_ on
RPM based systems:
Traverse a directory to populate the HR-MIB.
This effectively uncouples net-snmp from linking RPM whatsoever.
Meanwhile, in order to populate /var/cache/hrmib (the path chosen) with
0 length files describing what packages are installed (with st->st_mtime
carrying the install time needed for HR-MIB), 2 approaches were devised.
The "portable" approach was a 10-20 line rpm --query script to be run by cron.
The "anal retentive" up to the instant implementation with no cron involved was
maybe
50 lines of RPM code to create/delete the needed
/var/cache/hrbib/N-V-R.A
(N == Name, V == Version, R == Release, A == Arch)
file with the installtime stamp as a side effect of installing or erasing
packages.
The solution has been in use for like 4+ years now in PLD (and the original
proposal
was so long ago I've forgotten. 2004? 2005? ... )
> [it's not in the patch database, where it should be so we can't loose it]
I corresponded with Dave Shield the last time (August 2008 iirc)
when I fixed the issue in Gentoo. The patch was sent directly to
Dave Shield as requested at the time.
But go ahead and keep linking RPM (and Berkeley DB) into net-snmp as long
as you wish. I believe it was you who said
The linkage from net-snmp to rpm is the 2nd hardest piece of code to
maintain.
>
> JJ> 73 de Jeff
>
> 73 de ws6z
>
;-)
73 de Jeff
> --
> Wes Hardaker
> Please mail all replies to [email protected]
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
