Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 1 Apr 2007 17:57:36 -0700 (PDT)
From:      "Ian A. Tegebo" <yontege@dev-mug.rescomp.berkeley.edu>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        "Ian A.  Tegebo" <yontege@rescomp.berkeley.edu>
Subject:   ports/111120: [PATCH] lang/perl5.8: Provide @INC modification via options.
Message-ID:  <200704020057.l320vafL014820@dev-mug.rescomp.berkeley.edu>
Resent-Message-ID: <200704020140.l321e3dr008056@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         111120
>Category:       ports
>Synopsis:       [PATCH] lang/perl5.8: Provide @INC modification via options.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Apr 02 01:40:03 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Ian A. Tegebo
>Release:        FreeBSD 6.1-RELEASE-p11 i386
>Organization:
Network/Infrastructure
Residential Student Services Programs
University of California, Berkeley
>Environment:
System: FreeBSD dev-mug 6.1-RELEASE-p11 FreeBSD 6.1-RELEASE-p11 #0: Tue Jan 9 13:51:30 PST 2007 root@dev-mug:/usr/obj/usr/src/sys/AUX_0 i386


	
>Description:
There doesn't seem to be an easy way to change @INC over the whole site; the
attached patch makes it as easy as pkgtools.conf to configure perl's @INC.
You can either:
	a) Specify at build time, WITH_LIBDIRS=PATH1:PATH2:...
	or b) Use ${SITE_PERL}/sitecustomize.pl to do whatever @INC munging
	you need which can be turned on as WITH_SITE_CUSTOMIZE=yes.
See perldoc INSTALL in the source distribution for details.

>How-To-Repeat:
	
>Fix:

	

--- Makefile.patch begins here ---
--- Makefile.orig	Sun Apr  1 16:43:38 2007
+++ Makefile	Sun Apr  1 17:17:01 2007
@@ -59,6 +59,14 @@
 CONFIGURE_ARGS+=	-Doptimize="${CFLAGS}"
 .endif
 
+.if defined(WITH_LIBDIRS)
+CONFIGURE_ARGS+=	-Dotherlibdirs=${WITH_LIBDIRS}
+.endif
+
+.if defined(WITH_SITE_CUSTOMIZE)
+CONFIGURE_ARGS+=	-Dusesitecustomize
+.endif
+
 .if defined(ENABLE_SUIDPERL)
 CONFIGURE_ARGS+=	-Dd_dosuid=define
 PLIST_SUB+=		ENABLE_SUIDPERL=""
@@ -145,8 +153,10 @@
 	@${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=<DIR1>:...	  Add path description to @INC."
+	@${ECHO} "	WITH_SITE_CUSTOMIZE=yes	  Include support for $(SITE_PERL)/sitecustomize.pl."
 	@${ECHO} "	ENABLE_SUIDPERL=yes	  Also build set-user-id suidperl binary."
-	@${ECHO} "      WITHOUT_USE_PERL=yes      Do not rewrite links in /usr/bin"
+	@${ECHO} "	WITHOUT_USE_PERL=yes      Do not rewrite links in /usr/bin"
 	@${ECHO} ""
 
 post-patch:
--- Makefile.patch ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200704020057.l320vafL014820>