Bug 154994 - [patch] enhancements MASTER_SITE_PERL_CPAN bsd.sites.mk
Summary: [patch] enhancements MASTER_SITE_PERL_CPAN bsd.sites.mk
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Andrej Zverev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-24 08:30 UTC by Andrej Zverev
Modified: 2011-03-02 06:05 UTC (History)
0 users

See Also:


Attachments
patch-Mk-bsd-sites-mk.diff.txt (5.36 KB, patch)
2011-02-24 08:30 UTC, Andrej Zverev
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andrej Zverev freebsd_committer freebsd_triage 2011-02-24 08:30:09 UTC
Due to the fact that CPAN has changed layout of distros [1] (by-modules symlink is no more active) the 
entire process of forming our beautiful links in ports lost relevance and now we have the 
entropy increase.

MASTER_SITES = CPAN /../../
or
MASTER_SITES = CPAN
MASTER_SITE_SUBDIR =../../

After a brief discussion in the freebsd-perl@ mailing list has been worked out a solution[2]
which facilitates a new way to interact with CPAN. Since now the key resistance with value 
name of the author, knowing only enough to find its own distribution.
The second important thing that was required - it is to maintain backward compatibility.

To use this method you need to register in MASTER_SITE_SUBDIR keyword (CPAN :<>). For example:

MASTER_SITES = CPAN
MASTER_SITE_SUBDIR = CPAN: FLORA

Without such magic keyword we will use old way to obtaion distro. 
And this solution only work then using MASTER_SITE=CPAN.


Additional Information:
[1]
http://docs.freebsd.org/cgi/getmsg.cgi?fetch=87563+0+archive/2011/freebsd-perl/20110213.freebsd-perl
[2]
http://docs.freebsd.org/cgi/getmsg.cgi?fetch=219646+0+archive/2011/freebsd-perl/20110220.freebsd-perl

Fix: You can also find patch to apply here: http://people.freebsd.org/~az/misc/patch-Mk-bsd-sites-mk.diff.txt
It also include fix for: 
devel/p5-Class-Constant
devel/p5-Config-Model
www/p5-Jemplate
www/p5-WWW-Search-Google

which need to sure exp-run build OK.
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2011-02-24 08:30:17 UTC
Responsible Changed
From-To: freebsd-ports-bugs->pgollucci

bsd.sites.mk is pgollucci territory (via the GNATS Auto Assign Tool)
Comment 2 Andrej Zverev freebsd_committer freebsd_triage 2011-02-24 08:49:39 UTC
Responsible Changed
From-To: pgollucci->portmgr

portmgr territory
Comment 3 Martin Wilke freebsd_committer freebsd_triage 2011-02-26 04:25:50 UTC
Responsible Changed
From-To: portmgr->miwi

take for exp
Comment 4 Martin Wilke freebsd_committer freebsd_triage 2011-02-28 12:57:14 UTC
Responsible Changed
From-To: miwi->az

back to you.
Comment 5 Andrej Zverev freebsd_committer freebsd_triage 2011-03-02 06:05:31 UTC
State Changed
From-To: open->closed

Committed, with minor changes. Thanks!