From owner-freebsd-ports Wed May 30 17: 5:22 2001 Delivered-To: freebsd-ports@freebsd.org Received: from heechee.tobez.org (254.adsl0.ryv.worldonline.dk [213.237.10.254]) by hub.freebsd.org (Postfix) with ESMTP id 674A237B424 for ; Wed, 30 May 2001 17:05:13 -0700 (PDT) (envelope-from tobez@tobez.org) Received: by heechee.tobez.org (Postfix, from userid 1001) id 8F3FC5422; Thu, 31 May 2001 02:05:01 +0200 (CEST) Date: Thu, 31 May 2001 02:05:01 +0200 From: Anton Berezin To: Danny Howard Cc: freebsd-ports@freebsd.org Subject: Re: automated package list creation for perl modules? Message-ID: <20010531020501.B14468@heechee.tobez.org> Mail-Followup-To: Anton Berezin , Danny Howard , freebsd-ports@freebsd.org References: <20010530155215.P79218@tellme.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010530155215.P79218@tellme.com>; from dannyman@tellme.com on Wed, May 30, 2001 at 03:52:15PM -0700 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 On Wed, May 30, 2001 at 03:52:15PM -0700, Danny Howard wrote: > I'm running 4-STABLE. > > I'm trying to do > http://www.freebsd.org/porters-handbook/book.html#PORTING-AUTOPLIST > > So, I write a script to do this. The catch is ... > > I'm not installing the perl modules in PREFIX so I can't get any mtree > lovin'. :( > INSTALLSITELIB = /usr/local/lib/perl5/site_perl/5.005 > INSTALLSITEARCH = /usr/local/lib/perl5/site_perl/5.005/i386-freebsd > SITELIBEXP = /usr/local/lib/perl5/site_perl/5.005 > SITEARCHEXP = /usr/local/lib/perl5/site_perl/5.005/i386-freebsd > INSTALLMAN1DIR = /usr/local/man/man1 > INSTALLMAN3DIR = /usr/local/lib/perl5/5.00503/man/man3 > PREFIX = /tmp > > YAGH! Ideas? Yes. Don't bother with that. *None* of the p5-ports are PREFIX-clean in -stable. Supposedly, *all* p5-ports are PREFIX-clean in -current. Eventually, the dirty piece of perl code named BSDPAN will be MFC'ed to -stable, so that p5-ports will become PREFIX-clean in -stable, too. So there is very little point in propagating the value of PREFIX to INSTALLSITELIB, INSTALLSITEARCH, INSTALLBIN, INSTALLSCRIPT, INSTALLMAN1DIR, and INSTALLMAN3DIR for a single port of yours (but this will also solve the problem, if you insist; the actual problem is that MakeMaker.pm has finer granularity of variables to control where various pieces are installed). As for automated plist generation, I would suggest you to use a dedicated porting jail; personally, I find this approach a bit more convenient then the one described in the Porter's Handbook. Request me privately if you want the scripts I use for doing this - they are not polished enough to present them to a wide audience. ;-) Cheers, \Anton. -- May the tuna salad be with you. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message