diff options
author | Timo Teräs <timo.teras@iki.fi> | 2013-11-27 08:34:07 +0200 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2013-11-27 08:34:07 +0200 |
commit | 5e6534d32ba41c56a31e1cb74c912f181b825100 (patch) | |
tree | 78e57870b669346d28008ff83c11329421933bcf /main/oprofile | |
parent | 51f5a2beb6a7af133247cac0caf060de4532dcd7 (diff) | |
download | aports-5e6534d32ba41c56a31e1cb74c912f181b825100.tar.bz2 aports-5e6534d32ba41c56a31e1cb74c912f181b825100.tar.xz |
main/oprofile: upgrade to 0.9.9
Diffstat (limited to 'main/oprofile')
-rw-r--r-- | main/oprofile/APKBUILD | 19 | ||||
-rw-r--r-- | main/oprofile/op-AT_BASE_PLATFORM.patch | 45 |
2 files changed, 60 insertions, 4 deletions
diff --git a/main/oprofile/APKBUILD b/main/oprofile/APKBUILD index c0dc424dc..06b5fa31e 100644 --- a/main/oprofile/APKBUILD +++ b/main/oprofile/APKBUILD @@ -1,8 +1,8 @@ # Contributor: Timo Teras <timo.teras@iki.fi> # Maintainer: Timo Teras <timo.teras@iki.fi> pkgname=oprofile -pkgver=0.9.8 -pkgrel=1 +pkgver=0.9.9 +pkgrel=0 pkgdesc="A System Profiler for Linux" url="http://oprofile.sourceforge.net/" arch="all" @@ -12,13 +12,19 @@ makedepends="libiconv-dev popt-dev gettext-dev" install= subpackages="$pkgname-doc" options="libtool" -source="http://prdownloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz" +source="http://prdownloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz + op-AT_BASE_PLATFORM.patch" _builddir="$srcdir/$pkgname-$pkgver" prepare() { cd "$_builddir" update_config_sub || return 1 + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done } build() { @@ -41,4 +47,9 @@ package() { make -j1 DESTDIR="$pkgdir" install } -md5sums="6d127023af1dd1cf24e15411229f3cc8 oprofile-0.9.8.tar.gz" +md5sums="00aec1287da2dfffda17a9b1c0a01868 oprofile-0.9.9.tar.gz +fc86dc788151ff8d0348a0c2fd9bddb4 op-AT_BASE_PLATFORM.patch" +sha256sums="1e523400daaba7b8d0d15269e977a08b40edfea53970774b69ae130e25117597 oprofile-0.9.9.tar.gz +f96d25ee22040085ad5b5026ff5116f83154fed345ce07c5293012112fbd5ec0 op-AT_BASE_PLATFORM.patch" +sha512sums="98cc3d2c15744d02ed649833cf4797482aec73bd52653e916f80b490e17a8250d988c4c945e52dd8999a0d0603fec405e99c9570dfc54baa4992950fe4d8763f oprofile-0.9.9.tar.gz +3f9ef8330cfea7f0f3f4d0cf824398ef42eee187e50a6d9458307954d2cebbe60573c7879d63fa6a6b9d6c76152f7fc95ba5b1bcac1a21a5ce07f2af1c861b6f op-AT_BASE_PLATFORM.patch" diff --git a/main/oprofile/op-AT_BASE_PLATFORM.patch b/main/oprofile/op-AT_BASE_PLATFORM.patch new file mode 100644 index 000000000..ea77357b6 --- /dev/null +++ b/main/oprofile/op-AT_BASE_PLATFORM.patch @@ -0,0 +1,45 @@ +http://sourceforge.net/p/oprofile/bugs/245/ + +Index: oprof-work/libop/op_cpu_type.c +=================================================================== +--- oprof-work.orig/libop/op_cpu_type.c ++++ oprof-work/libop/op_cpu_type.c +@@ -23,9 +23,16 @@ + #include <elf.h> + #include <link.h> + ++#include "config.h" + #include "op_cpu_type.h" + #include "op_hw_specific.h" + ++/* A macro to be used for ppc64 architecture-specific code. The '__powerpc__' macro ++ * is defined for both ppc64 and ppc32 architectures, so we must further qualify by ++ * including the 'HAVE_LIBPFM' macro, since that macro will be defined only for ppc64. ++ */ ++#define PPC64_ARCH (HAVE_LIBPFM) && ((defined(__powerpc__) || defined(__powerpc64__))) ++ + struct cpu_descr { + char const * pretty; + char const * name; +@@ -176,6 +183,7 @@ static char * _get_cpuinfo_cpu_type(char + return _get_cpuinfo_cpu_type_line(buf, len, prefix, 1); + } + ++#if PPC64_ARCH + // The aux vector stuff below is currently only used by ppc64 arch + static ElfW(auxv_t) * auxv_buf = NULL; + +@@ -312,6 +320,13 @@ static op_cpu _get_ppc64_cpu_type(void) + cpu_type = op_get_cpu_number(cpu_type_str); + return cpu_type; + } ++#else ++static op_cpu _get_ppc64_cpu_type(void) ++{ ++ return CPU_NO_GOOD; ++} ++#endif ++ + + static op_cpu _get_arm_cpu_type(void) + { |