From owner-freebsd-current Thu Dec 24 05:03:44 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id FAA29035 for freebsd-current-outgoing; Thu, 24 Dec 1998 05:03:44 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from scientia.demon.co.uk (scientia.demon.co.uk [212.228.14.13]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id FAA29030 for ; Thu, 24 Dec 1998 05:03:42 -0800 (PST) (envelope-from ben@scientia.demon.co.uk) Received: from ben by scientia.demon.co.uk with local (Exim 2.10 #2) id 0zt9E6-0000B5-00 for freebsd-current@freebsd.org; Thu, 24 Dec 1998 11:46:46 +0000 Date: Thu, 24 Dec 1998 11:46:46 +0000 From: Ben Smithurst To: freebsd-current@FreeBSD.ORG Subject: buildworld fails in ficl with NOPERL set Message-ID: <19981224114646.A620@scientia.demon.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG subject says it all really... When NOPERL is defined, ficl can't be built since "perl" isn't in the path. Is there any reason why a simple patch like the following couldn't be applied? --- sys/boot/ficl/Makefile~ Thu Dec 24 10:58:15 1998 +++ sys/boot/ficl/Makefile Thu Dec 24 11:04:43 1998 @@ -16,8 +16,16 @@ .PATH: ${.CURDIR}/softwords CFLAGS+= -I${.CURDIR} +# If building the world with NOPERL, use the system's already installed +# perl, otherwise find perl in the build process's $PATH. +.if defined(NOPERL) +PERL=/usr/bin/perl +.else +PERL=perl +.endif + softcore.c: ${SOFTWORDS} softcore.pl - (cd ${.CURDIR}/softwords; perl softcore.pl ${SOFTWORDS}) > ${.TARGET} + (cd ${.CURDIR}/softwords; ${PERL} softcore.pl ${SOFTWORDS}) > ${.TARGET} .include This won't make any difference if NOPERL isn't defined. If someone is building the world with NOPERL, and they don't have /usr/bin/perl, they won't be any worse off either. (I know this was mentioned before, around 5th November, but I didn't see any reasons why this couldn't be fixed.) -- Ben Smithurst ben@scientia.demon.co.uk send a blank message to ben+pgp@scientia.demon.co.uk for PGP key To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message