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.
*** This bug has been marked as a duplicate of bug 1235217 ***