From owner-freebsd-ports Sat Jan 6 18:12:53 2001 Delivered-To: freebsd-ports@freebsd.org Received: from tkg.att.ne.jp (tkg.att.ne.jp [165.76.17.7]) by hub.freebsd.org (Postfix) with ESMTP id 9CF7C37B400; Sat, 6 Jan 2001 18:12:33 -0800 (PST) Received: from jw (149.pool4.ipctokyo.att.ne.jp [165.76.42.149]) by tkg.att.ne.jp (8.8.8+Spin/3.6W-CONS(10/06/00)) id LAA18779; Sun, 7 Jan 2001 11:12:28 +0900 (JST) Message-Id: <200101070212.LAA18779@tkg.att.ne.jp> Date: Sun, 07 Jan 2001 11:12:29 +0900 From: Masafumi NAKANE Subject: Re: PERL_ARCH To: Doug Barton Cc: ports@freebsd.org, asami@freebsd.org In-Reply-To: <3A578F65.50B515EE@gorean.org> References: <87wvclbkeg.wl@turkey.aslm.rim.or.jp> <3A578F65.50B515EE@gorean.org> X-Mailer: Datula version 1.51.08 for Windows Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I came to a conclusion that using PERL_ARCH to substitute something like i386-freebsd in the installation path names for non-perl programs is a totally wrong idea. I haven't looked through the commit logs, so I'm not too certain, but someone probably blindly replaced i386-freebsd to %%PERL_ARCH%% in the plist when PERL_ARCH was introduced. For perl related programs, e.g. perl modules, %%PERL_ARCH%% wokrs fine depending on the perl version on the system, and bsd.port.mk is appropriate, I think. The solution I used was to define something like the following in the Makefile: OS!= uname -s | tr A-Z a-z PLIST_SUB= ARCH=${ARCH} OS=${OS} and in the plist use %%ARCH%%-%%OS%%, instead. Cheers, Max On Sat, 06 Jan 2001 13:34:29 -0800, Doug Barton wrote: > Masafumi NAKANE wrote: > > > > Hi, > > > > I'm now upgrading swi-pl, which installs some files into > > lib/%%DISTNAME%%/bin/i386-freebsd. Earlier, it could be written as > > lib/%%DISTNAME%%/bin/%%PERL_ARCH%%, but now on -CURRENT, it expands to > > lib/pl-3.4.4/bin/mach and %%PERL_ARCH%% cannot be used in this > > context. > > > > Now, my question is how should I write these pathnames in the plist. > > I asked the following question back on 11/24 and got no answer. I'm > still curious about this... > > > I'm trying to track down some plist problems with a new port, and > > noticed the following in bsd.port.mk from 1.341: > > > > .if ${OSVERSION} >= 500007 > > PERL_VERSION= 5.6.0 > > PERL_VER= 5.6.0 > > PERL_ARCH= mach > > .else > > .if ${OSVERSION} >= 300000 > > PERL_VERSION= 5.00503 > > .else > > PERL_VERSION= 5.00502 > > .endif > > PERL_VER= 5.005 > > PERL_ARCH= ${ARCH}-freebsd > > .endif > > > > I'm confused as to why we want PERL_ARCH to always be "mach". Probably > > something obvious that I'm missing here... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message