Gentoo Archives: gentoo-user

From: Dan Johansson <Dan.Johansson@×××.nu>
To: "gentoo-user@l.g.o" <gentoo-user@l.g.o>
Subject: [gentoo-user] Problems with g-cpan
Date: Mon, 04 Apr 2016 19:57:06
Message-Id: 5702C705.4010500@dmj.nu
1 I am having a interesting problem with g-cpan.
2 While trying to "emerge" the perl-module Nagios::Object using g-cpan
3 (g-cpan --debug --verbose --install Nagios::Object) I can see that
4 g-cpan downloads the correct version of Nagios::Object from CPAN:
5
6 ----------------------------8<-----------------------------
7 In main::generatePackageInfo (/usr/bin/g-cpan:622):
8 $VAR1 = bless( {
9 'cpan' => {
10 'nagios::object' => {
11 'name' =>
12 'Nagios::Object',
13 'description' => 'No
14 description available',
15 'portage_name' =>
16 'Nagios-Object',
17 'version' => '47',
18 'portage_version' =>
19 '0.21.20',
20 'src_uri' =>
21 'D/DU/DUNCS/Nagios-Object-0.21.20.tar.gz'
22 }
23 },
24 'portage_bases' => {
25 '/usr/portage' => 1
26 },
27 'DEBUG' => undef,
28 'portage' => {
29 'nagios-object' => {},
30 'nagios::object' => {}
31 },
32 'packagelist' => [],
33 'modules' => {},
34 'sources' => '/usr/portage/distfiles',
35 'portage_categories' => [
36 'dev-perl',
37 'perl-core',
38 'perl-gcpan',
39 'dev-lang'
40 ],
41 'cpan_reload' => undef
42 }, 'Gentoo' );
43 |CPAN: Digest::SHA loaded ok (v5.88)
44 CPAN: Compress::Zlib loaded ok (v2.064)
45 Checksum for
46 /var/tmp/g-cpan/.cpan/sources/authors/id/D/DU/DUNCS/Nagios-Object-0.21.20.tar.gz
47 ok
48 CPAN: Archive::Tar loaded ok (v1.96)
49 ----------------------------8<-----------------------------
50
51 Please note that version above says '47' and not 0.21.20, this is
52 consisten with CPAN
53 (http://search.cpan.org/dist/Nagios-Object/lib/Nagios/Object.pm)
54 After downloading and unpacking the tar-file the "ebuild" is created:
55 ----------------------------8<-----------------------------
56 * Create directory '/var/tmp/g-cpan/perl-gcpan/Nagios-Object'
57 * Create directory '/var/tmp/g-cpan/perl-gcpan/Nagios-Object/files'
58 * Generating ebuild for Nagios::Object
59 * Scanning /usr/portage for list-compare
60 * Scanning /usr/portage for test-exception
61 * Scanning /usr/portage for test-nowarnings
62 * Copying
63 /var/tmp/g-cpan/.cpan/sources/authors/id/D/DU/DUNCS/Nagios-Object-0.21.20.tar.gz
64 to /usr/portage/distfiles
65 * Ebuild generated for Nagios-Object
66 ----------------------------8<-----------------------------
67
68 BUT, when portage tries to emerge this "ebuild" it tries to download a
69 '47' version, which of-cause does not exist.
70 ----------------------------8<-----------------------------
71 >>> Downloading
72 'http://distfiles.gentoo.org/distfiles/Nagios-Object-47.tar.gz'
73 --2016-04-04 21:42:24--
74 http://distfiles.gentoo.org/distfiles/Nagios-Object-47.tar.gz
75 Connecting to xxxxx.dmj.nu|192.168.55.55|:8080... connected.
76 Proxy request sent, awaiting response... 404 Not Found
77 2016-04-04 21:42:24 ERROR 404: Not Found.
78 ----------------------------8<-----------------------------
79 (in /usr/portage/distfiles/ there is a Nagios-Object-0.21.20.tar.gz file).
80
81 How can I convince g-cpan to use the 0.21.20 version and not '47'?
82 Or make g-cpan NOT to clean its temporarily created ebuild (so I can
83 modify it by hand)?
84
85 Regards.
86 --
87 Dan Johansson, <http://www.dmj.nu>
88 ***************************************************
89 This message is printed on 100% recycled electrons!
90 ***************************************************

Attachments

File name MIME type
smime.p7s application/pkcs7-signature