diff --git a/net-snmp-5.4.2.1-rpm4.7.patch b/net-snmp-5.4.2.1-rpm4.7.patch new file mode 100644 index 0000000..4981f53 --- /dev/null +++ b/net-snmp-5.4.2.1-rpm4.7.patch @@ -0,0 +1,12 @@ +Index: agent/mibgroup/host/hr_swinst.c +=================================================================== +--- agent/mibgroup/host/hr_swinst.c.orig ++++ agent/mibgroup/host/hr_swinst.c +@@ -3,6 +3,7 @@ + * + */ + ++#define _RPM_4_4_COMPAT 1 + #include + + #if HAVE_SYS_PARAM_H diff --git a/net-snmp.changes b/net-snmp.changes index 59fd981..73c3186 100644 --- a/net-snmp.changes +++ b/net-snmp.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sun Aug 30 15:17:12 UTC 2009 - aj@suse.de + +- Fix build with rpm 4.7 (net-snmp-5.4.2.1-rpm4.7.patch) + ------------------------------------------------------------------- Wed Aug 26 12:53:54 CEST 2009 - mls@suse.de diff --git a/net-snmp.spec b/net-snmp.spec index 9868cb8..cda3f01 100644 --- a/net-snmp.spec +++ b/net-snmp.spec @@ -20,7 +20,7 @@ Name: net-snmp Version: 5.4.2.1 -Release: 9 +Release: 10 # License: BSD 3-clause (or similar) ; MIT License (or similar) Group: Productivity/Networking/Other @@ -90,6 +90,7 @@ Patch21: Fix-for-Internet-Address-Prefix-Table.patch Patch22: Add-IPv6-Scope-Zone-Index.patch Patch23: Improve-IP-Statistics-tables.patch Patch24: net-snmp-5.4.x_embedded_perl_error_message.patch +Patch25: net-snmp-5.4.2.1-rpm4.7.patch # Summary: SNMP Daemon @@ -228,6 +229,7 @@ Authors: %patch22 -p1 %patch23 -p1 %patch24 +%patch25 find -name "CVS" -type d | xargs -r %{__rm} -rfv find -name ".cvsignore" | xargs -r %{__rm} -fv