Gentoo Archives: gentoo-alt

From: Jason Cooper <gentoo@××××××××××.net>
To: gentoo-alt@l.g.o
Subject: Re: [gentoo-alt] ccze-0.2.1-r3 fails to emerge, linker error
Date: Wed, 15 Jan 2014 20:33:32
Message-Id: 20140115203328.GB29184@titan.lakedaemon.net
In Reply to: [gentoo-alt] ccze-0.2.1-r3 fails to emerge, linker error by Jason Cooper
1 On Tue, Jan 14, 2014 at 05:26:22PM -0500, Jason Cooper wrote:
2 > All,
3 >
4 > I like this little tool, and decided to try building it on my prefix
5 > install on Mavericks. Basically, I copied the ebuild to my local
6 > portage tree, added ~x64-macos, and tried to build. Logs attached
7 >
8 > Any pointers appreciated.
9
10 Ok, after talking to someone in my office who is much smarter than I am
11 (and has experience building code on OSX) I have the following patch:
12
13 ----------->8-----------------
14 --- ccze-0.2.1-r3.ebuild.orig 2012-04-01 06:02:50.000000000 -0400
15 +++ ccze-0.2.1-r3.ebuild 2014-01-15 15:28:17.000000000 -0500
16 @@ -14,7 +14,7 @@
17
18 LICENSE="GPL-2"
19 SLOT="0"
20 -KEYWORDS="amd64 ppc x86 ~x86-fbsd"
21 +KEYWORDS="amd64 ppc x86 ~x86-fbsd ~x64-macos"
22 IUSE=""
23
24 DEPEND="dev-libs/libpcre
25 @@ -36,6 +36,12 @@
26 sed -e '/AC_CHECK_TYPE(error_t, int)/d' \
27 -i configure.ac || die
28
29 + # macos dylib fix
30 + if [[ ${CHOST} == *-darwin* ]] ; then
31 + sed -e "s:-shared$:-dynamiclib -undefined suppress -flat_namespace -install_name ${EPREFIX}/usr/lib/ccze/\$@:" \
32 + -i src/Makefile.in || die
33 + fi
34 +
35 eautoreconf
36
37 ht_fix_file Rules.mk.in

Replies

Subject Author
Re: [gentoo-alt] ccze-0.2.1-r3 fails to emerge, linker error Jason Cooper <gentoo@××××××××××.net>