commit:     bb04e778c624c414ac249878369df4efcdd2f0fb
Author:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
AuthorDate: Fri May 20 07:11:35 2022 +0000
Commit:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
CommitDate: Sun May 22 05:41:51 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bb04e778

eclass/ruby-fakegem.eclass: depend on virtual/pkgconfig

Many C extensions depend on pkgconfig during their configure phase and
this is easy to miss in the ebuild. Handle this in the eclass instead
even though the dependency will not be needed for all extensions.

Closes: https://bugs.gentoo.org/845393
Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>

 eclass/ruby-fakegem.eclass | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/eclass/ruby-fakegem.eclass b/eclass/ruby-fakegem.eclass
index 358fff1be753..6f561f4f6a2f 100644
--- a/eclass/ruby-fakegem.eclass
+++ b/eclass/ruby-fakegem.eclass
@@ -210,6 +210,11 @@ case ${EAPI} in
                ;;
 esac
 
+# Many (but not all) extensions use pkgconfig in src_configure.
+if [[ ${#RUBY_FAKEGEM_EXTENSIONS[@]} -gt 0 ]]; then
+       BDEPEND+=" virtual/pkgconfig "
+fi
+
 # @FUNCTION: ruby_fakegem_gemsdir
 # @RETURN: Returns the gem data directory
 # @DESCRIPTION:

Reply via email to