From f722276f7c7cca74846dd1b4da4f740fd9a11fff628f294541cdfaacb3cceca3 Mon Sep 17 00:00:00 2001 From: OBS User autobuild Date: Mon, 31 Aug 2009 19:07:41 +0000 Subject: [PATCH] Accepting request 19265 from home:hennevogel:TODO Copy from home:hennevogel:TODO/net-snmp based on submit request 19265 from user coolo OBS-URL: https://build.opensuse.org/request/show/19265 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/net-snmp?expand=0&rev=21 --- net-snmp-5.4.2.1-rpm4.7.patch | 12 ++++++++++++ net-snmp.changes | 5 +++++ net-snmp.spec | 4 +++- 3 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 net-snmp-5.4.2.1-rpm4.7.patch 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