Gentoo Archives: gentoo-user

From: Alan McKinnon <alan.mckinnon@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Changing cpan repo in emerge
Date: Mon, 07 Jul 2014 10:52:49
Message-Id: 53BA7BC5.9000207@gmail.com
In Reply to: [gentoo-user] Changing cpan repo in emerge by shawn wilson
1 On 07/07/2014 00:47, shawn wilson wrote:
2 > How do I change emerge/ebuild from using cpan to metacpan to a local repo?
3 >
4 > I see mirror://cpan/foo and I figure SRC_URI gets scraped and changed
5 > (I'm guessing this happens somewhere in python since I don't see
6 > anything happening to SRC_URI in perl-module.eclass). I just want to
7 > use metacpan for all of my packages, but I'm sure some would want to
8 > use a local repo as well and I can't figure out how.
9 >
10 > I tried using the old method of:
11 > SRC_URI="mirror://www.metacpan.org/authors/id/K/KW/KWMAK/Chart/Gnuplot/${P}.tar.gz"
12 >
13 > but that errors:
14 > b89c521c6177 Chart-Gnuplot # ebuild Chart-Gnuplot-0.21.0.ebuild manifest
15 > Appending /usr/local/src/gentoo-portage-overlay to PORTDIR_OVERLAY...
16 >>>> Downloading 'http://distfiles.gentoo.org/distfiles/Chart-Gnuplot-0.21.tar.gz'
17 > --2014-07-06 22:44:10--
18 > http://distfiles.gentoo.org/distfiles/Chart-Gnuplot-0.21.tar.gz
19 > Resolving distfiles.gentoo.org... 216.165.129.135, 156.56.247.195,
20 > 64.50.236.52, ...
21 > Connecting to distfiles.gentoo.org|216.165.129.135|:80... connected.
22 > HTTP request sent, awaiting response... 404 Not Found
23 > 2014-07-06 22:44:10 ERROR 404: Not Found.
24 >
25 > !!! Couldn't download 'Chart-Gnuplot-0.21.tar.gz'. Aborting.
26 > !!! Fetch failed for Chart-Gnuplot-0.21.tar.gz, can't update Manifest
27 >
28 > Maybe there's two questions here - first being why it's looking at
29 > distfiles.gentoo.org instead of the SRC_URI I provided and how to
30 > change where cpan points.
31 >
32 >
33 >
34
35
36 It's trying to fetch sources from distfiles.gentoo.org because that is
37 the default location for sources.
38
39
40 Where does that ebuild for Chart-Gnuplot come from? It isn't in the
41 tree; is it an ebuild you made, or from an overlay?
42
43 I have some auto-generated local ebuilds here that I made ages ago using
44 some automated cpan<->ebuild tool that was in portage. Unfortunately I
45 don;t recall the name :-) but here's the guts of what it built:
46
47
48 MODULE_AUTHOR=MANOWAR
49 MODULE_VERSION=0.20
50 inherit perl-module
51
52 DESCRIPTION="Authen::Radius - provide simple Radius client facilities"
53
54 DEPEND="dev-lang/perl"
55
56 MY_P=RadiusPerl-${PV}
57 SRC_URI="mirror://cpan/authors/id/M/MA/MANOWAR/${MY_P}.tar.gz"
58
59
60
61 I *think* the magic is all in "inherit perl-module"
62
63
64
65 --
66 Alan McKinnon
67 alan.mckinnon@×××××.com

Replies

Subject Author
Re: [gentoo-user] Changing cpan repo in emerge Yohan Pereira <yohan.pereira@×××××.com>