Bug 1228981 - glusterfind throws syntax error while getting packaged on EL5
Summary: glusterfind throws syntax error while getting packaged on EL5
Keywords:
Status: CLOSED DUPLICATE of bug 1235217
Alias: None
Product: GlusterFS
Classification: Community
Component: glusterfind
Version: mainline
Hardware: Unspecified
OS: Unspecified
medium
high
Target Milestone: ---
Assignee: bugs@gluster.org
QA Contact: bugs@gluster.org
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-06-07 09:48 UTC by Niels de Vos
Modified: 2015-07-16 06:22 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-07-16 06:22:53 UTC
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Embargoed:


Attachments (Terms of Use)

Description Niels de Vos 2015-06-07 09:48:28 UTC
Description of problem:
While building packages for el5, glusterfind python scripts throw the following syntax error:

Making install in src
 /usr/bin/install -c -m 644 'tool.conf' '/var/tmp/glusterfs-3.8dev-0.364.gitf1c2089.el5.centos-LZ2275/usr/libexec/glusterfs/glusterfind/tool.conf'
 /usr/bin/install -c -m 644 'conf.py' '/var/tmp/glusterfs-3.8dev-0.364.gitf1c2089.el5.centos-LZ2275/usr/libexec/glusterfs/glusterfind/conf.py'
 /usr/bin/install -c -m 644 'utils.py' '/var/tmp/glusterfs-3.8dev-0.364.gitf1c2089.el5.centos-LZ2275/usr/libexec/glusterfs/glusterfind/utils.py'
 /usr/bin/install -c -m 644 '__init__.py' '/var/tmp/glusterfs-3.8dev-0.364.gitf1c2089.el5.centos-LZ2275/usr/libexec/glusterfs/glusterfind/__init__.py'
 /usr/bin/install -c -m 644 'main.py' '/var/tmp/glusterfs-3.8dev-0.364.gitf1c2089.el5.centos-LZ2275/usr/libexec/glusterfs/glusterfind/main.py'
 /usr/bin/install -c -m 644 'libgfchangelog.py' '/var/tmp/glusterfs-3.8dev-0.364.gitf1c2089.el5.centos-LZ2275/usr/libexec/glusterfs/glusterfind/libgfchangelog.py'
 /usr/bin/install -c -m 644 'changelogdata.py' '/var/tmp/glusterfs-3.8dev-0.364.gitf1c2089.el5.centos-LZ2275/usr/libexec/glusterfs/glusterfind/changelogdata.py'
Byte-compiling python modules...
conf.pyutils.py  File "/usr/libexec/glusterfs/glusterfind/utils.py", line 23
    ParseError = etree.ParseError if hasattr(etree, 'ParseError') else SyntaxError
                                   ^
SyntaxError: invalid syntax
__init__.pymain.pylibgfchangelog.py  File "/usr/libexec/glusterfs/glusterfind/main.py", line 30
    ParseError = etree.ParseError if hasattr(etree, 'ParseError') else SyntaxError
                                   ^
SyntaxError: invalid syntax
changelogdata.py  File "/usr/libexec/glusterfs/glusterfind/changelogdata.py", line 217
    return True if row[0] > 0 else False
                 ^
SyntaxError: invalid syntax


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

How reproducible:
100%

Steps to Reproduce:
1. checkout the master branch
2. build el5 rpms in mock
    $ make clean 
    $ rm -f *.tar.gz *.rpm
    $ ./autogen.sh && ./configure && make dist
    $ rpmbuild -ts --define "_srcrpmdir $PWD" *.tar.gz
    $ mock -r epel-5-x86_64 *.src.rpm


Actual results:
Packages are created, but the build.log (in the results directory) contains the syntax error.

Expected results:
No syntax error in the build logs.

Additional info:
If glusterfind is not expected to work on el5, it should not get packaged. If that is the case, assign the bug to me with a note and I'll take care of it.

Comment 1 Saravanakumar 2015-07-16 06:22:53 UTC

*** This bug has been marked as a duplicate of bug 1235217 ***


Note You need to log in before you can comment on or make changes to this bug.