commit:     01f57e5d8f4a5a84b1282d76170799d62f7c899c
Author:     Dave Hughes <davidhughes205 <AT> gmail <DOT> com>
AuthorDate: Thu Apr 29 19:27:21 2021 +0000
Commit:     Dave Hughes <davidhughes205 <AT> gmail <DOT> com>
CommitDate: Thu Apr 29 19:27:21 2021 +0000
URL:        https://gitweb.gentoo.org/proj/musl.git/commit/?id=01f57e5d

dev-libs/libgamin: move patch behind elibc_musl

Package-Manager: Portage-3.0.18, Repoman-3.0.3
Signed-off-by: Dave Hughes <davidhughes205 <AT> gmail.com>

 dev-libs/libgamin/libgamin-0.1.10-r6.ebuild | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/dev-libs/libgamin/libgamin-0.1.10-r6.ebuild 
b/dev-libs/libgamin/libgamin-0.1.10-r6.ebuild
index 74ec6d9..f8315d4 100644
--- a/dev-libs/libgamin/libgamin-0.1.10-r6.ebuild
+++ b/dev-libs/libgamin/libgamin-0.1.10-r6.ebuild
@@ -59,8 +59,10 @@ src_prepare() {
        # Fix possible server deadlock in ih_sub_cancel, upstream bug #667230
        epatch "${FILESDIR}/${PN}-0.1.10-deadlock.patch"
 
-        # Fix build on musl
-        epatch "${FILESDIR}"/${PN}-0.1.10-fix-pthread-mutex.patch
+       # Fix build on musl
+       if use elibc_musl ; then
+               epatch "${FILESDIR}"/${PN}-0.1.10-fix-pthread-mutex.patch
+       fi
 
        # Drop DEPRECATED flags
        sed -i -e 's:-DG_DISABLE_DEPRECATED:$(NULL):g' server/Makefile.am || die

Reply via email to