Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 97243 - readline-5.0-r2 compiles on OSX Tiger with a small patch
Summary: readline-5.0-r2 compiles on OSX Tiger with a small patch
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Mac OSX (show other bugs)
Hardware: PPC64 OS X
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-27 12:39 UTC by Fabian Groffen
Modified: 2006-04-12 10:53 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
readline-5.0-r2 ebuild patch (readline-5.0-r2.ebuild.diff,1.08 KB, patch)
2005-06-27 12:43 UTC, Fabian Groffen
Details | Diff
patch which enables readline to compile on OS X (readline-5.0-macos.patch,699 bytes, patch)
2005-06-27 12:45 UTC, Fabian Groffen
Details | Diff
readline-5.0-r2.ebuild.patch (readline-5.0-r2.ebuild.patch,1.00 KB, patch)
2005-08-27 12:15 UTC, Kito (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Fabian Groffen gentoo-dev 2005-06-27 12:39:10 UTC
readline-5.0 compiles on OSX Tiger after applying a small patch to get rid of a
"powerpc-apple-darwin8-gcc-4.0.0: -compatibility_version only allowed with
-dynamiclib"
message

Reproducible: Always
Steps to Reproduce:
1. cd /usr/portage/sys-libs/readline
2. ebuild readline-5.0-r2.ebuild compile
3.

Actual Results:  
compilation died with the message:
powerpc-apple-darwin8-gcc-4.0.0: -compatibility_version only allowed with
-dynamiclib


Expected Results:  
finish compiling without errors

supplied patches allow compilation to go fine and the files to actually be
usable (32-bits only)
Comment 1 Fabian Groffen gentoo-dev 2005-06-27 12:43:34 UTC
Created attachment 62089 [details, diff]
readline-5.0-r2 ebuild patch

patch which enables osx patch and elibtoolize
Comment 2 Fabian Groffen gentoo-dev 2005-06-27 12:45:25 UTC
Created attachment 62092 [details, diff]
patch which enables readline to compile on OS X

located in files, this patch fixes a shared object config file to include
-dynamiclib where -compatibility_version is used
Comment 3 Fabian Groffen gentoo-dev 2005-06-27 12:49:59 UTC
readline-5.0-r2.ebuild has no USE flags, nor does it use any global USE flags.
Comment 4 Lina Pezzella (RETIRED) gentoo-dev 2005-06-27 13:20:39 UTC
Is this a -collision-protect package? I was under the impression that OSX had a gimped version of readline
already. If this is a -collision-protect package, did you just build it in /var/tmp/portage, or did you
actually overwrite Apple's stuff and test it? (Note - no one requires you to do that, I just need to know for
keywording purposes).
Comment 5 Fabian Groffen gentoo-dev 2005-06-27 13:24:35 UTC
yes.  This package installs two files that collide with Apples files.  I thought
I needed readline, but probably could have inserted a system.provided line as
well.  Anywayz, I indeed turned off collision protect for this package.  Life
would get unpleasant but not unbareable if it would break... my risk here.
Comment 6 SpanKY gentoo-dev 2005-08-27 11:55:56 UTC
Comment on attachment 62092 [details, diff]
patch which enables readline to compile on OS X

patch is wrong
Comment 7 Kito (RETIRED) gentoo-dev 2005-08-27 12:15:35 UTC
Created attachment 67005 [details, diff]
readline-5.0-r2.ebuild.patch

Skips all the silly /lib and ldscript hackery for userland_Darwin. Not sure if
you want to use the use-expanded var as a conditional or not...
Comment 8 SpanKY gentoo-dev 2005-08-28 00:02:32 UTC
i guess the building issue was resolved with Bug 99143 ?  if so, your proposed
diff looks good, feel free to apply it
Comment 9 Fabian Groffen gentoo-dev 2005-09-10 08:14:20 UTC
kito's patch seems not to address the ppc-macos build problem, which my
attachment #62092 [details, diff] addressed:

gcc version 4.0.0 (Apple Computer, Inc. build 5026)
powerpc-apple-darwin8-gcc-4.0.0: -compatibility_version only allowed with
-dynamiclib
make[2]: *** [libreadline.5.0.dylib] Error 1
make[1]: *** [supported] Error 2
make: [shared] Error 2 (ignored)

(note, although gcc fails, the ebuild just continues, because make doesn't fail)
Comment 10 Kito (RETIRED) gentoo-dev 2005-09-10 13:41:51 UTC
Ok, should be all fixed up inCVS. Fabians errors were a result of bad CHOST being set.