mirror of
https://github.com/void-linux/void-packages.git
synced 2025-04-15 21:57:02 +02:00
python3-xcffib: rebuild for python3-3.13
This commit is contained in:
parent
ed6a121f72
commit
2fbf302d3c
2 changed files with 31 additions and 1 deletions
30
srcpkgs/python3-xcffib/patches/fix-build.patch
Normal file
30
srcpkgs/python3-xcffib/patches/fix-build.patch
Normal file
|
@ -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 _ _) =
|
|
@ -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"
|
||||
|
|
Loading…
Add table
Reference in a new issue