From owner-freebsd-ports@FreeBSD.ORG Tue Oct 7 14:34:22 2003 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AAFB216A4BF for ; Tue, 7 Oct 2003 14:34:22 -0700 (PDT) Received: from vexpert.dbai.tuwien.ac.at (vexpert.dbai.tuwien.ac.at [128.131.111.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9318644001 for ; Tue, 7 Oct 2003 14:34:16 -0700 (PDT) (envelope-from gerald@pfeifer.com) Received: from [128.131.111.60] (acrux [128.131.111.60]) by vexpert.dbai.tuwien.ac.at (Postfix) with ESMTP id C3A6713794 for ; Tue, 7 Oct 2003 23:34:14 +0200 (CEST) Date: Tue, 7 Oct 2003 23:34:21 +0200 (CEST) From: Gerald Pfeifer To: ports@freebsd.org Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=big5 Content-Transfer-Encoding: 8BIT Subject: 4.x Perl with customized $(PREFIX) X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Oct 2003 21:34:22 -0000 This is from ports/56403: update port: mail/grepmail How should we (I) handle this? Install the update nevertheless, or ask for/hack up a port local fix? Gerald ---------- Forwarded message ---------- From: Yen-Ming Lee To: freebsd-gnats-submit@FreeBSD.org That problem only occurs in 4.x (perl-5.00503) with customized $(PREFIX). When configuring grepmail with customized $(PREFIX), the ExtUtils::MakeMaker of perl-5.00503 will discard the $(PREFIX) and generate these two lines: INSTALLSITELIB = /usr/local/lib/perl5/site_perl/5.005 INSTALLSITEARCH = /usr/local/lib/perl5/site_perl/5.005/i386-freebsd while ExtUtils::MakeMaker of perl-5.6.1 will still respect $(PREFIX): INSTALLSITELIB = $(PREFIX)/lib/perl5/site_perl/5.6.1 INSTALLSITEARCH = $(PREFIX)/lib/perl5/site_perl/5.6.1/mach It's a general case (for perl-5.00503), therefore I prefer *NOT* to fix it within the port by using some quick-and-dirty hack, such as post-configure: ${PERL} -pi -e 's,/usr/local,${PREFIX},g' ${WRKSRC}/Makefile regards, -- Yen-Ming Lee [§õ«Û©ú] KeyID: 0x5EB52E51 : www.leeym.com : Taipei, Taiwan