Skip to content

Commit

Permalink
net-libs/libnetconf2: mark as LTO-unsafe
Browse files Browse the repository at this point in the history
It fails tests which seems like a promising sign that something
unpromising happened.

Closes: https://bugs.gentoo.org/877449
Signed-off-by: Eli Schwartz <[email protected]>
Signed-off-by: Sam James <[email protected]>
  • Loading branch information
eli-schwartz authored and thesamesam committed Mar 26, 2024
1 parent 50c8b13 commit 9dc2b0c
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion net-libs/libnetconf2/libnetconf2-2.1.31.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

EAPI=8

inherit cmake
inherit cmake flag-o-matic

DESCRIPTION="C library for building NETCONF servers and clients"
HOMEPAGE="https://github.com/CESNET/libnetconf2"
Expand All @@ -27,6 +27,15 @@ BDEPEND="
doc? ( app-text/doxygen[dot] )"

src_configure() {
# fails tests, but only with LTO.
# [ ERROR ] --- 0 != 0xffffffffffffffff
# [ LINE ] --- /var/tmp/portage/net-libs/libnetconf2-2.1.31/work/libnetconf2-2.1.31/tests/client/test_client_ssh.c:716: error: Failure!
# [ FAILED ] test_nc_client_ssh_ch_add_bind_listen
#
# https://bugs.gentoo.org/877449
# https://github.com/CESNET/libnetconf2/issues/471
filter-lto

local mycmakeargs=(
-DENABLE_TESTS=$(usex test)
-DENABLE_VALGRIND_TESTS=OFF
Expand Down

0 comments on commit 9dc2b0c

Please sign in to comment.