<?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>31101</bug_id>
          
          <creation_ts>2003-10-14 01:11 0000</creation_ts>
          <short_desc>New ebuild for OProfile</short_desc>
          <delta_ts>2003-11-26 11:28:05 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>
          <bug_file_loc>http://oprofile.sourceforge.net</bug_file_loc>
          
          
          <priority>P2</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>bevand_m@epita.fr</reporter>
          <assigned_to>cretin@gentoo.org</assigned_to>
          <cc>levon@movementarian.org</cc>

      

      
          <long_desc isprivate="0">
            <who>bevand_m@epita.fr</who>
            <bug_when>2003-10-14 01:11:27 0000</bug_when>
            <thetext>Here is an ebuild I&apos;ve just written for OProfile:

---8&lt;-----------------------------------------------------------------
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: $

DESCRIPTION=&quot;A transparent low-overhead system-wide profiler&quot;
HOMEPAGE=&quot;http://oprofile.sourceforge.net&quot;
SRC_URI=&quot;mirror://sourceforge/oprofile/${P}.tar.gz&quot;
LICENSE=&quot;GPL-2&quot;

SLOT=&quot;0&quot;
KEYWORDS=&quot;~x86&quot;
# IUSE: it also needs kernel sources but all gentoo users have them
IUSE=&quot;qt&quot;
DEPEND=&quot;
        &gt;=dev-libs/popt-1.7-r1
        &gt;=sys-devel/binutils-2.14.90.0.6-r3
        &gt;=sys-libs/glibc-2.3.2-r1
        qt? ( &gt;=x11-libs/qt-3.2.1-r2 )&quot;

src_compile() {
        check_KV

        local myconf=&quot;&quot;

        myconf=&quot;${myconf} --with-x&quot;
        # note: compilation has only been tested with a 2.4 kernel
        case $KV in
                2.2.*|2.4.*) myconf=&quot;${myconf} --with-linux=/usr/src/linux&quot;;;
                2.5.*|2.6.*) myconf=&quot;${myconf} --with-kernel-support&quot;;;
                *) die &quot;Kernel version &apos;$KV&apos; not supported&quot;;;
        esac
        econf ${myconf} || die &quot;econf failed&quot;

        local mymake=&quot;&quot;

        sed -i -e &quot;s,depmod -a,:,g&quot; Makefile
        emake ${mymake} || die &quot;emake failed&quot;
}

src_install() {
        local myinst=&quot;&quot;

        myinst=&quot;${myinst} MODINSTALLDIR=${D}/lib/modules/${KV}&quot;
        make DESTDIR=${D} ${myinst} install || die &quot;make install failed&quot;

        dodoc ChangeLog* README TODO
}

pkg_postinst() {
        # media-video/nvidia-kernel does the following:
        [ -x /usr/sbin/update-modules ] &amp;&amp; /usr/sbin/update-modules

        echo
        einfo &quot;Now load the oprofile module by running:&quot;
        einfo &quot;  # opcontrol --init&quot;
        einfo &quot;Then read manpages and this html doc:&quot;
        einfo &quot;  /usr/share/doc/oprofile/oprofile.html&quot;
        echo
}
---8&lt;-----------------------------------------------------------------


Reproducible: Always
Steps to Reproduce:
n/a

Actual Results:  
n/a


Expected Results:  
n/a


n/a</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>cretin@gentoo.org</who>
            <bug_when>2003-10-23 15:50:42 0000</bug_when>
            <thetext>Many thanks, added to portage with no changes as dev-util/oprofile-0.7.
You should see it on rsync soon. 

( compile with linux-2.6 works ok, the modules are part of linus&apos; tree now
)</thetext>
          </long_desc>
      
    </bug>

</bugzilla>