<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>3069</bug_id>
          
          <creation_ts>2012-09-06 22:03:47 +0000</creation_ts>
          <short_desc>perl File::Glob module is broken.</short_desc>
          <delta_ts>2013-01-23 09:40:01 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>11</classification_id>
          <classification>Runtime</classification>
          <product>General Runtime</product>
          <component>General Runtime</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>(D5)(Patch Merged)</status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.4 M1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Scott Garman">scott.a.garman</reporter>
          <assigned_to name="Kai Kang">kai.kang</assigned_to>
          <cc>sgw</cc>
    
    <cc>yi.zhao</cc>
    
    <cc>zhenfeng.zhao</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>24900</commentid>
    <comment_count>0</comment_count>
    <who name="Scott Garman">scott.a.garman</who>
    <bug_when>2012-09-06 22:03:47 +0000</bug_when>
    <thetext>Steps to reproduce:

Build an image that includes perl and various perl modules, including perl-module-file-glob. 

Put the following in a test.pl script:

#!/usr/bin/perl
require File::Glob;

When you run the script, you will get a perl error that the script cannot find the File::Glob module. However the module file itself appears to exist where it should in /usr/lib/perl/5.14.2/File/Glob.pm. I&apos;m not clear on why it doesn&apos;t work.

Someone else reported this on the Beaglebone mailing list and ended up rebulding the module from perl CPAN instead to workaround the issue:

https://groups.google.com/forum/#!topic/beagleboard/TFhzYEIDTjI

So we should find the cause of this (pod files are needed?) and fix it for good.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>24947</commentid>
    <comment_count>1</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2012-09-07 22:09:10 +0000</bug_when>
    <thetext>Just to verify, can you past the actual error you get?  I think the real issue is that you are missing the strict.pm module.  At least that&apos;s the error I get is &quot;Can&apos;t locate strict.pm in @INC ....

As you note the module appears to exist.

So there is a dependency on strict inside of Glob and that is not being reflected into the packaging system.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25503</commentid>
    <comment_count>2</comment_count>
    <who name="Scott Garman">scott.a.garman</who>
    <bug_when>2012-09-21 01:32:38 +0000</bug_when>
    <thetext>Sorry for the late reply.

You need to install the perl-module-strict package, and that&apos;s when you&apos;ll see the following error:

root@qemux86:~# ./test.pl 
Can&apos;t locate loadable object for module File::Glob in @INC (@INC contains: /etc/perl /usr/lib/perl/site_perl/5.14.2/ /usr/lib/perl/site_perl/5.14.2 /usr/lib/perl/vendor_perl/5.14.2/ /usr/lib/perl/vendor_perl/5.14.2 /data/poky_builds/poky/build/tmp/sysroots/qemux86/usr/lib/perl/5.14.2/ /usr/lib/perl/5.14.2 /usr/local/lib/site_perl /usr/lib/perl/5.14.2 .) at ./test.pl line 4
Compilation failed in require at ./test.pl line 4.

Here is the list of perl packages I have installed:

root@qemux86:~# rpm -qa | grep perl
perl-module-cwd-5.14.2-r8.i586
perl-module-re-5.14.2-r8.i586
perl-module-warnings-register-5.14.2-r8.i586
perl-module-overload-5.14.2-r8.i586
perl-module-lib-5.14.2-r8.i586
perl-module-warnings-5.14.2-r8.i586
perl-module-config-5.14.2-r8.i586
perl-module-exporter-5.14.2-r8.i586
perl-module-getopt-long-5.14.2-r8.i586
perl-module-constant-5.14.2-r8.i586
perl-module-carp-5.14.2-r8.i586
perl-module-text-wrap-5.14.2-r8.i586
perl-module-xsloader-5.14.2-r8.i586
perl-module-strict-5.14.2-r8.i586
perl-module-file-glob-5.14.2-r8.i586
perl-module-dynaloader-5.14.2-r8.i586
perl-module-vars-5.14.2-r8.i586
perl-module-feature-5.14.2-r8.i586
perl-module-exporter-heavy-5.14.2-r8.i586
perl-module-text-tabs-5.14.2-r8.i586
libperl5-5.14.2-r8.i586
perl-5.14.2-r8.i586</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>26871</commentid>
    <comment_count>3</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2012-10-24 23:17:49 +0000</bug_when>
    <thetext>The perl-rdepends.inc needs to be updated, the existing script that genreate it is not correct, I will a script which will need some more work.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>26872</commentid>
    <comment_count>4</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2012-10-24 23:21:14 +0000</bug_when>
    <thetext>egrep -r &quot;^use .*;|^require .*;&quot; perl-module-* --include=&quot;*.pm&quot; | sed &quot;s/\/.*\.pm: */ += /g;s/[\&quot;\&apos;]//g;s/;.*/\&quot;/g;s/\(require\|use\) */\&quot;perl-module-/g;s/CPANPLUS::.*/cpanplus/g;s/CPAN::.*/cpan/g;s/::/-/g;s/ [^+\&quot;].*//g;s/_/-/g;s/\.pl\&quot;$/\&quot;/;s/\&quot;\?\$/\&quot;/&quot; | tr [:upper:] [:lower:] | grep -v -e &quot;\-vms\-&quot; -e module-5 -e &quot;^$&quot; -e &quot;\\$&quot; -e your -e tk -e autoperl -e html -e http -e parse-cpan -e perl-ostype -e ndbm-file -e module-mac -e fcgi -e lwp -e dbd -e dbix | sort -u

This will still need more work to be correct, especially with changes that move the core modules into the perl package.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>26933</commentid>
    <comment_count>5</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2012-10-25 22:15:15 +0000</bug_when>
    <thetext>Another thing to look at for the full dependency issue with perl is the rpmresolve code.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28792</commentid>
    <comment_count>6</comment_count>
    <who name="Kai Kang">kai.kang</who>
    <bug_when>2013-01-14 03:26:03 +0000</bug_when>
    <thetext>Yocto commit 4601eb90f518fdc2d5fda31507402f7929268c87</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>29077</commentid>
    <comment_count>7</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2013-01-23 09:40:01 +0000</bug_when>
    <thetext>Verified.
poky/master: 9eb88ceb39b7d0b8ddc6487e61ce8edadef10ec4
##########
root@qemumips:~# rpm -qa|grep perl-module-file-glob
perl-module-file-glob-5.14.2-r17.mips32
perl-module-file-globmapper-5.14.2-r17.mips32
root@qemumips:~# 
root@qemumips:~# cat test.pl 
#!/usr/bin/perl
require File::Glob;
root@qemumips:~# 
root@qemumips:~# perl ./test.pl 
root@qemumips:~# echo $?
0
root@qemumips:~# 
##########</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>