summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2023-06-10 22:32:32 +0100
committerSam James <sam@gentoo.org>2023-06-10 22:32:37 +0100
commita09cf66a0d720125efdfd0f62643ba4be61545a7 (patch)
treec9ea794cc16534c6211e64bb280758dd38704c24 /sci-libs/libsigrok/files
parentdev-lang/swig: drop 4.0.2, 4.1.1 (diff)
downloadgentoo-a09cf66a0d720125efdfd0f62643ba4be61545a7.tar.gz
gentoo-a09cf66a0d720125efdfd0f62643ba4be61545a7.tar.bz2
gentoo-a09cf66a0d720125efdfd0f62643ba4be61545a7.zip
sci-libs/libsigrok: fix build w/ swig-4.1
Closes: https://bugs.gentoo.org/878395 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sci-libs/libsigrok/files')
-rw-r--r--sci-libs/libsigrok/files/libsigrok-0.5.2-swig-4.1.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/sci-libs/libsigrok/files/libsigrok-0.5.2-swig-4.1.patch b/sci-libs/libsigrok/files/libsigrok-0.5.2-swig-4.1.patch
new file mode 100644
index 000000000000..6513491270cf
--- /dev/null
+++ b/sci-libs/libsigrok/files/libsigrok-0.5.2-swig-4.1.patch
@@ -0,0 +1,11 @@
+https://bugs.gentoo.org/878395
+--- a/bindings/cxx/enums.py
++++ b/bindings/cxx/enums.py
+@@ -73,6 +73,8 @@
+ code = open(os.path.join(outdirname, 'cxx/enums.cpp'), 'w')
+ swig = open(os.path.join(outdirname, 'swig/enums.i'), 'w')
+
++print('%include "attribute.i" \n', file=swig)
++
+ for file in (header, code):
+ print("/* Generated file - edit enums.py instead! */", file=file)