ports/111120: [PATCH] lang/perl5.8: Provide @INC modification via options.
Ian A. Tegebo
yontege at dev-mug.rescomp.berkeley.edu
Mon Apr 2 01:40:03 UTC 2007
>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 at 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:
More information about the freebsd-ports-bugs
mailing list