Compare commits
3 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
|
|
77af35ba4f | ||
|
|
2bc0ea0f49 | ||
| 2fe52b4671 |
@@ -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>
|
||||
|
||||
|
||||
11
gcc.spec
11
gcc.spec
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user