Skip site navigation (1)Skip section navigation (2)
Date:      12 Mar 2003 14:34:43 -0000
From:      Sergei Kolobov <sergei@kolobov.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/49961: [PATCH] Mega tree sweep for SITE_PERL usage
Message-ID:  <20030312143443.54532.qmail@outpost.globcon.net>

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

>Number:         49961
>Category:       ports
>Synopsis:       [PATCH] Mega tree sweep for SITE_PERL usage
>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:   Wed Mar 12 06:40:07 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     Sergei Kolobov
>Release:        FreeBSD 4.7-STABLE i386
>Organization:
>Environment:
System: FreeBSD outpost.globcon.net 4.7-STABLE FreeBSD 4.7-STABLE #0: Mon Oct 14 02:23:23 MSD 2002     sgk@outpost.globcon.net:/data/FreeBSD/obj/data/FreeBSD/src/sys/OUTPOST  i386
>Description:
This is a sweep through the ports tree looking for possible usage of SITE_PERL 
in Makefile and pkg-plist:

-RUN_DEPENDS=           ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/Tk.pm:${PORTSDIR}/x11-toolkits/p5-T
k
+RUN_DEPENDS=           ${SITE_PERL}/${PERL_ARCH}/Tk.pm:${PORTSDIR}/x11-toolkits/p5-Tk

and

-lib/perl5/site_perl/%%PERL_VER%%/X11/Protocol/Connection/UNIXSocket.pm
+%%SITE_PERL%%/X11/Protocol/Connection/UNIXSocket.pm

IMHO, Makefiles and pkg-plists are much more readable and maintainable this way.

Note: there are some edge cases - when a variable was defined for the same purpose 
as SITE_PERL, but with a different name (e.g. PERL_SITELIBDIR, etc.). 
My script did not handle those case yet.
>How-To-Repeat:
>Fix:
The patches are available at the following URL:

http://www.kolobov.com/site_perl.patches.tar.gz

The tarball contains a collection of patch files, each file corresponds to a separate ports category.
>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports-bugs" in the body of the message




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