From owner-freebsd-questions@FreeBSD.ORG Mon Mar 26 21:45:14 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7DEC916A4DE for ; Mon, 26 Mar 2007 21:45:14 +0000 (UTC) (envelope-from yontege@hal.rescomp.berkeley.edu) Received: from rescomp.berkeley.edu (keyserver.Rescomp.Berkeley.EDU [169.229.70.167]) by mx1.freebsd.org (Postfix) with ESMTP id 6936113C455 for ; Mon, 26 Mar 2007 21:45:14 +0000 (UTC) (envelope-from yontege@hal.rescomp.berkeley.edu) Received: by rescomp.berkeley.edu (Postfix, from userid 1032) id 8CC285B764; Mon, 26 Mar 2007 14:21:16 -0700 (PDT) Date: Mon, 26 Mar 2007 14:21:16 -0700 From: "Ian A. Tegebo" To: freebsd-questions@freebsd.org Message-ID: <20070326212116.GC25691@rescomp.berkeley.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.9i Subject: Adding paths to @INC in perl X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Mar 2007 21:45:14 -0000 I've found several methods for adding directories to @INC in perl: www.ncode.ch/papers/Perl-Library-Mechanics.pdf I was hoping to find a KNOB, or something I could put in pkgtools.conf so that my custom library path gets included in perl's @INC. I was hoping -Dusesitecustomize would have not required a patch to the port's Makefile but this didn't seem to be the case. I'm using -Dotherlibdirs now: ============================================================== --- Makefile-perl Sat Feb 10 13:11:20 2007 +++ Makefile-perl-rc Sat Feb 10 13:10:56 2007 @@ -121,6 +121,10 @@ .endif MAN3PREFIX= ${TARGETDIR}/lib/perl5/${PERL_VER}/perl +.if defined(WITH_LIBDIRS) +CONFIGURE_ARGS+= -Dotherlibdirs=${WITH_LIBDIRS} +.endif + test: @(cd ${WRKSRC}; make test) @@ -145,6 +149,7 @@ @${ECHO} " WITHOUT_PERL_64BITINT=yes Disable 64 bit integers" @${ECHO} " (affects only 32-bit platforms)." @${ECHO} " WITH_THREADS=yes Build threaded perl." + @${ECHO} " WITH_LIBDIRS=PATH:.. Set the otherlibdirs configure arguments." @${ECHO} " ENABLE_SUIDPERL=yes Also build set-user-id suidperl binary." @${ECHO} "" ============================================================== Is there a better way to do this? If not, should I submit this patch to the port maintainer? -- Ian Tegebo