<?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>5863</bug_id>
          
          <creation_ts>2014-02-21 14:43:40 +0000</creation_ts>
          <short_desc>Do not duplicate the same conf notes from oe-core</short_desc>
          <delta_ts>2014-02-25 10:37:38 +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>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Low</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.6 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Laszlo Papp">lpapp</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>ndec13</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>40593</commentid>
    <comment_count>0</comment_count>
    <who name="Laszlo Papp">lpapp</who>
    <bug_when>2014-02-21 14:43:40 +0000</bug_when>
    <thetext>./meta-yocto/conf/conf-notes.txt and ./meta/conf/conf-notes.txt are identical.

It should be possible to inherit the file from oe-core in my opinion if the desired content is the same.

This can cause sync overhead, et cetera.

If one likes to customize it, it is possible by having that file with a different content, but for the same content, it looks a bit strange a duplication.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40661</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2014-02-25 10:07:52 +0000</bug_when>
    <thetext>The TEMPLATECONF directory is used to contain conf-notes.txt and things like local.conf.sample. It can only be set to one directory so if you change it, you take copies of the set of files.

We could add a ton of complexity for fallbacks and so on to remove the file duplication however I think the duplicate file isn&apos;t a big issue in this case. In most cases you would want to customise *all* the files.

So basically, it doesn&apos;t make sense to change this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40662</commentid>
    <comment_count>2</comment_count>
    <who name="Laszlo Papp">lpapp</who>
    <bug_when>2014-02-25 10:11:03 +0000</bug_when>
    <thetext>&gt; We could add a ton of complexity for fallbacks.

It would be literally a few lines in the bash script where it is set up. I am assume it could be done in less than five, eventually.

Please let me know why it would not be that simple.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40663</commentid>
    <comment_count>3</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2014-02-25 10:19:11 +0000</bug_when>
    <thetext>Its adding complexity into a location where I don&apos;t believe we want or need it. We try to keep the init scripts as simple and clean as possible. The &quot;poky&quot; case is one of the few cases where a copy of that file makes sense, nearly every other user would modify it.

So my answer remains as stated, I don&apos;t believe we need or want this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40667</commentid>
    <comment_count>4</comment_count>
    <who name="Laszlo Papp">lpapp</who>
    <bug_when>2014-02-25 10:32:30 +0000</bug_when>
    <thetext>In fact, this &quot;complexity&quot; is already in there:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/scripts/oe-setup-builddir#n121

So, there would be no any need for the meta-yocto layer to keep it. So, you could either remove that &quot;complexity&quot; (IMHO bad idea), or remove the complexity from the meta-yocto layer.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40669</commentid>
    <comment_count>5</comment_count>
    <who name="Laszlo Papp">lpapp</who>
    <bug_when>2014-02-25 10:35:42 +0000</bug_when>
    <thetext>I was not probably clear, so most of the complexity is already in there, and adding one line allow to remove a whole file in meta-yocto and elsewhere where the users are happy with the default.

The required change is basically a one-liner in here:

OECORENOTESCONF=&quot;$TEMPLATECONF/conf-notes.txt&quot;

to:

if ! (test -r &quot;&quot;$TEMPLATECONF/conf-notes.txt&quot;); then
    OECORENOTESCONF=&quot;$TEMPLATECONF/conf-notes.txt&quot;

or something like that.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40670</commentid>
    <comment_count>6</comment_count>
    <who name="Laszlo Papp">lpapp</who>
    <bug_when>2014-02-25 10:37:38 +0000</bug_when>
    <thetext>Hmm, I cannot still edit comment on bugzilla, so I made a mistake about the negation, so that would not even be needed, so it would be even simpler than my previous one-liner. :-)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>