Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 279306

Summary: lrzsz-0.12.20-r3 fixes for IRIX
Product: Gentoo/Alt Reporter: Stuart Shelton <srcshelton>
Component: Prefix SupportAssignee: Gentoo Prefix <prefix>
Status: RESOLVED WONTFIX    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: IRIX   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: lrzsz-0.12.20-irix.patch

Description Stuart Shelton 2009-07-27 10:54:15 UTC
lrzsz is a minicom dependancy.  The ebuild changes required are:

--- lrzsz-0.12.20-r3.ebuild
+++ lrzsz-0.12.20-r3.ebuild
@@ -21,6 +21,7 @@ RDEPEND="${DEPEND}"
 src_prepare() {
        epatch "${FILESDIR}"/${PN}-autotools.patch
        epatch "${FILESDIR}"/${PN}-implicit-decl.patch
+       epatch "${FILESDIR}"/${PN}-0.12.20-irix.patch
 
        # automake is unhappy if this is missing
        >> config.rpath
@@ -34,7 +35,11 @@ src_prepare() {
 
 src_configure() {
        tc-export CC
-       append-flags -Wstrict-prototypes
+       if [ ${CHOST} != *-irix* ]; then
+               append-flags -Wstrict-prototypes
+       else
+               export ac_cv_c_inline=no
+       fi
        econf $(use_enable nls) || die "econf failed"
 }
 
@@ -46,7 +51,7 @@ src_test() {
 
 src_install() {
        emake \
-               DESTDIR="${ED}" \
+               DESTDIR="${D}" \
                install || die "make install failed"
 
        local x
Comment 1 Stuart Shelton 2009-07-27 10:59:14 UTC
Created attachment 199324 [details, diff]
lrzsz-0.12.20-irix.patch

lrzsz-0.12.20 patch to allow building on IRIX
Comment 2 Fabian Groffen gentoo-dev 2009-07-31 15:57:31 UTC
hmmm, would it be possible to keep the inline to use some define or something?

#ifdef __sgi
#define inline
#endif
Comment 3 Fabian Groffen gentoo-dev 2011-12-15 18:14:08 UTC
We are sorry to close this bug.  We lack the man-power and devotion to support mips-irix in the tree.