commit:     a434ee9548bdb12437df73f007b247d946bf44ac
Author:     matoro <matoro <AT> users <DOT> noreply <DOT> github <DOT> com>
AuthorDate: Wed Jun 29 20:15:15 2022 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Thu Jun 30 07:51:06 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a434ee95

net-im/pidgin: add IUSE=test with dev-libs/check dep

It turns out that if you "make check" without dev-libs/check installed,
rather than erroring it just runs and empty test suite that
automatically passes.  Logic here:
https://keep.imfreedom.org/pidgin/pidgin/file/v2.14.10/configure.ac#l2456
You can actually see that Debian made the same mistake:
https://buildd.debian.org/status/fetch.php?pkg=pidgin&arch=amd64&ver=2.14.10-1&stamp=1654236435&raw=0

Bug: https://bugs.gentoo.org/848579
Closes: https://github.com/gentoo/gentoo/pull/26155
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 net-im/pidgin/pidgin-2.14.10.ebuild | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/net-im/pidgin/pidgin-2.14.10.ebuild 
b/net-im/pidgin/pidgin-2.14.10.ebuild
index e1c4288370b3..2b6b59d5482c 100644
--- a/net-im/pidgin/pidgin-2.14.10.ebuild
+++ b/net-im/pidgin/pidgin-2.14.10.ebuild
@@ -19,7 +19,8 @@ SLOT="0/2" # libpurple version
 KEYWORDS="~alpha amd64 arm arm64 ~ia64 ~ppc ppc64 ~riscv ~sparc x86 
~amd64-linux ~x86-linux"
 IUSE="aqua dbus debug doc eds gadu gnutls groupwise +gstreamer +gtk idn
 meanwhile ncurses networkmanager nls perl pie prediction python sasl spell tcl
-tk v4l +xscreensaver zephyr zeroconf"
+test tk v4l +xscreensaver zephyr zeroconf"
+RESTRICT="!test? ( test )"
 
 # dbus requires python to generate C code for dbus bindings (thus DEPEND only).
 # finch uses libgnt that links with libpython - {R,}DEPEND. But still there is
@@ -90,6 +91,7 @@ BDEPEND="
        virtual/pkgconfig
        doc? ( app-doc/doxygen )
        !gtk? ( nls? ( ${NLS_DEPEND} ) )
+       test? ( >=dev-libs/check-0.9.4 )
 "
 
 DOCS=( AUTHORS HACKING NEWS README ChangeLog )

Reply via email to