Gentoo Archives: gentoo-alt

From: Michael Weiser <michael@×××××××××××××××.net>
To: gentoo-alt@l.g.o
Subject: Re: [gentoo-alt] [PREFIX] Darwin/macOS breakage on libreadline update
Date: Mon, 14 Jan 2019 15:00:53
Message-Id: 20190114144801.GA23113@weiser.dinsnail.net
In Reply to: [gentoo-alt] [PREFIX] Darwin/macOS breakage on libreadline update by Fabian Groffen
1 Hi Fabian,
2
3 reading up after the holdidays. :)
4
5 On Fri, Dec 28, 2018 at 11:07:52AM +0100, Fabian Groffen wrote:
6
7 > For a reason yet unclear to me, on Darwin preserving the library
8 > libreadline.6.dylib fails causing the Prefix to break completely.
9
10 Have you applied a fix since Dec 28th? I updated my prefix yesterday and
11 libreadline.6.dylib was preserved without problems and still is, pending
12 my fixing clisp:
13
14 !!! existing preserved libs:
15 [...]
16 >>> package: sys-libs/readline-7.0_p5
17 * - /usr/local/gentoo/usr/lib/libreadline.6.0.3.dylib
18 * - /usr/local/gentoo/usr/lib/libreadline.6.dylib
19 * used by /usr/local/gentoo/usr/lib/clisp-2.49/base/lisp.run (dev-lisp/clisp-2.49-r8)
20 * used by /usr/local/gentoo/usr/lib/clisp-2.49/full/lisp.run (dev-lisp/clisp-2.49-r8)
21
22 > Unfortunately, clang still doesn't compile out of the box.
23
24 I recompiled 6.0.1 and updated to 7.0.1 without problems, probably
25 because you've added Michal's patch to the prefix tree.
26
27 I did have to apply a small patch to llvm-libunwind, however, to compile
28 fat to match libc++ and libc++abi:
29
30 --- sys-libs/llvm-libunwind/llvm-libunwind-7.0.1.ebuild 2018-12-20 13:56:00.000000000 +0100
31 +++ sys-libs/llvm-libunwind/llvm-libunwind-7.0.1.ebuild 2019-01-14 15:44:45.000000000 +0100
32 @@ -81,6 +81,10 @@
33 )
34 fi
35
36 + # make sure we build multilib on OSX, because llvm insists on
37 + # building multilib too
38 + [[ ${CHOST} == *86*-darwin* ]] && mycmakeargs+=( -DCMAKE_OSX_ARCHITECTURES="i386;x86_64" )
39 +
40 cmake-utils_src_configure
41 }
42
43 Found the elegant CMAKE_OSX_ARCHITECTURES construct by accident which
44 seems more elegant than "append-flags -arch i386 -arch x86_64" to me.
45 --
46 Thanks,
47 Michael

Replies

Subject Author
Re: [gentoo-alt] [PREFIX] Darwin/macOS breakage on libreadline update Fabian Groffen <grobian@g.o>