<?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>3677</bug_id>
          
          <creation_ts>2013-01-05 11:26:44 +0000</creation_ts>
          <short_desc>apt-native: apt.conf.sample cannot be created correctly</short_desc>
          <delta_ts>2013-01-11 10:24:44 +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.4</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.4 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Hongxu Jia">hongxu.jia</reporter>
          <assigned_to name="Hongxu Jia">hongxu.jia</assigned_to>
          <cc>bogdan.a.marinescu</cc>
    
    <cc>hongxu.jia</cc>
    
    <cc>kai.kang</cc>
    
    <cc>liang.li2</cc>
    
    <cc>liezhi.yang</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>Qi.Chen</cc>
    
    <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>28565</commentid>
    <comment_count>0</comment_count>
    <who name="Hongxu Jia">hongxu.jia</who>
    <bug_when>2013-01-05 11:26:44 +0000</bug_when>
    <thetext>*problem
1. Firt time to execute &quot;bitbake apt-native&quot;, apt.conf.sample is created.
2. Execute &quot;bitbake apt-native -ccleansstate&quot;, apt.conf.sample is not removed.
3. Remove apt.conf.sample by hand and then execute &quot;bitbake apt-native&quot;,
   apt.conf.sample is not created any more.

*analysis
1.The task of &quot;do_install_config&quot; incorrectly use &quot;os.path.join&quot; to create
  dir of &quot;outdir&quot; which is used to keep &quot;apt.conf.sample&quot;. 

2.The rule to create &quot;apt.conf.sample&quot; is by the existance of &quot;outdir&quot;, 
  not the file itself.

*solution
1. Remove &quot;/&quot; of sysconfdir.
2. To create &quot;apt.conf.sample&quot; if it doesn&apos;t exist.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28619</commentid>
    <comment_count>1</comment_count>
    <who name="Hongxu Jia">hongxu.jia</who>
    <bug_when>2013-01-08 10:01:25 +0000</bug_when>
    <thetext>Patch sent on the mailing list.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28699</commentid>
    <comment_count>2</comment_count>
    <who name="Hongxu Jia">hongxu.jia</who>
    <bug_when>2013-01-10 06:43:14 +0000</bug_when>
    <thetext>As Richard suggestion:

Use oe.path.join() instead which doesn&apos;t have this problem.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28757</commentid>
    <comment_count>3</comment_count>
    <who name="Hongxu Jia">hongxu.jia</who>
    <bug_when>2013-01-11 09:42:33 +0000</bug_when>
    <thetext>Merged into master:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=be78e8190a38c8aff570ed7a3f93a531a296c37d</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28759</commentid>
    <comment_count>4</comment_count>
    <who name="liang li">liang.li2</who>
    <bug_when>2013-01-11 10:24:44 +0000</bug_when>
    <thetext>no such error with git master branch commit 66f4c8a674d9f8db958b13866af4d63ab8cbcd44</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>