[Bugs] [Bug 1228981] New: glusterfind throws syntax error while getting packaged on EL5

bugzilla at redhat.com bugzilla at redhat.com
Sun Jun 7 09:48:28 UTC 2015


https://bugzilla.redhat.com/show_bug.cgi?id=1228981

            Bug ID: 1228981
           Summary: glusterfind throws syntax error while getting packaged
                    on EL5
           Product: GlusterFS
           Version: mainline
         Component: glusterfind
          Keywords: Triaged
          Severity: high
          Priority: medium
          Assignee: bugs at gluster.org
          Reporter: ndevos at redhat.com
        QA Contact: bugs at gluster.org
                CC: avishwan at redhat.com, khiremat at redhat.com



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.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the Bugs mailing list