libreoffice-compilar/rpmbuild/SPECS/annobin-symlink.spec

37 lines
1.3 KiB
RPMSpec

%global scl_gcc_prefix /opt/rh/gcc-toolset-12/root/usr/lib/gcc
%global scl_plugin_prefix %{scl_gcc_prefix}/x86_64-redhat-linux/12/plugin
Name: gcc-toolset-12-annobin-symlink
Version: 12.0.0
Release: 2%{?dist}
Summary: A symlink gcc-annobin.so to gts-gcc-annobin.so
License: Beerware
URL: http://gcc.gnu.org
Requires: gcc-toolset-12-gcc-plugin-annobin
%description
Quick and dirty hack for gcc error:
cc1: fatal error: inaccessible plugin file /opt/rh/gcc-toolset-12/root/usr/lib/gcc/x86_64-redhat-linux/12/plugin/gcc-annobin.so expanded from short plugin name gcc-annobin: No such file or directory
A symlink gcc-annobin.so to gts-gcc-annobin.so fixes the issue
%install
install -d %{buildroot}%{scl_plugin_prefix}
ln -svf gts-annobin.so %{buildroot}%{scl_plugin_prefix}/annobin.so
ln -svf gts-gcc-annobin.so %{buildroot}%{scl_plugin_prefix}/gcc-annobin.so
%files
%{scl_plugin_prefix}/annobin.so
%{scl_plugin_prefix}/gcc-annobin.so
%changelog
* Fri Feb 16 2024 Sandino Araico Sánchez <sandino@sandino.net>
- Liga simbólica también para annobin.so
* Thu Jan 18 2024 Sandino Araico Sánchez <sandino@sandino.net>
- Liga simbólica para que jale esta chingadera
- cd /opt/rh/gcc-toolset-12/root/usr/lib/gcc/x86_64-redhat-linux/12/plugin
- ln -svf gts-gcc-annobin.so gcc-annobin.so