mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-24 06:48:18 -07:00
media-radio/ibp: fix build with clang16
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
This commit is contained in:
8
media-radio/ibp/files/ibp-0.21-clang16.patch
Normal file
8
media-radio/ibp/files/ibp-0.21-clang16.patch
Normal file
@@ -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;
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user