Subject: pkg/25147: pkgsrc on irix, perl5 / perl58 do not build with (freeware) gcc
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <v.oostveen@hccnet.nl>
List: pkgsrc-bugs
Date: 04/12/2004 00:58:13
>Number:         25147
>Category:       pkg
>Synopsis:       pkgsrc on irix, perl5 / perl58 do not build with (freeware) gcc
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Apr 12 00:59:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Bas van Oostveen
>Release:        pkgsrc on irix 6.5.20
>Organization:
>Environment:
IRIX washu 6.5 04091958 IP32
(6.5.20)
>Description:
pkgsrc/lang/perl5 and pkgsrc/lang/perl58 do not build on Irix 6.5.20
with the gcc3 freeware compiler installed.

the build checks for 32 or 64 bits abi, but forgets that the gcc command line options are unsupported by gcc. (so shouldn't be there)

in short see fix below ;)

>How-To-Repeat:

>Fix:
Index: Makefile
===================================================================
RCS file: /net/source/NetBSD/cvsup/pkgsrc/lang/perl58/Makefile,v
retrieving revision 1.39
diff -r1.39 Makefile
81a82
> .include "../../mk/compiler.mk"
86c87,89
< .  if ${ABI} == "32"
---
> .  if ${PKGSRC_COMPILER} == "gcc"
> PERL5_CC=               ${CC:T}
> .  elif ${ABI} == "32"
170c173
< .include "../../mk/compiler.mk"
---
> #.include "../../mk/compiler.mk"

>Release-Note:
>Audit-Trail:
>Unformatted: