From owner-freebsd-ports Sat May 18 10: 3:29 2002 Delivered-To: freebsd-ports@freebsd.org Received: from smtp.web.de (smtp01.web.de [194.45.170.210]) by hub.freebsd.org (Postfix) with ESMTP id 2236637B67D for ; Sat, 18 May 2002 09:59:42 -0700 (PDT) Received: from dsl-213-023-026-054.arcor-ip.net ([213.23.26.54] helo=apo.hmotakef.int.web.de) by smtp.web.de with esmtp (WEB.DE(Exim) 4.53 #1) id 1797YS-00069v-00 for freebsd-ports@FreeBSD.org; Sat, 18 May 2002 18:59:41 +0200 To: freebsd-ports@FreeBSD.org Subject: Perl scripts From: Henrik Motakef Date: 18 May 2002 19:04:34 +0200 Message-ID: <871yc9fkv1.fsf@apo.hmotakef.int> Lines: 23 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hi. Now that perl is going away from the base system, how do we handle perl scripts in a way that works with both 4.x and 5.x systems? The easy part would be rewriting the shebang lines to "#!/usr/bin/env perl", but how to go about dependencies? I have heard (maybe thats just a rumor) that there will be an executable in /usr/bin/perl that will call ${PREFIX}/bin/perl if available, so adding a line like RUN_DEPENDS=perl:${PORTSDIR}/lang/perl5 won't work. Then again, depending on ${PREFIX}/bin/perl would force installation of the perl5 port even on systems that have /usr/bin/perl. Would depending on perl5:${PORTSDIR}/lang/perl5 be a good idea? (i.e. will there be a wrapper called /usr/bin/perl5 in base?) Or would testing ${OSVERSION} be the right thing? Regards Henrik To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message