net-nntp/pan: correct test restriction, relax clang linking

Am aware of https://wiki.gentoo.org/wiki/Project:Quality_Assurance/-Wl,-z,defs_and_-Wl,--no-allow-shlib-undefined

Will try to get this properly fixed soon, workaround now for clang users.

Bug: https://bugs.gentoo.org/933860
Signed-off-by: Joe Kappus <joe@wt.gd>
This commit is contained in:
Joe Kappus 2024-06-10 02:28:03 -04:00
parent 5b12513a81
commit f6942cfedb
No known key found for this signature in database
GPG Key ID: 4612DE5F4CD18C3B

View File

@ -2,7 +2,7 @@
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake gnome2
inherit cmake gnome2 toolchain-funcs
DESCRIPTION="A newsreader for GNOME"
HOMEPAGE="https://gitlab.gnome.org/GNOME/pan/"
@ -14,6 +14,8 @@ SLOT="0"
KEYWORDS="~amd64 ~arm64 ~x86"
IUSE="dbus gnome-keyring libnotify spell ssl"
# currently broken due to cmake migration
RESTRICT="test"
DEPEND="
>=dev-libs/glib-2.26:2
@ -42,6 +44,11 @@ BDEPEND="
src_prepare() {
cmake_src_prepare
# Relax linker restriction on clang. Not ideal, but it's this or block clang.
if tc-is-clang; then
append-ldflags "-Wl,--allow-shlib-undefined"
fi
}
src_configure() {
@ -66,10 +73,4 @@ src_install() {
dolib.so "${BUILD_DIR}/pan/tasks/libtasks.so"
dolib.so "${BUILD_DIR}/pan/usenet-utils/libusenet-utils.so"
}
src_test() {
# not doing tests. Bug #933860
einfo "Skipping tests..."
}