Summary: | dev-util/cmake-3.11.0 fails due to Undefined symbols for architecture x86_64 "_LSOpenCFURLRef" | ||
---|---|---|---|
Product: | Gentoo/Alt | Reporter: | Askar Bektassov <askar.bektassov> |
Component: | Mac OSX | Assignee: | Gentoo KDE team <kde> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | henrique.rodrigues, kingjon3377, prefix |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | OS X | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Askar Bektassov
2018-04-01 12:53:50 UTC
@kde: is applying this change acceptible to you? Thanks @@ -123,6 +124,12 @@ cmake_src_test() { src_prepare() { cmake-utils_src_prepare + # disable Xcode hooks, bug #652134 + if [[ ${CHOST} == *-darwin* ]] ; then + sed -i -e 's/__APPLE__/__DISABLED_APPLE__/' \ + Source/cmGlobalXCodeGenerator.cxx || die + fi + # Add gcc libs to the default link paths sed -i \ -e "s|@GENTOO_PORTAGE_GCCLIBDIR@|${EPREFIX}/usr/${CHOST}/lib/|g" \ I confirm clang compiles well now. Thanks Fabian. (In reply to Askar Bektassov from comment #2) > I confirm clang compiles well now. Thanks Fabian. Sorry i meant cmake @kde team: please approve the fix from comment #1, this is broken on macOS systems, cmake is necessary for Clang, the main compiler on macOS. Thanks! The problem still exists on dev-util/cmake-3.11.1, although the issue can be promptly solved with the fix proposed by Fabian. (In reply to Fabian Groffen from comment #4) > @kde team: please approve the fix from comment #1, this is broken on macOS > systems, cmake is necessary for Clang, the main compiler on macOS. Thanks! Sure, feel free to push your fix. The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=72555480840ef0b506dceb74b92c7405fb225faf commit 72555480840ef0b506dceb74b92c7405fb225faf Author: Fabian Groffen <grobian@gentoo.org> AuthorDate: 2018-04-25 17:03:44 +0000 Commit: Fabian Groffen <grobian@gentoo.org> CommitDate: 2018-04-25 17:03:44 +0000 dev-util/cmake: fix compilation on Darwin, bug #652134 Closes: https://bugs.gentoo.org/652134 Package-Manager: Portage-2.3.24, Repoman-2.3.6 dev-util/cmake/cmake-3.11.0.ebuild | 9 ++++++++- dev-util/cmake/cmake-3.11.1.ebuild | 9 ++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) Is the workaround still needed in more recent CMake versions? (In reply to Rolf Eike Beer from comment #8) > Is the workaround still needed in more recent CMake versions? https://github.com/Kitware/CMake/blob/master/Source/cmGlobalXCodeGenerator.cxx#L40 Yes. |