<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - xpyb: damage.py does not work: "NameError: global name 'RECTANGLE' is not defined""
   href="https://bugs.freedesktop.org/show_bug.cgi?id=60502">60502</a>
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>xcb@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>xpyb: damage.py does not work: "NameError: global name 'RECTANGLE' is not defined"
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>xcb@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>major
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>daniel.mcdougall@liftoffsoftware.com
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Library
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>XCB
          </td>
        </tr></table>
      <p>
        <div>
        <pre>For whatever reason, the build process of xpyb results in an error in the
damage.py module.  The two occurrences of RECTANGLE in the file should be
xproto.RECTANGLE.  This problem seems to exist in all packages of xpyb that
I've encountered (Debian/Ubuntu/pypi).

I tried looking at the Makefile and other areas of the build process to find
the bug/make a patch but it is way over my head.  I don't know why damage.py is
being generated incorrectly but something as simple as a search/replace at the
end of the build process would work around the problem as a quick fix...

sed -i -e 's/RECTANGLE/xproto.RECTANGLE/g' damage.py

Let me know if I can be of any assistance in fixing this bug.  Thanks!</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the QA Contact for the bug.</li>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>