OBS User unknown 2008-10-23 10:27:14 +00:00 committed by Git OBS Bridge
parent 2f49877c78
commit c30e7dccab
3 changed files with 68 additions and 10 deletions

View File

@ -8,6 +8,17 @@
ACLOCAL_AMFLAGS = -I m4 ACLOCAL_AMFLAGS = -I m4
# The module will not build under distcheck # The module will not build under distcheck
--- agents/jvmpi/Makefile.am
+++ agents/jvmpi/Makefile.am
@@ -1,6 +1,6 @@
-pkglib_LTLIBRARIES = libjvmpi_oprofile.la
+lib_LTLIBRARIES = libjvmpi_oprofile.la
-libjvmpi_oprofile_la_CXXFLAGS = -W -Wall -fPIC
+libjvmpi_oprofile_la_LDFLAGS = -module -avoid-version
libjvmpi_oprofile_la_SOURCES = jvmpi_oprofile.cpp
--- agents/jvmpi/jvmpi_oprofile.cpp --- agents/jvmpi/jvmpi_oprofile.cpp
+++ agents/jvmpi/jvmpi_oprofile.cpp +++ agents/jvmpi/jvmpi_oprofile.cpp
@@ -16,6 +16,7 @@ @@ -16,6 +16,7 @@
@ -18,6 +29,19 @@
extern "C" { extern "C" {
#include <jvmpi.h> #include <jvmpi.h>
--- agents/jvmti/Makefile.am
+++ agents/jvmti/Makefile.am
@@ -1,8 +1,8 @@
AM_CFLAGS = @OP_CFLAGS@
-pkglib_LTLIBRARIES = libjvmti_oprofile.la
+lib_LTLIBRARIES = libjvmti_oprofile.la
-libjvmti_oprofile_la_CFLAGS = $(AM_CFLAGS) -fPIC
+libjvmti_oprofile_la_LDFLAGS = -module -avoid-version
libjvmti_oprofile_la_LIBADD = ../../libopagent/libopagent.la
--- configure.in --- configure.in
+++ configure.in +++ configure.in
@@ -140,7 +140,7 @@ AX_CHECK_DOCBOOK @@ -140,7 +140,7 @@ AX_CHECK_DOCBOOK
@ -29,6 +53,23 @@
POPT_LIBS="-lpopt" POPT_LIBS="-lpopt"
AC_SUBST(LIBERTY_LIBS) AC_SUBST(LIBERTY_LIBS)
AC_SUBST(BFD_LIBS) AC_SUBST(BFD_LIBS)
--- libopagent/Makefile.am
+++ libopagent/Makefile.am
@@ -1,4 +1,4 @@
-pkglib_LTLIBRARIES = libopagent.la
+lib_LTLIBRARIES = libopagent.la
# install opagent.h to include directory
include_HEADERS = opagent.h
@@ -10,7 +10,7 @@ libopagent_la_SOURCES = opagent.c \
EXTRA_DIST = opagent_symbols.ver
-libopagent_la_CFLAGS = -fPIC -I ${top_srcdir}/libop -I ${top_srcdir}/libutil
+libopagent_la_CPPFLAGS = -I ${top_srcdir}/libop -I ${top_srcdir}/libutil
libopagent_la_LIBADD = $(BFD_LIBS)
# Do not increment the major version for this library except to
--- libutil++/file_manip.cpp --- libutil++/file_manip.cpp
+++ libutil++/file_manip.cpp +++ libutil++/file_manip.cpp
@@ -44,7 +44,7 @@ bool copy_file(string const & source, st @@ -44,7 +44,7 @@ bool copy_file(string const & source, st

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Oct 21 15:27:26 CEST 2008 - schwab@suse.de
- Fix jvm agent libs.
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Jul 18 13:43:33 CEST 2008 - schwab@suse.de Fri Jul 18 13:43:33 CEST 2008 - schwab@suse.de

View File

@ -2,9 +2,16 @@
# spec file for package oprofile (Version 0.9.4) # spec file for package oprofile (Version 0.9.4)
# #
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
# #
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Please submit bugfixes or comments via http://bugs.opensuse.org/
# #
@ -18,7 +25,7 @@ Group: Development/Tools/Other
AutoReqProv: on AutoReqProv: on
PreReq: /usr/sbin/groupadd /usr/sbin/useradd PreReq: /usr/sbin/groupadd /usr/sbin/useradd
Version: 0.9.4 Version: 0.9.4
Release: 1 Release: 46
Summary: System-Wide Profiler for Linux Systems Summary: System-Wide Profiler for Linux Systems
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source: %{name}-%{version}.tar.gz Source: %{name}-%{version}.tar.gz
@ -81,8 +88,8 @@ OProfile is currently in alpha status; however it has proven stable
over a large number of differing configurations. As always, there is no over a large number of differing configurations. As always, there is no
warranty. warranty.
This is the package containing the files to develop JIT agents for This package contains the files needed to develop JIT agents for other
other virtual machines. virtual machines.
@ -113,6 +120,10 @@ make DESTDIR=$RPM_BUILD_ROOT htmldir=%{_docdir}/oprofile install
/usr/sbin/groupadd -r oprofile 2>/dev/null || : /usr/sbin/groupadd -r oprofile 2>/dev/null || :
/usr/sbin/useradd -r -g oprofile -d /var/lib/empty -s /bin/false -c "Special user account to be used by OProfile" oprofile 2>/dev/null || : /usr/sbin/useradd -r -g oprofile -d /var/lib/empty -s /bin/false -c "Special user account to be used by OProfile" oprofile 2>/dev/null || :
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%clean %clean
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
@ -121,8 +132,8 @@ rm -rf $RPM_BUILD_ROOT
/usr/bin/* /usr/bin/*
/usr/share/applications/*.desktop /usr/share/applications/*.desktop
/usr/share/oprofile /usr/share/oprofile
%dir %{_libdir}/oprofile %{_libdir}/*.so*
%{_libdir}/oprofile/*.so.* %exclude %{_libdir}/libopagent.so
%{_mandir}/man1/* %{_mandir}/man1/*
%doc doc/oprofile.html doc/internals.html doc/opreport.xsd %doc doc/oprofile.html doc/internals.html doc/opreport.xsd
%doc COPYING README TODO ChangeLog %doc COPYING README TODO ChangeLog
@ -131,11 +142,12 @@ rm -rf $RPM_BUILD_ROOT
%defattr(-,root,root) %defattr(-,root,root)
/usr/include/* /usr/include/*
%doc doc/op-jit-devel.html %doc doc/op-jit-devel.html
%dir %{_libdir}/oprofile %{_libdir}/*.*a
%{_libdir}/oprofile/*.*a %{_libdir}/libopagent.so
%{_libdir}/oprofile/*.so
%changelog %changelog
* Tue Oct 21 2008 schwab@suse.de
- Fix jvm agent libs.
* Fri Jul 18 2008 schwab@suse.de * Fri Jul 18 2008 schwab@suse.de
- Update to oprofile 0.9.4. - Update to oprofile 0.9.4.
http://oprofile.sourceforge.net/release-notes/oprofile-0.9.4 http://oprofile.sourceforge.net/release-notes/oprofile-0.9.4