commit:     8af544b0b4207334ce24654032ef1ba0c04b4553
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Mon Nov 30 08:18:53 2020 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Mon Nov 30 08:18:58 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8af544b0

dev-vcs/mercurial-5.6: fix compilation on macOS using GCC

Package-Manager: Portage-3.0.9, Repoman-3.0.2
Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>

 dev-vcs/mercurial/mercurial-5.6.ebuild | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dev-vcs/mercurial/mercurial-5.6.ebuild 
b/dev-vcs/mercurial/mercurial-5.6.ebuild
index 2ee7d30d061..b8aef9cdbb7 100644
--- a/dev-vcs/mercurial/mercurial-5.6.ebuild
+++ b/dev-vcs/mercurial/mercurial-5.6.ebuild
@@ -149,6 +149,7 @@ python_prepare_all() {
        # fix up logic that won't work in Gentoo Prefix (also won't outside in
        # certain cases), bug #362891
        sed -i -e 's:xcodebuild:nocodebuild:' setup.py || die
+       sed -i -e 's/__APPLE__/__NO_APPLE__/g' mercurial/cext/osutil.c || die
        # Use absolute import for zstd
        sed -i -e 's/from \.* import zstd/import zstd/' \
                mercurial/utils/compression.py \

Reply via email to