The new x265-3.5-r5-cpp-std.patch disabled setting c++98 or c++11 as versions.
This made newer compilers default to c++17 and thus `register` a unused and
reserved keyword.
While on it fix some obvious things that might cause problems:
one shadowed variable
use std::abs in place of abs so we don't accidentally truncate values
use boolean instead of bitwise comparison when comparing bool
Move ENABLE_CLI=OFF for non native multilib builds to make it clearer.
Don't set ENABLE_TESTS=no on platforms where we set ENABLE_ASSEMBLY=OFF, because
it requires it to be ON and this the option is never created.
Closes: https://bugs.gentoo.org/938515
Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/38289
Signed-off-by: Sam James <sam@gentoo.org>
Done somewhat blindly but I ran up to compile phase (couldn't get further
because of a linker issue) and also compared slowly with newer glibc
ebuilds.
Signed-off-by: Sam James <sam@gentoo.org>
Test phase will errors out starting with commit
https://github.com/sqlite/sqlite/commit/21363ac78df6751655c33372a7277512531b9570
as we set HAVE_TCL to 0 in the test phase and with the added check the
build aborts regardless of the fact that 'tclConfig.sh' was found
by the configure script previously. We can avoid setting the variable
manually and the build will suceed with the intended behavior kept.
Signed-off-by: Jakov Smolić <jsmolic@gentoo.org>
julia has many problems, at many levels. Among these, it fails to build
with LTO due to various errors somewhat more inventive than the norm
when it comes to LTO issues. Iteration time on building and testing it
is, of course, horrifically bad as it bundles its own private LLVM.
I won't even try to run the testsuite. I tried that years ago on Arch.
"Flaky" doesn't even begin to describe it -- an actual passing test
result sometimes took me 7 builds in a row, and one is never sure why it
actually passed for once. "Fortunately", the ebuild restricts tests
anyway. Needless to say, who knows if it actually works.
It seems to build. Probably. At least better than when -flto is used, so
that's a win. On which note, it is worth pointing out: the ebuild
*tried* to filter lto, but didn't do so early enough. This change simply
lifts the filter early enough that it runs before a sed inserts CFLAGS
into a Makefile, so that the filter actually takes effect.
Bug NOT reported upstream. Julia is a language of all time, and
reporting bugs gets you nowhere except the receiving end of a thorough
gaslighting. I do not volunteer for this. The software is most likely
broken (LTO warnings don't indicate a flawless codebase) but I simply
don't care -- it's not my problem if this programming language is
broken, as long as it isn't an obstacle to other, more useful packages,
being safe to build by default with LTO enabled in make.conf.
Closes: https://bugs.gentoo.org/855602
Signed-off-by: Eli Schwartz <eschwartz@gentoo.org>