]> git.pld-linux.org Git - packages/net-snmp.git/blob - net-snmp-rpmpath.patch
Provide hrMIB data via librpm for rpm 4.16
[packages/net-snmp.git] / net-snmp-rpmpath.patch
1 diff -ruN net-snmp-5.3.1./agent/mibgroup/host/hr_swinst.c net-snmp-5.3.1/agent/mibgroup/host/hr_swinst.c
2 --- net-snmp-5.3.1./agent/mibgroup/host/hr_swinst.c     2006-03-09 18:31:53.000000000 +0100
3 +++ net-snmp-5.3.1/agent/mibgroup/host/hr_swinst.c      2006-08-07 23:19:42.356996008 +0200
4 @@ -205,7 +205,7 @@
5          /*
6           * XXX distinguish between rpm-2.5.x and rpm-2.9x 
7           */
8 -#ifdef HAVE_RPMGETPATH
9 +#if 1
10          rpmReadConfigFiles(NULL, NULL);
11          swi->swi_dbpath = rpmGetPath("%{_dbpath}", NULL);
12  #else
This page took 0.044055 seconds and 3 git commands to generate.