| 1 |
Summary: A debugger which detects memory allocation violations
|
| 2 |
Name: ElectricFence
|
| 3 |
Version: 2.2.2
|
| 4 |
Release: 27%{?dist}
|
| 5 |
License: GPLv2
|
| 6 |
Group: Development/Tools
|
| 7 |
URL: http://perens.com/FreeSoftware/ElectricFence/
|
| 8 |
|
| 9 |
# ftp://ftp.perens.com/pub/ElectricFence/beta/ used to be here, but
|
| 10 |
# the site is inaccessible as of lately
|
| 11 |
Source: %{name}-%{version}.tar.gz
|
| 12 |
Patch1: ElectricFence-2.0.5-longjmp.patch
|
| 13 |
Patch2: ElectricFence-2.1-vaarg.patch
|
| 14 |
Patch3: ElectricFence-2.2.2-pthread.patch
|
| 15 |
Patch4: ElectricFence-2.2.2-madvise.patch
|
| 16 |
Patch5: ElectricFence-mmap-size.patch
|
| 17 |
Patch6: ElectricFence-2.2.2-banner.patch
|
| 18 |
Patch7: ElectricFence-2.2.2-ef.patch
|
| 19 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
| 20 |
|
| 21 |
%description
|
| 22 |
ElectricFence is a utility for C programming and
|
| 23 |
debugging. ElectricFence uses the virtual memory hardware of your
|
| 24 |
system to detect when software overruns malloc() buffer boundaries,
|
| 25 |
and/or to detect any accesses of memory released by
|
| 26 |
free(). ElectricFence will then stop the program on the first
|
| 27 |
instruction that caused a bounds violation and you can use your
|
| 28 |
favorite debugger to display the offending statement.
|
| 29 |
|
| 30 |
Install ElectricFence if you need a debugger to find malloc()
|
| 31 |
violations.
|
| 32 |
|
| 33 |
%prep
|
| 34 |
%setup -q
|
| 35 |
%patch1 -p1 -b .longjmp
|
| 36 |
%patch2 -p1 -b .vaarg
|
| 37 |
%patch3 -p1 -b .pthread
|
| 38 |
%patch4 -p1 -b .madvise
|
| 39 |
%patch5 -p1
|
| 40 |
%patch6 -p1
|
| 41 |
%patch7 -p1
|
| 42 |
|
| 43 |
%build
|
| 44 |
make CFLAGS='${RPM_OPT_FLAGS} -DUSE_SEMAPHORE -fpic'
|
| 45 |
|
| 46 |
%install
|
| 47 |
rm -rf $RPM_BUILD_ROOT
|
| 48 |
mkdir -p %{buildroot}{%{_bindir},%{_libdir},%{_mandir}/man3}
|
| 49 |
|
| 50 |
make BIN_INSTALL_DIR=%{buildroot}%{_bindir} \
|
| 51 |
LIB_INSTALL_DIR=%{buildroot}%{_libdir} \
|
| 52 |
MAN_INSTALL_DIR=%{buildroot}%{_mandir}/man3 \
|
| 53 |
install
|
| 54 |
|
| 55 |
echo ".so man3/efence.3" > %{buildroot}%{_mandir}/man3/libefence.3
|
| 56 |
|
| 57 |
%clean
|
| 58 |
rm -rf $RPM_BUILD_ROOT
|
| 59 |
|
| 60 |
%post -p /sbin/ldconfig
|
| 61 |
|
| 62 |
%postun -p /sbin/ldconfig
|
| 63 |
|
| 64 |
|
| 65 |
%files
|
| 66 |
%defattr(-,root,root)
|
| 67 |
%doc README CHANGES COPYING
|
| 68 |
%{_bindir}/*
|
| 69 |
%{_libdir}/*.a
|
| 70 |
%{_libdir}/*.so*
|
| 71 |
%{_mandir}/*/*
|
| 72 |
|
| 73 |
%changelog
|
| 74 |
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.2-27
|
| 75 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
| 76 |
|
| 77 |
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.2-26
|
| 78 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
| 79 |
|
| 80 |
* Mon Feb 11 2008 Petr Machata <pmachata@redhat.com> - 2.2.2-25
|
| 81 |
- Fix ef.sh argument passing
|
| 82 |
- Resolves: #432286
|
| 83 |
|
| 84 |
* Thu Aug 16 2007 Petr Machata <pmachata@redhat.com> - 2.2.2-24
|
| 85 |
- Fix licesing tag.
|
| 86 |
|
| 87 |
* Wed Mar 28 2007 Petr Machata <pmachata@redhat.com> - 2.2.2-23
|
| 88 |
- Detect for EF_DISABLE_BANNER env. var before printing out the
|
| 89 |
banner. (Patch adapted from Debian repositories.)
|
| 90 |
- Resolves: #233702
|
| 91 |
|
| 92 |
* Fri Mar 16 2007 Petr Machata <pmachata@redhat.com> - 2.2.2-22
|
| 93 |
- Remove bad cast in ElectricFence mmap (George Beshers)
|
| 94 |
- Resolves: #232695
|
| 95 |
|
| 96 |
* Wed Feb 7 2007 Petr Machata <pmachata@redhat.com> - 2.2.2-21
|
| 97 |
- Tidy up the specfile per rpmlint comments
|
| 98 |
|
| 99 |
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 2.2.2-20.2.2
|
| 100 |
- rebuild
|
| 101 |
|
| 102 |
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 2.2.2-20.2.1
|
| 103 |
- bump again for double-long bug on ppc(64)
|
| 104 |
|
| 105 |
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 2.2.2-20.2
|
| 106 |
- rebuilt for new gcc4.1 snapshot and glibc changes
|
| 107 |
|
| 108 |
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
|
| 109 |
- rebuilt
|
| 110 |
|
| 111 |
* Sat Mar 5 2005 Jakub Jelinek <jakub@redhat.com> 2.2.2-20
|
| 112 |
- rebuilt with GCC 4
|
| 113 |
|
| 114 |
* Sat Oct 16 2004 Jakub Jelinek <jakub@redhat.com> 2.2.2-19
|
| 115 |
- when EF_PROTECT_FREE=1, instead of munmaping mprotect PROT_NONE
|
| 116 |
and madvise MADV_DONTNEED (#107506)
|
| 117 |
|
| 118 |
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
|
| 119 |
- rebuilt
|
| 120 |
|
| 121 |
* Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com>
|
| 122 |
- rebuilt
|
| 123 |
|
| 124 |
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
|
| 125 |
- rebuilt
|
| 126 |
|
| 127 |
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
|
| 128 |
- rebuilt
|
| 129 |
|
| 130 |
* Mon Feb 3 2003 Jakub Jelinek <jakub@redhat.com>
|
| 131 |
- never call semaphore routines in between
|
| 132 |
__libc_malloc_pthread_startup(true) and
|
| 133 |
__libc_malloc_pthread_startup(false) (#83111)
|
| 134 |
- only use semaphore locking if application or its dependencies
|
| 135 |
are linked against -lpthread, don't link libefence.so against
|
| 136 |
-lpthread
|
| 137 |
- run tests as part of the build process
|
| 138 |
|
| 139 |
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
|
| 140 |
- rebuilt
|
| 141 |
|
| 142 |
* Tue Jan 7 2003 Jeff Johnson <jbj@redhat.com> 2.2.2-13
|
| 143 |
- don't include -debuginfo files in package.
|
| 144 |
|
| 145 |
* Thu Dec 12 2002 Tim Powers <timp@redhat.com> 2.2.2-12
|
| 146 |
- rebuild on all arches
|
| 147 |
|
| 148 |
* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
|
| 149 |
- automated rebuild
|
| 150 |
|
| 151 |
* Thu May 23 2002 Tim Powers <timp@redhat.com>
|
| 152 |
- automated rebuild
|
| 153 |
|
| 154 |
* Wed Jan 09 2002 Tim Powers <timp@redhat.com>
|
| 155 |
- automated rebuild
|
| 156 |
|
| 157 |
* Sun Jun 24 2001 Elliot Lee <sopwith@redhat.com>
|
| 158 |
- Bump release + rebuild.
|
| 159 |
|
| 160 |
* Thu Nov 16 2000 Tim Powers <timp@redhat.com>
|
| 161 |
- use -fPIC, not -fpic, also -DUSE_SEMAPHORE to make it thread safe,
|
| 162 |
as per bug #20935
|
| 163 |
|
| 164 |
* Tue Sep 19 2000 Bill Nottingham <notting@redhat.com>
|
| 165 |
- use -fpic
|
| 166 |
|
| 167 |
* Fri Aug 18 2000 Tim Waugh <twaugh@redhat.com>
|
| 168 |
- fix efence.3/libefence.3 confusion (#16412).
|
| 169 |
|
| 170 |
* Tue Aug 1 2000 Tim Powers <timp@redhat.com>
|
| 171 |
- added ldconfig stuff to ;post and postun
|
| 172 |
- added Requires /sbin/ldconfig
|
| 173 |
* Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
|
| 174 |
- automatic rebuild
|
| 175 |
|
| 176 |
* Wed Jul 05 2000 Preston Brown <pbrown@redhat.com>
|
| 177 |
- back in main distro
|
| 178 |
- 2.2.2 version - claimed beta, but no releases in over a year.
|
| 179 |
- FHS macros
|
| 180 |
|
| 181 |
* Fri May 26 2000 Tim Powers <timp@redhat.com>
|
| 182 |
- moved to Powertools
|
| 183 |
- fix map page location to be in /usr/share/man
|
| 184 |
|
| 185 |
* Tue May 16 2000 Jakub Jelinek <jakub@redhat.com>
|
| 186 |
- fix build on ia64
|
| 187 |
|
| 188 |
* Wed Feb 02 2000 Cristian Gafton <gafton@redhat.com>
|
| 189 |
- fix description
|
| 190 |
- man pages are compressed
|
| 191 |
|
| 192 |
* Tue Jan 4 2000 Jeff Johnson <jbj@redhat.com>
|
| 193 |
- remove ExcludeArch: alpha (#6683).
|
| 194 |
|
| 195 |
* Sat Apr 10 1999 Matt Wilson <msw@redhat.com>
|
| 196 |
- version 2.1
|
| 197 |
|
| 198 |
* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
|
| 199 |
- auto rebuild in the new build environment (release 13)
|
| 200 |
|
| 201 |
* Wed Jan 06 1999 Cristian Gafton <gafton@redhat.com>
|
| 202 |
- build for glibc 2.1
|
| 203 |
|
| 204 |
* Fri Aug 21 1998 Jeff Johnson <jbj@redhat.com>
|
| 205 |
- create efence.3 (problem #830)
|
| 206 |
|
| 207 |
* Tue Aug 4 1998 Jeff Johnson <jbj@redhat.com>
|
| 208 |
- build root
|
| 209 |
|
| 210 |
* Mon Jun 01 1998 Prospector System <bugs@redhat.com>
|
| 211 |
- translations modified for de
|
| 212 |
|
| 213 |
* Mon Jun 01 1998 Prospector System <bugs@redhat.com>
|
| 214 |
- need to use sigsetjmp() and siglongjmp() for proper testing
|
| 215 |
|
| 216 |
* Fri May 01 1998 Prospector System <bugs@redhat.com>
|
| 217 |
- translations modified for de, fr, tr
|
| 218 |
|
| 219 |
* Thu Apr 30 1998 Cristian Gafton <gafton@redhat.com>
|
| 220 |
- use ExcludeArch instead of Exclude
|
| 221 |
|
| 222 |
* Thu Jul 10 1997 Erik Troan <ewt@redhat.com>
|
| 223 |
- built against glibc
|