Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 1052431

Summary: Trivial change for ppc64le in net-snmp spec
Product: [Fedora] Fedora Reporter: Brent Baude <bbaude>
Component: net-snmpAssignee: Jan Safranek <jsafrane>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: jsafrane, thozza
Target Milestone: ---   
Target Release: ---   
Hardware: ppc64le   
OS: Linux   
Whiteboard:
Fixed In Version: net-snmp-5.7.2-18.fc21 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-01-15 16:11:41 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1051573    

Description Brent Baude 2014-01-13 19:57:23 UTC
Please consider the following change to the net-snmp spec file which allows it to be built for ppc64le:

diff --git a/net-snmp.spec b/net-snmp.spec
index 6da14f7..160f1ef 100644
--- a/net-snmp.spec
+++ b/net-snmp.spec
@@ -65,7 +65,7 @@ BuildRequires: net-tools
 # for make test
 BuildRequires: perl(TAP::Harness)
 BuildRequires: systemd-units
-%ifnarch s390 s390x
+%ifnarch s390 s390x ppc64le
 BuildRequires: lm_sensors-devel >= 3
 %endif
 %if %{netsnmp_tcp_wrappers}
@@ -107,7 +107,7 @@ Requires: elfutils-devel, rpm-devel, elfutils-libelf-devel, openssl-devel
 %if %{netsnmp_tcp_wrappers}
 Requires: tcp_wrappers-devel
 %endif
-%ifnarch s390 s390x
+%ifnarch s390 s390x ppc64le
 Requires: lm_sensors-devel
 %endif
 # pull perl development libraries, net-snmp agent libraries may link to them
@@ -223,7 +223,7 @@ MIBS="host agentx smux \
      ip-mib/ipv6ScopeZoneIndexTable ip-mib/ipIfStatsTable \
      sctp-mib rmon-mib etherlike-mib"
 
-%ifnarch s390 s390x
+%ifnarch s390 s390x ppc64le
 # there are no lm_sensors on s390
 MIBS="$MIBS ucd-snmp/lmsensorsMib"
 %endif