Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 275486 - net-libs/gnutls-2.9.x requires source and ebuild patches for IRIX
Summary: net-libs/gnutls-2.9.x requires source and ebuild patches for IRIX
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All IRIX
: High normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-26 13:45 UTC by Stuart Shelton
Modified: 2009-06-28 12:21 UTC (History)
0 users

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


Attachments
Patch to allow gnutls to build with MIPSpro compilers (gnutls-2.9.0-irix.patch,2.87 KB, patch)
2009-06-26 15:02 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 2009-06-26 13:45:54 UTC
The interix patch no longer seems to apply, and IRIX MIPSpro CC can't make use of c99 header files, so the ebuild changes required are:

--- gnutls-2.9.1.ebuild
+++ gnutls-2.9.1.ebuild
@@ -26,7 +26,7 @@
 # GPL-3 for the gnutls-extras library and LGPL for the gnutls library.
 LICENSE="LGPL-2.1 GPL-3"
 SLOT="0"
-KEYWORDS="~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x86-solaris"
+KEYWORDS="~mips-irix ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x86-solaris"
 IUSE="bindist +cxx doc examples guile lzo nls zlib"
 
 RDEPEND="dev-libs/libgpg-error
@@ -54,7 +54,8 @@
 src_prepare() {
        sed -e 's/imagesdir = $(infodir)/imagesdir = $(htmldir)/' -i doc/Makefile.am
 
-       epatch "${FILESDIR}"/${PN}-2.5.3-interix.patch
+       #epatch "${FILESDIR}"/${PN}-2.5.3-interix.patch
+       [[ ${CHOST} == *-irix* ]] && epatch "${FILESDIR}"/${PN}-2.9.0-irix.patch
 
        local dir
        for dir in m4 lib/m4 libextra/m4; do
@@ -72,6 +73,9 @@
 
 src_configure() {
        local myconf
+
+       use cxx && [[ ${CHOST} == *-irix* ]] && export ac_cv_header_stdint_h=no
+
        use bindist && myconf="--without-lzo" || myconf="$(use_with lzo)"
        econf --htmldir="${EPREFIX}"/usr/share/doc/${P}/html \
                $(use_enable cxx) \
Comment 1 Stuart Shelton 2009-06-26 15:02:41 UTC
Created attachment 195820 [details, diff]
Patch to allow gnutls to build with MIPSpro compilers


MIPSpro doesn't like much of the pointer-arithmetic that GCC will accept...

(This patch should be 64-bit safe)
Comment 2 Fabian Groffen gentoo-dev 2009-06-28 12:21:47 UTC
in the tree, thanks