summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Savchenko <bircoph@gmail.com>2014-12-01 08:49:49 +0300
committerAndrew Savchenko <bircoph@gmail.com>2014-12-01 08:49:49 +0300
commiteb415a326f8fae0e4b84f9f23099eff64c7d16ad (patch)
treebfaae5d376f30190d84be2028ae9e5d666096994 /dev-util
parentvanilla-sources: add 3.12.33 (diff)
downloadbircoph-eb415a326f8fae0e4b84f9f23099eff64c7d16ad.tar.gz
bircoph-eb415a326f8fae0e4b84f9f23099eff64c7d16ad.tar.bz2
bircoph-eb415a326f8fae0e4b84f9f23099eff64c7d16ad.zip
oprofile: version bump is added for testing
Diffstat (limited to 'dev-util')
-rw-r--r--dev-util/oprofile/ChangeLog392
-rw-r--r--dev-util/oprofile/Manifest22
-rw-r--r--dev-util/oprofile/files/oprofile-0.9.6-Add-argument-checking-for-numerical-arguments.patch74
-rw-r--r--dev-util/oprofile/files/oprofile-0.9.6-Avoid-blindly-source-SETUP_FILE-with.patch46
-rw-r--r--dev-util/oprofile/files/oprofile-0.9.6-Avoid-using-bash.patch19
-rw-r--r--dev-util/oprofile/files/oprofile-0.9.6-Do-additional-checks-on-user-supplied-arguments.patch182
-rw-r--r--dev-util/oprofile/files/oprofile-0.9.6-Ensure-that-save-only-saves-things-in-SESSION_DIR.patch35
-rw-r--r--dev-util/oprofile/files/oprofile-0.9.6-Fix-opcontrol-status-to-show-accurate-information.patch97
-rw-r--r--dev-util/oprofile/files/oprofile-0.9.6-mutable.patch19
-rw-r--r--dev-util/oprofile/files/oprofile-0.9.7-bfd.h-1.patch92
-rw-r--r--dev-util/oprofile/files/oprofile-0.9.7-bfd.h-2.patch28
-rw-r--r--dev-util/oprofile/files/oprofile-1.0.0-athlon.patch20
-rw-r--r--dev-util/oprofile/metadata.xml9
-rw-r--r--dev-util/oprofile/oprofile-0.9.6-r1.ebuild77
-rw-r--r--dev-util/oprofile/oprofile-0.9.7.ebuild72
-rw-r--r--dev-util/oprofile/oprofile-0.9.8.ebuild74
-rw-r--r--dev-util/oprofile/oprofile-0.9.9.ebuild74
-rw-r--r--dev-util/oprofile/oprofile-1.0.0.ebuild70
18 files changed, 1402 insertions, 0 deletions
diff --git a/dev-util/oprofile/ChangeLog b/dev-util/oprofile/ChangeLog
new file mode 100644
index 0000000..1fb32f7
--- /dev/null
+++ b/dev-util/oprofile/ChangeLog
@@ -0,0 +1,392 @@
+# ChangeLog for dev-util/oprofile
+# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-util/oprofile/ChangeLog,v 1.96 2014/11/16 12:42:25 bircoph Exp $
+
+ 16 Nov 2014; Andrew Savchenko <bircoph@gentoo.org> metadata.xml:
+ Add myself to maintainers
+
+ 14 Nov 2014; Tom Wijsman <TomWij@gentoo.org> metadata.xml:
+ Maintainer needed.
+
+ 22 Dec 2013; Agostino Sarubbo <ago@gentoo.org> oprofile-0.9.9.ebuild:
+ Stable for ppc64, wrt bug #467348
+
+ 21 Dec 2013; Agostino Sarubbo <ago@gentoo.org> oprofile-0.9.9.ebuild:
+ Stable for ppc, wrt bug #467348
+
+*oprofile-0.9.9 (11 Nov 2013)
+
+ 11 Nov 2013; Tom Wijsman <TomWij@gentoo.org> +oprofile-0.9.9.ebuild:
+ Version bump to 0.9.9.
+
+ 12 May 2013; Agostino Sarubbo <ago@gentoo.org> oprofile-0.9.8.ebuild:
+ Stable for arm, wrt bug #467152
+
+ 05 May 2013; Agostino Sarubbo <ago@gentoo.org> oprofile-0.9.8.ebuild:
+ Stable for alpha, wrt bug #467152
+
+ 26 Apr 2013; Agostino Sarubbo <ago@gentoo.org> oprofile-0.9.8.ebuild:
+ Stable for sparc, wrt bug #467152
+
+ 25 Apr 2013; Jeroen Roovers <jer@gentoo.org> oprofile-0.9.8.ebuild:
+ Stable for HPPA (bug #467152).
+
+ 25 Apr 2013; Agostino Sarubbo <ago@gentoo.org> oprofile-0.9.8.ebuild:
+ Stable for x86, wrt bug #467152
+
+ 25 Apr 2013; Agostino Sarubbo <ago@gentoo.org> oprofile-0.9.8.ebuild:
+ Stable for amd64, wrt bug #467152
+
+ 02 Mar 2013; Markos Chandras <hwoarang@gentoo.org> oprofile-0.9.7.ebuild,
+ oprofile-0.9.8.ebuild:
+ Move Qt dependencies to the new category
+
+*oprofile-0.9.8 (16 Feb 2013)
+
+ 16 Feb 2013; Tom Wijsman <TomWij@gentoo.org> +oprofile-0.9.8.ebuild,
+ metadata.xml:
+ Took maintainership. Version bump to 0.9.8. Removed epatch call since it was
+ applied upstream, disabled werror, switched to EAPI 5.
+
+ 16 Feb 2013; Pacho Ramos <pacho@gentoo.org> -oprofile-0.9.6.ebuild,
+ metadata.xml:
+ Cleanup due bug #96436
+
+ 20 Oct 2012; Sergei Trofimovich <slyfox@gentoo.org>
+ +files/oprofile-0.9.7-bfd.h-1.patch, +files/oprofile-0.9.7-bfd.h-2.patch,
+ oprofile-0.9.7.ebuild:
+ Fix 'bfd.h' build failure against binutils-2.22.90 (bug #428506 by Juergen
+ Rose and others).
+
+ 03 Sep 2012; Michael Palimaka <kensington@gentoo.org> oprofile-0.9.7.ebuild:
+ Add missing slot dependencies on Qt.
+
+ 07 Jun 2012; Zac Medico <zmedico@gentoo.org> oprofile-0.9.6.ebuild,
+ oprofile-0.9.7.ebuild:
+ inherit eutils for epatch, user for enewgroup and enewuser, and multilib for
+ get_libdir
+
+ 18 May 2012; Matt Turner <mattst88@gentoo.org> oprofile-0.9.7.ebuild:
+ Added ~mips.
+
+*oprofile-0.9.7 (13 Aug 2011)
+
+ 13 Aug 2011; Peter Volkov <pva@gentoo.org> -oprofile-0.9.7_rc4.ebuild,
+ +oprofile-0.9.7.ebuild:
+ Version bump.
+
+*oprofile-0.9.7_rc4 (05 Aug 2011)
+
+ 05 Aug 2011; Peter Volkov <pva@gentoo.org> -oprofile-0.9.7_rc3.ebuild,
+ +oprofile-0.9.7_rc4.ebuild:
+ Bump release candidate.
+
+*oprofile-0.9.7_rc3 (23 Jul 2011)
+
+ 23 Jul 2011; Peter Volkov <pva@gentoo.org> -oprofile-0.9.7_rc1.ebuild,
+ +oprofile-0.9.7_rc3.ebuild:
+ Bump release candidate, fixes build issue on hardened profile #301676 thank
+ Juergen Rose for this.
+
+ 23 Jun 2011; Jeroen Roovers <jer@gentoo.org> oprofile-0.9.6-r1.ebuild:
+ Stable for HPPA (bug #366699).
+
+ 23 Jun 2011; Pawel Hajdan jr <phajdan.jr@gentoo.org>
+ oprofile-0.9.6-r1.ebuild:
+ x86 stable wrt bug #366699
+
+ 23 Jun 2011; Markos Chandras <hwoarang@gentoo.org> oprofile-0.9.6-r1.ebuild:
+ Stable on amd64 wrt bug #366699
+
+ 22 Jun 2011; Brent Baude <ranger@gentoo.org> oprofile-0.9.6-r1.ebuild:
+ Marking oprofile-0.9.6-r1 ppc for bug 366699
+
+ 22 Jun 2011; Peter Volkov <pva@gentoo.org> oprofile-0.9.6-r1.ebuild,
+ oprofile-0.9.7_rc1.ebuild:
+ Use parallel make and some improvements by Agostino Sarubbo, bug #372581
+
+ 22 Jun 2011; Peter Volkov <pva@gentoo.org> oprofile-0.9.6-r1.ebuild:
+ Make sure correct options are passed with linux-3.0, bug #372463 thank Manuel
+ Lauss for report.
+
+*oprofile-0.9.7_rc1 (20 Jun 2011)
+*oprofile-0.9.6-r1 (20 Jun 2011)
+
+ 20 Jun 2011; Peter Volkov <pva@gentoo.org> +oprofile-0.9.6-r1.ebuild,
+ +files/oprofile-0.9.6-Add-argument-checking-for-numerical-arguments.patch,
+ +files/oprofile-0.9.6-Avoid-blindly-source-SETUP_FILE-with.patch,
+ +files/oprofile-0.9.6-Avoid-using-bash.patch,
+ +files/oprofile-0.9.6-Do-additional-checks-on-user-supplied-arguments.patch,
+ +files/oprofile-0.9.6-Ensure-that-save-only-saves-things-in-SESSION_DIR.patch
+ ,
+ +files/oprofile-0.9.6-Fix-opcontrol-status-to-show-accurate-information.patch
+ , +oprofile-0.9.7_rc1.ebuild, metadata.xml:
+ Fixes privilege escalation with sudo (CVE-2011-1760), bug #366699 thank Tim
+ Sammut for report. Bump release candidate: new qt4 gui added java support.
+ Took maintaining.
+
+ 18 Jun 2011; Michał Januszewski <spock@gentoo.org> metadata.xml:
+ Reassigning to maintainer-needed.
+
+ 12 Jun 2011; Michał Januszewski <spock@gentoo.org> oprofile-0.9.6.ebuild,
+ +files/oprofile-0.9.6-mutable.patch:
+ Add upstream build fix for GCC 4.6 (bug #363259).
+
+ 22 May 2011; Matt Turner <mattst88@gentoo.org> oprofile-0.9.6.ebuild:
+ Add ~alpha keyword
+
+ 18 Jul 2010; Raúl Porcel <armin76@gentoo.org> oprofile-0.9.6.ebuild:
+ Add ~arm, tested by ssvb
+
+ 16 Feb 2010; Samuli Suominen <ssuominen@gentoo.org> oprofile-0.9.6.ebuild:
+ Remove USE="qt3" wrt #301377, thanks to Ben de Groot for reporting.
+
+ 04 Feb 2010; Jeroen Roovers <jer@gentoo.org> oprofile-0.9.6.ebuild:
+ Stable for HPPA PPC (bug #297610).
+
+ 01 Feb 2010; Markus Meier <maekke@gentoo.org> oprofile-0.9.6.ebuild:
+ amd64/x86 stable, bug #297610
+
+ 09 Jan 2010; Robin H. Johnson <robbat2@gentoo.org> oprofile-0.9.6.ebuild:
+ Bug #283320: linux-info changes require that linux_config_exists is called
+ before linux_chkconfig*
+
+*oprofile-0.9.6 (22 Dec 2009)
+
+ 22 Dec 2009; Peter Volkov <pva@gentoo.org> +oprofile-0.9.6.ebuild:
+ Version bump, bug #297609.
+
+*oprofile-0.9.5 (02 Aug 2009)
+
+ 02 Aug 2009; Michał Januszewski <spock@gentoo.org>
+ +oprofile-0.9.5.ebuild:
+ Version bump (bug #279902).
+
+ 05 Jun 2009; Michał Januszewski <spock@gentoo.org> oprofile-0.9.3.ebuild:
+ Make oprofile 0.9.3 build with GCC 4.3.3.
+
+ 26 May 2009; Diego E. Pettenò <flameeyes@gentoo.org>
+ oprofile-0.9.4.ebuild, +files/oprofile-0.9.4+glibc-2.10.patch:
+ Add patch to fix building with glibc-2.10. Closes bug #270640.
+
+ 21 Mar 2009; Michał Januszewski <spock@gentoo.org> oprofile-0.9.4.ebuild:
+ Fix the postinst messages so that they point to the correct location of
+ the docs (bug #241974).
+
+ 09 Feb 2009; Michał Januszewski <spock@gentoo.org>
+ +files/oprofile-0.9.4-open.patch, oprofile-0.9.4.ebuild:
+ Make oprofile compile with gcc 4.3.3 (bug #257875).
+
+ 14 Oct 2008; Michał Januszewski <spock@gentoo.org> oprofile-0.9.4.ebuild:
+ Fix bug #241974 (install all documentation to the correct directory).
+
+ 06 Sep 2008; Michał Januszewski <spock@gentoo.org>
+ +files/oprofile-0.9.4-gcc43.patch, oprofile-0.9.4.ebuild:
+ Fix test suite compilation with gcc4.3+ (bug #236744).
+
+ 20 Aug 2008; Michał Januszewski <spock@gentoo.org> oprofile-0.9.4.ebuild:
+ Add a check for CONFIG_OPROFILE in the kernel's .config (bug #235285).
+
+ 27 Jul 2008; Carsten Lohrke <carlo@gentoo.org> oprofile-0.9.3.ebuild,
+ oprofile-0.9.4.ebuild:
+ QA: Get rid of deprecated qt_min_version().
+
+ 23 Jul 2008; Michał Januszewski <spock@gentoo.org>
+ -files/oprofile-0.8.2.patch,
+ -files/oprofile-0.9.1-gcc41-compilation-fix.diff,
+ -files/oprofile-0.9.1-opcontrol_path.diff,
+ -files/oprofile-0.9.2-amd64.patch, -oprofile-0.9.1-r1.ebuild,
+ -oprofile-0.9.2.ebuild:
+ Remove old ebuilds.
+
+*oprofile-0.9.4 (23 Jul 2008)
+
+ 23 Jul 2008; Michał Januszewski <spock@gentoo.org>
+ +oprofile-0.9.4.ebuild:
+ Version bump (bug #232690).
+
+ 31 May 2008; Michał Januszewski <spock@gentoo.org>
+ files/oprofile-0.9.3-gcc43.patch:
+ Update the GCC 4.3 fix to make tests work (patch by Michal Kiedrowicz).
+
+ 07 May 2008; Michał Januszewski <spock@gentoo.org>
+ files/oprofile-0.9.3-gcc43.patch:
+ Update the GCC 4.3 compilation fix. This will hopefully fix the problem of
+ the previous patch failing to apply for some people (bug #218727).
+
+ 27 Apr 2008; Michał Januszewski <spock@gentoo.org>
+ +files/oprofile-0.9.3-gcc43.patch, oprofile-0.9.3.ebuild:
+ Add a fix for GCC 4.3 (bug #218727).
+
+ 06 Feb 2008; Jeroen Roovers <jer@gentoo.org> oprofile-0.9.3.ebuild:
+ Stable for HPPA too.
+
+ 07 Jan 2008; <tester@gentoo.org> oprofile-0.9.3.ebuild:
+ Stable on amd64
+
+ 22 Dec 2007; Tobias Scherbaum <dertobi123@gentoo.org>
+ oprofile-0.9.3.ebuild:
+ ppc stable, bug #202629
+
+ 20 Dec 2007; Markus Meier <maekke@gentoo.org> oprofile-0.9.3.ebuild:
+ quotes and x86 stable, bug #202629
+
+*oprofile-0.9.3 (23 Jul 2007)
+
+ 23 Jul 2007; Michał Januszewski <spock@gentoo.org> +oprofile-0.9.3.ebuild:
+ Version bump.
+
+ 16 Apr 2007; Michał Januszewski <spock@gentoo.org>
+ oprofile-0.9.1-r1.ebuild, oprofile-0.9.2.ebuild:
+ Use update-modules (bug #174757).
+
+ 16 Apr 2007; Ferris McCormick <fmccor@gentoo.org> oprofile-0.9.2.ebuild:
+ Add ~sparc keyword at user's request (Arkadi Shishlov) --- Bug #174789 ---
+ builds and generates reports.
+
+ 31 Mar 2007; Michał Januszewski <spock@gentoo.org>
+ +files/oprofile-0.9.2-amd64.patch, oprofile-0.9.2.ebuild:
+ Add a patch to make oprofile work on amd64 (bug #171638).
+
+ 05 Mar 2007; Marius Mauch <genone@gentoo.org> oprofile-0.9.1-r1.ebuild,
+ oprofile-0.9.2.ebuild:
+ Replacing einfo with elog
+
+ 14 Oct 2006; Michał Januszewski <spock@gentoo.org>
+ oprofile-0.9.1-r1.ebuild, oprofile-0.9.2.ebuild:
+ Remove 'check_KV' calls (bug #150058).
+
+ 14 Oct 2006; Michał Januszewski <spock@gentoo.org> -oprofile-0.9.ebuild,
+ -oprofile-0.9-r1.ebuild, -oprofile-0.9.1.ebuild:
+ Remove old ebuilds.
+
+*oprofile-0.9.2 (03 Oct 2006)
+
+ 03 Oct 2006; Luca Barbato <lu_zero@gentoo.org> +oprofile-0.9.2.ebuild:
+ New version
+
+ 06 Sep 2006; Stephanie Lockwood-Childs <wormo@gentoo.org>
+ oprofile-0.9.1-r1.ebuild:
+ stable on ppc (Bug #146285)
+
+ 06 Sep 2006; Joshua Jackson <tsunam@gentoo.org> oprofile-0.9.1-r1.ebuild:
+ stable x86; bug #146285
+
+ 06 Sep 2006; Luis Medinas <metalgod@gentoo.org> oprofile-0.9.1-r1.ebuild:
+ Stable on amd64. Bug #146285.
+
+ 24 Jun 2006; Doug Goldstein <cardoe@gentoo.org> oprofile-0.9.ebuild,
+ oprofile-0.9-r1.ebuild, oprofile-0.9.1.ebuild, oprofile-0.9.1-r1.ebuild:
+ USE flag qt->qt3/qt4 change bug #137785
+
+ 13 Jun 2006; Roy Marples <uberlord@gentoo.org> oprofile-0.9.ebuild,
+ oprofile-0.9-r1.ebuild, oprofile-0.9.1.ebuild, oprofile-0.9.1-r1.ebuild:
+ Use modules-update correctly
+
+ 13 Jun 2006; Luca Barbato <lu_zero@gentoo.org>
+ oprofile-0.9.1-r1.ebuild:
+ Partial support for PowerPC G4 counters
+
+ 09 Apr 2006; Michał Januszewski <spock@gentoo.org>
+ oprofile-0.9.1-r1.ebuild:
+ Don't apply oprofile-0.8.2.patch -- should fix bug #128781.
+
+ 05 Mar 2006; Michał Januszewski <spock@gentoo.org>
+ +files/oprofile-0.9.1-gcc41-compilation-fix.diff, metadata.xml,
+ oprofile-0.9.1-r1.ebuild:
+ Added a compilation fix for gcc 4.1. Patch provided by Francesco Biscani.
+
+*oprofile-0.9.1-r1 (12 Feb 2006)
+*oprofile-0.9-r1 (12 Feb 2006)
+
+ 12 Feb 2006; Michał Januszewski <spock@gentoo.org>
+ +files/oprofile-0.9.1-opcontrol_path.diff, +oprofile-0.9-r1.ebuild,
+ +oprofile-0.9.1-r1.ebuild:
+ Added a fix for bug #122310.
+
+ 12 Feb 2006; Michał Januszewski <spock@gentoo.org>
+ -oprofile-0.8.1.ebuild, -oprofile-0.8.2.ebuild:
+ Removed old ebuilds.
+
+*oprofile-0.9.1 (21 Aug 2005)
+
+ 21 Aug 2005; Michał Januszewski <spock@gentoo.org>
+ +oprofile-0.9.1.ebuild:
+ Version bump (bug #103006).
+
+ 28 Jul 2005; Caleb Tennis <caleb@gentoo.org> oprofile-0.8.1.ebuild,
+ oprofile-0.8.2.ebuild, oprofile-0.9.ebuild:
+ Fix qt dep per bug #100235
+
+ 18 Jul 2005; Joseph Jezak <josejx@gentoo.org> oprofile-0.9.ebuild:
+ Marked ppc stable.
+
+ 07 Jul 2005; Michał Januszewski <spock@gentoo.org> oprofile-0.9.ebuild:
+ Marked stable on x86.
+
+ 17 Jun 2005; Michael Hanselmann <hansmi@gentoo.org> oprofile-0.8.2.ebuild:
+ Stable on ppc.
+
+ 12 Jun 2005; Michał Januszewski <spock@gentoo.org> -oprofile-0.8.ebuild:
+ Removed old ebuild.
+
+*oprofile-0.9 (12 Jun 2005)
+
+ 12 Jun 2005; Michał Januszewski <spock@gentoo.org> oprofile-0.8.2.ebuild,
+ +oprofile-0.9.ebuild:
+ Version bump. Marked 0.8.2 stable on x86.
+
+ 27 Apr 2005; Michał Januszewski <spock@gentoo.org>
+ +files/oprofile-0.8.2.patch, oprofile-0.8.2.ebuild:
+ Added a patch that fixes compilation issues with 2.4 kernels (bug #89566).
+
+ 24 Apr 2005; Michael Hanselmann <hansmi@gentoo.org> oprofile-0.8.1.ebuild:
+ Stable on ppc.
+
+ 25 Mar 2005; <blubb@gentoo.org> oprofile-0.8.2.ebuild:
+ added ~amd64
+
+*oprofile-0.8.2 (25 Mar 2005)
+
+ 25 Mar 2005; Michał Januszewski <spock@gentoo.org> -oprofile-0.7.ebuild,
+ -oprofile-0.7.1.ebuild, +oprofile-0.8.2.ebuild:
+ Version bump. Removed old ebuilds.
+
+ 12 Jan 2005; Michal Januszewski <spock@gentoo.org> oprofile-0.8.1.ebuild:
+ Stable on x86.
+
+*oprofile-0.8.1 (14 Sep 2004)
+
+ 14 Sep 2004; Michal Januszewski <spock@gentoo.org> +oprofile-0.8.1.ebuild:
+ Version bump.
+
+ 03 Jul 2004; Michal Januszewski <spock@gentoo.org> oprofile-0.8.ebuild:
+ Stable on x86.
+
+ 03 Jun 2004; Aron Griffis <agriffis@gentoo.org> oprofile-0.7.1.ebuild,
+ oprofile-0.8.ebuild:
+ Fix use invocation
+
+*oprofile-0.8 (14 May 2004)
+
+ 14 May 2004; Michal Januszewski <spock@gentoo.org> +oprofile-0.8.ebuild:
+ Version bump.
+
+ 13 Apr 2004; Michal Januszewski <spock@gentoo.org> oprofile-0.7.1.ebuild,
+ oprofile-0.7.ebuild:
+ Stable on x86.
+
+ 11 Feb 2004; Michal Januszewski <spock@gentoo.org> oprofile-0.7.1.ebuild:
+ Fixed sandbox violations when emerged with qt USE flag. Closes #40953.
+
+*oprofile-0.7.1 (01 Feb 2004)
+
+ 01 Feb 2004; Michal Januszewski <spock@gentoo.org> metadata.xml,
+ oprofile-0.7.1.ebuild, oprofile-0.7.ebuild:
+ Version bump, closes #39715.
+
+*oprofile-0.7 (23 Oct 2003)
+
+ 23 Oct 2003; Stefan Jones <cretin@gentoo.org>:
+ Initial import. Ebuild submitted by Marc Bevand <bevand_m@epita.fr>.
+ See bug #31101.
diff --git a/dev-util/oprofile/Manifest b/dev-util/oprofile/Manifest
new file mode 100644
index 0000000..8657b94
--- /dev/null
+++ b/dev-util/oprofile/Manifest
@@ -0,0 +1,22 @@
+AUX oprofile-0.9.6-Add-argument-checking-for-numerical-arguments.patch 1727 SHA256 6179ba1053213dfc96848d0a280e93dd2860bdca8a101bf4ed0f4fe5bb909d4b SHA512 88d128bba65e898538a9b5367649243d16f74996181dec076a2d56988e9f5a85004749651096338050feed59f36815737ded7fd40c2438aeb613d67753d89907 WHIRLPOOL 6bbdeef68f9c4aad9384ee62cb49d285afb544b63874c1352f8bcb3133283ec811fd0da77251d0d51b167d5c5cf8b050e624cbf8c8630870809f080a1e457506
+AUX oprofile-0.9.6-Avoid-blindly-source-SETUP_FILE-with.patch 1348 SHA256 4a36023ef354921c19bf8f97541b6cfeca3b5c216f53c0a160778d59244e9076 SHA512 44a6da88348607ec9a91b5e7b169a3792f365dc92c5fe2ee09f06bb753c0c6b8fedd4363343bebb3cdceff4b4183c899f46938f1ba106b972b558f6a478961d7 WHIRLPOOL 1161ab075a159cb9783311b3fd78083eaccbd6f79dbae68b791b5b88b9c037750a6ea3a9868eabf3f151ad2433e463235df6b10c0e74455ff4c515038cea1973
+AUX oprofile-0.9.6-Avoid-using-bash.patch 565 SHA256 771368546670af34fcd912b0acd22c016ff700f9f8e383b1a8992cd0178101d4 SHA512 03f3af68e566c640c4e8351e72f7c558fcc51925906ff9cd69c2bbd426cabf3ce2b76d552d024df3158898b465fcec1ecf05995a9626f2eaafc219fbe54df6ab WHIRLPOOL 67fcf85e5424334d0248c0808615ff398a55fcbe5f3d6d5e968f6dcb010d1ff0c5b0ddca8eef23bd1903761f674af7fd3b6bc72ba1f437d01ff90d5c959c53c3
+AUX oprofile-0.9.6-Do-additional-checks-on-user-supplied-arguments.patch 4626 SHA256 f5cd01ad47d4eb5666926bfb8324360329db158303ec7a4ea06def6e94bf834e SHA512 64045fb6826e5e6b2bbd91e7d4136c6f7875748d3d5a0b6f9a4d9b2f23e76589249ab719dcfdba3bd496685ebfd60f159c65e6725e98effc3831a6df15db405e WHIRLPOOL f08cb5c01d15b7824128d3f0ad82f9fbd0e7029faf1fbdd3b8a7249060f59fdb4bdb357ea7be99e435d6422a214681d9e75bc6488179b38aa4f9b1c57cbc4717
+AUX oprofile-0.9.6-Ensure-that-save-only-saves-things-in-SESSION_DIR.patch 785 SHA256 927d20e11768b66e04b2b0bc86973d54833dea21eea1217773bd6d5b06ced4f7 SHA512 30dbbea1332eb503a2605196973386829c55fc0cd9dd01440077e168f6dc3c26363cc6492e2a60ce39ec75e2ad7a470dc1dce53c0e422a4fe0b9dcc96648bd3e WHIRLPOOL 229a950c53c12b3acda9b94ef133559243860127cc6bc65d48147c4561a19791a81bad0b00939167abe7f8c5ec1ae26fbeb1a74c3238961b94f0a97196bc360f
+AUX oprofile-0.9.6-Fix-opcontrol-status-to-show-accurate-information.patch 3081 SHA256 d9a3b5ac5718466355b53ba0ff5d27f4b4ab3e22c9b7c78d055f71e33bdce939 SHA512 cc08956d8f2701263825c7a9d9d1a66990d2d0a0bef118cab74b9fc3fcce51c6b58e6a70916dedac73bfb6007344ac2b1d12c5cff8b099a60583e15be889e7f3 WHIRLPOOL 34410dfb70ca33c026ab97fb4c5cc287a30fce0d05ffe5262ffa48cf09c33b1725e20d57a0b1e8278f4574fc9128bdaa39eaaf033ecf75cde0e113c933b408cb
+AUX oprofile-0.9.6-mutable.patch 537 SHA256 0d0d4394408a5392854cdec9453b51a3347a4350c503c7a1eb2ef1ae83dff413 SHA512 51012a17c0a40ec8e8fdf23269dfabda3b168988f890a1b0763714592b252d53d01f0e33fa5b874424c44dabedec359eeb8162097ad1b6045ae8597b237cd7e9 WHIRLPOOL 9c30fc657b987042f97dde3d637aae8a12a284b2d69ee6abdcb6002051ab1960621ea78dfe63dad88e0da6d52dc117984185ede8675af2b63508a2a65b6d86bb
+AUX oprofile-0.9.7-bfd.h-1.patch 3827 SHA256 643c10d77635db58a3e29779a5f2a0077056b1fbf72881f0f6cc86e536993637 SHA512 2413acc029dc54924d805f99acc848e59f3f99dec08afbcf85262a333f283ece73e8c7253ffe1e46f7b078fda9221281cb85aae94ce50225455972f809ec48eb WHIRLPOOL 6e29bd6e85a4607b130a2a2b5761b26c10d76c98798452f2d4f7a4f7df8bcf4127a9b281f4e8c6d13be7762551db6d53b3da9483e6ef9a8da5701984d8c0cf39
+AUX oprofile-0.9.7-bfd.h-2.patch 894 SHA256 2e4e227e0344e05efe12b797fee3acb36b73c1e01253dc89bd8c48ef5bfae0ff SHA512 265354be5d20074e0a6f48d22152fa2f48594fc9904f18e2e77aafba93c507a4681ab33b04beda434950c4c557347a1288cd4a6de4b0056c824f41681f672042 WHIRLPOOL 5ae2f96ad1a8b99b21754168ddd436551bf576147e7b8dc0324625a9a31a0a89c47362a9065759e03b444b663a98644f905b174e25f4da290837fc5e771584a1
+AUX oprofile-1.0.0-athlon.patch 638 SHA256 96604db63a4e6b734e0ec72505ad5019b4867ab815c51db97691bf4381df3bb7 SHA512 31d4b1541402304a1c42a3e564aa8aca55f9064562c55909c024e5d6577af199ba42b8b1b1da9b6250a81e83a8183f2b9c879f894d4382d56ca61bcbbdf0ec79 WHIRLPOOL 9b57728c16bae7bc15c8ace84be901dfdfc765cf98ad172a510ca3a9d0fd21080f033f70315e19639756507b190e40494e4346c28f3b28220233a6cc73165644
+DIST oprofile-0.9.6.tar.gz 1321536 SHA256 3f0dd40a7749fc650d25d79d42ebbff8f3b6db310c36e7c3839696cc09077880 SHA512 dfc496255183d0413f534feaca86d42d38ce4e25ea9d29f9e5956721f30049e99b1f58b6b56e71e6d466be5e8204a7c867b1b3db4fe557774d8db7ad698cd04a WHIRLPOOL 10153749de220715a1ffc46ddc080630cd90513b6596e9fa179ac45362703db0d33d67e657e6a96325163839d4dced6e48db59903b2187eac593cb749bb21d4b
+DIST oprofile-0.9.7.tar.gz 1389339 SHA256 cb5b507d5dea058d223fcad3cec8ff9638a4163106afd66d176798bbd973d527 SHA512 9242525eb285e920e166315aa82907d55507055d520bf951d7203ed7a047c1627d211225211c303d9dd70e8ca24cfa003d1541226180f06396c2fede9ffeccaa WHIRLPOOL 534cc694695fa67aa93913d114fb1161506b4cdc6215e67b9839398b551c4c05c625ff78368d0aaef0ba1cb2da6fa7064d90e41f292a74057d7f46211281ca26
+DIST oprofile-0.9.8.tar.gz 1448246 SHA256 ab45900fa1a23e5d5badf3c0a55f26c17efe6e184efcf00b371433751fa761bc SHA512 bc2bb6d3a9c7868837091ef9e2a8b19a62dabe55d08ec83e0a4a261387a7d9ac4230022d579210cdc85d5e084f75c0b3a49041849af263fd87e9157029fc6dac WHIRLPOOL 44c61324e4ff58a82dd3931bdbe88adeb05aaa52536f7dc8b2c3a79db6f94fb62921546469737be8aed9f9d464b2b7e45428bb559f4a311301f3644039bed627
+DIST oprofile-0.9.9.tar.gz 1502834 SHA256 1e523400daaba7b8d0d15269e977a08b40edfea53970774b69ae130e25117597 SHA512 98cc3d2c15744d02ed649833cf4797482aec73bd52653e916f80b490e17a8250d988c4c945e52dd8999a0d0603fec405e99c9570dfc54baa4992950fe4d8763f WHIRLPOOL 534d04449923da5008dbf044f9783a1d39ad8b749170edf04a503ca1a885455fc8aef4f5894060d14135f5e3b0a0d577897779eed30dc26deff9b0663fcbb7d1
+DIST oprofile-1.0.0.tar.gz 1397396 SHA256 847110b4ecdcf8c8353cd38f94c1b704aad4bfcd9453e38b88d112cfb7e3c45a SHA512 35b0e9f23c1d8df0aebda3f9b550692a896424de901d529a0ad41da41000328f33d184dcbb8e6f8367008723c8b2177b621757a2282b4c881ac46a57e1b51010 WHIRLPOOL eaf7feefb6561851d2f8573ec60f2086245aa9fc034c8f4ab62679895ae80ca45e8dcb4bfdcb96ad477c5b446b7f0b11e339d9dc270e8b4b0366bc3a9e980143
+EBUILD oprofile-0.9.6-r1.ebuild 2261 SHA256 6b22e6681527a8891ed22115d6ae2dfeeed86ef6cf4fbae241ae91dd8104611d SHA512 37c62dd9431b5c8e169ae7ff8aff13c2cee886b25be258265de431a410be08d1e1f11b4c35ea83b9f884d7d8c6881ce417a8eac07a28fb60468b41b468f0092c WHIRLPOOL c2f6138b518ff08c10008c8cd447350a5d6e9c3db97ab4a789040dd011d097ee56ce2704d40e40e91328db2d77ec845f7ed0b3f8661afa1a9345033a934d3e8b
+EBUILD oprofile-0.9.7.ebuild 1885 SHA256 d26b1ed852b0a170bae05bd91864b04f8d68579aa0c78d18de971b6100564b38 SHA512 a1d7469ef159cff106f4722921210cf965657b186e28781420e5794193dc2e9ff5877c9628d447dfa916aed211cf4f3359b2aa18a626b35362d021d7539e57ce WHIRLPOOL 785fd47070011adfa07a66fce3416ec0e284e056a2dc4b56b170f0422d17ccfa10cc5368526078195619cae7bf7c44818c365d59911689acfdcea21e26850be0
+EBUILD oprofile-0.9.8.ebuild 1853 SHA256 3be3e0bd023fc118f2d062d885b7b4ebd36e744ccc61b3d56006515c5a28b03a SHA512 540dd5f419a0f0812e99e60d4a2411f566d0ea304eab53aaf6bc464717d3c700bdf0e88a152449c44f0b7cde52404d23a63d26548e6b898bed6a35f190c21ed8 WHIRLPOOL 0d0c6507e7393dff30cbd6a99161c35f7f6ef81f2d6405a83f79ee292ce0974858aea1a8ded7f3ecf42c0c84258de79b0dfd0613390816d7546d156812dc57cb
+EBUILD oprofile-0.9.9.ebuild 1859 SHA256 2fb9b756b80715d5d5aae1ec9142f0dc3fd6c77953c0ed1e20c7f776a39f7db1 SHA512 f754dd2a6d67edeaefbdf97964ee592f209804be83087ef22c60ee19d608f097229a497fa2b679575ad00a29ef433a48d10476c32f08d3a5c8b72c200569aa75 WHIRLPOOL 142bd3aa7ca17a16fa45f6d4f4f320e2bcbed81e335030b023405ccd3c42063ee3cfafa1f81b157d58439a3e3bb873dfb7e57b0cbaf9c02aeda4f560abfb4e83
+EBUILD oprofile-1.0.0.ebuild 1673 SHA256 9fd62d09512995ac3d6f4c417921028f1f7ba3516bdc9be71c9123304222f963 SHA512 7e88d89a1ade61e145245a1b30c6a394d90b5e7b901ce703444fd14a1b6cd7671a8e2e2999839cf63c38975161a34e759df41c94c23413663f007708ac4ccb9d WHIRLPOOL 1f4cb84ec768a6a1b88c681067166513ef933348587d35bd9eca39efd82983d611afeed2111ea5820bd290462a5cf081839b8d9ca09ebd183e0009880bc11668
+MISC ChangeLog 13920 SHA256 4ade51b4f34b1c8ad5070bd69e74820522765feacfed5fcf9d4f69ca2c04c5e4 SHA512 3c8a95791c6c8a13cb153a183e338070fd39e28fd08c1aa2a2fe00a4088595b7517f034bd578d20f70638b6614c1e1d167f2bae2900690618f5ced8cbbc96c42 WHIRLPOOL 6d5c3701e91ed06245e3706eab461406c0eecda4264123eee28c4598426cae24a2aa1740508464162b8d0e6c726edd814fc7b3bf3adfbaef3d08af8294057e14
+MISC metadata.xml 327 SHA256 b8a93c99c3a9ead6715c2d2d8b850e04416a9e69c19864d81164e4a18f0c0617 SHA512 1adc3ecbdd140e4b7ab4c24001d69c66ff635e2d5819eddcb09e149a8168d80711db65af797e6f67c8ea4a0bdbe710a18786ba18abb061f2222c07a5c819d709 WHIRLPOOL 300fc7a9239f254e966a07bb162d8e763ef0cc323366629edd9a29aae80fd0198054e56aea2b1f92b1d2828b8705690403b7a38bdce48af2f24aec55fbfa8491
diff --git a/dev-util/oprofile/files/oprofile-0.9.6-Add-argument-checking-for-numerical-arguments.patch b/dev-util/oprofile/files/oprofile-0.9.6-Add-argument-checking-for-numerical-arguments.patch
new file mode 100644
index 0000000..2e38a65
--- /dev/null
+++ b/dev-util/oprofile/files/oprofile-0.9.6-Add-argument-checking-for-numerical-arguments.patch
@@ -0,0 +1,74 @@
+commit 96c0ac657c59609d58c47d7ff2206d85a970f20b
+Author: Maynard johnson <maynardj@us.ibm.com>
+Date: Wed Jan 5 21:16:08 2011 +0000
+
+ Add argument checking for numerical arguments
+
+diff --git a/utils/opcontrol b/utils/opcontrol
+index dc85c53..8c64af9 100644
+--- a/utils/opcontrol
++++ b/utils/opcontrol
+@@ -49,6 +49,31 @@ error_if_empty()
+ fi
+ }
+
++# guess_number_base() checks if string is a valid octal(8), hexidecimal(16),
++# or decimal number(10). The value is returned in $?. Returns 0, if string
++# isn't a octal, hexidecimal, or decimal number.
++guess_number_base()
++{
++ if [[ "$1" =~ ^0[0-7]*$ ]] ; then
++ return 8;
++ elif [[ "$1" =~ ^0x[0-9a-fA-F]+$ ]] ; then
++ return 16;
++ elif [[ "$1" =~ ^[1-9][0-9]*$ ]] ; then
++ return 10;
++ else
++ return 0;
++ fi
++}
++
++# check value is a valid number
++error_if_not_number()
++{
++ guess_number_base $2
++ if test "$?" -eq 0 ; then
++ echo "Argument for $1, $2, is not a valid number." >&2
++ exit 1
++ fi
++}
+
+ # rm_device arguments $1=file_name
+ rm_device()
+@@ -754,6 +779,7 @@ do_options()
+ ;;
+ --buffer-size)
+ error_if_empty $arg $val
++ error_if_not_number $arg $val
+ BUF_SIZE=$val
+ DO_SETUP=yes
+ ;;
+@@ -763,6 +789,7 @@ do_options()
+ exit 1
+ fi
+ error_if_empty $arg $val
++ error_if_not_number $arg $val
+ BUF_WATERSHED=$val
+ DO_SETUP=yes
+ ;;
+@@ -772,6 +799,7 @@ do_options()
+ exit 1
+ fi
+ error_if_empty $arg $val
++ error_if_not_number $arg $val
+ CPU_BUF_SIZE=$val
+ DO_SETUP=yes
+ ;;
+@@ -802,6 +830,7 @@ do_options()
+ echo "Call-graph profiling unsupported on this kernel/hardware" >&2
+ exit 1
+ fi
++ error_if_not_number $arg $val
+ CALLGRAPH=$val
+ DO_SETUP=yes
+ ;;
diff --git a/dev-util/oprofile/files/oprofile-0.9.6-Avoid-blindly-source-SETUP_FILE-with.patch b/dev-util/oprofile/files/oprofile-0.9.6-Avoid-blindly-source-SETUP_FILE-with.patch
new file mode 100644
index 0000000..1892cc3
--- /dev/null
+++ b/dev-util/oprofile/files/oprofile-0.9.6-Avoid-blindly-source-SETUP_FILE-with.patch
@@ -0,0 +1,46 @@
+commit f427df4ed4b2ec540d496abc4afa984b2dd677b4
+Author: William Cohen <wcohen@redhat.com>
+Date: Thu Jun 2 09:44:38 2011 -0400
+
+ Avoid blindly source $SETUP_FILE with '.' (PR3303383)
+
+ There could be arbitrary commands in the $SETUP_FILE. The '.' command
+ would blindly execute them. This change limits do_load_setup to only
+ assigning values to variables.
+
+diff --git a/utils/opcontrol b/utils/opcontrol
+index cdff19f..b981427 100644
+--- a/utils/opcontrol
++++ b/utils/opcontrol
+@@ -496,12 +496,25 @@ do_load_setup()
+ || mv "$SEC_SETUP_FILE" "$SETUP_FILE"
+ fi
+
+- if test -f "$SETUP_FILE"; then
+- # load the actual information from file
+- # FIXME this is insecure, arbitrary commands could be added to
+- # $SETUP_FILE and be executed as root
+- . $SETUP_FILE
+- fi
++ if test ! -f "$SETUP_FILE"; then return; fi
++
++ while IFS== read -r arg val; do
++ case "$arg" in
++ # The following catches anything that is not
++ # 0-9, a-z, A-Z, or an '_'
++ *[![:alnum:]_]*)
++ echo "Invalid variable \"$arg\" in $SETUP_FILE."
++ exit 1;;
++ esac
++ case "$val" in
++ # The following catches anything that is not
++ # 0-9, a-z, A-Z, an '-', ':', ',', '.', or '/'
++ *[!-[:alnum:]_:,./]*)
++ echo "Invalid value \"$val\" for $arg in $SETUP_FILE."
++ exit 1;;
++ esac
++ eval "${arg}=${val}"
++ done < $SETUP_FILE
+ }
+
+
diff --git a/dev-util/oprofile/files/oprofile-0.9.6-Avoid-using-bash.patch b/dev-util/oprofile/files/oprofile-0.9.6-Avoid-using-bash.patch
new file mode 100644
index 0000000..49d06f4
--- /dev/null
+++ b/dev-util/oprofile/files/oprofile-0.9.6-Avoid-using-bash.patch
@@ -0,0 +1,19 @@
+commit 7cb560b4d52f27f9ccb86a9cd643d0288514335f
+Author: William Cohen <wcohen@redhat.com>
+Date: Thu May 26 11:21:39 2011 -0400
+
+ Avoid using [[ in error_if_not_basename() to improve posix compliance.
+
+diff --git a/utils/opcontrol b/utils/opcontrol
+index f002f01..cdff19f 100644
+--- a/utils/opcontrol
++++ b/utils/opcontrol
+@@ -89,7 +89,7 @@ error_if_not_number()
+ error_if_not_basename()
+ {
+ bname=`basename "$2"`
+- if [[ "x$2" != "x$bname" ]] ; then
++ if test "$2" != "$bname"; then
+ echo "Argument for $1, $2, is not a base filename." >&2
+ exit 1
+ fi
diff --git a/dev-util/oprofile/files/oprofile-0.9.6-Do-additional-checks-on-user-supplied-arguments.patch b/dev-util/oprofile/files/oprofile-0.9.6-Do-additional-checks-on-user-supplied-arguments.patch
new file mode 100644
index 0000000..25ed342
--- /dev/null
+++ b/dev-util/oprofile/files/oprofile-0.9.6-Do-additional-checks-on-user-supplied-arguments.patch
@@ -0,0 +1,182 @@
+commit 9578aed0a51f5c77fd20fd40cead126c7cdd5030
+Author: William Cohen <wcohen@redhat.com>
+Date: Thu Jun 2 10:24:26 2011 -0400
+
+ Do additional checks on user supplied arguments
+
+ Avoid blindly setting variable to user-supplied values. Check to the values
+ to make sure they do not contain odd punctuation.
+
+ Signed-off-by: William Cohen <wcohen@redhat.com>
+
+diff --git a/utils/opcontrol b/utils/opcontrol
+index 8f584ad..92baa0d 100644
+--- a/utils/opcontrol
++++ b/utils/opcontrol
+@@ -78,7 +78,8 @@ guess_number_base()
+ # check value is a valid number
+ error_if_not_number()
+ {
+- guess_number_base $2
++ error_if_empty "$1" "$2"
++ guess_number_base "$2"
+ if test "$?" -eq 0 ; then
+ echo "Argument for $1, $2, is not a valid number." >&2
+ exit 1
+@@ -86,13 +87,33 @@ error_if_not_number()
+ }
+
+ # check value is a base filename
+-error_if_not_basename()
++error_if_not_valid_savename()
+ {
++ error_if_empty "$1" "$2"
+ bname=`basename "$2"`
+ if test "$2" != "$bname"; then
+- echo "Argument for $1, $2, is not a base filename." >&2
++ echo "Argument for $1, $2, cannot change directory." >&2
+ exit 1
+ fi
++ case "$2" in
++ # The following catches anything that is not
++ # 0-9, a-z, A-Z, an '-', ':', ',', '.', or '/'
++ *[!-[:alnum:]_:,./]*)
++ echo "Argument for $1, $2, not allow to have special characters" >&2
++ exit 1;;
++ esac
++}
++
++error_if_invalid_arg()
++{
++ error_if_empty "$1" "$2"
++ case "$2" in
++ # The following catches anything that is not
++ # 0-9, a-z, A-Z, an '-', ':', ',', '.', or '/'
++ *[!-[:alnum:]_:,./]*)
++ echo "Argument for $1, $2, is not valid argument." >&2
++ exit 1;;
++ esac
+ }
+
+ # rm_device arguments $1=file_name
+@@ -814,8 +835,7 @@ do_options()
+ ;;
+
+ --save)
+- error_if_empty $arg $val
+- error_if_not_basename $arg $val
++ error_if_not_valid_savename "$arg" "$val"
+ DUMP=yes
+ SAVE_SESSION=yes
+ SAVE_NAME=$val
+@@ -840,8 +860,7 @@ do_options()
+ # already processed
+ ;;
+ --buffer-size)
+- error_if_empty $arg $val
+- error_if_not_number $arg $val
++ error_if_not_number "$arg" "$val"
+ BUF_SIZE=$val
+ DO_SETUP=yes
+ ;;
+@@ -850,8 +869,7 @@ do_options()
+ echo "$arg unsupported for this kernel version"
+ exit 1
+ fi
+- error_if_empty $arg $val
+- error_if_not_number $arg $val
++ error_if_not_number "$arg" "$val"
+ BUF_WATERSHED=$val
+ DO_SETUP=yes
+ ;;
+@@ -860,13 +878,12 @@ do_options()
+ echo "$arg unsupported for this kernel version"
+ exit 1
+ fi
+- error_if_empty $arg $val
+- error_if_not_number $arg $val
++ error_if_not_number "$arg" "$val"
+ CPU_BUF_SIZE=$val
+ DO_SETUP=yes
+ ;;
+ -e|--event)
+- error_if_empty $arg $val
++ error_if_invalid_arg "$arg" "$val"
+ # reset any read-in defaults from daemonrc
+ if test "$SEEN_EVENT" = "0"; then
+ NR_CHOSEN=0
+@@ -887,17 +904,16 @@ do_options()
+ DO_SETUP=yes
+ ;;
+ -c|--callgraph)
+- error_if_empty $arg $val
+ if test ! -f $MOUNT/backtrace_depth; then
+ echo "Call-graph profiling unsupported on this kernel/hardware" >&2
+ exit 1
+ fi
+- error_if_not_number $arg $val
++ error_if_not_number "$arg" "$val"
+ CALLGRAPH=$val
+ DO_SETUP=yes
+ ;;
+ --vmlinux)
+- error_if_empty $arg $val
++ error_if_invalid_arg "$arg" "$val"
+ VMLINUX=$val
+ DO_SETUP=yes
+ ;;
+@@ -906,32 +922,32 @@ do_options()
+ DO_SETUP=yes
+ ;;
+ --kernel-range)
+- error_if_empty $arg $val
++ error_if_invalid_arg "$arg" "$val"
+ KERNEL_RANGE=$val
+ DO_SETUP=yes
+ ;;
+ --xen)
+- error_if_empty $arg $val
++ error_if_invalid_arg "$arg" "$val"
+ XENIMAGE=$val
+ DO_SETUP=yes
+ ;;
+ --active-domains)
+- error_if_empty $arg $val
++ error_if_invalid_arg $arg $val
+ ACTIVE_DOMAINS=$val
+ DO_SETUP=yes
+ ;;
+ --note-table-size)
+- error_if_empty $arg $val
+ if test "$KERNEL_SUPPORT" = "yes"; then
+ echo "\"$arg\" meaningless on this kernel" >&2
+ exit 1
+ else
++ error_if_not_number "$arg" "$val"
+ NOTE_SIZE=$val
+ fi
+ DO_SETUP=yes
+ ;;
+ -i|--image)
+- error_if_empty $arg $val
++ error_if_invalid_arg "$arg" "$val"
+ if test "$val" = "all"; then
+ IMAGE_FILTER=
+ else
+@@ -944,6 +960,7 @@ do_options()
+ if test -z "$val"; then
+ VERBOSE="all"
+ else
++ error_if_invalid_arg "$arg" "$val"
+ VERBOSE=$val
+ fi
+ ;;
+@@ -1898,7 +1915,7 @@ check_options_early()
+ exit 0
+ ;;
+ --session-dir)
+- error_if_empty $arg $val
++ error_if_invalid_arg "$arg" "$val"
+ SESSION_DIR="$val"
+ DO_SETUP=yes
+ # do not exit early
diff --git a/dev-util/oprofile/files/oprofile-0.9.6-Ensure-that-save-only-saves-things-in-SESSION_DIR.patch b/dev-util/oprofile/files/oprofile-0.9.6-Ensure-that-save-only-saves-things-in-SESSION_DIR.patch
new file mode 100644
index 0000000..3e0de57
--- /dev/null
+++ b/dev-util/oprofile/files/oprofile-0.9.6-Ensure-that-save-only-saves-things-in-SESSION_DIR.patch
@@ -0,0 +1,35 @@
+commit 022cc07e4140c1ba1b9824124b29f36fd44d6040
+Author: William Cohen <wcohen@redhat.com>
+Date: Mon May 23 14:59:41 2011 -0500
+
+ Ensure that --save only saves things in $SESSION_DIR
+
+diff --git a/utils/opcontrol b/utils/opcontrol
+index e908f1f..0f04354 100644
+--- a/utils/opcontrol
++++ b/utils/opcontrol
+@@ -75,6 +75,16 @@ error_if_not_number()
+ fi
+ }
+
++# check value is a base filename
++error_if_not_basename()
++{
++ bname=`basename "$2"`
++ if [[ "x$2" != "x$bname" ]] ; then
++ echo "Argument for $1, $2, is not a base filename." >&2
++ exit 1
++ fi
++}
++
+ # rm_device arguments $1=file_name
+ rm_device()
+ {
+@@ -753,6 +763,7 @@ do_options()
+
+ --save)
+ error_if_empty $arg $val
++ error_if_not_basename $arg $val
+ DUMP=yes
+ SAVE_SESSION=yes
+ SAVE_NAME=$val
diff --git a/dev-util/oprofile/files/oprofile-0.9.6-Fix-opcontrol-status-to-show-accurate-information.patch b/dev-util/oprofile/files/oprofile-0.9.6-Fix-opcontrol-status-to-show-accurate-information.patch
new file mode 100644
index 0000000..f29b79f
--- /dev/null
+++ b/dev-util/oprofile/files/oprofile-0.9.6-Fix-opcontrol-status-to-show-accurate-information.patch
@@ -0,0 +1,97 @@
+commit a5012d86e87e1c59be4a221b7d47cc791b102555
+Author: Maynard Johnson <maynardj@us.ibm.com>
+Date: Wed May 25 16:10:46 2011 -0500
+
+ Fix opcontrol --status to show accurate information for running daemon
+
+diff --git a/utils/opcontrol b/utils/opcontrol
+index 0f04354..f002f01 100644
+--- a/utils/opcontrol
++++ b/utils/opcontrol
+@@ -38,6 +38,16 @@ do_sysctl()
+ echo $val > /proc/sys/$dev_name
+ }
+
++# Helper function to check if oprofile daemon is active.
++# Takes one argument: the "lock file" for the oprofile daemon.
++# The lock file may exist even if the daemon was killed or died in
++# some way. So we do a kill SIG_DFL to test whether the daemon is
++# truly alive. If the lock file is stale (daemon dead), the kill will
++# not return '0'.
++is_oprofiled_active()
++{
++ [ -f "$1" ] && kill -0 `cat "$1"` 2>/dev/null
++}
+
+ # check value is set
+ error_if_empty()
+@@ -355,6 +365,7 @@ do_init()
+ # location for daemon setup information
+ SETUP_DIR="/root/.oprofile"
+ SETUP_FILE="$SETUP_DIR/daemonrc"
++ SEC_SETUP_FILE="$SETUP_DIR/daemonrc_new"
+
+ # initialize daemon vars
+ decide_oprofile_device_mount
+@@ -408,6 +419,19 @@ set_event()
+ do_save_setup()
+ {
+ create_dir "$SETUP_DIR"
++ SAVE_SETUP_FILE="$SETUP_FILE"
++
++# If the daemon is currently running, we want changes to the daemon config
++# stored in the secondary cache file so that 'opcontrol --status' will
++# show actual config data for the running daemon. The next time the
++# daemon is restarted, we'll reload the config data from this secondary
++# cache file.
++
++ if is_oprofiled_active "$LOCK_FILE"; then
++ SETUP_FILE="$SEC_SETUP_FILE"
++ echo "The profiling daemon is currently active, so changes to the configuration"
++ echo "will be used the next time you restart oprofile after a --shutdown or --deinit."
++ fi
+
+ touch $SETUP_FILE
+ chmod 644 $SETUP_FILE
+@@ -451,12 +475,27 @@ do_save_setup()
+ if test "$XEN_RANGE"; then
+ echo "XEN_RANGE=$XEN_RANGE" >> $SETUP_FILE
+ fi
++ SETUP_FILE="$SAVE_SETUP_FILE"
+ }
+
+
+ # reload all the setup-related information
+ do_load_setup()
+ {
++# If a secondary setup file exists and the daemon is not running,
++# then we'll move the data from the secondary file to the actual
++# setup file to prepare for daemon startup.
++ if test -z "$SESSION_DIR"; then
++ __TMP_SESSION_DIR="/var/lib/oprofile"
++ else
++ __TMP_SESSION_DIR="$SESSION_DIR"
++ fi
++
++ if test -f "$SEC_SETUP_FILE"; then
++ is_oprofiled_active "$__TMP_SESSION_DIR/lock" \
++ || mv "$SEC_SETUP_FILE" "$SETUP_FILE"
++ fi
++
+ if test -f "$SETUP_FILE"; then
+ # load the actual information from file
+ # FIXME this is insecure, arbitrary commands could be added to
+@@ -1572,7 +1611,12 @@ do_status()
+ {
+ OPROFILED_PID=`cat $SESSION_DIR/lock 2>/dev/null`
+ if test -n "$OPROFILED_PID" -a -d "/proc/$OPROFILED_PID"; then
+- echo "Daemon running: pid $OPROFILED_PID"
++ if test "$KERNEL_SUPPORT" = yes \
++ && test 0 != $(cat /dev/oprofile/enable); then
++ echo "Daemon running: pid $OPROFILED_PID"
++ else
++ echo "Daemon paused: pid $OPROFILED_PID"
++ fi
+ else
+ echo "Daemon not running"
+ fi
diff --git a/dev-util/oprofile/files/oprofile-0.9.6-mutable.patch b/dev-util/oprofile/files/oprofile-0.9.6-mutable.patch
new file mode 100644
index 0000000..5b06fbd
--- /dev/null
+++ b/dev-util/oprofile/files/oprofile-0.9.6-mutable.patch
@@ -0,0 +1,19 @@
+commit b18f60db60487ada38d5f04f52981628b28c6835
+Author: William Cohen <wcohen@redhat.com>
+Date: Wed Feb 9 15:27:47 2011 -0500
+
+ Do not use mutable for reference variable.
+
+diff --git a/libpp/format_output.h b/libpp/format_output.h
+index b6c4592..8e527d5 100644
+--- a/libpp/format_output.h
++++ b/libpp/format_output.h
+@@ -91,7 +91,7 @@ protected:
+ symbol_entry const & symbol;
+ sample_entry const & sample;
+ size_t pclass;
+- mutable counts_t & counts;
++ counts_t & counts;
+ extra_images const & extra;
+ double diff;
+ };
diff --git a/dev-util/oprofile/files/oprofile-0.9.7-bfd.h-1.patch b/dev-util/oprofile/files/oprofile-0.9.7-bfd.h-1.patch
new file mode 100644
index 0000000..0da9372
--- /dev/null
+++ b/dev-util/oprofile/files/oprofile-0.9.7-bfd.h-1.patch
@@ -0,0 +1,92 @@
+From 0fa5fc43ca2004546864051a584367a50413f190 Mon Sep 17 00:00:00 2001
+From: Maynard Johnson <maynardj@us.ibm.com>
+Date: Fri, 15 Jun 2012 13:55:33 -0500
+Subject: [PATCH] Add #include "config.h" before bfd.h for perf-events branch
+
+While building oprofile against a current CVS snapshot of binutils,
+I received the following error:
+
+-----------------------------------------
+make[2]: Entering directory `/home/cseo/at5.0/at5.0-5/src/oprofile/libopagent'
+/bin/sh ../libtool --tag=CC --mode=compile /opt/at5.0-5-rc1/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I/home/cseo/at5.0/at5.0-5/src/oprofile/libopagent -fPIC -I /home/cseo/at5.0/at5.0-5/src/oprofile/libop -I /home/cseo/at5.0/at5.0-5/src/oprofile/libutil -g -MT libopagent_la-opagent.lo -MD -MP -MF .deps/libopagent_la-opagent.Tpo -c -o libopagent_la-opagent.lo `test -f 'opagent.c' || echo '/home/cseo/at5.0/at5.0-5/src/oprofile/libopagent/'`opagent.c
+libtool: compile: /opt/at5.0-5-rc1/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I/home/cseo/at5.0/at5.0-5/src/oprofile/libopagent -fPIC -I /home/cseo/at5.0/at5.0-5/src/oprofile/libop -I /home/cseo/at5.0/at5.0-5/src/oprofile/libutil -g -MT libopagent_la-opagent.lo -MD -MP -MF .deps/libopagent_la-opagent.Tpo -c opagent.c -fPIC -DPIC -o .libs/libopagent_la-opagent.o
+In file included from opagent.c:63:0:
+/opt/at5.0-5-rc1/include/bfd.h:37:2: error: #error config.h must be included before this header
+-----------------------------------------
+
+I opened a bug against binutils for this (see http://sourceware.org/bugzilla/show_bug.cgi?id=14243),
+but the rationale for this error was explained to me thusly:
+
+"This is a correctness issue. bfd.h and the headers that bfd.h #include test at
+least one HAVE_* macro. So you need to include the file that defines those
+HAVE_* macros before bfd.h. [sic] It is a really good idea to always include
+config.h (or sysdep.h or alloca-conf.h that include config.h) before any other
+files, including system headers."
+
+This patch is a minimal patch that addresses the build failure with binutils,
+ensuring that our config.h is #include'd before bfd.h
+
+Since my work on the perf-events branch has involved testing on newer
+binutils, I want to get this fix committed into the perf-events branch now
+so I don't need to be adding a private patch for those times when I build
+with new binutils.
+
+Signed-off-by: Maynard Johnson <maynardj@us.ibm.com>
+---
+ libopagent/opagent.c | 1 +
+ libpp/symbol.h | 1 +
+ opjitconv/debug_line.c | 1 +
+ opjitconv/opjitconv.h | 1 +
+ 4 files changed, 4 insertions(+), 0 deletions(-)
+
+diff --git a/libopagent/opagent.c b/libopagent/opagent.c
+index 2db1477..860413f 100644
+--- a/libopagent/opagent.c
++++ b/libopagent/opagent.c
+@@ -50,6 +50,7 @@
+ * See libopagent/Makefile.am for more information.
+ *******************************************************************/
+
++#include "config.h"
+ #include <stdio.h>
+ #include <errno.h>
+ #include <string.h>
+diff --git a/libpp/symbol.h b/libpp/symbol.h
+index ea2724d..8041cb9 100644
+--- a/libpp/symbol.h
++++ b/libpp/symbol.h
+@@ -12,6 +12,7 @@
+ #ifndef SYMBOL_H
+ #define SYMBOL_H
+
++#include "config.h"
+ #include "name_storage.h"
+ #include "growable_vector.h"
+ #include "sparse_array.h"
+diff --git a/opjitconv/debug_line.c b/opjitconv/debug_line.c
+index d7db8ec..babb943 100644
+--- a/opjitconv/debug_line.c
++++ b/opjitconv/debug_line.c
+@@ -8,6 +8,7 @@
+ * @author Philippe Elie
+ */
+
++#include "config.h"
+ #include <stdint.h>
+ #include <stdlib.h>
+ #include <string.h>
+diff --git a/opjitconv/opjitconv.h b/opjitconv/opjitconv.h
+index 9562256..3f4919a 100644
+--- a/opjitconv/opjitconv.h
++++ b/opjitconv/opjitconv.h
+@@ -26,6 +26,7 @@
+ #define OP_JIT_CONV_ALREADY_DONE 5
+ #define OP_JIT_CONV_TMPDIR_NOT_REMOVED 6
+
++#include "config.h"
+ #include <bfd.h>
+ #include <stddef.h>
+ #include <sys/stat.h>
+--
+1.7.4.1
+
diff --git a/dev-util/oprofile/files/oprofile-0.9.7-bfd.h-2.patch b/dev-util/oprofile/files/oprofile-0.9.7-bfd.h-2.patch
new file mode 100644
index 0000000..3113d40
--- /dev/null
+++ b/dev-util/oprofile/files/oprofile-0.9.7-bfd.h-2.patch
@@ -0,0 +1,28 @@
+From f0a6ef67e1b944e2032ce777994257075f6ba107 Mon Sep 17 00:00:00 2001
+From: Antonio Rosales <antonio.rosales@canonical.com>
+Date: Mon, 6 Aug 2012 09:21:07 -0500
+Subject: [PATCH] Fix compile error on Ubuntu 12.10
+
+This is related to an earlier fix made under commit #
+0fa5fc43ca2004546864051a584367a50413f190. Apparently
+a newer compiler finds yet another file that required
+our config.h to be included prior to any system header
+files.
+
+Signed-off-by: Maynard Johnson <maynardj@us.ibm.com>
+---
+ libutil++/bfd_support.h | 2 +-
+ 1 files changed, 1 insertions(+), 1 deletions(-)
+
+diff --git a/libutil++/bfd_support.h b/libutil++/bfd_support.h
+index 4f6a369..ab448d1 100644
+--- a/libutil++/bfd_support.h
++++ b/libutil++/bfd_support.h
+@@ -11,6 +11,7 @@
+ #ifndef BFD_SUPPORT_H
+ #define BFD_SUPPORT_H
+
++#include "config.h"
+ #include "utility.h"
+ #include "op_types.h"
+ #include "locate_images.h"
diff --git a/dev-util/oprofile/files/oprofile-1.0.0-athlon.patch b/dev-util/oprofile/files/oprofile-1.0.0-athlon.patch
new file mode 100644
index 0000000..3a6db3b
--- /dev/null
+++ b/dev-util/oprofile/files/oprofile-1.0.0-athlon.patch
@@ -0,0 +1,20 @@
+Fix AMD Athlon CPU family recognition.
+See upstream bug 275 for details:
+https://sourceforge.net/p/oprofile/bugs/275/
+--- oprofile-1.0.0/libop/op_cpu_type.c.orig 2014-09-12 18:39:47.000000000 +0400
++++ oprofile-1.0.0/libop/op_cpu_type.c 2014-11-30 18:29:00.328342552 +0300
+@@ -538,10 +538,13 @@
+ family = cpu_family(eax);
+
+ /* These family does not exist in the past.*/
+- if (family < 0x0f || family == 0x13)
++ if (family < 0x0f && family != 0x6 || family == 0x13)
+ return ret;
+
+ switch (family) {
++ case 0x6:
++ ret = op_get_cpu_number("i386/athlon");
++ break;
+ case 0x0f:
+ ret = op_get_cpu_number("x86-64/hammer");
+ break;
diff --git a/dev-util/oprofile/metadata.xml b/dev-util/oprofile/metadata.xml
new file mode 100644
index 0000000..6ae61dc
--- /dev/null
+++ b/dev-util/oprofile/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>bircoph@gentoo.org</email>
+ <name>Andrew Savchenko</name>
+ </maintainer>
+ <longdescription>A transparent low-overhead system-wide profiler</longdescription>
+</pkgmetadata>
diff --git a/dev-util/oprofile/oprofile-0.9.6-r1.ebuild b/dev-util/oprofile/oprofile-0.9.6-r1.ebuild
new file mode 100644
index 0000000..e346314
--- /dev/null
+++ b/dev-util/oprofile/oprofile-0.9.6-r1.ebuild
@@ -0,0 +1,77 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-util/oprofile/oprofile-0.9.6-r1.ebuild,v 1.7 2011/06/23 21:18:52 jer Exp $
+
+EAPI=4
+inherit eutils linux-info
+
+DESCRIPTION="A transparent low-overhead system-wide profiler"
+HOMEPAGE="http://oprofile.sourceforge.net"
+SRC_URI="mirror://sourceforge/oprofile/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha amd64 ~arm hppa ppc ~ppc64 ~sparc x86"
+IUSE=""
+
+DEPEND=">=dev-libs/popt-1.7-r1
+ >=sys-devel/binutils-2.14.90.0.6-r3
+ >=sys-libs/glibc-2.3.2-r1"
+RDEPEND="${DEPEND}"
+
+pkg_setup() {
+ linux-info_pkg_setup
+ if ! linux_config_exists || ! linux_chkconfig_present OPROFILE; then
+ elog "In order for oprofile to work, you need to configure your kernel"
+ elog "with CONFIG_OPROFILE set to 'm' or 'y'."
+ fi
+}
+
+src_prepare() {
+ epatch "${FILESDIR}/${P}-mutable.patch"
+ epatch "${FILESDIR}/${P}-Ensure-that-save-only-saves-things-in-SESSION_DIR.patch"
+ epatch "${FILESDIR}/${P}-Fix-opcontrol-status-to-show-accurate-information.patch"
+ epatch "${FILESDIR}/${P}-Avoid-blindly-source-SETUP_FILE-with.patch"
+ epatch "${FILESDIR}/${P}-Add-argument-checking-for-numerical-arguments.patch"
+ epatch "${FILESDIR}/${P}-Avoid-using-bash.patch"
+ epatch "${FILESDIR}/${P}-Do-additional-checks-on-user-supplied-arguments.patch"
+}
+
+src_configure() {
+ local myconf="--with-qt-dir=/void --with-x"
+
+ case ${KV_FULL} in
+ 2.2.*|2.4.*) myconf="${myconf} --with-linux=${KV_DIR}";;
+ 2.5.*|2.6.*|3.*) myconf="${myconf} --with-kernel-support";;
+ *) die "Kernel version '${KV_FULL}' not supported";;
+ esac
+ econf ${myconf}
+}
+
+src_compile() {
+ local mymake=""
+ sed -i -e "s,depmod -a,:,g" Makefile || die
+ emake ${mymake}
+}
+
+src_install() {
+ local myinst=""
+
+ myinst="${myinst} MODINSTALLDIR=${ED}/lib/modules/${KV_FULL}"
+ emake DESTDIR="${D}" ${myinst} htmldir="/usr/share/doc/${PF}" install
+
+ dodoc ChangeLog* README TODO
+}
+
+pkg_postinst() {
+ if [[ ${ROOT} == / ]] ; then
+ [[ -x /sbin/update-modules ]] && /sbin/update-modules || /sbin/modules-update
+ fi
+
+ echo
+ elog "Now load the oprofile module by running:"
+ elog " # opcontrol --init"
+ elog "Then read manpages and this html doc:"
+ elog " /usr/share/doc/${PF}/oprofile.html"
+ echo
+}
diff --git a/dev-util/oprofile/oprofile-0.9.7.ebuild b/dev-util/oprofile/oprofile-0.9.7.ebuild
new file mode 100644
index 0000000..2927bf4
--- /dev/null
+++ b/dev-util/oprofile/oprofile-0.9.7.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-util/oprofile/oprofile-0.9.7.ebuild,v 1.6 2013/03/02 20:23:41 hwoarang Exp $
+
+EAPI=2
+inherit eutils linux-info multilib user java-pkg-opt-2
+
+MY_P=${PN}-${PV/_/-}
+DESCRIPTION="A transparent low-overhead system-wide profiler"
+HOMEPAGE="http://oprofile.sourceforge.net"
+SRC_URI="mirror://sourceforge/oprofile/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86"
+IUSE="java pch qt4"
+
+DEPEND=">=dev-libs/popt-1.7-r1
+ >=sys-devel/binutils-2.14.90.0.6-r3
+ >=sys-libs/glibc-2.3.2-r1
+ qt4? ( dev-qt/qtgui:4[qt3support] )
+ java? ( >=virtual/jdk-1.5 )"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${MY_P}"
+
+pkg_setup() {
+ linux-info_pkg_setup
+ if ! linux_config_exists || ! linux_chkconfig_present OPROFILE; then
+ elog "In order for oprofile to work, you need to configure your kernel"
+ elog "with CONFIG_OPROFILE set to 'm' or 'y'."
+ fi
+
+ # Required for JIT support, see README_PACKAGERS
+ enewgroup oprofile
+ enewuser oprofile -1 -1 -1 oprofile
+
+ #sed -i -e "s/depmod -a/:/g" Makefile.in
+
+ use java && java-pkg_init
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-bfd.h-{1,2}.patch # bug 428506
+}
+
+src_configure() {
+ econf \
+ --with-kernel-support \
+ $(use_with qt4 x) \
+ $(use_enable qt4 gui qt4) \
+ $(use_enable pch) \
+ $(use_with java java ${JAVA_HOME})
+}
+
+src_install() {
+ emake DESTDIR="${D}" htmldir="/usr/share/doc/${PF}" install || die
+
+ dodoc ChangeLog* README TODO
+
+ dodir /etc/env.d
+ echo "LDPATH=${PREFIX}/usr/$(get_libdir)/oprofile" > "${D}"/etc/env.d/10${PN} || die "env.d failed"
+}
+
+pkg_postinst() {
+ echo
+ elog "Now load the oprofile module by running:"
+ elog " # opcontrol --init"
+ elog "Then read manpages and this html doc:"
+ elog " /usr/share/doc/${PF}/oprofile.html"
+ echo
+}
diff --git a/dev-util/oprofile/oprofile-0.9.8.ebuild b/dev-util/oprofile/oprofile-0.9.8.ebuild
new file mode 100644
index 0000000..7278ba5
--- /dev/null
+++ b/dev-util/oprofile/oprofile-0.9.8.ebuild
@@ -0,0 +1,74 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-util/oprofile/oprofile-0.9.8.ebuild,v 1.8 2013/05/12 15:14:47 ago Exp $
+
+EAPI=5
+inherit eutils linux-info multilib user java-pkg-opt-2
+
+MY_P=${PN}-${PV/_/-}
+DESCRIPTION="A transparent low-overhead system-wide profiler"
+HOMEPAGE="http://${PN}.sourceforge.net"
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ~mips ~ppc ~ppc64 sparc x86"
+IUSE="java pch qt4"
+
+DEPEND=">=dev-libs/popt-1.7-r1
+ >=sys-devel/binutils-2.14.90.0.6-r3
+ >=sys-libs/glibc-2.3.2-r1
+ qt4? ( dev-qt/qtgui:4[qt3support] )
+ java? ( >=virtual/jdk-1.5 )"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${MY_P}"
+
+pkg_setup() {
+ linux-info_pkg_setup
+ if ! linux_config_exists || ! linux_chkconfig_present OPROFILE ; then
+ echo
+ elog "In order for ${PN} to work, you need to configure your kernel"
+ elog "with CONFIG_OPROFILE set to 'm' or 'y'."
+ echo
+ fi
+
+ if ! kernel_is -ge 2 6 ; then
+ echo
+ elog "Support for kernels before 2.6 has been dropped in ${PN}-0.9.8."
+ echo
+ fi
+
+ # Required for JIT support, see README_PACKAGERS
+ enewgroup ${PN}
+ enewuser ${PN} -1 -1 -1 ${PN}
+
+ use java && java-pkg_init
+}
+
+src_configure() {
+ econf \
+ --disable-werror \
+ $(use_with qt4 x) \
+ $(use_enable qt4 gui qt4) \
+ $(use_enable pch) \
+ $(use_with java java ${JAVA_HOME})
+}
+
+src_install() {
+ emake DESTDIR="${D}" htmldir="/usr/share/doc/${PF}" install
+
+ dodoc ChangeLog* README TODO
+
+ dodir /etc/env.d
+ echo "LDPATH=${PREFIX}/usr/$(get_libdir)/${PN}" > "${D}"/etc/env.d/10${PN} || die "env.d failed"
+}
+
+pkg_postinst() {
+ echo
+ elog "Now load the ${PN} module by running:"
+ elog " # opcontrol --init"
+ elog "Then read manpages and this html doc:"
+ elog " /usr/share/doc/${PF}/${PN}.html"
+ echo
+}
diff --git a/dev-util/oprofile/oprofile-0.9.9.ebuild b/dev-util/oprofile/oprofile-0.9.9.ebuild
new file mode 100644
index 0000000..a8d6b18
--- /dev/null
+++ b/dev-util/oprofile/oprofile-0.9.9.ebuild
@@ -0,0 +1,74 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-util/oprofile/oprofile-0.9.9.ebuild,v 1.3 2013/12/22 14:44:44 ago Exp $
+
+EAPI="5"
+inherit eutils linux-info multilib user java-pkg-opt-2
+
+MY_P=${PN}-${PV/_/-}
+DESCRIPTION="A transparent low-overhead system-wide profiler"
+HOMEPAGE="http://${PN}.sourceforge.net"
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~mips ppc ppc64 ~sparc ~x86"
+IUSE="java pch qt4"
+
+DEPEND=">=dev-libs/popt-1.7-r1
+ >=sys-devel/binutils-2.14.90.0.6-r3
+ >=sys-libs/glibc-2.3.2-r1
+ qt4? ( dev-qt/qtgui:4[qt3support] )
+ java? ( >=virtual/jdk-1.5 )"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${MY_P}"
+
+pkg_setup() {
+ linux-info_pkg_setup
+ if ! linux_config_exists || ! linux_chkconfig_present OPROFILE ; then
+ echo
+ elog "In order for ${PN} to work, you need to configure your kernel"
+ elog "with CONFIG_OPROFILE set to 'm' or 'y'."
+ echo
+ fi
+
+ if ! kernel_is -ge 2 6 ; then
+ echo
+ elog "Support for kernels before 2.6 has been dropped in ${PN}-0.9.8."
+ echo
+ fi
+
+ # Required for JIT support, see README_PACKAGERS
+ enewgroup ${PN}
+ enewuser ${PN} -1 -1 -1 ${PN}
+
+ use java && java-pkg_init
+}
+
+src_configure() {
+ econf \
+ --disable-werror \
+ $(use_with qt4 x) \
+ $(use_enable qt4 gui qt4) \
+ $(use_enable pch) \
+ $(use_with java java ${JAVA_HOME})
+}
+
+src_install() {
+ emake DESTDIR="${D}" htmldir="/usr/share/doc/${PF}" install
+
+ dodoc ChangeLog* README TODO
+
+ dodir /etc/env.d
+ echo "LDPATH=${PREFIX}/usr/$(get_libdir)/${PN}" > "${D}"/etc/env.d/10${PN} || die "env.d failed"
+}
+
+pkg_postinst() {
+ echo
+ elog "Now load the ${PN} module by running:"
+ elog " # opcontrol --init"
+ elog "Then read manpages and this html doc:"
+ elog " /usr/share/doc/${PF}/${PN}.html"
+ echo
+}
diff --git a/dev-util/oprofile/oprofile-1.0.0.ebuild b/dev-util/oprofile/oprofile-1.0.0.ebuild
new file mode 100644
index 0000000..0e25d13
--- /dev/null
+++ b/dev-util/oprofile/oprofile-1.0.0.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="5"
+inherit eutils java-pkg-opt-2 linux-info multilib user
+
+MY_P=${PN}-${PV/_/-}
+DESCRIPTION="A transparent low-overhead system-wide profiler"
+HOMEPAGE="http://${PN}.sourceforge.net"
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86"
+IUSE="java pch"
+
+DEPEND=">=dev-libs/popt-1.7-r1
+ >=sys-devel/binutils-2.14.90.0.6-r3
+ >=sys-libs/glibc-2.3.2-r1
+ java? ( >=virtual/jdk-1.5 )"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${MY_P}"
+
+CONFIG_CHECK="PERF_EVENTS"
+ERROR_PERF_EVENTS="CONFIG_PERF_EVENTS is mandatory for ${PN} to work."
+
+pkg_setup() {
+ linux-info_pkg_setup
+ if ! kernel_is -ge 2 6 ; then
+ echo
+ elog "Support for kernels before 2.6 has been dropped in ${PN}-0.9.8."
+ echo
+ fi
+
+ # Required for JIT support, see README_PACKAGERS
+ enewgroup ${PN}
+ enewuser ${PN} -1 -1 -1 ${PN}
+
+ use java && java-pkg_init
+}
+
+src_prepare() {
+ epatch "${FILESDIR}/${P}-athlon.patch"
+}
+
+src_configure() {
+ econf \
+ --disable-werror \
+ $(use_enable pch) \
+ $(use_with java java ${JAVA_HOME})
+}
+
+src_install() {
+ emake DESTDIR="${D}" htmldir="/usr/share/doc/${PF}" install
+
+ dodoc ChangeLog* README TODO
+ echo "LDPATH=${PREFIX}/usr/$(get_libdir)/${PN}" > "${T}/10${PN}"
+ doenvd "${T}/10${PN}"
+}
+
+pkg_postinst() {
+ echo
+ elog "Starting from ${PN}-1.0.0 opcontrol was removed, use operf instead."
+ elog "CONFIG_OPROFILE is no longer used, you may remove it from your kernels."
+ elog "Please read manpages and this html doc:"
+ elog " /usr/share/doc/${PF}/${PN}.html"
+ echo
+}