<?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>2688</bug_id>
          
          <creation_ts>2012-07-04 02:51:21 +0000</creation_ts>
          <short_desc>apt-native 0.7.14: file name too long error when run (tmpdir length)</short_desc>
          <delta_ts>2012-07-19 08:08:22 +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>OE-Core</product>
          <component>devtools / tool chain</component>
          <version>1.3</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>(QA Testing Completed)(Done) </status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.3 M4</target_milestone>
          
          <blocked>2434</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Robert Yang">liezhi.yang</reporter>
          <assigned_to name="Robert Yang">liezhi.yang</assigned_to>
          <cc>jessica.zhang</cc>
    
    <cc>liang.li2</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>sgw</cc>
    
    <cc>song.liu</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>22770</commentid>
    <comment_count>0</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2012-07-04 02:51:21 +0000</bug_when>
    <thetext>when the tmpdir dir is longer than 220, there is no files saved in tmp/sysroots/x86_64-linux/var/lib/apt/lists/ after run apt-get update, this is because apt-get uses the path as the file name, but the file name can&apos;t be longer than 255 according to /usr/include/linux/limits.h, here is the related from apt-pkg/contrib/strutl.cc:

string URItoFileName(const string &amp;URI)
{
   // Nuke &apos;sensitive&apos; items
   ::URI U(URI);
   U.User.clear();
   U.Password.clear();
   U.Access.clear();

   // &quot;\x00-\x20{}|\\\\^\\[\\]&lt;&gt;\&quot;\x7F-\xFF&quot;;
   string NewURI = QuoteString(U,&quot;\\|{}[]&lt;&gt;\&quot;^~_=!@#$%^&amp;*&quot;);
   replace(NewURI.begin(),NewURI.end(),&apos;/&apos;,&apos;_&apos;);
   return NewURI;
}

Limit the NewURI length to 255 would fix the problem.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>22920</commentid>
    <comment_count>1</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2012-07-10 01:54:41 +0000</bug_when>
    <thetext>http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=f06c1c3df0aeec4eea7697159c4954187d19ae9b</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>23242</commentid>
    <comment_count>2</comment_count>
    <who name="liang li">liang.li2</who>
    <bug_when>2012-07-19 08:01:43 +0000</bug_when>
    <thetext>the build dir is &quot;/home/yocto/test_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto/test_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto&quot; ,which length equals 400.
run &quot;bitbake core-image-minimal&quot;, no error during build and files are saved in &quot;tmp/sysroots/x86_64-linux/var/lib/apt/lists/&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>23244</commentid>
    <comment_count>3</comment_count>
    <who name="liang li">liang.li2</who>
    <bug_when>2012-07-19 08:08:22 +0000</bug_when>
    <thetext>test env :
host :Fedora 17 x86_64

git info : eb0cb7e8234f5d2e5623406e9660be91cf52f65e
git branch: poky/master</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>