summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIonen Wolkens <ionen@gentoo.org>2022-09-30 04:06:28 -0400
committerIonen Wolkens <ionen@gentoo.org>2022-09-30 06:48:09 -0400
commitceba8dbc548a15cb12694d16100e8ced22332c6d (patch)
tree29678012de1ff1efb36ccc508d1e35e3d9045106
parentmedia-radio/ibp: force gcc -E for imake's generation (diff)
downloadgentoo-ceba8dbc548a15cb12694d16100e8ced22332c6d.tar.gz
gentoo-ceba8dbc548a15cb12694d16100e8ced22332c6d.tar.bz2
gentoo-ceba8dbc548a15cb12694d16100e8ced22332c6d.zip
media-radio/ibp: fix build with clang16
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
-rw-r--r--media-radio/ibp/files/ibp-0.21-clang16.patch8
-rw-r--r--media-radio/ibp/ibp-0.21-r2.ebuild8
2 files changed, 14 insertions, 2 deletions
diff --git a/media-radio/ibp/files/ibp-0.21-clang16.patch b/media-radio/ibp/files/ibp-0.21-clang16.patch
new file mode 100644
index 000000000000..a973c9fc17f9
--- /dev/null
+++ b/media-radio/ibp/files/ibp-0.21-clang16.patch
@@ -0,0 +1,8 @@
+https://bugs.gentoo.org/870412
+--- a/xdisp.c
++++ b/xdisp.c
+@@ -551,3 +551,3 @@
+ struct sunclock *
+-makeClockContext(wid, ht, win, pix, gc)
++makeClockContext(wid, ht, win, pix)
+ int wid;
diff --git a/media-radio/ibp/ibp-0.21-r2.ebuild b/media-radio/ibp/ibp-0.21-r2.ebuild
index 62f2d6672a33..3a9d39772a5e 100644
--- a/media-radio/ibp/ibp-0.21-r2.ebuild
+++ b/media-radio/ibp/ibp-0.21-r2.ebuild
@@ -22,14 +22,18 @@ BDEPEND="
virtual/pkgconfig
X? ( sys-devel/gcc )"
+PATCHES=(
+ "${FILESDIR}"/${P}-clang16.patch
+)
+
src_prepare() {
+ default
+
# Respect CFLAGS if built without USE=X
sed -i -e "s/= -D/+= -D/" Makefile || die
# Fix compile if ncurses is built with separate libtinfo
sed -i -e "s:-lcurses:$($(tc-getPKG_CONFIG) --libs ncurses):" Imakefile Makefile || die
-
- eapply_user
}
src_configure() {