Compare commits
11 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9a81d07044 | ||
|
|
38ceddd780 | ||
|
|
cadfb869cd | ||
|
|
47e9ba12b1 | ||
|
|
bc98962ca8 | ||
|
|
ca19d0cde2 | ||
|
|
7135afb47b | ||
|
|
ac328f99ea | ||
|
|
458eac65c8 | ||
|
|
a63ed29a77 | ||
|
|
73d6875d0d |
7 changed files with 120 additions and 13 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -30,3 +30,5 @@
|
||||||
/elfutils-0.187.tar.bz2
|
/elfutils-0.187.tar.bz2
|
||||||
/elfutils-0.188.tar.bz2
|
/elfutils-0.188.tar.bz2
|
||||||
/elfutils-0.189.tar.bz2
|
/elfutils-0.189.tar.bz2
|
||||||
|
/elfutils-0.190.tar.bz2
|
||||||
|
/elfutils-0.191.tar.bz2
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,10 @@
|
||||||
Name: elfutils
|
Name: elfutils
|
||||||
Version: 0.189
|
Version: 0.191
|
||||||
%global baserelease 1
|
%global baserelease 1
|
||||||
Release: %{baserelease}%{?dist}
|
Release: %{baserelease}%{?dist}
|
||||||
URL: http://elfutils.org/
|
URL: http://elfutils.org/
|
||||||
%global source_url ftp://sourceware.org/pub/elfutils/%{version}/
|
%global source_url ftp://sourceware.org/pub/elfutils/%{version}/
|
||||||
License: GPLv3+ and (GPLv2+ or LGPLv3+) and GFDL
|
License: GPL-3.0-or-later AND (GPL-2.0-or-later OR LGPL-3.0-or-later) AND GFDL-1.3-no-invariants-or-later
|
||||||
Source: %{?source_url}%{name}-%{version}.tar.bz2
|
Source: %{?source_url}%{name}-%{version}.tar.bz2
|
||||||
Source1: elfutils-debuginfod.sysusers
|
Source1: elfutils-debuginfod.sysusers
|
||||||
Summary: A collection of utilities and DSOs to handle ELF files and DWARF data
|
Summary: A collection of utilities and DSOs to handle ELF files and DWARF data
|
||||||
|
|
@ -85,7 +85,7 @@ elfcompress (to compress or decompress ELF sections).
|
||||||
|
|
||||||
%package libs
|
%package libs
|
||||||
Summary: Libraries to handle compiled objects
|
Summary: Libraries to handle compiled objects
|
||||||
License: GPLv2+ or LGPLv3+
|
License: GPL-2.0-or-later OR LGPL-3.0-or-later
|
||||||
%if 0%{!?_isa:1}
|
%if 0%{!?_isa:1}
|
||||||
Provides: elfutils-libs%{depsuffix} = %{version}-%{release}
|
Provides: elfutils-libs%{depsuffix} = %{version}-%{release}
|
||||||
%endif
|
%endif
|
||||||
|
|
@ -108,7 +108,7 @@ libraries.
|
||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
Summary: Development libraries to handle compiled objects
|
Summary: Development libraries to handle compiled objects
|
||||||
License: GPLv2+ or LGPLv3+
|
License: GPL-2.0-or-later OR LGPL-3.0-or-later
|
||||||
%if 0%{!?_isa:1}
|
%if 0%{!?_isa:1}
|
||||||
Provides: elfutils-devel%{depsuffix} = %{version}-%{release}
|
Provides: elfutils-devel%{depsuffix} = %{version}-%{release}
|
||||||
%endif
|
%endif
|
||||||
|
|
@ -129,7 +129,7 @@ assembler interface.
|
||||||
|
|
||||||
%package libelf
|
%package libelf
|
||||||
Summary: Library to read and write ELF files
|
Summary: Library to read and write ELF files
|
||||||
License: GPLv2+ or LGPLv3+
|
License: GPL-2.0-or-later OR LGPL-3.0-or-later
|
||||||
%if 0%{!?_isa:1}
|
%if 0%{!?_isa:1}
|
||||||
Provides: elfutils-libelf%{depsuffix} = %{version}-%{release}
|
Provides: elfutils-libelf%{depsuffix} = %{version}-%{release}
|
||||||
%endif
|
%endif
|
||||||
|
|
@ -143,7 +143,7 @@ elfutils package use it also to generate new ELF files.
|
||||||
|
|
||||||
%package libelf-devel
|
%package libelf-devel
|
||||||
Summary: Development support for libelf
|
Summary: Development support for libelf
|
||||||
License: GPLv2+ or LGPLv3+
|
License: GPL-2.0-or-later OR LGPL-3.0-or-later
|
||||||
%if 0%{!?_isa:1}
|
%if 0%{!?_isa:1}
|
||||||
Provides: elfutils-libelf-devel%{depsuffix} = %{version}-%{release}
|
Provides: elfutils-libelf-devel%{depsuffix} = %{version}-%{release}
|
||||||
%endif
|
%endif
|
||||||
|
|
@ -160,7 +160,7 @@ different sections of an ELF file.
|
||||||
%if %{provide_yama_scope}
|
%if %{provide_yama_scope}
|
||||||
%package default-yama-scope
|
%package default-yama-scope
|
||||||
Summary: Default yama attach scope sysctl setting
|
Summary: Default yama attach scope sysctl setting
|
||||||
License: GPLv2+ or LGPLv3+
|
License: GPL-2.0-or-later OR LGPL-3.0-or-later
|
||||||
Provides: default-yama-scope
|
Provides: default-yama-scope
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
# For the sysctl_apply macro we need systemd as build requires.
|
# For the sysctl_apply macro we need systemd as build requires.
|
||||||
|
|
@ -194,7 +194,7 @@ profiling) of processes.
|
||||||
|
|
||||||
%package debuginfod-client
|
%package debuginfod-client
|
||||||
Summary: Library and command line client for build-id HTTP ELF/DWARF server
|
Summary: Library and command line client for build-id HTTP ELF/DWARF server
|
||||||
License: GPLv3+ and (GPLv2+ or LGPLv3+)
|
License: GPL-3.0-or-later AND (GPL-2.0-or-later OR LGPL-3.0-or-later)
|
||||||
%if 0%{!?_isa:1}
|
%if 0%{!?_isa:1}
|
||||||
Provides: elfutils-debuginfod-client%{depsuffix} = %{version}-%{release}
|
Provides: elfutils-debuginfod-client%{depsuffix} = %{version}-%{release}
|
||||||
%endif
|
%endif
|
||||||
|
|
@ -204,7 +204,7 @@ Requires: elfutils-libelf%{depsuffix} = %{version}-%{release}
|
||||||
|
|
||||||
%package debuginfod-client-devel
|
%package debuginfod-client-devel
|
||||||
Summary: Libraries and headers to build debuginfod client applications
|
Summary: Libraries and headers to build debuginfod client applications
|
||||||
License: GPLv2+ or LGPLv3+
|
License: GPL-2.0-or-later OR LGPL-3.0-or-later
|
||||||
%if 0%{!?_isa:1}
|
%if 0%{!?_isa:1}
|
||||||
Provides: elfutils-debuginfod-client-devel%{depsuffix} = %{version}-%{release}
|
Provides: elfutils-debuginfod-client-devel%{depsuffix} = %{version}-%{release}
|
||||||
%endif
|
%endif
|
||||||
|
|
@ -212,7 +212,7 @@ Requires: elfutils-debuginfod-client%{depsuffix} = %{version}-%{release}
|
||||||
|
|
||||||
%package debuginfod
|
%package debuginfod
|
||||||
Summary: HTTP ELF/DWARF file server addressed by build-id
|
Summary: HTTP ELF/DWARF file server addressed by build-id
|
||||||
License: GPLv3+
|
License: GPL-3.0-or-later
|
||||||
Requires: elfutils-libs%{depsuffix} = %{version}-%{release}
|
Requires: elfutils-libs%{depsuffix} = %{version}-%{release}
|
||||||
Requires: elfutils-libelf%{depsuffix} = %{version}-%{release}
|
Requires: elfutils-libelf%{depsuffix} = %{version}-%{release}
|
||||||
Requires: elfutils-debuginfod-client%{depsuffix} = %{version}-%{release}
|
Requires: elfutils-debuginfod-client%{depsuffix} = %{version}-%{release}
|
||||||
|
|
@ -348,6 +348,7 @@ fi
|
||||||
%{_bindir}/eu-ranlib
|
%{_bindir}/eu-ranlib
|
||||||
%{_bindir}/eu-readelf
|
%{_bindir}/eu-readelf
|
||||||
%{_bindir}/eu-size
|
%{_bindir}/eu-size
|
||||||
|
%{_bindir}/eu-srcfiles
|
||||||
%{_bindir}/eu-stack
|
%{_bindir}/eu-stack
|
||||||
%{_bindir}/eu-strings
|
%{_bindir}/eu-strings
|
||||||
%{_bindir}/eu-strip
|
%{_bindir}/eu-strip
|
||||||
|
|
@ -418,7 +419,6 @@ fi
|
||||||
%{_sysusersdir}/elfutils-debuginfod.conf
|
%{_sysusersdir}/elfutils-debuginfod.conf
|
||||||
%endif
|
%endif
|
||||||
%{_mandir}/man8/debuginfod*.8*
|
%{_mandir}/man8/debuginfod*.8*
|
||||||
%{_mandir}/man7/debuginfod*.7*
|
|
||||||
|
|
||||||
|
|
||||||
%dir %attr(0700,debuginfod,debuginfod) %{_localstatedir}/cache/debuginfod
|
%dir %attr(0700,debuginfod,debuginfod) %{_localstatedir}/cache/debuginfod
|
||||||
|
|
@ -442,6 +442,37 @@ exit 0
|
||||||
%systemd_postun_with_restart debuginfod.service
|
%systemd_postun_with_restart debuginfod.service
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Mar 5 2024 Aaron Merey <amerey@fedoraproject.org> - 0.191-1
|
||||||
|
- Upgrade to upstream elfutils 0.191
|
||||||
|
- Drop upstreamed patches
|
||||||
|
elfutils-0.190-fix-core-noncontig.patch
|
||||||
|
elfutils-0.190-remove-ET_REL-unstrip-test.patch
|
||||||
|
- Drop testcore-noncontig.bz2
|
||||||
|
- Update SPDX license.
|
||||||
|
|
||||||
|
* Wed Nov 29 2023 Aaron Merey <amerey@fedoraproject.org> - 0.190-2
|
||||||
|
- Update Fedora license tags to spdx license tags
|
||||||
|
- Add elfutils-0.190-fix-core-noncontig.patch
|
||||||
|
- Add elfutils-0.190-remove-ET_REL-unstrip-test.patch
|
||||||
|
|
||||||
|
* Fri Nov 10 2023 Mark Wielaard <mjw@fedoraproject.org> - 0.190-1
|
||||||
|
- Upgrade to upstream elfutils 0.190
|
||||||
|
- Add eu-srcfiles
|
||||||
|
- Drop upstreamed patches
|
||||||
|
elfutils-0.189-debuginfod_config_cache-double-close.patch
|
||||||
|
elfutils-0.189-elf_getdata_rawchunk.patch
|
||||||
|
elfutils-0.189-elfcompress.patch
|
||||||
|
elfutils-0.189-c99-compat.patch
|
||||||
|
- Only package debuginfod-client-config.7 manpage for debuginfod-client
|
||||||
|
|
||||||
|
* Thu Jun 22 2023 Mark Wielaard <mjw@fedoraproject.org> - 0.189-3
|
||||||
|
- Add elfutils-0.189-elf_getdata_rawchunk.patch
|
||||||
|
- Add elfutils-0.189-debuginfod_config_cache-double-close.patch
|
||||||
|
|
||||||
|
* Sat Apr 22 2023 Mark Wielaard <mjw@fedoraproject.org> - 0.189-2
|
||||||
|
- Add elfutils-0.189-c99-compat.patch
|
||||||
|
- Add elfutils-0.189-elfcompress.patch
|
||||||
|
|
||||||
* Fri Mar 3 2023 Mark Wielaard <mjw@fedoraproject.org> - 0.189-1
|
* Fri Mar 3 2023 Mark Wielaard <mjw@fedoraproject.org> - 0.189-1
|
||||||
- Upgrade to upsteam elfutils 0.189.
|
- Upgrade to upsteam elfutils 0.189.
|
||||||
|
|
||||||
|
|
|
||||||
2
sources
2
sources
|
|
@ -1 +1 @@
|
||||||
SHA512 (elfutils-0.189.tar.bz2) = 93a877e34db93e5498581d0ab2d702b08c0d87e4cafd9cec9d6636dfa85a168095c305c11583a5b0fb79374dd93bc8d0e9ce6016e6c172764bcea12861605b71
|
SHA512 (elfutils-0.191.tar.bz2) = e22d85f25317a79b36d370347e50284c9120c86f9830f08791b7b6a7b4ad89b9bf4c7c71129133b8d193a0edffb2a2c17987b7e48428b9670aff5ce918777e04
|
||||||
|
|
|
||||||
|
|
@ -43,7 +43,7 @@ rlJournalStart
|
||||||
# Let's see if we can chase down needed debuginfo somewhere...
|
# Let's see if we can chase down needed debuginfo somewhere...
|
||||||
|
|
||||||
# Attempt getting the needed file using debuginfod
|
# Attempt getting the needed file using debuginfod
|
||||||
export DEBUGINFOD_URLS=http://debuginfod.usersys.redhat.com:3632/
|
export DEBUGINFOD_URLS=https://debuginfod.fedoraproject.org/
|
||||||
rlRun "f=\"$f $(debuginfod-find debuginfo /bin/bash)\""
|
rlRun "f=\"$f $(debuginfod-find debuginfo /bin/bash)\""
|
||||||
|
|
||||||
# Attempt getting the needed file by traditional means
|
# Attempt getting the needed file by traditional means
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,4 @@
|
||||||
|
int main()
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
15
tests/Regression/eu-elfcompress-breaks-hard-links/main.fmf
Normal file
15
tests/Regression/eu-elfcompress-breaks-hard-links/main.fmf
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
summary: eu-elfcompress-breaks-hard-links
|
||||||
|
description: ''
|
||||||
|
link:
|
||||||
|
- relates: https://bugzilla.redhat.com/show_bug.cgi?id=2188064
|
||||||
|
contact: Martin Cermak <mcermak@redhat.com>
|
||||||
|
component:
|
||||||
|
- elfutils
|
||||||
|
test: ./runtest.sh
|
||||||
|
framework: beakerlib
|
||||||
|
recommend:
|
||||||
|
- elfutils
|
||||||
|
- gcc
|
||||||
|
duration: 1h
|
||||||
|
extra-summary: /tools/elfutils/Regression/eu-elfcompress-breaks-hard-links
|
||||||
|
extra-task: /tools/elfutils/Regression/eu-elfcompress-breaks-hard-links
|
||||||
55
tests/Regression/eu-elfcompress-breaks-hard-links/runtest.sh
Executable file
55
tests/Regression/eu-elfcompress-breaks-hard-links/runtest.sh
Executable file
|
|
@ -0,0 +1,55 @@
|
||||||
|
#!/bin/bash
|
||||||
|
# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k
|
||||||
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
#
|
||||||
|
# runtest.sh of /tools/elfutils/Regression/eu-elfcompress-breaks-hard-links
|
||||||
|
# Description: eu-elfcompress-breaks-hard-links
|
||||||
|
# Author: Martin Cermak <mcermak@redhat.com>
|
||||||
|
#
|
||||||
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
#
|
||||||
|
# Copyright (c) 2023 Red Hat, Inc.
|
||||||
|
#
|
||||||
|
# This program is free software: you can redistribute it and/or
|
||||||
|
# modify it under the terms of the GNU General Public License as
|
||||||
|
# published by the Free Software Foundation, either version 2 of
|
||||||
|
# the License, or (at your option) any later version.
|
||||||
|
#
|
||||||
|
# This program is distributed in the hope that it will be
|
||||||
|
# useful, but WITHOUT ANY WARRANTY; without even the implied
|
||||||
|
# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||||
|
# PURPOSE. See the GNU General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with this program. If not, see http://www.gnu.org/licenses/.
|
||||||
|
#
|
||||||
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
# Include Beaker environment
|
||||||
|
. /usr/share/beakerlib/beakerlib.sh || exit 1
|
||||||
|
|
||||||
|
PACKAGE="elfutils"
|
||||||
|
|
||||||
|
rlJournalStart
|
||||||
|
rlPhaseStartSetup
|
||||||
|
rlAssertRpm $PACKAGE
|
||||||
|
rlRun "TMP=$(mktemp -d)"
|
||||||
|
rlRun "cp bubble.c $TMP/"
|
||||||
|
rlRun "pushd $TMP"
|
||||||
|
rlPhaseEnd
|
||||||
|
|
||||||
|
rlPhaseStartTest
|
||||||
|
rlRun "gcc -o a.out -g bubble.c"
|
||||||
|
rlRun "ln a.out a.lnk"
|
||||||
|
rlRun "eu-elfcompress -q -p -t none a.lnk"
|
||||||
|
rlRun "i0=$(stat -c '%i' a.out)"
|
||||||
|
rlRun "i1=$(stat -c '%i' a.lnk)"
|
||||||
|
rlRun "test $i0 -eq $i1"
|
||||||
|
rlPhaseEnd
|
||||||
|
|
||||||
|
rlPhaseStartCleanup
|
||||||
|
rlRun "popd"
|
||||||
|
rlRun "rm -r $TMP"
|
||||||
|
rlPhaseEnd
|
||||||
|
rlJournalPrintText
|
||||||
|
rlJournalEnd
|
||||||
Loading…
Add table
Add a link
Reference in a new issue