|
|
|
@ -75,8 +75,8 @@ URL: https://sourceware.org/annobin/
|
|
|
|
|
# Then once GTS-gcc is built and in the buildroot, reset this variable
|
|
|
|
|
# to 0, bump the NVR and rebuild GTS-annobin.
|
|
|
|
|
%define bootstrapping 0
|
|
|
|
|
# FIXME: Temporary - use this to get the annobin plugin into the buildroot.
|
|
|
|
|
%undefine _annotated_build
|
|
|
|
|
# # FIXME: Temporary - use this to get the annobin plugin into the buildroot.
|
|
|
|
|
# %%undefine _annotated_build
|
|
|
|
|
|
|
|
|
|
#---------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
@ -85,10 +85,8 @@ Source: https://nickc.fedorapeople.org/%{annobin_sources}
|
|
|
|
|
# For the latest sources use: git clone git://sourceware.org/git/annobin.git
|
|
|
|
|
|
|
|
|
|
# Insert patches here, if needed.
|
|
|
|
|
Patch01: annobin-nop.patch
|
|
|
|
|
Patch02: annobin-tmp-default-to-using-group-attach.patch
|
|
|
|
|
%if %{bootstrapping}
|
|
|
|
|
Patch03: annobin-gcc-plugin-ignore-major-version-diffs.patch
|
|
|
|
|
Patch01: annobin-gcc-plugin-ignore-major-version-diffs.patch
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
# This is where a copy of the sources will be installed.
|
|
|
|
@ -103,17 +101,17 @@ BuildRequires: gcc gcc-c++
|
|
|
|
|
|
|
|
|
|
%else
|
|
|
|
|
|
|
|
|
|
BuildRequires: %{?scl_prefix}gcc
|
|
|
|
|
BuildRequires: %{?scl_prefix}gcc-c++
|
|
|
|
|
BuildRequires: %{?scl_prefix}annobin-plugin-gcc
|
|
|
|
|
BuildRequires: %{scl_prefix}gcc
|
|
|
|
|
BuildRequires: %{scl_prefix}gcc-c++
|
|
|
|
|
BuildRequires: %{scl_prefix}annobin-plugin-gcc
|
|
|
|
|
%{?scl:BuildRequires:%scl_runtime}
|
|
|
|
|
|
|
|
|
|
%{?scl:Requires:%scl_runtime}
|
|
|
|
|
# We need the gcc-toolset-N version of gcc in order to run annobin, as otherwise the versions will not match.
|
|
|
|
|
%{?scl:Requires:%scl_require_package %{scl} gcc}
|
|
|
|
|
|
|
|
|
|
%define gcc_for_annobin %{?_scl_root}/usr/bin/gcc
|
|
|
|
|
%define gxx_for_annobin %{?_scl_root}/usr/bin/g++
|
|
|
|
|
%define gcc_for_annobin %{_scl_root}/usr/bin/gcc
|
|
|
|
|
%define gxx_for_annobin %{_scl_root}/usr/bin/g++
|
|
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
@ -393,7 +391,7 @@ fi
|
|
|
|
|
echo "Requires: (%{?scl_prefix}gcc >= %{gcc_major} and %{?scl_prefix}gcc < %{gcc_next})"
|
|
|
|
|
|
|
|
|
|
# NB/ Do not add {?scl_prefix} to the -n option below. The annobin sources
|
|
|
|
|
# unpack into a directory called annobin-VERSION not gcc-toolset-N-annobin-VERSION.
|
|
|
|
|
# unpack into a directory called annobin-VERSION not gcc-toolset-14-annobin-VERSION.
|
|
|
|
|
%autosetup -p1 -n annobin-%{version}
|
|
|
|
|
|
|
|
|
|
# The plugin has to be configured with the same arcane configure
|
|
|
|
@ -504,13 +502,13 @@ rm %{_tmppath}/tmp_annobin.so
|
|
|
|
|
%if %{with clangplugin}
|
|
|
|
|
cp clang-plugin/annobin-for-clang.so %{_tmppath}/tmp_annobin.so
|
|
|
|
|
# To enable verbose more in the plugin append the following: ANNOBIN="verbose"
|
|
|
|
|
make -C clang-plugin clean all CLANG_TARGET_OPTIONS="$CLANG_TARGET_OPTIONS $BUILD_FLAGS" PLUGIN_INSTALL_DIR=%{clang_plugin_dir}
|
|
|
|
|
make -C clang-plugin clean all CLANG_TARGET_OPTIONS="$CLANG_TARGET_OPTIONS $BUILD_FLAGS" PLUGIN_INSTALL_DIR=%{buildroot}/%{clang_plugin_dir}
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%if %{with llvmplugin}
|
|
|
|
|
cp llvm-plugin/annobin-for-llvm.so %{_tmppath}/tmp_annobin.so
|
|
|
|
|
# To enable verbose more in the plugin append the following: ANNOBIN_VERBOSE="true"
|
|
|
|
|
make -C llvm-plugin clean all CLANG_TARGET_OPTIONS="$CLANG_TARGET_OPTIONS $BUILD_FLAGS" PLUGIN_INSTALL_DIR=%{llvm_plugin_dir}
|
|
|
|
|
make -C llvm-plugin clean all CLANG_TARGET_OPTIONS="$CLANG_TARGET_OPTIONS $BUILD_FLAGS" PLUGIN_INSTALL_DIR=%{buildroot}/%{llvm_plugin_dir}
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
# endif for %%if {with_plugin_rebuild}
|
|
|
|
@ -635,27 +633,27 @@ make check GCC=%gcc_for_annobin
|
|
|
|
|
#---------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Tue Aug 13 2024 Nick Clifton <nickc@redhat.com> - 12.70-2
|
|
|
|
|
- Clang & LLVM Plugins: Remove buildroot from plugin install directory. (RHEL-54178)
|
|
|
|
|
* Thu Aug 22 2024 Nick Clifton <nickc@redhat.com> - 12.70-2
|
|
|
|
|
- NVR Bump to allow rebuilding with annotation.
|
|
|
|
|
|
|
|
|
|
* Tue Aug 13 2024 Nick Clifton <nickc@redhat.com> - 12.70-1
|
|
|
|
|
- Clang & LLVM Plugins: Include install directory in binary. (RHEL-54178)
|
|
|
|
|
- Clang & LLVM Plugins: Include install directory in binary. (RHEL-54069)
|
|
|
|
|
|
|
|
|
|
* Mon Aug 12 2024 Nick Clifton <nickc@redhat.com> - 12.69-1
|
|
|
|
|
- BuiltBy: Fix seg-fault when comparing language version strings. (RHEL-53497)
|
|
|
|
|
- Spec File: Use correct names for the symlinks. (RHEL-53210)
|
|
|
|
|
- Spec File: Use correct names for the symlinks. (RHEL-53209)
|
|
|
|
|
|
|
|
|
|
* Fri Aug 09 2024 Nick Clifton <nickc@redhat.com> - 12.67-5
|
|
|
|
|
- Spec File: Use correct names for the symlinks. (RHEL-53210)
|
|
|
|
|
- Spec File: Use correct names for the symlinks. (RHEL-53209)
|
|
|
|
|
|
|
|
|
|
* Thu Aug 08 2024 Nick Clifton <nickc@redhat.com> - 12.67-4
|
|
|
|
|
- Spec File: Use correct names for the plugins. (RHEL-53210)
|
|
|
|
|
- Spec File: Use correct names for the plugins. (RHEL-53209)
|
|
|
|
|
|
|
|
|
|
* Thu Aug 08 2024 Nick Clifton <nickc@redhat.com> - 12.67-3
|
|
|
|
|
- Spec File: Disable bootstrapping.
|
|
|
|
|
- Spec File: Disable bootstrapping. (RHEL-53543)
|
|
|
|
|
|
|
|
|
|
* Thu Aug 08 2024 Nick Clifton <nickc@redhat.com> - 12.67-2
|
|
|
|
|
- Spec File: Use correct directory for plugin installation. (RHEL-53210)
|
|
|
|
|
- Spec File: Use correct directory for plugin installation. (RHEL-53209)
|
|
|
|
|
- Spec File: Disable plugin when running on wrong major version of the compiler.
|
|
|
|
|
|
|
|
|
|
* Wed Aug 07 2024 Nick Clifton <nickc@redhat.com> - 12.67-1
|
|
|
|
@ -663,14 +661,11 @@ make check GCC=%gcc_for_annobin
|
|
|
|
|
- Annocheck: Stop warnings about known gaps. (RHEL-53218)
|
|
|
|
|
- Annocheck: Fix stack realign test. (#2302427)
|
|
|
|
|
|
|
|
|
|
* Wed Aug 07 2024 Nick Clifton <nickc@redhat.com> - 12.65-5
|
|
|
|
|
- Spec File: Change bootstrap gcc version to 14. (RHEL-53210)
|
|
|
|
|
|
|
|
|
|
* Thu Aug 01 2024 Nick Clifton <nickc@redhat.com> - 12.65-4
|
|
|
|
|
- Spec File: Remove scl-runtime requirement when bootstrapping.
|
|
|
|
|
* Wed Aug 07 2024 Nick Clifton <nickc@redhat.com> - 12.65-4
|
|
|
|
|
- Spec File: Change bootstrap gcc version to 14. (RHEL-53209)
|
|
|
|
|
|
|
|
|
|
* Thu Aug 01 2024 Nick Clifton <nickc@redhat.com> - 12.65-3
|
|
|
|
|
- Spec File: Enable bootstrapping.
|
|
|
|
|
- Spec File: Remove scl-runtime requirement when bootstrapping.
|
|
|
|
|
|
|
|
|
|
* Thu Aug 01 2024 Nick Clifton <nickc@redhat.com> - 12.65-2
|
|
|
|
|
- Spec File: Remove spurious dash from install path of gcc plugin. (RHEL-51183)
|
|
|
|
@ -697,11 +692,11 @@ make check GCC=%gcc_for_annobin
|
|
|
|
|
* Fri Jul 26 2024 Nick Clifton <nickc@redhat.com> - 12.52-5
|
|
|
|
|
- Spec File: Hard code the gcc plugin directory when boostrapping. (RHEL-50148)
|
|
|
|
|
|
|
|
|
|
* Tue May 07 2024 Nick Clifton <nickc@redhat.com> - 12.52-3
|
|
|
|
|
- Disable bootstrapping. (RHEL-29850)
|
|
|
|
|
* Mon Jul 22 2024 Nick Clifton <nickc@redhat.com> - 12.52-4
|
|
|
|
|
- Rebuild with LLVM 18. (RHEL-49955)
|
|
|
|
|
|
|
|
|
|
* Fri May 03 2024 Nick Clifton <nickc@redhat.com> - 12.52-2
|
|
|
|
|
- Disable version checks in gcc plugin. (RHEL-29850)
|
|
|
|
|
- Disable version checks in gcc plugin.
|
|
|
|
|
|
|
|
|
|
* Fri Apr 26 2024 Nick Clifton <nickc@redhat.com> - 12.52-1
|
|
|
|
|
- Initial import of sources.
|
|
|
|
|