Bug 1235224

Summary: tools/glusterfind: build errors while compiling for RHEL 5
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Vivek Agarwal <vagarwal>
Component: glusterfs-develAssignee: Kotresh HR <khiremat>
Status: CLOSED WONTFIX QA Contact: storage-qa-internal <storage-qa-internal>
Severity: high Docs Contact:
Priority: unspecified    
Version: rhgs-3.1CC: amukherj, avishwan, khiremat, mchangir, nchilaka, nlevinki, rhs-bugs, rwheeler, sankarshan, smohan, vbellur
Target Milestone: ---Keywords: ZStream
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1235217 Environment:
Last Closed: 2018-11-06 03:25:05 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: 1235217    
Bug Blocks: 1202842    

Description Vivek Agarwal 2015-06-24 10:51:14 UTC
+++ This bug was initially created as a clone of Bug #1235217 +++

Description of problem:
Syntax errors building glusterfind Python byte-code on RHEL 5
eg. expr1 if condition1 else expr2

To be able to build on RHEL 5 Python language support, the code needs to be
rewritten as:
if condition1:
    expr1
else:
    expr2


Version-Release number of selected component (if applicable):


How reproducible:
Always


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:
Since the make procedure is common for client-side and server-side components, these Syntax Errors show up in the BREW build logs. However, the RPM packaging takes care of building the appropriate client-side RPMs without the glusterfind tool, which is part of the -server RPM.