1 |
Many C extensions depend on pkgconfig during their configure phase and |
2 |
this is easy to mis in the ebuild. Handle this in the eclass instead |
3 |
even though the dependency will not be needed for all extensions. |
4 |
|
5 |
Closes: https://bugs.gentoo.org/845393 |
6 |
Signed-off-by: Hans de Graaff <graaff@g.o> |
7 |
--- |
8 |
eclass/ruby-fakegem.eclass | 5 +++++ |
9 |
1 file changed, 5 insertions(+) |
10 |
|
11 |
diff --git a/eclass/ruby-fakegem.eclass b/eclass/ruby-fakegem.eclass |
12 |
index 358fff1be753..754b48f82fa9 100644 |
13 |
--- a/eclass/ruby-fakegem.eclass |
14 |
+++ b/eclass/ruby-fakegem.eclass |
15 |
@@ -210,6 +210,11 @@ case ${EAPI} in |
16 |
;; |
17 |
esac |
18 |
|
19 |
+# Many (but not all) extensions use pkgconfig in src_configure. |
20 |
+if [ ${#RUBY_FAKEGEM_EXTENSIONS[@]} -ge 1 ]; then |
21 |
+ BDEPEND+=" virtual/pkgconfig " |
22 |
+fi |
23 |
+ |
24 |
# @FUNCTION: ruby_fakegem_gemsdir |
25 |
# @RETURN: Returns the gem data directory |
26 |
# @DESCRIPTION: |
27 |
-- |
28 |
2.35.1 |