summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIonen Wolkens <ionen@gentoo.org>2022-10-07 23:32:06 -0400
committerIonen Wolkens <ionen@gentoo.org>2022-10-07 23:35:31 -0400
commitd88dbbec34a49c24ebec86911849acaff963c0cb (patch)
tree11dd92f36a72378e9581e95f11a8d8561df8518b /dev-libs/9libs
parentdev-libs/9libs: pass -fno-strict-aliasing (diff)
downloadgentoo-d88dbbec34a49c24ebec86911849acaff963c0cb.tar.gz
gentoo-d88dbbec34a49c24ebec86911849acaff963c0cb.tar.bz2
gentoo-d88dbbec34a49c24ebec86911849acaff963c0cb.zip
dev-libs/9libs: fix build with upcoming clang16
Closes: https://bugs.gentoo.org/871183 Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
Diffstat (limited to 'dev-libs/9libs')
-rw-r--r--dev-libs/9libs/9libs-1.0-r5.ebuild1
-rw-r--r--dev-libs/9libs/files/9libs-1.0-clang16.patch8
2 files changed, 9 insertions, 0 deletions
diff --git a/dev-libs/9libs/9libs-1.0-r5.ebuild b/dev-libs/9libs/9libs-1.0-r5.ebuild
index bb9f3d6f49c7..21a9175d21dd 100644
--- a/dev-libs/9libs/9libs-1.0-r5.ebuild
+++ b/dev-libs/9libs/9libs-1.0-r5.ebuild
@@ -23,6 +23,7 @@ DEPEND="
PATCHES=(
"${FILESDIR}"/${PN}-va_list.patch # Bug 385387
+ "${FILESDIR}"/${P}-clang16.patch
)
src_prepare() {
diff --git a/dev-libs/9libs/files/9libs-1.0-clang16.patch b/dev-libs/9libs/files/9libs-1.0-clang16.patch
new file mode 100644
index 000000000000..237cfc0c70c9
--- /dev/null
+++ b/dev-libs/9libs/files/9libs-1.0-clang16.patch
@@ -0,0 +1,8 @@
+https://bugs.gentoo.org/871183
+--- a/libXg/gcs.c
++++ b/libXg/gcs.c
+@@ -163,3 +163,3 @@
+ static GC gc0, gcn;
+- static clipset = 0;
++ static int clipset = 0;
+ GC g;