media-libs/libcaca: build with -fno-strict-overflow

There's UB in at least one place and probably others from looking at
upstream bug reports.

I get a `test-caca` test failure w/ GCC trunk at just -O2 which prompted
me to look at this.

Bug: https://github.com/cacalabs/libcaca/issues/86
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James 2025-10-20 19:36:34 +01:00
parent 59ec895381
commit d4cec827f3
No known key found for this signature in database
GPG Key ID: 738409F520DF9190
2 changed files with 22 additions and 8 deletions

View File

@ -77,6 +77,14 @@ src_prepare() {
sed -i -e '/PKG_CHECK_MODULES/s:ftgl:dIsAbLe&:' configure.ac || die
fi
# fix docs install path, bug 543870#c14
sed -i "s/libcaca-dev/${PF}/g" doc/Makefile.am || die
default
eautoreconf
}
src_configure() {
if use imlib && ! use X; then
append-cflags -DX_DISPLAY_MISSING
fi
@ -87,11 +95,10 @@ src_prepare() {
# bug #601902, bug #825058
use ncurses && append-libs $($(tc-getPKG_CONFIG) --libs tinfow || die)
# fix docs install path, bug 543870#c14
sed -i "s/libcaca-dev/${PF}/g" doc/Makefile.am || die
# https://github.com/cacalabs/libcaca/issues/86
append-flags -fno-strict-overflow
default
eautoreconf
multilib-minimal_src_configure
}
multilib_src_configure() {

View File

@ -67,6 +67,14 @@ src_prepare() {
sed -i -e '/PKG_CHECK_MODULES/s:ftgl:dIsAbLe&:' configure.ac || die
fi
# fix docs install path, bug 543870#c14
sed -i "s/libcaca-dev/${PF}/g" doc/Makefile.am || die
default
eautoreconf
}
src_configure() {
if use imlib && ! use X; then
append-cflags -DX_DISPLAY_MISSING
fi
@ -77,11 +85,10 @@ src_prepare() {
# bug #601902, bug #825058
use ncurses && append-libs $($(tc-getPKG_CONFIG) --libs tinfow || die)
# fix docs install path, bug 543870#c14
sed -i "s/libcaca-dev/${PF}/g" doc/Makefile.am || die
# https://github.com/cacalabs/libcaca/issues/86
append-flags -fno-strict-overflow
default
eautoreconf
multilib-minimal_src_configure
}
multilib_src_configure() {