1 |
On Wed, Jan 15, 2014 at 03:33:28PM -0500, Jason Cooper wrote: |
2 |
> On Tue, Jan 14, 2014 at 05:26:22PM -0500, Jason Cooper wrote: |
3 |
> > All, |
4 |
> > |
5 |
> > I like this little tool, and decided to try building it on my prefix |
6 |
> > install on Mavericks. Basically, I copied the ebuild to my local |
7 |
> > portage tree, added ~x64-macos, and tried to build. Logs attached |
8 |
> > |
9 |
> > Any pointers appreciated. |
10 |
> |
11 |
> Ok, after talking to someone in my office who is much smarter than I am |
12 |
> (and has experience building code on OSX) I have the following patch: |
13 |
|
14 |
I'm seeking comments here before opening a bug since there is still the |
15 |
warning: |
16 |
|
17 |
* QA Notice: Found .so dynamic libraries on Darwin: |
18 |
* Users/j/gentoo/usr/lib/ccze/apm.so |
19 |
* Users/j/gentoo/usr/lib/ccze/distcc.so |
20 |
* Users/j/gentoo/usr/lib/ccze/exim.so |
21 |
* Users/j/gentoo/usr/lib/ccze/fetchmail.so |
22 |
* Users/j/gentoo/usr/lib/ccze/ftpstats.so |
23 |
* Users/j/gentoo/usr/lib/ccze/httpd.so |
24 |
* Users/j/gentoo/usr/lib/ccze/icecast.so |
25 |
* Users/j/gentoo/usr/lib/ccze/oops.so |
26 |
* Users/j/gentoo/usr/lib/ccze/php.so |
27 |
* Users/j/gentoo/usr/lib/ccze/postfix.so |
28 |
* Users/j/gentoo/usr/lib/ccze/procmail.so |
29 |
* Users/j/gentoo/usr/lib/ccze/proftpd.so |
30 |
* Users/j/gentoo/usr/lib/ccze/squid.so |
31 |
* Users/j/gentoo/usr/lib/ccze/sulog.so |
32 |
* Users/j/gentoo/usr/lib/ccze/super.so |
33 |
* Users/j/gentoo/usr/lib/ccze/syslog.so |
34 |
* Users/j/gentoo/usr/lib/ccze/ulogd.so |
35 |
* Users/j/gentoo/usr/lib/ccze/vsftpd.so |
36 |
* Users/j/gentoo/usr/lib/ccze/xferlog.so |
37 |
|
38 |
But I wanted advice on the approach before doing a full-blown patch |
39 |
since the .so extension is hard-coded into ccze. |
40 |
|
41 |
thx, |
42 |
|
43 |
Jason. |
44 |
|
45 |
> ----------->8----------------- |
46 |
> --- ccze-0.2.1-r3.ebuild.orig 2012-04-01 06:02:50.000000000 -0400 |
47 |
> +++ ccze-0.2.1-r3.ebuild 2014-01-15 15:28:17.000000000 -0500 |
48 |
> @@ -14,7 +14,7 @@ |
49 |
> |
50 |
> LICENSE="GPL-2" |
51 |
> SLOT="0" |
52 |
> -KEYWORDS="amd64 ppc x86 ~x86-fbsd" |
53 |
> +KEYWORDS="amd64 ppc x86 ~x86-fbsd ~x64-macos" |
54 |
> IUSE="" |
55 |
> |
56 |
> DEPEND="dev-libs/libpcre |
57 |
> @@ -36,6 +36,12 @@ |
58 |
> sed -e '/AC_CHECK_TYPE(error_t, int)/d' \ |
59 |
> -i configure.ac || die |
60 |
> |
61 |
> + # macos dylib fix |
62 |
> + if [[ ${CHOST} == *-darwin* ]] ; then |
63 |
> + sed -e "s:-shared$:-dynamiclib -undefined suppress -flat_namespace -install_name ${EPREFIX}/usr/lib/ccze/\$@:" \ |
64 |
> + -i src/Makefile.in || die |
65 |
> + fi |
66 |
> + |
67 |
> eautoreconf |
68 |
> |
69 |
> ht_fix_file Rules.mk.in |
70 |
> |