Blame SPECS/dyninst.spec

afd09e
Summary: An API for Run-time Code Generation
afd09e
License: LGPLv2+
afd09e
Name: dyninst
afd09e
Group: Development/Libraries
ec6aba
Release: 3%{?dist}
afd09e
URL: http://www.dyninst.org
10b022
Version: 9.3.1
10b022
# Dyninst only has full support for a few architectures.
10b022
# It has some preliminary support for aarch64 and ppc64le,
10b022
# but we're waiting for those to be feature-complete.
cb379f
ExclusiveArch: %{ix86} x86_64 ppc ppc64
afd09e
10b022
Source0: https://github.com/dyninst/dyninst/archive/v%{version}/dyninst-%{version}.tar.gz
10b022
# Explicit version since it does not match the source version
10b022
Source1: https://github.com/dyninst/testsuite/archive/v9.3.0/testsuite-9.3.0.tar.gz
10b022
10b022
Patch1: testsuite-9.3.0-junit-nullptr.patch
10b022
Patch2: dyninst-9.3.1-Address.patch
434122
Patch3: dyninst-rhbz1441810.patch
10b022
10b022
%global dyninst_base dyninst-%{version}
10b022
# Explicit version since it does not match the source version
10b022
%global testsuite_base testsuite-9.3.0
10b022
10b022
BuildRequires: gcc-c++
afd09e
BuildRequires: libdwarf-devel >= 20111030
afd09e
BuildRequires: elfutils-libelf-devel
afd09e
BuildRequires: boost-devel
cb379f
BuildRequires: binutils-devel
cb379f
BuildRequires: cmake
afd09e
afd09e
# Extra requires just for the testsuite
afd09e
BuildRequires: gcc-gfortran glibc-static libstdc++-static nasm
afd09e
afd09e
# Testsuite files should not provide/require anything
afd09e
%{?filter_setup:
afd09e
%filter_provides_in %{_libdir}/dyninst/testsuite/
afd09e
%filter_requires_in %{_libdir}/dyninst/testsuite/
afd09e
%filter_setup
afd09e
}
afd09e
afd09e
%description
afd09e
afd09e
Dyninst is an Application Program Interface (API) to permit the insertion of
afd09e
code into a running program. The API also permits changing or removing
afd09e
subroutine calls from the application program. Run-time code changes are
afd09e
useful to support a variety of applications including debugging, performance
afd09e
monitoring, and to support composing applications out of existing packages.
afd09e
The goal of this API is to provide a machine independent interface to permit
afd09e
the creation of tools and applications that use run-time code patching.
afd09e
afd09e
%package doc
afd09e
Summary: Documentation for using the Dyninst API
afd09e
Group: Documentation
afd09e
%description doc
afd09e
dyninst-doc contains API documentation for the Dyninst libraries.
afd09e
afd09e
%package devel
afd09e
Summary: Header files for the compiling programs with Dyninst
afd09e
Group: Development/System
afd09e
Requires: dyninst = %{version}-%{release}
afd09e
Requires: boost-devel
cb379f
afd09e
%description devel
afd09e
dyninst-devel includes the C header files that specify the Dyninst user-space
afd09e
libraries and interfaces. This is required for rebuilding any program
afd09e
that uses Dyninst.
afd09e
afd09e
%package static
afd09e
Summary: Static libraries for the compiling programs with Dyninst
afd09e
Group: Development/System
afd09e
Requires: dyninst-devel = %{version}-%{release}
afd09e
%description static
afd09e
dyninst-static includes the static versions of the library files for
afd09e
the dyninst user-space libraries and interfaces.
afd09e
afd09e
%package testsuite
afd09e
Summary: Programs for testing Dyninst
afd09e
Group: Development/System
cb379f
Requires: dyninst = %{version}-%{release}
afd09e
Requires: dyninst-devel = %{version}-%{release}
cb379f
Requires: dyninst-static = %{version}-%{release}
cb379f
Requires: glibc-static
afd09e
%description testsuite
afd09e
dyninst-testsuite includes the test harness and target programs for
afd09e
making sure that dyninst works properly.
afd09e
afd09e
%prep
afd09e
%setup -q -n %{name}-%{version} -c
afd09e
%setup -q -T -D -a 1
afd09e
10b022
%patch1 -p0 -b.nullptr
10b022
%patch2 -p0 -b.Address
434122
%patch3 -p0 -b.1441810
10b022
10b022
# cotire seems to cause non-deterministic gcc errors
10b022
# https://bugzilla.redhat.com/show_bug.cgi?id=1420551
10b022
sed -i.cotire -e 's/USE_COTIRE true/USE_COTIRE false/' \
10b022
  %{dyninst_base}/cmake/shared.cmake
afd09e
afd09e
%build
afd09e
10b022
cd %{dyninst_base}
afd09e
cb379f
%cmake \
10b022
 -DENABLE_STATIC_LIBS=1 \
cb379f
 -DINSTALL_LIB_DIR:PATH=%{_libdir}/dyninst \
cb379f
 -DINSTALL_INCLUDE_DIR:PATH=%{_includedir}/dyninst \
cb379f
 -DINSTALL_CMAKE_DIR:PATH=%{_libdir}/cmake/Dyninst \
10b022
 -DCMAKE_BUILD_TYPE=None \
cb379f
 -DCMAKE_SKIP_RPATH:BOOL=YES
10b022
%make_build
cb379f
cb379f
# Hack to install dyninst nearby, so the testsuite can use it
cb379f
make DESTDIR=../install install
10b022
find ../install -name '*.cmake' -execdir \
10b022
  sed -i -e 's!%{_prefix}!../install&!' '{}' '+'
cb379f
10b022
cd ../%{testsuite_base}
cb379f
%cmake \
10b022
 -DDyninst_DIR:PATH=$PWD/../install%{_libdir}/cmake/Dyninst \
cb379f
 -DINSTALL_DIR:PATH=%{_libdir}/dyninst/testsuite \
cb379f
 -DCMAKE_BUILD_TYPE:STRING=Debug \
cb379f
 -DCMAKE_SKIP_RPATH:BOOL=YES
10b022
%make_build
afd09e
afd09e
%install
afd09e
10b022
cd %{dyninst_base}
10b022
%make_install
afd09e
10b022
# It doesn't install docs the way we want, so remove them.
10b022
# We'll just grab the pdfs later, directly from the build dir.
10b022
rm -v %{buildroot}%{_docdir}/*-%{version}.pdf
10b022
10b022
cd ../%{testsuite_base}
10b022
%make_install
cb379f
afd09e
mkdir -p %{buildroot}/etc/ld.so.conf.d
afd09e
echo "%{_libdir}/dyninst" > %{buildroot}/etc/ld.so.conf.d/%{name}-%{_arch}.conf
afd09e
10b022
# Ugly hack to mask testsuite files from debuginfo extraction.  Running the
afd09e
# testsuite requires debuginfo, so extraction is useless.  However, debuginfo
afd09e
# extraction is still nice for the main libraries, so we don't want to disable
afd09e
# it package-wide.  The permissions are restored by attr(755,-,-) in files.
10b022
find %{buildroot}%{_libdir}/dyninst/testsuite/ \
10b022
  -type f '!' -name '*.a' -execdir chmod 644 '{}' '+'
afd09e
afd09e
%post -p /sbin/ldconfig
afd09e
%postun -p /sbin/ldconfig
afd09e
afd09e
%files
afd09e
%dir %{_libdir}/dyninst
afd09e
%{_libdir}/dyninst/*.so.*
ec6aba
# dyninst mutators dlopen the runtime library
ec6aba
%{_libdir}/dyninst/libdyninstAPI_RT.so
afd09e
10b022
%doc %{dyninst_base}/COPYRIGHT
10b022
%doc %{dyninst_base}/LGPL
afd09e
afd09e
%config(noreplace) /etc/ld.so.conf.d/*
afd09e
afd09e
%files doc
10b022
%doc %{dyninst_base}/dataflowAPI/doc/dataflowAPI.pdf
10b022
%doc %{dyninst_base}/dynC_API/doc/dynC_API.pdf
10b022
%doc %{dyninst_base}/dyninstAPI/doc/dyninstAPI.pdf
10b022
%doc %{dyninst_base}/instructionAPI/doc/instructionAPI.pdf
10b022
%doc %{dyninst_base}/parseAPI/doc/parseAPI.pdf
10b022
%doc %{dyninst_base}/patchAPI/doc/patchAPI.pdf
10b022
%doc %{dyninst_base}/proccontrol/doc/proccontrol.pdf
10b022
%doc %{dyninst_base}/stackwalk/doc/stackwalk.pdf
10b022
%doc %{dyninst_base}/symtabAPI/doc/symtabAPI.pdf
afd09e
afd09e
%files devel
afd09e
%{_includedir}/dyninst
afd09e
%{_libdir}/dyninst/*.so
cb379f
%dir %{_libdir}/cmake
cb379f
%{_libdir}/cmake/Dyninst
afd09e
afd09e
%files static
afd09e
%{_libdir}/dyninst/*.a
afd09e
afd09e
%files testsuite
10b022
%{_bindir}/parseThat
afd09e
%dir %{_libdir}/dyninst/testsuite/
afd09e
# Restore the permissions that were hacked out above, during install.
10b022
%attr(755,root,root) %{_libdir}/dyninst/testsuite/*[!a]
10b022
%attr(644,root,root) %{_libdir}/dyninst/testsuite/*.a
afd09e
afd09e
%changelog
ec6aba
* Tue Mar 19 2019 Stan Cox <scox@redhat.com> - 9.3.1-3
ec6aba
- rhbz1498558: dyninst needs the -devel package installed
ec6aba
434122
* Thu Jun 07 2018 Stan Cox <scox@redhat.com> - 9.3.1-2
434122
- rhbz1441810: Handle regions with no disk backing for ppc static instrumenting
434122
10b022
* Mon Mar 06 2017 Stan Cox <scox@redhat.com> - 9.3.1-1
10b022
- Update to 9.3.1
10b022
cb379f
* Mon Oct 20 2014 Josh Stone <jistone@redhat.com> - 8.2.0-2
cb379f
- rhbz1152270: enable bug workaround for syscall pc rewind on ppc
cb379f
cb379f
* Fri Sep 05 2014 Josh Stone <jistone@redhat.com> - 8.2.0-1
cb379f
- rebase to 8.2.0, using upstream tag "v8.2.0.1"
cb379f
bdf803
* Mon Feb 10 2014 Josh Stone <jistone@redhat.com> 8.1.2-6
bdf803
- rhbz1063447: squash testsuite g++ optimization
bdf803
- rhbz1030969: backported additional patch to silence new warnings
bdf803
bdf803
* Thu Jan 16 2014 Josh Stone <jistone@redhat.com> 8.1.2-5
bdf803
- rhbz1030969: backported upstream patches for image::findMain
bdf803
bdf803
* Tue Jan 07 2014 Josh Stone <jistone@redhat.com> 8.1.2-4
bdf803
- rhbz1040652: backported upstream patches for mid-syscall PTRACE_EVENTs
bdf803
bdf803
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 8.1.2-3
bdf803
- Mass rebuild 2013-12-27
bdf803
afd09e
* Fri Oct 25 2013 Josh Stone <jistone@redhat.com> 8.1.2-2
afd09e
- rhbz1007500: Fix DYNINST_index_lock state and ppc64 writeFunctionPtr
afd09e
afd09e
* Tue Jun 18 2013 Josh Stone <jistone@redhat.com> 8.1.2-1
afd09e
- Update to release 8.1.2.
afd09e
afd09e
* Fri Mar 15 2013 Josh Stone <jistone@redhat.com> 8.1.1-1
afd09e
- Update to release 8.1.1.
afd09e
- Drop the backported dyninst-test2_4-kill-init.patch.
afd09e
- Drop the now-upstreamed dyninst-unused_vars.patch.
afd09e
- Update other patches for context.
afd09e
- Patch the installed symlinks to be relative, not $(DEST) filled.
afd09e
afd09e
* Tue Feb 26 2013 Josh Stone <jistone@redhat.com> 8.0-7
afd09e
- testsuite: Require dyninst-devel for the libdyninstAPI_RT.so symlink
afd09e
afd09e
* Tue Feb 26 2013 Josh Stone <jistone@redhat.com> 8.0-6
afd09e
- Fix the testsuite path to include libtestlaunch.so
afd09e
afd09e
* Mon Feb 25 2013 Josh Stone <jistone@redhat.com> 8.0-5
afd09e
- Add a dyninst-testsuite package.
afd09e
- Patch test2_4 to protect against running as root.
afd09e
- Make dyninst-static require dyninst-devel.
afd09e
afd09e
* Thu Feb 14 2013 Josh Stone <jistone@redhat.com> 8.0-4
afd09e
- Patch make.config to ensure rpm build flags are not discarded.
afd09e
afd09e
* Sun Feb 10 2013 Denis Arnaud <denis.arnaud_fedora@m4x.org> - 8.0-3
afd09e
- Rebuild for Boost-1.53.0
afd09e
afd09e
* Sat Feb 09 2013 Denis Arnaud <denis.arnaud_fedora@m4x.org> - 8.0-2
afd09e
- Rebuild for Boost-1.53.0
afd09e
afd09e
* Tue Nov 20 2012 Josh Stone <jistone@redhat.com>
afd09e
- Tweak the configure/make commands
afd09e
- Disable the testsuite via configure.
afd09e
- Set the private includedir and libdir via configure.
afd09e
- Set VERBOSE_COMPILATION for make.
afd09e
- Use DESTDIR for make install.
afd09e
afd09e
* Mon Nov 19 2012 Josh Stone <jistone@redhat.com> 8.0-1
afd09e
- Update to release 8.0.
afd09e
- Updated "%files doc" to reflect renames.
afd09e
- Drop the unused BuildRequires libxml2-devel.
afd09e
- Drop the 7.99.x version-munging patch.
afd09e
afd09e
* Fri Nov 09 2012 Josh Stone <jistone@redhat.com> 7.99.2-0.29
afd09e
- Rebase to git e99d7070bbc39c76d6d528db530046c22681c17e
afd09e
afd09e
* Mon Oct 29 2012 Josh Stone <jistone@redhat.com> 7.99.2-0.28
afd09e
- Bump to 7.99.2 per abi-compliance-checker results
afd09e
afd09e
* Fri Oct 26 2012 Josh Stone <jistone@redhat.com> 7.99.1-0.27
afd09e
- Rebase to git dd8f40b7b4742ad97098613876efeef46d3d9e65
afd09e
- Use _smp_mflags to enable building in parallel.
afd09e
afd09e
* Wed Oct 03 2012 Josh Stone <jistone@redhat.com> 7.99.1-0.26
afd09e
- Rebase to git 557599ad7417610f179720ad88366c32a0557127
afd09e
afd09e
* Thu Sep 20 2012 Josh Stone <jistone@redhat.com> 7.99.1-0.25
afd09e
- Rebase on newer git tree.
afd09e
- Bump the fake version to 7.99.1 to account for ABI differences.
afd09e
- Enforce the minimum libdwarf version.
afd09e
- Drop the upstreamed R_PPC_NUM patch.
afd09e
afd09e
* Wed Aug 15 2012 Karsten Hopp <karsten@redhat.com> 7.99-0.24
afd09e
- check if R_PPC_NUM is defined before using it, similar to R_PPC64_NUM
afd09e
afd09e
* Mon Jul 30 2012 Josh Stone <jistone@redhat.com> 7.99-0.23
afd09e
- Rebase on newer git tree.
afd09e
- Update license files with upstream additions.
afd09e
- Split documentation into -doc subpackage.
afd09e
- Claim ownership of %{_libdir}/dyninst.
afd09e
afd09e
* Fri Jul 27 2012 William Cohen <wcohen@redhat.com> - 7.99-0.22
afd09e
- Correct requires for dyninst-devel.
afd09e
afd09e
* Wed Jul 25 2012 Josh Stone <jistone@redhat.com> - 7.99-0.21
afd09e
- Rebase on newer git tree
afd09e
- Update context in dyninst-git.patch
afd09e
- Drop dyninst-delete_array.patch
afd09e
- Drop dyninst-common-makefile.patch
afd09e
afd09e
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 7.99-0.20
afd09e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
afd09e
afd09e
* Mon Jul 16 2012 William Cohen <wcohen@redhat.com> - 7.99-0.19
afd09e
- Patch common/i386-unknown-linux2.4/Makefile to build.
afd09e
afd09e
* Fri Jul 13 2012 William Cohen <wcohen@redhat.com> - 7.99-0.18
afd09e
- Rebase on newer git tree the has a number of merges into it.
afd09e
- Adjust spec file to allow direct use of git patches
afd09e
- Fix to eliminate unused varables.
afd09e
- Proper delete for array.
afd09e
afd09e
* Thu Jun 28 2012 William Cohen <wcohen@redhat.com> - 7.99-0.17
afd09e
- Rebase on newer git repo.
afd09e
afd09e
* Thu Jun 28 2012 William Cohen <wcohen@redhat.com> - 7.99-0.16
afd09e
- Eliminate dynptr.h file use with rebase on newer git repo.
afd09e
afd09e
* Mon Jun 25 2012 William Cohen <wcohen@redhat.com> - 7.99-0.14
afd09e
- Rebase on newer git repo.
afd09e
afd09e
* Tue Jun 19 2012 William Cohen <wcohen@redhat.com> - 7.99-0.12
afd09e
- Fix static library and header file permissions.
afd09e
- Use sources from the dyninst git repositories.
afd09e
- Fix 32-bit library versioning for libdyninstAPI_RT_m32.so.
afd09e
afd09e
* Wed Jun 13 2012 William Cohen <wcohen@redhat.com> - 7.99-0.11
afd09e
- Fix library versioning.
afd09e
- Move .so links to dyninst-devel.
afd09e
- Remove unneded clean section.
afd09e
afd09e
* Fri May 11 2012 William Cohen <wcohen@redhat.com> - 7.0.1-0.9
afd09e
- Clean up Makefile rules.
afd09e
afd09e
* Sat May 5 2012 William Cohen <wcohen@redhat.com> - 7.0.1-0.8
afd09e
- Clean up spec file.
afd09e
afd09e
* Wed May 2 2012 William Cohen <wcohen@redhat.com> - 7.0.1-0.7
afd09e
- Use "make install" and do staged build.
afd09e
- Use rpm configure macro.
afd09e
afd09e
* Thu Mar 15 2012 William Cohen <wcohen@redhat.com> - 7.0.1-0.5
afd09e
- Nuke the bundled boost files and use the boost-devel rpm instead.
afd09e
afd09e
* Mon Mar 12 2012 William Cohen <wcohen@redhat.com> - 7.0.1-0.4
afd09e
- Initial submission of dyninst spec file.