3 Commits

Author SHA256 Message Date
Richard Biener
77af35ba4f Merge remote-tracking branch 'devel/main' into slfo-main 2026-01-08 11:26:42 +01:00
Richard Biener
2bc0ea0f49 Revert "Sync changes to SLFO-1.2 branch"
This reverts commit 2fe52b4671.
2026-01-08 11:26:37 +01:00
2fe52b4671 Sync changes to SLFO-1.2 branch 2025-08-20 09:16:15 +02:00
2 changed files with 4 additions and 13 deletions

View File

@@ -1,9 +1,3 @@
-------------------------------------------------------------------
Tue Jan 27 14:12:22 UTC 2026 - Richard Biener <rguenther@suse.com>
- Improve go/gofmt alternative removal upon migration to an
alternative-less system.
-------------------------------------------------------------------
Fri Dec 5 07:33:47 UTC 2025 - Richard Biener <rguenther@suse.com>

View File

@@ -469,8 +469,7 @@ Conflicts: gcc-go
%endif
Requires: gcc%{gcc_version}-go
Requires: gcc%{gccsuffix} = %{version}
OrderWithRequires(pre): update-alternatives
Suggests: update-alternatives
Requires(post): update-alternatives
%description -n gcc%{gccsuffix}-go
The system GNU Go Compiler.
@@ -706,11 +705,9 @@ mkdir -p $RPM_BUILD_ROOT%{_libdir}/bfd-plugins
ln -s `gcc-%{gcc_suffix} -print-file-name=liblto_plugin.so` $RPM_BUILD_ROOT%{_libdir}/bfd-plugins/liblto_plugin.so
# We no longer register go/gofmt alternatives for gcc-go, but remove
# any existing one on upgrade if it still exists
%pre -n gcc%{gccsuffix}-go
if [ $1 -eq 2 ] && [ -f %{_sysconfdir}/alternatives/go ] ; then
update-alternatives --remove go %{_bindir}/go-%{gcc_suffix}
fi
# any existing one on upgrade
%post -n gcc%{gccsuffix}-go
update-alternatives --remove go %{_bindir}/go-%{gcc_suffix}
%files -n gcc%{gccsuffix}
%defattr(-,root,root)