<?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>3388</bug_id>
          
          <creation_ts>2012-11-05 15:49:06 +0000</creation_ts>
          <short_desc>perf: enable man pages for basic &apos;help&apos; functionality</short_desc>
          <delta_ts>2021-07-30 15:26:00 +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>kernel</component>
          <version>3.3.3</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</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>3.4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Tom Zanussi">tom.zanussi</reporter>
          <assigned_to name="Michael Opdenacker">michael.opdenacker</assigned_to>
          <cc>bluelightning</cc>
    
    <cc>bruce.ashfield</cc>
    
    <cc>michael.opdenacker</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>ross.burton</cc>
    
    <cc>sgw</cc>
    
    <cc>tom.zanussi</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Yes (doc changes required)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>27237</commentid>
    <comment_count>0</comment_count>
    <who name="Tom Zanussi">tom.zanussi</who>
    <bug_when>2012-11-05 15:49:06 +0000</bug_when>
    <thetext>The help for perf subcommands that a user gets when using &apos;perf &lt;subcommand&gt; help&apos; relies on manpage support for those subcommands.  Support for &apos;man&apos; isn&apos;t installed by default - we should add a dependency to add manpage support when perf is included in an image.

root@crownbay:~# perf help record
  Warning: failed to exec &apos;man&apos;: No such file or directory
  Fatal: no man viewer handled the request</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>27240</commentid>
    <comment_count>1</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2012-11-05 22:10:50 +0000</bug_when>
    <thetext>I assume we&apos;ll make this optional on a flag somehow ? (sort of
like the script support). I&apos;m just thinking that some small 
images might want perf, but not man and it&apos;s dependencies .. but
maybe it&apos;s really small and wouldn&apos;t make a difference.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>27241</commentid>
    <comment_count>2</comment_count>
    <who name="Tom Zanussi">tom.zanussi</who>
    <bug_when>2012-11-05 22:16:13 +0000</bug_when>
    <thetext>Well, the manpages are pretty extensive so I wouldn&apos;t call them small, though I kind of assumed that images that included perf meant -sdk images mainly, where it wouldn&apos;t be much of an issue.

But it wouldn&apos;t be a big deal to add an option that turned it off if - the fact that it you&apos;re mentioning it means it&apos;s likely to be important to someone, so let&apos;s consider such a flag as part of fixing this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39875</commentid>
    <comment_count>3</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2014-01-16 16:42:14 +0000</bug_when>
    <thetext>I just had a quick look at this in case it was trivial to at least get the man pages into perf-doc.  It won&apos;t work out of the box: we&apos;d need to copy (at least) xmlto from meta-oe, and add a recipe for asciidoc.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>48451</commentid>
    <comment_count>4</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2015-01-30 18:32:33 +0000</bug_when>
    <thetext>Minor update - we do at least have xmlto in OE-Core as of recently.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64517</commentid>
    <comment_count>5</comment_count>
    <who name="dengke">dengke.du</who>
    <bug_when>2016-07-27 05:19:30 +0000</bug_when>
    <thetext>This is because that the help man pages of perf depends on the asciidoc tools.

Steps:
1. Add the recipe for asciidoc.
2. Add the RDEPENDS_${PN}-doc += &quot;man&quot; for perf recipe.
3. Add the DEPENDS += &quot;xmlto-native asciidoc-native&quot;

Explain:
The first make sure the asciidco tools exist.
The second make sure the man command when using &apos;perf help &lt;subcommand&gt;&apos;
The third make sure the man pages&apos;s correct produce.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90957</commentid>
    <comment_count>6</comment_count>
    <who name="Michael Opdenacker">michael.opdenacker</who>
    <bug_when>2021-07-16 18:34:07 +0000</bug_when>
    <thetext>Can this bug be closed?
The documentation still refers to it, and I would like to remove the reference to it...
Thanks in advance
Michael.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90963</commentid>
    <comment_count>7</comment_count>
    <who name="Michael Opdenacker">michael.opdenacker</who>
    <bug_when>2021-07-21 13:21:12 +0000</bug_when>
    <thetext>Re-opening this bug.
When I add &quot;perf&quot; to the image and its &quot;manpages&quot; feature to local.conf:

IMAGE_INSTALL_append = &quot; perf&quot;
PACKAGECONFIG_append_pn-perf = &quot; manpages&quot;

Then I build core-image-minimal:
bitbake core-image-minimal

However, I still don&apos;t get the expected behaviour:

root@qemux86-64:~# perf help record
failed to exec &apos;man&apos;: No such file or directoryno man viewer handled the request

But do we really want to add manpages to the image?
We could also drop this idea.
What do you think?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90964</commentid>
    <comment_count>8</comment_count>
    <who name="Michael Opdenacker">michael.opdenacker</who>
    <bug_when>2021-07-21 13:24:28 +0000</bug_when>
    <thetext>Reset the default assigned as dengke.du@windriver.com doesn&apos;t seem to be active any more.

Also added that a documentation change is needed (because this bug is referred to in the documentation)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90994</commentid>
    <comment_count>9</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2021-07-22 15:11:29 +0000</bug_when>
    <thetext>Did you add &quot;api-documentation&quot; to DISTRO_FEATURES? See manpages.bbclass</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90995</commentid>
    <comment_count>10</comment_count>
    <who name="Stephen K Jolley">sjolley.yp.pm</who>
    <bug_when>2021-07-22 15:13:39 +0000</bug_when>
    <thetext>See Richards question</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91007</commentid>
    <comment_count>11</comment_count>
    <who name="Michael Opdenacker">michael.opdenacker</who>
    <bug_when>2021-07-22 20:28:47 +0000</bug_when>
    <thetext>Just tried to add:
DISTRO_FEATURES_append = &quot; api-documentation&quot;

But getting the exact same error.
Thanks for your help!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91038</commentid>
    <comment_count>12</comment_count>
    <who name="Michael Opdenacker">michael.opdenacker</who>
    <bug_when>2021-07-28 14:57:57 +0000</bug_when>
    <thetext>Still stuck here, help appreciated.
Thanks in advance
Michael.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91049</commentid>
    <comment_count>13</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2021-07-29 13:46:32 +0000</bug_when>
    <thetext>I can have a look at this later in August (I&apos;m heading on vacation), and confirm whether we can get this working, or just close the bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91050</commentid>
    <comment_count>14</comment_count>
    <who name="Michael Opdenacker">michael.opdenacker</who>
    <bug_when>2021-07-29 13:48:20 +0000</bug_when>
    <thetext>Great, thanks Bruce!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91069</commentid>
    <comment_count>15</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2021-07-30 11:39:04 +0000</bug_when>
    <thetext>Shouldn&apos;t this be:

IMAGE_INSTALL_append = &quot; perf-doc&quot;

?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91070</commentid>
    <comment_count>16</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2021-07-30 12:25:21 +0000</bug_when>
    <thetext>I confirmed that the configuration that makes this work is:

IMAGE_INSTALL_append = &quot; perf perf-doc&quot;
DISTRO_FEATURES_append = &quot; api-documentation&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91071</commentid>
    <comment_count>17</comment_count>
    <who name="Michael Opdenacker">michael.opdenacker</who>
    <bug_when>2021-07-30 15:26:00 +0000</bug_when>
    <thetext>I confirm that this solution works.
I can close this bug and update the documentation.
Many thanks!</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>