commit:     81a7a1b371526581bcc6d5671c8952d5a412ea57
Author:     Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
AuthorDate: Tue Dec 31 06:23:46 2019 +0000
Commit:     Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
CommitDate: Tue Dec 31 06:30:56 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=81a7a1b3

sys-apps/ripgrep: allow building on musl

Package-Manager: Portage-2.3.84, Repoman-2.3.20
Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org>

 sys-apps/ripgrep/ripgrep-11.0.2.ebuild | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/sys-apps/ripgrep/ripgrep-11.0.2.ebuild 
b/sys-apps/ripgrep/ripgrep-11.0.2.ebuild
index fb7f5349baa..b01fadb1650 100644
--- a/sys-apps/ripgrep/ripgrep-11.0.2.ebuild
+++ b/sys-apps/ripgrep/ripgrep-11.0.2.ebuild
@@ -95,6 +95,9 @@ BDEPEND="${RDEPEND}
 QA_FLAGS_IGNORED="usr/bin/rg"
 
 src_compile() {
+       # allow building on musl with dynamic linking support
+       # https://github.com/BurntSushi/rust-pcre2/issues/7
+       use elibc_musl && export PCRE2_SYS_STATIC=0
        cargo_src_compile $(usex pcre "--features pcre2" "")
 }
 

Reply via email to