rpms/stapitrace/devel stapitrace-fix-bfd-configure.patch, NONE, 1.1 stapitrace.spec, 1.14, 1.15

Joshua W. Boyer jwboyer at fedoraproject.org
Fri Sep 12 14:39:28 UTC 2008


Author: jwboyer

Update of /cvs/pkgs/rpms/stapitrace/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv11028

Modified Files:
	stapitrace.spec 
Added Files:
	stapitrace-fix-bfd-configure.patch 
Log Message:
* Fri Sep 12 2008 Josh Boyer <jwboyer at gmail.com>
- Fix bfd configure test as binutils now requires zlib for compressed
  sections


stapitrace-fix-bfd-configure.patch:

--- NEW FILE stapitrace-fix-bfd-configure.patch ---
---
 configure.in |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- Dpiperf.orig/configure.in
+++ Dpiperf/configure.in
@@ -19,7 +19,7 @@ AC_PROG_RANLIB
 AC_CHECK_LIB([c], [atoi], [], [AC_MSG_ERROR([[Please install libc.]])])
 AC_CHECK_LIB([dl], [dlsym], [], [AC_MSG_ERROR([[Please install libdl.]])])
 AC_CHECK_LIB([iberty], [cplus_demangle], [], [AC_MSG_ERROR([[Please install libiberty (binutils package).]])])
-AC_CHECK_LIB([bfd], [bfd_get_elf_phdrs], [], [AC_MSG_ERROR([[Please install libbfd (binutils package).]])])
+AC_CHECK_LIB([bfd], [bfd_get_elf_phdrs], [], [AC_MSG_ERROR([[Please install libbfd (binutils package).]])],[-lz])
 
 # Checks for header files.
 AC_CHECK_HEADERS([bfd.h], [], [AC_MSG_ERROR([[Please make sure you have bfd.h header - please install binutils-devel package]])])


Index: stapitrace.spec
===================================================================
RCS file: /cvs/pkgs/rpms/stapitrace/devel/stapitrace.spec,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- stapitrace.spec	12 Sep 2008 00:27:55 -0000	1.14
+++ stapitrace.spec	12 Sep 2008 14:38:58 -0000	1.15
@@ -6,15 +6,16 @@
 Name:		stapitrace
 Summary:	Instruction Tracing Tool
 Version:	1.0.0
-Release:	11.%{alphatag}%{?dist}
+Release:	12.%{alphatag}%{?dist}
 License:	GPLv2+
 Group:		Development/Tools
 URL:		http://sourceforge.net/projects/perfinsp
 Source0:	%{name}-%{version}.%{alphatag}.tar.gz
 Patch0:		itrace_fix1.patch
+Patch1:		stapitrace-fix-bfd-configure.patch
 BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root
 Requires:	systemtap systemtap-runtime binutils binutils-devel
-BuildRequires:	binutils binutils-devel autoconf automake
+BuildRequires:	binutils binutils-devel autoconf automake zlib-devel
 ExclusiveArch:	ppc
 
 %description
@@ -36,45 +37,9 @@
 %prep
 %setup -q -n Dpiperf
 %patch0 -p1
+%patch1 -p1
 
 %build
-cat >>conftest.c <<_ACEOF
-/* confdefs.h.  */
-
-#define PACKAGE_NAME "Performance Inspector"
-#define PACKAGE_TARNAME "performance-inspector"
-#define PACKAGE_VERSION "3.4"
-#define PACKAGE_STRING "Performance Inspector 3.4"
-#define PACKAGE_BUGREPORT "mmilenko at us.ibm.com"
-#define PACKAGE "performance-inspector"
-#define VERSION "3.4"
-#define HAVE_LIBC 1
-#define HAVE_LIBDL 1
-#define HAVE_LIBIBERTY 1
-/* end confdefs.h.  */
-
-/* Override any gcc2 internal prototype to avoid an error.  */
-#ifdef __cplusplus
-extern "C"
-#endif
-/* We use char because int might match the return type of a gcc2
-   builtin and then its argument prototype would still apply.  */
-char bfd_get_elf_phdrs ();
-int
-main ()
-{
-bfd_get_elf_phdrs ();
-  ;
-  return 0;
-}
-_ACEOF
-ls -l /usr/lib/libbfd*
-file /usr/lib/libbfd*
-gcc -o conftest -g -O2 conftest.c -lbfd -liberty -ldl -lc
-gcc -o conftest -g -O2 conftest.c /usr/lib/libbfd.a -liberty -ldl -lc
-gcc -o conftest -g -O2 conftest.c /usr/lib/libbfd*.so -liberty -ldl -lc
-nm /usr/lib/libbfd.a | grep bfd_get_elf_phdrs 
-nm /usr/lib/libbfd*.so | grep bfd_get_elf_phdrs 
 autoreconf -i --force
 # override -m64
 export CFLAGS="%{__global_cflags} -mminimal-toc"	
@@ -120,6 +85,10 @@
 %{_bindir}/itrace
 
 %changelog -n itrace
+* Fri Sep 12 2008 Josh Boyer <jwboyer at gmail.com>
+- Fix bfd configure test as binutils now requires zlib for compressed
+  sections
+
 * Tue May 27 2008 Dave Nomura <dcnltc at us.ibm.com>
 - removed liba2n.so dependency and changed to all apps to 32-bit
 




More information about the fedora-extras-commits mailing list