Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 161732 - app-portage/g-cpan - not correct __DATA__ use for alt. package names in Gentoo/Portage.pm
Summary: app-portage/g-cpan - not correct __DATA__ use for alt. package names in Gento...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Perl team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 168647
  Show dependency tree
 
Reported: 2007-01-12 12:33 UTC by Sergiy Borodych
Modified: 2010-02-15 07:08 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Portage.pm.patch (Portage.pm.patch,870 bytes, text/plain)
2008-06-05 15:13 UTC, Sergiy Borodych
Details
g-cpan-0.15.0-r1.ebuild (g-cpan-0.15.0-r1.ebuild,1.04 KB, text/plain)
2008-07-21 20:43 UTC, Sergiy Borodych
Details
Portage_pm_DATA.patch (Portage_pm_DATA.patch,977 bytes, text/plain)
2008-07-21 20:43 UTC, Sergiy Borodych
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sergiy Borodych 2007-01-12 12:33:34 UTC
If I can see getAvailableEbuilds from Gentoo::Portage can't find
 because it not contain '-'

portage # g-cpan -i -v -p Image::Size
 * Scanning /usr/local/portage for Image-Size
 * Scanning /usr/portage for Image-Size
-Image-Size-3.01/
Image-Size-3.01/t/
Image-Size-3.01/t/yasp.swf
Image-Size-3.01/t/pod_coverage.t
Image-Size-3.01/t/bexjdic.tif
Image-Size-3.01/t/magick.t
Image-Size-3.01/t/00_signature.t
Image-Size-3.01/t/pass-1_s.png
Image-Size-3.01/t/8.swf
Image-Size-3.01/t/xterm.bmp
Image-Size-3.01/t/letter_T.jpg
Image-Size-3.01/t/468x60.psd
Image-Size-3.01/t/all.t
Image-Size-3.01/t/xterm.xpm
Image-Size-3.01/t/spacer50.xbm
Image-Size-3.01/t/pak38.jpg
Image-Size-3.01/t/pod.t
Image-Size-3.01/t/lexjdic.tif
Image-Size-3.01/t/letter_N.ppm
Image-Size-3.01/t/test.gif
Image-Size-3.01/ex/
Image-Size-3.01/ex/make_gallery.pl
Image-Size-3.01/MANIFEST
Image-Size-3.01/MANIFEST.SKIP
Image-Size-3.01/META.yml
Image-Size-3.01/imgsize
Image-Size-3.01/README.Win32
Image-Size-3.01/ChangeLog
Image-Size-3.01/lib/
Image-Size-3.01/lib/Image/
Image-Size-3.01/lib/Image/Size.pm
Image-Size-3.01/README
Image-Size-3.01/Makefile.PL
Image-Size-3.01/Build.PL
Image-Size-3.01/SIGNATURE
\Unknown 'build_class', defaulting to 'Module::Build'
 * Checking on dependency perl for Image::Size
 * Getting CPAN Info for perl
 * perl is not a CPAN module!
 * Checking on dependency Test::More for Image::Size
 * Scanning /usr/local/portage for Test-Simple
 * Scanning /usr/portage for Test-Simple
 * Found ebuild under CPAN name (Test-Simple)
 * Ebuild already exists for Test-Simple
 * Scanning /usr/local/portage for Test-Simple
 * Checking on dependency File::Spec for Image::Size
 * Scanning /usr/local/portage for File-Spec
 * Scanning /usr/portage for File-Spec
 * Ebuild already exists for File-Spec
 * Scanning /usr/local/portage for File-Spec
 * Create directory '/usr/local/portage/perl-gcpan/Image-Size'
 * Create directory '/usr/local/portage/perl-gcpan/Image-Size/files'
 * Generating ebuild for Image::Size
 * Scanning /usr/local/portage for test-simple
 * Scanning /usr/local/portage for File-Spec
 * Copying /root/.cpan/sources/authors/id/R/RJ/RJRAY/Image-Size-3.01.tar.gz to /usr/portage/distfiles
 * Ebuild generated for Image-Size
 * Calling emerge for Image-Size

 * Calling: emerge --pretend Image-Size

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N    ] perl-gcpan/Image-Size-3.01  
 * Cleaning temporary space


but exists

portage # emerge --search ImageSize
Searching...   
[ Results for search key : ImageSize ]
[ Applications found : 1 ]
 
*  dev-perl/ImageSize
      Latest version available: 3.01
      Latest version installed: 3.01
      Size of files: 137 kB
      Homepage:      http://www.cpan.org/modules/by-module/Image/Image-Size-3.01.readme
      Description:   The Perl Image-Size Module
      License:       Artistic
Comment 1 Michael Cummings (RETIRED) gentoo-dev 2007-03-31 18:22:38 UTC
Fixed in svn. Reviewing bugs for any more quick updates, should be in portage in the next few days.
Comment 2 Sergiy Borodych 2007-04-04 11:28:36 UTC
# g-cpan -v -p -i Image::Size
 * Getting CPAN Info for Image::Size
-CPAN: Storable loaded ok
Going to read /root/.cpan/Metadata
  Database was generated on Sat, 31 Mar 2007 23:09:48 GMT
 * Scanning /usr/local/portage.old for Image-Size
 * Found ebuild for CPAN name Image-Size
Use of uninitialized value in concatenation (.) or string at /usr/bin/g-cpan line 783, <DATA> line 15.
Use of uninitialized value in concatenation (.) or string at /usr/bin/g-cpan line 783, <DATA> line 15.
 * Ebuild already exists for Image-Size (/)
Use of uninitialized value in hash element at /usr/bin/g-cpan line 785, <DATA> line 15.
 * Calling emerge for 

 * Calling: emerge --pretend 

These are the packages that would be merged, in order:

Calculating dependencies... done!
 * Cleaning temporary space



add before 783 line

use Data::Dumper;
print_ok(Dumper($gcpan_run));

# g-cpan -v -p -i Image::Size
 * Getting CPAN Info for Image::Size
-CPAN: Storable loaded ok
Going to read /root/.cpan/Metadata
  Database was generated on Sat, 31 Mar 2007 23:09:48 GMT
 * Scanning /usr/local/portage.old for Image-Size
 * Found ebuild for CPAN name Image-Size
 * $VAR1 = bless( {
                 'DEBUG' => undef,
                 'cpan_reload' => undef,
                 'cpan' => {
                             'image::size' => {
                                                'portage_name' => 'Image-Size',
                                                'version' => '3.01',
                                                'src_uri' => 'R/RJ/RJRAY/Image-Size-3.01.tar.gz',
                                                'name' => 'Image::Size',
                                                'portage_version' => '3.01',
                                                'description' => 'Measure size of images in common formats'
                                              }
                           },
                 'packagelist' => [],
                 'portage' => {
                                'image-size' => {
                                                  'found' => 1
                                                },
                                'image::size' => {}
                              },
                 'portage_bases' => {
                                      '/usr/local/portage.old' => 1,
                                      '/usr/local/portage' => 1,
                                      '/usr/portage' => 1
                                    },
                 'modules' => {},
                 'portage_categories' => [
                                           'perl-gcpan',
                                           'dev-perl',
                                           'perl-core',
                                           'perl-text',
                                           'perl-tools',
                                           'perl-xml',
                                           'perl-dev',
                                           'dev-lang'
                                         ],
                 'sources' => '/usr/portage/distfiles'
               }, 'Gentoo' );

Use of uninitialized value in concatenation (.) or string at /usr/bin/g-cpan line 785, <DATA> line 15.
Use of uninitialized value in concatenation (.) or string at /usr/bin/g-cpan line 785, <DATA> line 15.
 * Ebuild already exists for Image-Size (/)
Use of uninitialized value in hash element at /usr/bin/g-cpan line 787, <DATA> line 15.
 * Calling emerge for 

 * Calling: emerge --pretend 

These are the packages that would be merged, in order:

Calculating dependencies... done!
 * Cleaning temporary space
Comment 3 Sergiy Borodych 2007-04-04 11:30:18 UTC
$gcpan_run->{'portage'}{lc($ebuild_wanted)}{'category'} and $gcpan_run->{'portage'}{lc($ebuild_wanted)}{'name'}
not here :(
Comment 4 Sergiy Borodych 2007-04-04 11:59:02 UTC
I forgot to say
app-portage/g-cpan-0.15_rc6
Comment 5 Michael Cummings (RETIRED) gentoo-dev 2007-04-05 12:30:13 UTC
(In reply to comment #4)
> I forgot to say
> app-portage/g-cpan-0.15_rc6
> 

What's really weird is:
g-cpan -v -p -i Image::Size
 * Getting CPAN Info for Image::Size
-CPAN: Storable loaded ok
Going to read /var/tmp/g-cpan/.cpan/Metadata
  Database was generated on Wed, 04 Apr 2007 03:09:19 GMT
 * Scanning /usr/portage for Image-Size
 * Found ebuild for CPAN name Image-Size
 * Ebuild already exists for Image-Size (dev-perl/ImageSize)
 * Calling emerge for ImageSize

 * Calling: emerge --pretend ImageSize

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] dev-perl/ImageSize-3.01  
 * Cleaning temporary space
Comment 6 Sergiy Borodych 2007-04-05 22:42:50 UTC
I try on another machine and got same result :(

I think problen in

* Scanning /usr/local/portage.old for Image-Size

g-cpan try found ebuild here, but need 

* Scanning /usr/portage for Image-Size
like for you

maybe I try discover this problem tomorrow
Comment 7 Yuval Yaari (RETIRED) gentoo-dev 2007-07-29 22:06:18 UTC
This bug was fixed already (see r174 :))
Sergiy, can we close this one?
Comment 8 Sergiy Borodych 2007-08-17 07:35:18 UTC
sorry for delay
yes it work now
closed
Comment 9 Sergiy Borodych 2007-08-17 07:44:27 UTC
sorry
reopen
but it very strange bug

homeland portage # g-cpan -v -p -i Image::Size * Getting CPAN Info for Image::Size
-CPAN: Storable loaded ok (v2.16)
Going to read /root/.cpan/Metadata
  Database was generated on Wed, 15 Aug 2007 23:36:49 GMT
 * Scanning /usr/local/portage.old for Image-Size
 * Found ebuild for CPAN name Image-Size
 * Ebuild already exists for Image-Size (dev-perl/ImageSize)
 * Calling emerge for ImageSize

 * Calling: emerge --pretend ImageSize

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N    ] dev-perl/ImageSize-3.01  USE="-test" 
 * Cleaning temporary space


but


homeland portage # g-cpan -i -v -p CGI::Application::Plugin::ValidateRM
...
 * Checking on dependency Image::Size for Data::FormValidator
 * Scanning /usr/local/portage.old for Image-Size
 * Scanning /usr/local/portage for Image-Size
 * Scanning /usr/portage for Image-Size
|CPAN: checksum security checks disabled because Digest::SHA not installed.
Image-Size-3.01/
Image-Size-3.01/t/
Image-Size-3.01/t/yasp.swf
Image-Size-3.01/t/pod_coverage.t
Image-Size-3.01/t/bexjdic.tif
Image-Size-3.01/t/magick.t
Image-Size-3.01/t/00_signature.t
Image-Size-3.01/t/pass-1_s.png
Image-Size-3.01/t/8.swf
Image-Size-3.01/t/xterm.bmp
Image-Size-3.01/t/letter_T.jpg
Image-Size-3.01/t/468x60.psd
Image-Size-3.01/t/all.t
Image-Size-3.01/t/xterm.xpm
Image-Size-3.01/t/spacer50.xbm
Image-Size-3.01/t/pak38.jpg
Image-Size-3.01/t/pod.t
Image-Size-3.01/t/lexjdic.tif
Image-Size-3.01/t/letter_N.ppm
Image-Size-3.01/t/test.gif
Image-Size-3.01/ex/
Image-Size-3.01/ex/make_gallery.pl
Image-Size-3.01/MANIFEST
Image-Size-3.01/MANIFEST.SKIP
Image-Size-3.01/META.yml
Image-Size-3.01/imgsize
Image-Size-3.01/README.Win32
Image-Size-3.01/ChangeLog
Image-Size-3.01/lib/
Image-Size-3.01/lib/Image/
Image-Size-3.01/lib/Image/Size.pm
Image-Size-3.01/README
Image-Size-3.01/Makefile.PL
Image-Size-3.01/Build.PL
Image-Size-3.01/SIGNATURE
Unknown 'build_class', defaulting to 'Module::Build'
 * Checking on dependency perl for Image::Size
 * perl is part of the core perl install
...
 * Calling: emerge --pretend Data-FormValidator Image-Size Perl6-Junction CGI-Application-Plugin-ValidateRM

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N    ] dev-perl/Sub-Uplevel-0.14  
[ebuild  N    ] perl-gcpan/Perl6-Junction-1.30000  
[ebuild  N    ] perl-gcpan/Image-Size-3.01  
[ebuild  N    ] dev-perl/regexp-common-2.120  
[ebuild  N    ] dev-perl/MIME-Types-1.20  
[ebuild  N    ] dev-perl/File-MMagic-1.27  
[ebuild  N    ] dev-perl/HTML-FillInForm-1.06  
[ebuild  N    ] dev-perl/Test-Exception-0.25  
[ebuild  N    ] dev-perl/Carp-Clan-5.9  
[ebuild  N    ] dev-perl/Bit-Vector-6.4  
[ebuild  N    ] dev-perl/Date-Calc-5.4  
[ebuild  N    ] perl-gcpan/Data-FormValidator-4.51  
[ebuild  N    ] perl-gcpan/CGI-Application-Plugin-ValidateRM-2.1  
 * Cleaning temporary space


so bug still here
Comment 10 Sergiy Borodych 2008-06-05 15:11:56 UTC
I discover that problem and found bug
it because __DATA__ can read only once
but it try to use with while <DATA> many times

I atach small patch for fix that

so now all works fine

# g-cpan -i -v -p Data::FormValidator
 * Getting CPAN Info for Data::FormValidator
...
Comment 11 Sergiy Borodych 2008-06-05 15:13:05 UTC
Created attachment 155607 [details]
Portage.pm.patch

Gentoo/Portage.pm patch
Comment 12 Sergiy Borodych 2008-07-21 20:43:33 UTC
Created attachment 161035 [details]
g-cpan-0.15.0-r1.ebuild

g-cpan-0.15.0-r1.ebuild
Comment 13 Sergiy Borodych 2008-07-21 20:43:57 UTC
Created attachment 161037 [details]
Portage_pm_DATA.patch

Portage_pm_DATA.patch
Comment 14 Sergiy Borodych 2008-07-21 20:44:16 UTC
ping
Comment 15 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2010-02-15 07:08:36 UTC
It works for me in testing, please reopen with new test data if it's a problem.