diff --git a/srcpkgs/python3-xcffib/patches/fix-build.patch b/srcpkgs/python3-xcffib/patches/fix-build.patch new file mode 100644 index 00000000000..c150eb91329 --- /dev/null +++ b/srcpkgs/python3-xcffib/patches/fix-build.patch @@ -0,0 +1,30 @@ +These changes are cargo-culted from + + https://github.com/tych0/xcffib/commit/7e2650fd21b157402cd26bff129a81a0b5ddc60c + +--- a/generator/Data/XCB/Python/Parse.hs ++++ b/generator/Data/XCB/Python/Parse.hs +@@ -309,12 +309,12 @@ + -> BitCase + -> (Expr (), [GenStructElem Type]) + mkSwitch cmp (BitCase Nothing bcCmp _ elems) = +- let cmpVal = xExpressionToPyExpr id bcCmp ++ let cmpVal = xExpressionToPyExpr id (head bcCmp) + equality = BinaryOp (P.BinaryAnd ()) cmp cmpVal () + in (equality, elems) + + mkSwitch cmp (BitCase (Just _) bcCmp _ elems) = +- let cmpVal = xExpressionToPyExpr id bcCmp ++ let cmpVal = xExpressionToPyExpr id (head bcCmp) + equality = BinaryOp (P.Equality ()) cmp cmpVal () + in (equality, elems) + +@@ -373,7 +373,7 @@ + -> BitCase + -> (Expr (), [GenStructElem Type]) + mkSwitch cmp (BitCase _ bcCmp _ elems') = +- let cmpVal = xExpressionToPyExpr accessor bcCmp ++ let cmpVal = xExpressionToPyExpr accessor (head bcCmp) + equality = BinaryOp (P.BinaryAnd ()) cmp cmpVal () + in (equality, elems') + structElemToPyPack ext m accessor (SField n typ _ _) = diff --git a/srcpkgs/python3-xcffib/template b/srcpkgs/python3-xcffib/template index cb66bb641a8..47d8c8c5df2 100644 --- a/srcpkgs/python3-xcffib/template +++ b/srcpkgs/python3-xcffib/template @@ -1,7 +1,7 @@ # Template file for 'python3-xcffib' pkgname=python3-xcffib version=1.5.0 -revision=2 +revision=3 build_style=python3-pep517 hostmakedepends="python3-setuptools pkg-config cabal-install parallel xcb-proto python3-cffi python3-wheel" makedepends="python3-devel libffi-devel libxcb-devel python3-six"