Skip to content
Snippets Groups Projects
Commit 01c5b53b authored by Todd Gamblin's avatar Todd Gamblin
Browse files

Make libxcb compile with gcc 4.9.

parent 047f1b9d
Branches
Tags
No related merge requests found
from spack import * from spack import *
class Libxcb(Package): class Libxcb(Package):
"""The X protocol C-language Binding (XCB) is a replacement """The X protocol C-language Binding (XCB) is a replacement
for Xlib featuring a small footprint, latency hiding, direct for Xlib featuring a small footprint, latency hiding, direct
access to the protocol, improved threading support, and access to the protocol, improved threading support, and
extensibility.""" extensibility."""
homepage = "http://xcb.freedesktop.org/" homepage = "http://xcb.freedesktop.org/"
...@@ -14,6 +14,10 @@ class Libxcb(Package): ...@@ -14,6 +14,10 @@ class Libxcb(Package):
depends_on("python") depends_on("python")
depends_on("xcb-proto") depends_on("xcb-proto")
def patch(self):
filter_file('typedef struct xcb_auth_info_t {', 'typedef struct {', 'src/xcb.h')
def install(self, spec, prefix): def install(self, spec, prefix):
configure("--prefix=%s" % prefix) configure("--prefix=%s" % prefix)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment