diff options
author | jlam <jlam@pkgsrc.org> | 2004-12-10 23:12:47 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2004-12-10 23:12:47 +0000 |
commit | 4c32e04068003460e538b5397a1ef90ecbfa12a2 (patch) | |
tree | 02cebb822ab96afeb80e79f406a2b2498e3b3ed3 /lang | |
parent | d1fa6412e361442cfb6e90e503dcb89bad8e9240 (diff) | |
download | pkgsrc-4c32e04068003460e538b5397a1ef90ecbfa12a2.tar.gz |
On VAX, feeding a base "NaN" to nawk causes nawk to core dump since
it tries to interpret it as a number, which causes an FP exception.
Fix this by replacing "NaN" with "*NaN*" which hides the problem.
This makes perl Configure and build correctly on NetBSD-2.0/vax. Fix
provided by John Klos in private email.
Diffstat (limited to 'lang')
-rw-r--r-- | lang/perl58/hacks.mk | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/lang/perl58/hacks.mk b/lang/perl58/hacks.mk index 6ec987e9e4d..ec23b7d29f8 100644 --- a/lang/perl58/hacks.mk +++ b/lang/perl58/hacks.mk @@ -1,4 +1,4 @@ -# $NetBSD: hacks.mk,v 1.3 2004/11/14 08:00:14 jlam Exp $ +# $NetBSD: hacks.mk,v 1.4 2004/12/10 23:12:47 jlam Exp $ .include "../../mk/compiler.mk" @@ -34,3 +34,19 @@ CFLAGS+= -DDEBUGGING -g -msoft-quad-float -O2 PKG_HACKS+= powerpc-codegen BUILDLINK_TRANSFORM+= rm:-O[0-9]* .endif + +### [Fri Dec 10 18:09:51 EST 2004 : jlam] +### On VAX, feeding a base "NaN" to nawk causes nawk to core dump since +### it tries to interpret it as a number, which causes an FP exception. +### Modify files that pass through nawk to not have bare "NaN"s. +### +.if !empty(MACHINE_PLATFORM:M*-*-vax) +PKG_HACKS+= NaN-vax-exception +.PHONY: NaN-vax-exception +pre-configure: NaN-vax-exception +NaN-vax-exception: + cd ${WRKSRC}; for file in MANIFEST; do \ + ${MV} $$file $$file.NaN; \ + ${SED} -e "s,NaN,*NaN*,g" $$file.NaN > $$file; \ + done +.endif |