Compare commits
11 Commits
Author | SHA1 | Date |
---|---|---|
Fedora Release Engineering | 7eb5dec88e | |
roland | 069f4d79fc | |
roland | 7611c8202c | |
roland | d3e6c03fdb | |
roland | 59762e6476 | |
roland | 2b8bc25f29 | |
Bill Nottingham | d5215f7f03 | |
roland | d0b89ea605 | |
roland | c835648d96 | |
roland | c77c6f861c | |
Jesse Keating | 124c75b6e3 |
|
@ -1 +0,0 @@
|
|||
elfutils-0.140.tar.bz2
|
|
@ -0,0 +1 @@
|
|||
elfutils-0.147.tar.bz2
|
98
Makefile
98
Makefile
|
@ -1,98 +0,0 @@
|
|||
# Makefile for source rpm: elfutils
|
||||
# $Id$
|
||||
NAME := elfutils
|
||||
SPECFILE = elfutils.spec
|
||||
|
||||
all:
|
||||
|
||||
UPSTREAM_CHECKS := sig
|
||||
UPSTREAM_FILES = $(NAME)-$(VERSION).tar.bz2
|
||||
upstream:;
|
||||
|
||||
define find-makefile-common
|
||||
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
|
||||
endef
|
||||
|
||||
MAKEFILE_COMMON := $(shell $(find-makefile-common))
|
||||
|
||||
ifeq ($(MAKEFILE_COMMON),)
|
||||
# attept a checkout
|
||||
define checkout-makefile-common
|
||||
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
|
||||
endef
|
||||
|
||||
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
|
||||
endif
|
||||
|
||||
include $(MAKEFILE_COMMON)
|
||||
|
||||
ifneq (,$(CURL))
|
||||
CURL += -k
|
||||
endif
|
||||
|
||||
patches := $(patsubst %,elfutils-%.patch,robustify portability)
|
||||
all: $(patches)
|
||||
|
||||
branch-portability = portable
|
||||
branch-master = elfutils-$(VERSION)
|
||||
|
||||
elfutils-%/configure: .git/refs/heads/* Makefile
|
||||
@rm -rf $(@D)
|
||||
git archive --prefix=$(@D)/ $(firstword $(branch-$*) $*) | tar xf -
|
||||
cd $(@D) && autoreconf -i && rm -rf autom4te.cache
|
||||
|
||||
elfutils-%.patch: elfutils-master/configure elfutils-%/configure
|
||||
diff --exclude='.gitignore' -Nrpu $(^D) | \
|
||||
filterdiff --remove-timestamps --strip=1 --addprefix=elfutils/ > $@.new
|
||||
mv $@.new $@
|
||||
|
||||
elfutils-portable.spec: elfutils.spec
|
||||
(echo '%define _with_compat 1'; sed 's/ check$$/& || :/' $<) > $@.new
|
||||
mv -f $@.new $@
|
||||
|
||||
portable-r = 0.$(subst $(DIST),,$(RELEASE))
|
||||
portable-vr = $(VERSION)-$(portable-r)
|
||||
portable.srpm = elfutils-$(portable-vr).src.rpm
|
||||
$(portable.srpm): elfutils-portable.spec $(patches) \
|
||||
elfutils-$(VERSION).tar.bz2
|
||||
$(RPM_WITH_DIRS) --nodeps -bs $<
|
||||
|
||||
portable-srpm: $(portable.srpm)
|
||||
|
||||
portable-dist = 3.0E-scratch
|
||||
portable-build = \
|
||||
$(redhat)/brewroot/packages/elfutils/$(VERSION)/$(portable-r)
|
||||
|
||||
ifeq (,$(wildcard /mnt/redhat/brewroot/packages/elfutils))
|
||||
redhat = datadump.devel.redhat.com::redhat
|
||||
rsync-to = devserv.devel.redhat.com:dist/elfutils/devel/systemtap-dist/
|
||||
build-dep = $(portable.srpm)
|
||||
else
|
||||
redhat = /mnt/redhat
|
||||
$(portable-build): $(portable.srpm)
|
||||
brew build $(BUILD_FLAGS) dist-$(portable-dist) $<
|
||||
rsync-to = $(public)
|
||||
build-dep = $(portable-build)/src/$(portable.srpm)
|
||||
portable-build: $(portable-build)
|
||||
$(build-dep): $(portable-build)
|
||||
endif
|
||||
|
||||
dist-files = README.elfutils systemtap-elfutils.repo
|
||||
rsync-files = --exclude=tests --exclude=data $(portable-build)/
|
||||
public = sources.redhat.com:/sourceware/ftp/anonftp/pub/systemtap/elfutils/
|
||||
|
||||
RSYNC = RSYNC_RSH=ssh rsync
|
||||
|
||||
systemtap-dist: $(build-dep) $(dist-files)
|
||||
@mkdir -p $@
|
||||
$(RSYNC) -a --delete --progress -v $(rsync-files) systemtap-dist/
|
||||
ln $(dist-files) systemtap-dist/
|
||||
ln -v `rpm -qlp $<` systemtap-dist/
|
||||
|
||||
systemtap-dist-createrepo: systemtap-dist
|
||||
ifneq ($(wildcard /usr/bin/createrepo),)
|
||||
createrepo -q `cd $<; /bin/pwd`
|
||||
endif
|
||||
|
||||
systemtap-sync: systemtap-dist-createrepo
|
||||
$(RSYNC) -az --delete --progress -v systemtap-dist/ $(rsync-to)
|
|
@ -1,76 +0,0 @@
|
|||
THIS IS HERE ONLY TO SUPPORT SYSTEMTAP DEVELOPMENT. IT IS NOT FOR GENERAL USE.
|
||||
|
||||
Building systemtap requires a recent development version of elfutils,
|
||||
which provides libraries for making use of debugging information.
|
||||
|
||||
This is unfinished work in active development. This code is not intended
|
||||
for general consumption in its present form. Development of these
|
||||
libraries is simultaneous with Systemtap development. The Systemtap code
|
||||
will require new versions as things evolve; the systemtap.spec.in file in
|
||||
the systemtap source tree should always indicate the minimum version of
|
||||
elfutils libraries that will suffice. We will make an effort to make a
|
||||
compatible version available here, that you can use for compiling Systemtap.
|
||||
|
||||
Current elfutils can always be found in Fedora Core Development, AKA Rawhide.
|
||||
If you are interested in the elfutils code in general or for any purpose
|
||||
other than developing Systemtap, please see http://fedora.redhat.com/ about
|
||||
getting involved with Fedora Core Development directly.
|
||||
|
||||
To use the elfutils libraries to build Systemtap, you can either use
|
||||
installed libraries, or you can build elfutils from source as part of the
|
||||
systemtap build. To use installed libraries, you'll need to have the
|
||||
current elfutils version installed on your system where the compiler will
|
||||
find it with whatever build flags you pass systemtap's configure script.
|
||||
Unless your system already has the current elfutils installed
|
||||
(i.e. Rawhide), you'll have to install a nonstandard build either via RPM
|
||||
or by hand with "make" as detailed below. To build the elfutils source
|
||||
locally as part of the systemtap build, see systemtap's README about the
|
||||
--with-elfutils=... option to systemtap's configure.
|
||||
|
||||
You can find the rawhide rpms updated daily on a variety of sites
|
||||
(see http://fedora.redhat.com/download/mirrors.html) under core/development.
|
||||
What's distributed in this directory is made trivially from those same sources.
|
||||
|
||||
The vanilla elfutils code, in elfutils-VERSION.tar.gz and what the rawhide
|
||||
RPMs ordinarily build, can only be built using GCC 4 and a recent glibc.
|
||||
Fedora Core 4 is the only released system meeting the requirements.
|
||||
|
||||
To rebuild the rawhide src.rpm on an older system, you can use:
|
||||
|
||||
rpmbuild --with compat --rebuild elfutils-VERSION-N.src.rpm
|
||||
|
||||
The SRPMS/elfutils-VERSION-0.N.src.rpm provided here is exactly the same as
|
||||
the elfutils-VERSION-N.src.rpm from Rawhide except that it doesn't require
|
||||
that you specify --with compat to build on an older system.
|
||||
|
||||
We have done this for you for a few architectures, and those RPMs are
|
||||
available here. These were built on RHEL3, and so their requirements
|
||||
should not be too demanding. We must remind you that this is unsupported,
|
||||
pre-beta development code. Furthermore, these builds are completely
|
||||
unofficial, unsupported, unsigned, unlikely to have been tested,
|
||||
unequivocally not guaranteed not to ruin your whole day, and we really
|
||||
cannot recommend that anyone install them on their system. Do so at your
|
||||
own risk. All that said, here they is, and if you copy this file:
|
||||
|
||||
ftp://sources.redhat.com/pub/systemtap/elfutils/systemtap-elfutils.repo
|
||||
|
||||
into your /etc/yum.repos.d/ directory, then you can get them all with just:
|
||||
|
||||
yum install elfutils-devel
|
||||
|
||||
|
||||
To compile elfutils from source by hand, simply use elfutils-VERSION.tar.gz
|
||||
and follow the usual procedure for GNU configure conventions. The patch
|
||||
available here has to be applied before you can compile on an older system:
|
||||
|
||||
tar xzf elfutils-VERSION.tar.gz
|
||||
patch -p1 -d elfutils-VERSION < elfutils-portability.patch
|
||||
cd elfutils-VERSION
|
||||
./configure --program-prefix=eu-devel-
|
||||
make && make check && make install
|
||||
|
||||
(That of course installs things under /usr/local, unlike the RPMs.)
|
||||
|
||||
|
||||
Caveat emptor. Carpe noctem.
|
||||
Reply to <systemtap@sources.redhat.com>.
|
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
118
elfutils.spec
118
elfutils.spec
|
@ -1,24 +1,24 @@
|
|||
%define eu_version 0.140
|
||||
%define eu_release 2
|
||||
%global eu_version 0.147
|
||||
%global eu_release 1
|
||||
|
||||
%if %{?_with_compat:1}%{!?_with_compat:0}
|
||||
%define compat 1
|
||||
%global compat 1
|
||||
%else
|
||||
%define compat 0
|
||||
%global compat 0
|
||||
%endif
|
||||
|
||||
%if 0%{?fedora} >= 8
|
||||
%define scanf_has_m 1
|
||||
%global scanf_has_m 1
|
||||
%endif
|
||||
%if 0%{?rhel} >= 6
|
||||
%define scanf_has_m 1
|
||||
%global scanf_has_m 1
|
||||
%endif
|
||||
|
||||
%if 0%{?fedora} >= 7
|
||||
%define separate_devel_static 1
|
||||
%global separate_devel_static 1
|
||||
%endif
|
||||
%if 0%{?rhel} >= 6
|
||||
%define separate_devel_static 1
|
||||
%global separate_devel_static 1
|
||||
%endif
|
||||
|
||||
Summary: A collection of utilities and DSOs to handle compiled objects
|
||||
|
@ -27,7 +27,7 @@ Version: %{eu_version}
|
|||
%if !%{compat}
|
||||
Release: %{eu_release}%{?dist}
|
||||
%else
|
||||
Release: 0.%{eu_release}.1
|
||||
Release: 0.%{eu_release}
|
||||
%endif
|
||||
License: GPLv2 with exceptions
|
||||
Group: Development/Tools
|
||||
|
@ -38,7 +38,7 @@ Patch2: elfutils-portability.patch
|
|||
Requires: elfutils-libelf-%{_arch} = %{version}-%{release}
|
||||
Requires: elfutils-libs-%{_arch} = %{version}-%{release}
|
||||
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
BuildRequires: gettext
|
||||
BuildRequires: bison >= 1.875
|
||||
BuildRequires: flex >= 2.5.4a
|
||||
BuildRequires: bzip2
|
||||
|
@ -50,12 +50,20 @@ BuildRequires: glibc-headers >= 2.3.4-11
|
|||
BuildRequires: gcc >= 3.2
|
||||
%endif
|
||||
|
||||
%define use_zlib 0
|
||||
%global use_zlib 0
|
||||
%if 0%{?fedora} >= 5
|
||||
%define use_zlib 1
|
||||
%global use_zlib 1
|
||||
%endif
|
||||
%if 0%{?rhel} >= 5
|
||||
%define use_zlib 1
|
||||
%global use_zlib 1
|
||||
%endif
|
||||
|
||||
%global use_xz 0
|
||||
%if 0%{?fedora} >= 10
|
||||
%global use_xz 1
|
||||
%endif
|
||||
%if 0%{?rhel} >= 6
|
||||
%global use_xz 1
|
||||
%endif
|
||||
|
||||
%if %{use_zlib}
|
||||
|
@ -63,8 +71,12 @@ BuildRequires: zlib-devel >= 1.2.2.3
|
|||
BuildRequires: bzip2-devel
|
||||
%endif
|
||||
|
||||
%define _gnu %{nil}
|
||||
%define _program_prefix eu-
|
||||
%if %{use_xz}
|
||||
BuildRequires: xz-devel
|
||||
%endif
|
||||
|
||||
%global _gnu %{nil}
|
||||
%global _program_prefix eu-
|
||||
|
||||
%description
|
||||
Elfutils is a collection of utilities, including ld (a linker),
|
||||
|
@ -183,7 +195,10 @@ RPM_OPT_FLAGS=${RPM_OPT_FLAGS/-Wall/}
|
|||
RPM_OPT_FLAGS="$RPM_OPT_FLAGS -D__NO_INLINE__"
|
||||
%endif
|
||||
|
||||
%configure CFLAGS="$RPM_OPT_FLAGS -fexceptions"
|
||||
%configure CFLAGS="$RPM_OPT_FLAGS -fexceptions" || {
|
||||
cat config.log
|
||||
exit 2
|
||||
}
|
||||
make -s %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
|
@ -198,6 +213,8 @@ chmod +x ${RPM_BUILD_ROOT}%{_prefix}/%{_lib}/elfutils/lib*.so*
|
|||
rm -f .%{_bindir}/eu-ld
|
||||
)
|
||||
|
||||
%find_lang %{name}
|
||||
|
||||
%check
|
||||
make -s check
|
||||
|
||||
|
@ -214,7 +231,7 @@ rm -rf ${RPM_BUILD_ROOT}
|
|||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%doc README TODO
|
||||
%doc COPYING README TODO
|
||||
%{_bindir}/eu-addr2line
|
||||
%{_bindir}/eu-ar
|
||||
%{_bindir}/eu-elfcmp
|
||||
|
@ -259,7 +276,7 @@ rm -rf ${RPM_BUILD_ROOT}
|
|||
%{_libdir}/libasm.a
|
||||
%{_libdir}/libdw.a
|
||||
|
||||
%files libelf
|
||||
%files -f %{name}.lang libelf
|
||||
%defattr(-,root,root)
|
||||
%{_libdir}/libelf-%{version}.so
|
||||
%{_libdir}/libelf.so.*
|
||||
|
@ -276,6 +293,69 @@ rm -rf ${RPM_BUILD_ROOT}
|
|||
%{_libdir}/libelf.a
|
||||
|
||||
%changelog
|
||||
* Mon May 3 2010 Roland McGrath <roland@redhat.com> - 0.147-1
|
||||
- Update to 0.147
|
||||
|
||||
* Wed Apr 21 2010 Roland McGrath <roland@redhat.com> - 0.146-1
|
||||
- Update to 0.146
|
||||
- libdwfl: New function dwfl_core_file_report.
|
||||
- libelf: Fix handling of phdrs in truncated file. (#577310)
|
||||
- libdwfl: Fix infinite loop handling clobbered link_map. (#576379)
|
||||
- Package translations.
|
||||
|
||||
* Tue Feb 23 2010 Roland McGrath <roland@redhat.com> - 0.145-1
|
||||
- Update to 0.145
|
||||
- Fix build with --disable-dependency-tracking. (#564646)
|
||||
- Fix build with most recent glibc headers.
|
||||
- libdw: Fix CFI decoding. (#563528)
|
||||
- libdwfl: Fix address bias returned by CFI accessors. (#563528)
|
||||
Fix core file module layout identification. (#559836)
|
||||
- readelf: Fix CFI decoding.
|
||||
|
||||
* Fri Jan 15 2010 Roland McGrath <roland@redhat.com> - 0.144-2
|
||||
- Fix sloppy #include's breaking build with F-13 glibc.
|
||||
|
||||
* Thu Jan 14 2010 Roland McGrath <roland@redhat.com> - 0.144-1
|
||||
- Update to 0.144
|
||||
- libdw: New function dwarf_aggregate_size for computing (constant) type
|
||||
sizes, including array_type cases with nontrivial calculation.
|
||||
- readelf: Don't give errors for missing info under -a.
|
||||
Handle Linux "VMCOREINFO" notes under -n.
|
||||
- Resolves: RHBZ #527004, RHBZ #530704, RHBZ #550858
|
||||
|
||||
* Mon Sep 21 2009 Roland McGrath <roland@redhat.com> - 0.143-1
|
||||
- Update to 0.143
|
||||
- libdw: Various convenience functions for individual attributes now use
|
||||
dwarf_attr_integrate to look up indirect inherited attributes.
|
||||
Location expression handling now supports DW_OP_implicit_value.
|
||||
- libdwfl: Support automatic decompression of files in XZ format,
|
||||
and of Linux kernel images made with bzip2 or LZMA
|
||||
(as well as gzip).
|
||||
|
||||
* Tue Jul 28 2009 Roland McGrath <roland@redhat.com> - 0.142-1
|
||||
- Update to 0.142
|
||||
- libelf: Bug fix in filling gaps between sections. (#512840)
|
||||
- libelf: Add elf_getshdrnum alias for elf_getshnum and elf_getshdrstrndx
|
||||
alias for elf_getshstrndx and deprecate original names.
|
||||
- libebl, elflint: Add support for STB_GNU_UNIQUE. (#511436)
|
||||
- readelf: Add -N option, speeds up DWARF printing
|
||||
without address->name lookups. (#505347)
|
||||
- libdw: Add support for decoding DWARF CFI into location description form.
|
||||
Handle some new DWARF 3 expression operations previously omitted.
|
||||
Basic handling of some new encodings slated for DWARF 4.
|
||||
|
||||
* Thu Apr 23 2009 Roland McGrath <roland@redhat.com> - 0.141-1
|
||||
- Update to 0.141
|
||||
- libebl: sparc backend fixes (#490585)
|
||||
some more arm backend support
|
||||
- libdwfl: fix dwfl_module_build_id for prelinked DSO case (#489439)
|
||||
fixes in core file support (#494858)
|
||||
dwfl_module_getsym interface improved for non-address symbols
|
||||
- eu-strip: fix infinite loop on strange inputs with -f
|
||||
- eu-addr2line: take -j/--section=NAME option for binutils compatibility
|
||||
(same effect as '(NAME)0x123' syntax already supported)
|
||||
- Resolves: RHBZ #495213, RHBZ #465872, RHBZ #470055, RHBZ #484623
|
||||
|
||||
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.140-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
||||
|
||||
|
@ -287,7 +367,7 @@ rm -rf ${RPM_BUILD_ROOT}
|
|||
- Update to 0.139
|
||||
- libcpu: Add Intel SSE4 disassembler support
|
||||
- readelf: Implement call frame information and exception handling dumping.
|
||||
Add -e option. Enable it implicitly for -a.
|
||||
Add -e option. Enable it implicitly for -a.
|
||||
- elflint: Check PT_GNU_EH_FRAME program header entry.
|
||||
- libdwfl: Support automatic gzip/bzip2 decompression of ELF files. (#472136)
|
||||
|
||||
|
|
2
sources
2
sources
|
@ -1 +1 @@
|
|||
d4d64f9c05ba127a5a8b55beb6d88ab2 elfutils-0.140.tar.bz2
|
||||
ccb6bba1d96c096f1b5dbd34444554a3 elfutils-0.147.tar.bz2
|
||||
|
|
|
@ -1,5 +0,0 @@
|
|||
[systemtap-elfutils]
|
||||
name=FOR SYSTEMTAP DEVELOPMENT ONLY
|
||||
baseurl=ftp://sources.redhat.com/pub/systemtap/elfutils/
|
||||
enabled=1
|
||||
gpgcheck=0
|
Loading…
Reference in New Issue