Add support for debuginfod (disabled by default)
This commit is contained in:
parent
b22155004c
commit
3317ae10db
1
.gitignore
vendored
1
.gitignore
vendored
@ -118,3 +118,4 @@
|
|||||||
/annobin-8.91.tar.xz
|
/annobin-8.91.tar.xz
|
||||||
/annobin-8.92.tar.xz
|
/annobin-8.92.tar.xz
|
||||||
/annobin-9.01.tar.xz
|
/annobin-9.01.tar.xz
|
||||||
|
/annobin-9.03.tar.xz
|
||||||
|
26
annobin.spec
26
annobin.spec
@ -1,9 +1,8 @@
|
|||||||
|
|
||||||
Name: annobin
|
Name: annobin
|
||||||
Summary: Binary annotation plugin for GCC
|
Summary: Binary annotation plugin for GCC
|
||||||
Version: 9.01
|
Version: 9.03
|
||||||
Release: 3%{?dist}
|
Release: 1%{?dist}
|
||||||
|
|
||||||
License: GPLv3+
|
License: GPLv3+
|
||||||
URL: https://fedoraproject.org/wiki/Toolchain/Watermark
|
URL: https://fedoraproject.org/wiki/Toolchain/Watermark
|
||||||
# Maintainer: nickc@redhat.com
|
# Maintainer: nickc@redhat.com
|
||||||
@ -30,13 +29,20 @@ URL: https://fedoraproject.org/wiki/Toolchain/Watermark
|
|||||||
# Use "--without annocheck" to disable the installation of the annocheck program.
|
# Use "--without annocheck" to disable the installation of the annocheck program.
|
||||||
%bcond_without annocheck
|
%bcond_without annocheck
|
||||||
|
|
||||||
|
# Use "--with debuginfod" to enable support for debuginfod in the annocheck program.
|
||||||
|
%bcond_with debuginfod
|
||||||
|
|
||||||
# Set this to zero to disable the requirement for a specific version of gcc.
|
# Set this to zero to disable the requirement for a specific version of gcc.
|
||||||
# This should only be needed if there is some kind of problem with the version
|
# This should only be needed if there is some kind of problem with the version
|
||||||
# checking logic or when building on RHEL-7 or earlier.
|
# checking logic or when building on RHEL-7 or earlier.
|
||||||
%global with_hard_gcc_version_requirement 1
|
%global with_hard_gcc_version_requirement 1
|
||||||
|
|
||||||
# Enable this if it is necessary to build annobin without using annobin.
|
# Enable this if it is necessary to build annobin without using annobin.
|
||||||
%undefine _annotated_build
|
# This is useful for example if the annobin plugin fails because of a change
|
||||||
|
# in the size of gcc's global_options structure. In order to rebuild annobin
|
||||||
|
# against the changed gcc it is necessary to disable annobin as otherwise
|
||||||
|
# the configuration step of annobin's build will fail.
|
||||||
|
# %%undefine _annotated_build
|
||||||
|
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
Source: https://nickc.fedorapeople.org/annobin-%{version}.tar.xz
|
Source: https://nickc.fedorapeople.org/annobin-%{version}.tar.xz
|
||||||
@ -127,6 +133,9 @@ of the resulting files.
|
|||||||
Summary: A tool for checking the security hardening status of binaries
|
Summary: A tool for checking the security hardening status of binaries
|
||||||
|
|
||||||
BuildRequires: gcc elfutils elfutils-devel elfutils-libelf-devel rpm-devel binutils-devel
|
BuildRequires: gcc elfutils elfutils-devel elfutils-libelf-devel rpm-devel binutils-devel
|
||||||
|
%if %{with debuginfod}
|
||||||
|
BuildRequires: libdebuginfod
|
||||||
|
%endif
|
||||||
|
|
||||||
%description annocheck
|
%description annocheck
|
||||||
Installs the annocheck program which uses the notes generated by annobin to
|
Installs the annocheck program which uses the notes generated by annobin to
|
||||||
@ -162,7 +171,13 @@ touch doc/annobin.info
|
|||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
|
||||||
|
%if %{with debuginfod}
|
||||||
|
%configure --quiet --with-gcc-plugin-dir=%{ANNOBIN_PLUGIN_DIR} --with-debuginfod
|
||||||
|
%else
|
||||||
%configure --quiet --with-gcc-plugin-dir=%{ANNOBIN_PLUGIN_DIR}
|
%configure --quiet --with-gcc-plugin-dir=%{ANNOBIN_PLUGIN_DIR}
|
||||||
|
%endif
|
||||||
|
|
||||||
%make_build
|
%make_build
|
||||||
# Rebuild the plugin, this time using the plugin itself! This
|
# Rebuild the plugin, this time using the plugin itself! This
|
||||||
# ensures that the plugin works, and that it contains annotations
|
# ensures that the plugin works, and that it contains annotations
|
||||||
@ -224,6 +239,9 @@ fi
|
|||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Jan 30 2020 Nick Clifton <nickc@redhat.com> - 9.03-1
|
||||||
|
- Add debuginfod support.
|
||||||
|
|
||||||
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 9.01-3
|
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 9.01-3
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||||
|
|
||||||
|
2
sources
2
sources
@ -1 +1 @@
|
|||||||
SHA512 (annobin-9.01.tar.xz) = 60db676559ddb280739cc1e269f143ac8a86a53424af18101a565bcb5945540161473499df6b733e30f896684e0ef373f0e01bea4dd017df4c32ea31a5de4d0b
|
SHA512 (annobin-9.03.tar.xz) = 3b2bbadcc700abaf9a927bc07fb7b9f577590b64025ce182a179b523bc033ab5ef8060ca04c6796ed672c80a5f7d92de81d429e565096b8791cddb7142110cec
|
||||||
|
Loading…
Reference in New Issue
Block a user