<?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>1676</bug_id>
          
          <creation_ts>2011-10-14 03:09:54 +0000</creation_ts>
          <short_desc>package.bbclass does not handle files with wildcards in their names well</short_desc>
          <delta_ts>2014-01-09 14:07:45 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>Meta-yocto</product>
          <component>meta-yocto</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></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.6 M1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Paul Eggleton">bluelightning</reporter>
          <assigned_to name="Paul Eggleton">bluelightning</assigned_to>
          <cc>alexandrux.palalau</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>sgw</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>16871</commentid>
    <comment_count>0</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2011-10-14 03:09:54 +0000</bug_when>
    <thetext>If a file to be packaged contains a wildcard (e.g. *) in its name, there is another file which would match the expression that the wildcarded filename produces, and that wildcarded filename ends up in a FILES_ variable (e.g. when do_split_packages() is used) then populate_packages() can end up looping forever.

Obviously the use of wildcards in actual filenames is extremely ill-advised, however I came across this problem when trying to write a recipe for Webmin (the issue being with the file logrotate/config-*-linux which also matches logrotate/config-open-linux) so there are packages out there in the wild that unfortunately have this issue. An obvious workaround would be to just rename the file to something more sensible, however there&apos;s no guarantee that more of these files won&apos;t be added in later versions, and stalling forever is not really a good failure mode.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19713</commentid>
    <comment_count>1</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2012-03-30 15:02:31 +0000</bug_when>
    <thetext>I have a tentative fix for this but it&apos;s too risky to slip into 1.2, especially given how uncommon this issue will be. Moving to 1.3.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>32794</commentid>
    <comment_count>2</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2013-04-30 22:31:41 +0000</bug_when>
    <thetext>Is the fix available?  It has already slipped from 1.2 -&gt; 1.3 -&gt; 1.4 now -&gt; 1.5!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37439</commentid>
    <comment_count>3</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2013-10-01 16:20:16 +0000</bug_when>
    <thetext>You&apos;re right, this has slipped; I am now testing a much more straightforward fix and should be able to send it soon.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37584</commentid>
    <comment_count>4</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2013-10-03 16:52:34 +0000</bug_when>
    <thetext>Patch sent for review, but I don&apos;t expect it to go into 1.5.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37904</commentid>
    <comment_count>5</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2013-10-14 16:49:57 +0000</bug_when>
    <thetext>Fix merged to master:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=567754acb80e5d1c6cabdb1dae1ea4fbea80e52a</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39689</commentid>
    <comment_count>6</comment_count>
    <who name="Alexandru Palalau">alexandrux.palalau</who>
    <bug_when>2014-01-08 15:06:30 +0000</bug_when>
    <thetext>Paul, I could not reproduce this behavior.
Used * in name for webmin file that should match logrotate files but nothing happened.
The same behavior before and after patch merge to master branch.
Could you please give me a hint on this matter.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39690</commentid>
    <comment_count>7</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2014-01-08 15:40:18 +0000</bug_when>
    <thetext>What exactly did you do to test this?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39695</commentid>
    <comment_count>8</comment_count>
    <who name="Alexandru Palalau">alexandrux.palalau</who>
    <bug_when>2014-01-09 08:15:03 +0000</bug_when>
    <thetext>Just added a new config-*-linux file to sources and pointed the new location of the tar.gz in the webmin recipe.
Then bitbake webmin and logrotate.
I guess i&apos;m missing a step or something...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39696</commentid>
    <comment_count>9</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2014-01-09 09:55:48 +0000</bug_when>
    <thetext>Probably an easier test would be to just disable the workarounds in the webmin recipe for the problem and see if do_package completes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39710</commentid>
    <comment_count>10</comment_count>
    <who name="Alexandru Palalau">alexandrux.palalau</who>
    <bug_when>2014-01-09 14:07:45 +0000</bug_when>
    <thetext>Switching to verified. 
Commit ID: 6ee5d95317de77c1cfb6db6f1ab2de77f5fa085e
@Paul: commenting the workaround reproduced the loop.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>