Hello community, here is the log from the commit of package memprof checked in at Mon Oct 16 01:37:51 CEST 2006. -------- --- GNOME/memprof/memprof.changes 2006-10-13 22:50:54.000000000 +0200 +++ /mounts/work_users/ro/STABLE/memprof/memprof.changes 2006-10-16 01:37:20.000000000 +0200 @@ -1,0 +2,5 @@ +Mon Oct 16 00:59:11 CEST 2006 - ro@suse.de + +- try to fix build for non-x86 + +------------------------------------------------------------------- New: ---- memprof-0.6-nonx86.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ memprof.spec ++++++ --- /var/tmp/diff_new_pack.L0GAnb/_old 2006-10-16 01:37:38.000000000 +0200 +++ /var/tmp/diff_new_pack.L0GAnb/_new 2006-10-16 01:37:38.000000000 +0200 @@ -15,7 +15,7 @@ %define prefix /opt/gnome Summary: A Memory Profiler with GNOME Interface Version: 0.6 -Release: 5 +Release: 6 License: GPL Group: Development/Tools/Debuggers Source: %name-%version.tar.bz2 @@ -23,6 +23,7 @@ Patch1: %name-0.5.1-protos.patch Patch3: %name-0.5.1-desktop.patch Patch4: memprof-build-error.patch +Patch5: memprof-0.6-nonx86.patch URL: http://www.gnome.org/projects/memprof/ BuildRoot: %{_tmppath}/%{name}-%{version}-build Autoreqprov: on @@ -39,6 +40,7 @@ %patch1 %patch3 %patch4 +%patch5 %build %{?suse_update_config:%{suse_update_config -f }} @@ -80,6 +82,8 @@ /etc/%{prefix}/gconf/schemas/memprof.schemas %changelog -n memprof +* Mon Oct 16 2006 - ro@suse.de +- try to fix build for non-x86 * Fri Oct 13 2006 - danw@suse.de - Remove dead patch * Tue Sep 26 2006 - jhargadon@suse.de ++++++ memprof-0.6-nonx86.patch ++++++ --- mi-perfctr.c +++ mi-perfctr.c @@ -51,19 +51,30 @@ #define SIGHANDLER_FRAMES 2 static void +#if defined (__linux__) && defined (__i386__) sigprof_handler (int unused, siginfo_t *si, ucontext_t *ucontext) +#else +sigprof_handler (int unused, siginfo_t *si) +#endif { int saved_errno = errno; +#if defined (__linux__) && defined (__i386__) struct sigcontext *ctx = (struct sigcontext *)&ucontext->uc_mcontext; +#endif MIInfo info; info.alloc.operation = MI_TIME; info.alloc.old_ptr = NULL; info.alloc.new_ptr = NULL; info.alloc.size = 1; - + +#if defined (__linux__) && defined (__i386__) mi_call_with_signal_backtrace ((void *)ctx->eip, (void *)ctx->ebp, (void *)ctx->esp, mi_write_stack, &info); +#else + mi_call_with_backtrace (SIGHANDLER_FRAMES, mi_write_stack, &info); +#endif + if (ioctl (perfctr_fd, VPERFCTR_IRESUME) < 0) mi_perror ("Error restarting handler interrupt"); --- speedintercept.c +++ speedintercept.c @@ -173,7 +173,7 @@ mi_call_with_signal_backtrace ((void *)ctx.eip, (void *)ctx.ebp, (void *)ctx.esp, mi_write_stack, &info); #else - mi_call_with_backtrace (SIGHANDLER_FRAMES, saved_pc, mi_write_stack, &info); + mi_call_with_backtrace (SIGHANDLER_FRAMES, mi_write_stack, &info); #endif if (profile_type == SPEED_PROF_ITIMER) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org