|
|
e165a3 |
%{?scl:%{?scl_package:%scl_package binutils}}
|
|
|
e165a3 |
|
|
|
e165a3 |
%define githash 38573e7d
|
|
|
e165a3 |
Name: %{?scl_prefix}memstomp
|
|
|
e165a3 |
Version: 0.1.5
|
|
|
44c1bd |
Release: 3%{?dist}
|
|
|
e165a3 |
Summary: Warns of memory argument overlaps to various functions
|
|
|
e165a3 |
Group: Development/Debuggers
|
|
|
e165a3 |
License: LGPLv3+ and GPLv2+
|
|
|
e165a3 |
URL: git://fedorapeople.org/home/fedora/wcohen/public_git/memstomp
|
|
|
e165a3 |
# The source for this package was pulled from upstream's vcs. Use the
|
|
|
e165a3 |
# following commands to generate the tarball:
|
|
|
e165a3 |
# git clone git://fedorapeople.org/home/fedora/wcohen/public_git/memstomp
|
|
|
e165a3 |
# cd memstomp
|
|
|
e165a3 |
# git archive --prefix memstomp-0.1.5-38573e7d/ master | gzip > memstomp-0.1.5-38573e7d.tar.gz
|
|
|
e165a3 |
Source0: memstomp-%{version}-%{githash}.tar.gz
|
|
|
e165a3 |
Requires: util-linux
|
|
|
e165a3 |
BuildRequires: binutils-devel autoconf automake dejagnu
|
|
|
e165a3 |
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
|
|
|
e165a3 |
|
|
|
e165a3 |
Patch0: memstomp-testsuite.patch
|
|
|
e165a3 |
Patch1: memstomp-man.patch
|
|
|
e165a3 |
Patch2: memstomp-rh961495.patch
|
|
|
e165a3 |
Patch3: memstomp-rh962763.patch
|
|
|
e165a3 |
Patch4: memstomp-quietmode.patch
|
|
|
e165a3 |
Patch5: memstomp-rh1133815.patch
|
|
|
44c1bd |
Patch6: memstomp-rh1093173.patch
|
|
|
e165a3 |
|
|
|
e165a3 |
|
|
|
e165a3 |
%define alternatives_cmd %{!?scl:%{_sbindir}}%{?scl:%{_root_sbindir}}/alternatives
|
|
|
e165a3 |
%define alternatives_cmdline %{alternatives_cmd}%{?scl: --altdir %{_sysconfdir}/alternatives --admindir %{_scl_root}/var/lib/alternatives}
|
|
|
e165a3 |
|
|
|
e165a3 |
%{?scl:Requires:%scl_runtime}
|
|
|
e165a3 |
|
|
|
e165a3 |
|
|
|
e165a3 |
%description
|
|
|
e165a3 |
memstomp is a simple program that can be used to identify
|
|
|
e165a3 |
places in code which trigger undefined behaviour due to
|
|
|
e165a3 |
overlapping memory arguments to certain library calls.
|
|
|
e165a3 |
|
|
|
e165a3 |
%post -p /sbin/ldconfig
|
|
|
e165a3 |
%postun -p /sbin/ldconfig
|
|
|
e165a3 |
|
|
|
e165a3 |
%prep
|
|
|
e165a3 |
%setup -q -n memstomp-%{version}-%{githash}
|
|
|
e165a3 |
%patch0 -p1
|
|
|
e165a3 |
%patch1 -p1
|
|
|
e165a3 |
%patch2 -p1
|
|
|
e165a3 |
%patch3 -p1
|
|
|
e165a3 |
%patch4 -p1
|
|
|
e165a3 |
%patch5 -p1
|
|
|
44c1bd |
%patch6 -p1
|
|
|
e165a3 |
|
|
|
e165a3 |
|
|
|
e165a3 |
%build
|
|
|
e165a3 |
autoreconf
|
|
|
e165a3 |
|
|
|
e165a3 |
%configure
|
|
|
e165a3 |
make %{?_smp_mflags} CFLAGS+="-fno-strict-aliasing"
|
|
|
e165a3 |
make -k check
|
|
|
e165a3 |
|
|
|
e165a3 |
%install
|
|
|
e165a3 |
rm -rf $RPM_BUILD_ROOT
|
|
|
e165a3 |
make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
e165a3 |
|
|
|
e165a3 |
%files
|
|
|
e165a3 |
%defattr(-,root,root,-)
|
|
|
e165a3 |
%doc README LGPL3 GPL2 GPL3
|
|
|
e165a3 |
%{_bindir}/memstomp
|
|
|
e165a3 |
%{_libdir}/libmemstomp.so
|
|
|
e165a3 |
%{_libdir}/libmemstomp-backtrace-symbols.so
|
|
|
e165a3 |
%{_mandir}/man1/memstomp.1.gz
|
|
|
e165a3 |
|
|
|
e165a3 |
%changelog
|
|
|
44c1bd |
* Thu Dec 18 2014 Jeff Law <law@redhat.com> 0.1.5-3
|
|
|
44c1bd |
- Add checking of various str* and mem* for NULL arguments (#1093173)
|
|
|
44c1bd |
|
|
|
e165a3 |
* Tue Aug 26 2014 Jeff Law <law@redhat.com> 0.1.5-2
|
|
|
e165a3 |
- Adjust PC values in saved frame addresses to get line number
|
|
|
e165a3 |
associations correct (#1133815).
|
|
|
e165a3 |
|
|
|
e165a3 |
* Mon May 19 2014 Marek Polacek <polacek@redhat.com> 0.1.5-1
|
|
|
e165a3 |
- Rebase to 0.1.5 (#1096161)
|
|
|
e165a3 |
|
|
|
e165a3 |
* Thu May 30 2013 Jeff Law <law@redhat.com> 0.1.4-11
|
|
|
e165a3 |
- Add -q/--quiet options for quiet mode.
|
|
|
e165a3 |
|
|
|
e165a3 |
* Tue May 14 2013 Jeff Law <law@redhat.com> 0.1.4-10
|
|
|
e165a3 |
- Link in libiberty (#962763)
|
|
|
e165a3 |
|
|
|
e165a3 |
* Thu May 9 2013 Jeff Law <law@redhat.com> 0.1.4-9
|
|
|
e165a3 |
- Improve man page (#961518)
|
|
|
e165a3 |
|
|
|
e165a3 |
* Thu May 9 2013 Jeff Law <law@redhat.com> 0.1.4-8
|
|
|
e165a3 |
- Fix typo in initialization message (#961495)
|
|
|
e165a3 |
|
|
|
e165a3 |
* Thu Mar 28 2013 Jeff Law <law@redhat.com> 0.1.4-7
|
|
|
e165a3 |
- Rebuild with new build roots
|
|
|
e165a3 |
|
|
|
e165a3 |
* Mon Mar 18 2013 Jeff Law <law@redhat.com> 0.1.4-6
|
|
|
e165a3 |
- Bring back $RPM_BUILD_ROOT
|
|
|
e165a3 |
|
|
|
e165a3 |
* Fri Mar 15 2013 Jeff Law <law@redhat.com> 0.1.4-5
|
|
|
e165a3 |
- Build tests with -fno-builtin
|
|
|
e165a3 |
|
|
|
e165a3 |
* Mon Mar 11 2013 Jeff Law <law@redhat.com> 0.1.4-4
|
|
|
e165a3 |
- Add manpage
|
|
|
e165a3 |
- Add initial testsuite
|
|
|
e165a3 |
|
|
|
e165a3 |
* Fri Feb 22 2013 Jeff Law <law@redhat.com> 0.1.4-3
|
|
|
e165a3 |
- Change %%define to %%global for git hash
|
|
|
e165a3 |
- Remove git hash from version # in changelog
|
|
|
e165a3 |
|
|
|
e165a3 |
* Wed Feb 20 2013 Jeff Law <law@redhat.com> 0.1.4-2
|
|
|
e165a3 |
- Build with -fno-strict-aliasing
|
|
|
e165a3 |
|
|
|
e165a3 |
* Tue Feb 5 2013 Jeff Law <law@redhat.com> 0.1.4-1
|
|
|
e165a3 |
- Initial release
|