Bug 1235217

Summary: tools/glusterfind: build errors while compiling for RHEL 5
Product: [Community] GlusterFS Reporter: Milind Changire <mchangir>
Component: glusterfindAssignee: Milind Changire <mchangir>
Status: CLOSED WONTFIX QA Contact: bugs <bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: mainlineCC: avishwan, khiremat, ndevos, sarumuga
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1235224 (view as bug list) Environment:
Last Closed: 2016-06-20 17:43:57 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: 1235224    

Description Milind Changire 2015-06-24 10:31:52 UTC
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.

Comment 1 Saravanakumar 2015-07-16 06:22:53 UTC
*** Bug 1228981 has been marked as a duplicate of this bug. ***

Comment 2 Milind Changire 2016-06-20 17:43:57 UTC
glusterfind Python code applies to server build flavor and hence not applicable to RHEL 5.