Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 327503 - dev-libs/openssl is broken for all compilers not named 'gcc'!
Summary: dev-libs/openssl is broken for all compilers not named 'gcc'!
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All IRIX
: High major
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-08 16:22 UTC by Stuart Shelton
Modified: 2011-12-15 19:21 UTC (History)
0 users

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


Attachments
openssl-0.9.8o.ebuild.patch (openssl-0.9.8o.ebuild.patch,592 bytes, patch)
2010-07-08 16:27 UTC, Stuart Shelton
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Stuart Shelton 2010-07-08 16:22:27 UTC
openssl's "util/domd" script assumes that the compiler binary will always be named "gcc".  Otherwise, if invoked as anticipated by the developers, code will be mis-linked against a stub krb5.h and mass breakage ensues.

This was mitigated to a degree on IRIX by the fact that the native compiler bombed out due to a quirk of the incorrect invocation passed through by domd, and openssl would build (although not as it was designed to).  Having said this, openssl's build ignores *FLAGS variables in such a way that openssl couldn't be built with 'USE="gmp"' due to the path to libgmp not being included.

The correct solution is to remove the hard-coded 'gcc':

--- openssl-0.9.8o.ebuild 2010-07-04 10:01:44.000000000 +0100
+++ openssl-0.9.8o.ebuild 2010-07-08 17:09:57.292341000 +0100
@@ -32,6 +32,12 @@ src_unpack() {
        epatch "${FILESDIR}"/${PN}-0.9.8h-ldflags.patch #181438
        epatch "${FILESDIR}"/${PN}-0.9.8m-binutils.patch #289130
 
+       # fix thoroughly broken makedepend system
+       sed -i \
+               -e '/MAKEDEPEND/s:.\.\*gcc\$.:".*\${CC}$":' \
+               util/domd \
+               || die
+
        # disable fips in the build
        # make sure the man pages are suffixed #302165
        # don't bother building man pages if they're disabled
Comment 1 Stuart Shelton 2010-07-08 16:27:33 UTC
Created attachment 238041 [details, diff]
openssl-0.9.8o.ebuild.patch
Comment 2 Fabian Groffen gentoo-dev 2011-12-15 19:21:48 UTC
We are sorry to close this bug.  We lack the man-power and devotion to support mips-irix in the tree.