* [gentoo-user] Changing cpan repo in emerge
@ 2014-07-06 22:47 shawn wilson
2014-07-07 9:27 ` Stroller
2014-07-07 10:51 ` Alan McKinnon
0 siblings, 2 replies; 5+ messages in thread
From: shawn wilson @ 2014-07-06 22:47 UTC (permalink / raw
To: gentoo-user
How do I change emerge/ebuild from using cpan to metacpan to a local repo?
I see mirror://cpan/foo and I figure SRC_URI gets scraped and changed
(I'm guessing this happens somewhere in python since I don't see
anything happening to SRC_URI in perl-module.eclass). I just want to
use metacpan for all of my packages, but I'm sure some would want to
use a local repo as well and I can't figure out how.
I tried using the old method of:
SRC_URI="mirror://www.metacpan.org/authors/id/K/KW/KWMAK/Chart/Gnuplot/${P}.tar.gz"
but that errors:
b89c521c6177 Chart-Gnuplot # ebuild Chart-Gnuplot-0.21.0.ebuild manifest
Appending /usr/local/src/gentoo-portage-overlay to PORTDIR_OVERLAY...
>>> Downloading 'http://distfiles.gentoo.org/distfiles/Chart-Gnuplot-0.21.tar.gz'
--2014-07-06 22:44:10--
http://distfiles.gentoo.org/distfiles/Chart-Gnuplot-0.21.tar.gz
Resolving distfiles.gentoo.org... 216.165.129.135, 156.56.247.195,
64.50.236.52, ...
Connecting to distfiles.gentoo.org|216.165.129.135|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2014-07-06 22:44:10 ERROR 404: Not Found.
!!! Couldn't download 'Chart-Gnuplot-0.21.tar.gz'. Aborting.
!!! Fetch failed for Chart-Gnuplot-0.21.tar.gz, can't update Manifest
Maybe there's two questions here - first being why it's looking at
distfiles.gentoo.org instead of the SRC_URI I provided and how to
change where cpan points.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] Changing cpan repo in emerge
2014-07-06 22:47 [gentoo-user] Changing cpan repo in emerge shawn wilson
@ 2014-07-07 9:27 ` Stroller
2014-07-07 10:32 ` shawn wilson
2014-07-07 10:51 ` Alan McKinnon
1 sibling, 1 reply; 5+ messages in thread
From: Stroller @ 2014-07-07 9:27 UTC (permalink / raw
To: gentoo-user
On Sun, 6 July 2014, at 11:47 pm, shawn wilson <ag4ve.us@gmail.com> wrote:
> How do I change emerge/ebuild from using cpan to metacpan to a local repo?
If you're just creating a local ebuild - i.e. bumping to a version that isn't in portage - then I think you should be able to just download the .tar.gz file and stick it in /usr/portage/distfiles/ before creating the manifest.
Alternatively you might be able to set RESTRICT="fetch" in the ebuild (from the dev-java/sun-jdk ebuilds), so that the download is ignored and your tarball is used.
Apologies if I've misunderstood what you're trying to do.
Stroller.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] Changing cpan repo in emerge
2014-07-07 9:27 ` Stroller
@ 2014-07-07 10:32 ` shawn wilson
0 siblings, 0 replies; 5+ messages in thread
From: shawn wilson @ 2014-07-07 10:32 UTC (permalink / raw
To: gentoo-user
On Mon, Jul 7, 2014 at 5:27 AM, Stroller <stroller@stellar.eclipse.co.uk> wrote:
>
> On Sun, 6 July 2014, at 11:47 pm, shawn wilson <ag4ve.us@gmail.com> wrote:
>
>> How do I change emerge/ebuild from using cpan to metacpan to a local repo?
>
> If you're just creating a local ebuild - i.e. bumping to a version that isn't in portage - then I think you should be able to just download the .tar.gz file and stick it in /usr/portage/distfiles/ before creating the manifest.
>
> Alternatively you might be able to set RESTRICT="fetch" in the ebuild (from the dev-java/sun-jdk ebuilds), so that the download is ignored and your tarball is used.
>
> Apologies if I've misunderstood what you're trying to do.
>
That'd work, though I'd prefer not to inflate our distfiles more than
it already is. It also appears that search.cpan.org is back up so I'm
just using cpan for now. However it'd be nice to figure out how to
change the cpan site anyway.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] Changing cpan repo in emerge
2014-07-06 22:47 [gentoo-user] Changing cpan repo in emerge shawn wilson
2014-07-07 9:27 ` Stroller
@ 2014-07-07 10:51 ` Alan McKinnon
2014-07-07 13:31 ` Yohan Pereira
1 sibling, 1 reply; 5+ messages in thread
From: Alan McKinnon @ 2014-07-07 10:51 UTC (permalink / raw
To: gentoo-user
On 07/07/2014 00:47, shawn wilson wrote:
> How do I change emerge/ebuild from using cpan to metacpan to a local repo?
>
> I see mirror://cpan/foo and I figure SRC_URI gets scraped and changed
> (I'm guessing this happens somewhere in python since I don't see
> anything happening to SRC_URI in perl-module.eclass). I just want to
> use metacpan for all of my packages, but I'm sure some would want to
> use a local repo as well and I can't figure out how.
>
> I tried using the old method of:
> SRC_URI="mirror://www.metacpan.org/authors/id/K/KW/KWMAK/Chart/Gnuplot/${P}.tar.gz"
>
> but that errors:
> b89c521c6177 Chart-Gnuplot # ebuild Chart-Gnuplot-0.21.0.ebuild manifest
> Appending /usr/local/src/gentoo-portage-overlay to PORTDIR_OVERLAY...
>>>> Downloading 'http://distfiles.gentoo.org/distfiles/Chart-Gnuplot-0.21.tar.gz'
> --2014-07-06 22:44:10--
> http://distfiles.gentoo.org/distfiles/Chart-Gnuplot-0.21.tar.gz
> Resolving distfiles.gentoo.org... 216.165.129.135, 156.56.247.195,
> 64.50.236.52, ...
> Connecting to distfiles.gentoo.org|216.165.129.135|:80... connected.
> HTTP request sent, awaiting response... 404 Not Found
> 2014-07-06 22:44:10 ERROR 404: Not Found.
>
> !!! Couldn't download 'Chart-Gnuplot-0.21.tar.gz'. Aborting.
> !!! Fetch failed for Chart-Gnuplot-0.21.tar.gz, can't update Manifest
>
> Maybe there's two questions here - first being why it's looking at
> distfiles.gentoo.org instead of the SRC_URI I provided and how to
> change where cpan points.
>
>
>
It's trying to fetch sources from distfiles.gentoo.org because that is
the default location for sources.
Where does that ebuild for Chart-Gnuplot come from? It isn't in the
tree; is it an ebuild you made, or from an overlay?
I have some auto-generated local ebuilds here that I made ages ago using
some automated cpan<->ebuild tool that was in portage. Unfortunately I
don;t recall the name :-) but here's the guts of what it built:
MODULE_AUTHOR=MANOWAR
MODULE_VERSION=0.20
inherit perl-module
DESCRIPTION="Authen::Radius - provide simple Radius client facilities"
DEPEND="dev-lang/perl"
MY_P=RadiusPerl-${PV}
SRC_URI="mirror://cpan/authors/id/M/MA/MANOWAR/${MY_P}.tar.gz"
I *think* the magic is all in "inherit perl-module"
--
Alan McKinnon
alan.mckinnon@gmail.com
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] Changing cpan repo in emerge
2014-07-07 10:51 ` Alan McKinnon
@ 2014-07-07 13:31 ` Yohan Pereira
0 siblings, 0 replies; 5+ messages in thread
From: Yohan Pereira @ 2014-07-07 13:31 UTC (permalink / raw
To: gentoo-user
On Mon, Jul 7, 2014 at 4:21 PM, Alan McKinnon <alan.mckinnon@gmail.com> wrote:
> I have some auto-generated local ebuilds here that I made ages ago using
> some automated cpan<->ebuild tool that was in portage. Unfortunately I
> don;t recall the name :-) but here's the guts of what it built:
https://wiki.gentoo.org/wiki/Project:Perl/g-cpan
Used it a while back, not sure what is the current state.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2014-07-07 13:31 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-06 22:47 [gentoo-user] Changing cpan repo in emerge shawn wilson
2014-07-07 9:27 ` Stroller
2014-07-07 10:32 ` shawn wilson
2014-07-07 10:51 ` Alan McKinnon
2014-07-07 13:31 ` Yohan Pereira
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox