<?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>6398</bug_id>
          
          <creation_ts>2014-06-04 11:02:53 +0000</creation_ts>
          <short_desc>libexecdir should be set to follow FHS recommendation</short_desc>
          <delta_ts>2016-02-05 11:12:40 +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>core</component>
          <version>1.6</version>
          <rep_platform>All</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>2 Feb 2016: IN PROGRESS REVIEW</status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>2.1 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ross Burton">ross.burton</reporter>
          <assigned_to name="Ross Burton">ross.burton</assigned_to>
          <cc>alexandru.c.georgescu</cc>
    
    <cc>bluelightning</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>srifenbark</cc>
          
          <qa_contact name="Costin">costin.c.constantin</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>New (Never tested)</cf_regression_type>
          
          <cf_docchange>Done (doc changes complete)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>43760</commentid>
    <comment_count>0</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2014-06-04 11:02:53 +0000</bug_when>
    <thetext>We currently set libexecdir to ${libdir}/${BPN}, but we&apos;re alone in using this directory structure.

The Debian world sets libexecdir to ${exec_prefix}/lib, and the Red Hat world uses ${exec_prefix}/libexec.  The FHS says either are fine.  Nobody puts the package name into the definition of libexecdir.

I&apos;ve a WIP branch that solves this but there will be fallout so we should merge it sooner rather than later.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47057</commentid>
    <comment_count>1</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2014-11-17 18:24:14 +0000</bug_when>
    <thetext>I have a patch and am testing now.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>51408</commentid>
    <comment_count>2</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2015-06-01 23:04:28 +0000</bug_when>
    <thetext>Hi, 

Right now I have a section http://www.yoctoproject.org/docs/1.9/ref-manual/ref-manual.html#qa-errors-and-warnings that states:

      By default, libexecdir is set to &quot;${libdir}/${BPN}&quot; rather 
      than to &quot;/usr/libexec&quot;.

I am assuming that any solution to this bug will change that?  I think that is the only area in the YP doc set affected.

Scott</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>51418</commentid>
    <comment_count>3</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2015-06-02 07:52:37 +0000</bug_when>
    <thetext>Scott: yes, that&apos;s probably the only place (and the release notes) in the docs that&apos;s relevant.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58233</commentid>
    <comment_count>4</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2016-01-26 14:21:26 +0000</bug_when>
    <thetext>Merged in oe-core e7270e331560546d3805cd66ed14afcbc96b6d89.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58285</commentid>
    <comment_count>5</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2016-01-27 23:41:58 +0000</bug_when>
    <thetext>Ross, 

What is the fallout for that error message?  How does it change.  See the link below to see what that error message says in the doc right now.  I don&apos;t know how to change it regarding your fix.

http://www.yoctoproject.org/docs/2.1/ref-manual/ref-manual.html#qa-errors-and-warnings

Thanks,
Scott</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58293</commentid>
    <comment_count>6</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2016-01-28 11:13:33 +0000</bug_when>
    <thetext>That section needs to be something more like:

The specified package contains files in /usr/libexec when the distro configuration uses a different path for &lt;libexecdir&gt;.  By default libexecdir is $prefix/libexec but this can be changed, for example to ${libdir}.


We also need the change of $libexecdir from $libdir/$BPN to $prefix/libexec added to the release notes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58477</commentid>
    <comment_count>7</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2016-02-03 02:00:40 +0000</bug_when>
    <thetext>Ross, 

See http://www.yoctoproject.org/docs/2.1/ref-manual/ref-manual.html#qa-errors-and-warnings and tell me if we are good on this description. 

Regarding the release notes... Probably need to notify Paul Eggleton about this.  He is good at keeping a list of such things that get passed to Beth when the release notes are put down.

Once we get the doc changes approved, I can set the doc flag to &quot;done&quot;... or you can.

Scott</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58513</commentid>
    <comment_count>8</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2016-02-03 17:30:50 +0000</bug_when>
    <thetext>The revision looks good, marking as done.  Thanks Scott!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58636</commentid>
    <comment_count>9</comment_count>
    <who name="Costin">costin.c.constantin</who>
    <bug_when>2016-02-05 11:12:40 +0000</bug_when>
    <thetext>Hello,

Verified on latest master: b33e440cc6fbd703e8045d94b806790343e72eb6

To verify:
1) bitbake mc
2) check in the resulting .rpm file for /usr/libexec dir.

rpm2cpio mc-4.8.15-r0.core2_64.rpm | cpio -iv | grep libexec</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>