Subject: pkg/4990: perl package doesn't install identify ${MACHINE_ARCH}
To: None <gnats-bugs@gnats.netbsd.org>
From: Johnny C. Lam <lamj@stat.cmu.edu>
List: netbsd-bugs
Date: 02/14/1998 05:03:58
>Number:         4990
>Category:       pkg
>Synopsis:       perl package doesn't install identify ${MACHINE_ARCH}
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Feb 14 02:05:03 1998
>Last-Modified:
>Originator:     Johnny C. Lam
>Organization:
>Release:        1.3B
>Environment:
System: NetBSD deepthought 1.3B NetBSD 1.3B (DEEPTHOUGHT) #1: Thu Jan 22 17:27:08 EST 1998 toor@deepthought:/usr/local/src/sys/arch/mac68k/compile/DEEPTHOUGHT mac68k


>Description:
	perl's Configure script uses uname to identify the machine architecture.
>How-To-Repeat:
	On a m68k machine, do `make configure' in the perl package.
>Fix:
	Add a flag to CONFIGURE_ARGS which specifies the architecture.
	The following patch to the perl makefile skeleton makes this fix.

--- Makefile	Sun Jan 25 08:13:57 1998
+++ ../Makefile	Sat Feb 14 02:21:32 1998
@@ -15,9 +15,12 @@
 
 MAINTAINER=	markm@FreeBSD.ORG
 
+OPSYS!=	uname -s
+LOPSYS!=	echo ${OPSYS}|tr [A-Z] [a-z]
+
 HAS_CONFIGURE=		yes
 CONFIGURE_SCRIPT=	Configure
-CONFIGURE_ARGS+=		-sde -Dprefix=${PREFIX}
+CONFIGURE_ARGS+=	-sde -Dprefix=${PREFIX} -Darchname=${MACHINE_ARCH}-${LOPSYS}
 
 MAN1= 	a2p.1 c2ph.1 h2ph.1 h2xs.1 perl.1 perlapio.1 perlbook.1 perlbot.1 \
 	perlbug.1 perlcall.1 perldata.1 perldebug.1 perldelta.1 perldiag.1 \
@@ -63,14 +66,11 @@
 test:
 	@(cd ${WRKSRC}; make test)
 
-OPSYS!= uname -s
-
 post-install:
 	@strip ${PREFIX}/bin/perl
 .if (${OPSYS} != "NetBSD")
 # agc - no suidperl???
 	@strip ${PREFIX}/bin/suidperl
 .endif
-	@strip ${PREFIX}/bin/perl
 
 .include <bsd.port.mk>
>Audit-Trail:
>Unformatted: