<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>235285</bug_id>
          
          <creation_ts>2008-08-20 12:06 0000</creation_ts>
          <short_desc>dev-util/oprofile-0.9.4 does not check kernel options, building something that can&apos;t work on my kernel</short_desc>
          <delta_ts>2008-08-20 19:09:11 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Ebuilds</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>zeev.tarantov@gmail.com</reporter>
          <assigned_to>spock@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>zeev.tarantov@gmail.com</who>
            <bug_when>2008-08-20 12:06:10 0000</bug_when>
            <thetext>The ebuild should verify that the kernel option CONFIG_OPROFILE is enabled (&quot;m&quot; or &quot;y&quot;). Note it is available only when CONFIG_PROFILING=y.
The ebuild checks the version of my kernel, but not this.
Granted, there is a runtime check that tipped me off, but a warning at build time could have saved me the hassle.

Reproducible: Always

Steps to Reproduce:
1. build oprofile on system where `grep &apos;CONFIG_OPROFILE=n&apos; /usr/src/linux/.config`
2. build succeeds.
3. opcontrol --init says it can&apos;t load module oprofile. get confused.

Actual Results:  
build succeeds.

opcontrol --init says it can&apos;t load module oprofile. get confused.


Expected Results:  
ebuild checks my kernel, warns me that I need to build this module for the package to work. Does not prevent me from building package.

I&apos;m using sys-kernel/gentoo-sources-2.6.26-r1 on latest ~x86, not that it matters.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>spock@gentoo.org</who>
            <bug_when>2008-08-20 19:09:11 0000</bug_when>
            <thetext>Fixed in CVS :) Thanks for the useful suggestion.</thetext>
          </long_desc>
      
    </bug>

</bugzilla>