Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package gcc for openSUSE:Factory checked in 
at 2025-12-08 11:52:29
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/gcc (Old)
 and      /work/SRC/openSUSE:Factory/.gcc.new.1939 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "gcc"

Mon Dec  8 11:52:29 2025 rev:81 rq:1321277 version:15

Changes:
--------
--- /work/SRC/openSUSE:Factory/gcc/gcc.changes  2025-06-16 11:11:31.540930886 
+0200
+++ /work/SRC/openSUSE:Factory/.gcc.new.1939/gcc.changes        2025-12-08 
11:52:32.041917491 +0100
@@ -1,0 +2,5 @@
+Fri Dec  5 07:33:47 UTC 2025 - Richard Biener <[email protected]>
+
+- Remove go/gofmt alternatives.  [bsc#1245878]
+
+-------------------------------------------------------------------

New:
----
  _scmsync.obsinfo
  build.specials.obscpio

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ gcc.spec ++++++
--- /var/tmp/diff_new_pack.OpJqLw/_old  2025-12-08 11:52:34.298012010 +0100
+++ /var/tmp/diff_new_pack.OpJqLw/_new  2025-12-08 11:52:34.298012010 +0100
@@ -470,7 +470,6 @@
 Requires:       gcc%{gcc_version}-go
 Requires:       gcc%{gccsuffix} = %{version}
 Requires(post): update-alternatives
-Requires(postun): update-alternatives
 
 %description -n gcc%{gccsuffix}-go
 The system GNU Go Compiler.
@@ -660,10 +659,9 @@
     ; do
   ln -sf $program-%{gcc_suffix} $RPM_BUILD_ROOT%{_prefix}/bin/$program
 done
-# For go and gofmt use alternatives since they are shared with golang
-mkdir -p %{buildroot}%{_sysconfdir}/alternatives
-ln -sf %{_sysconfdir}/alternatives/go %{buildroot}%{_bindir}/go
-ln -sf %{_sysconfdir}/alternatives/gofmt %{buildroot}%{_bindir}/gofmt
+# Do not add a gofmt link from gofmt-%{gcc_suffix} since that conflicts with
+# the golang libalternatives version of this.  Do not use gccgofmt either,
+# that's nonstandard and not expected by anyone.
 # Link section 1 manpages
 for man1 in \
         gcc gcov gcov-dump gcov-tool lto-dump \
@@ -706,19 +704,10 @@
 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
 %post -n gcc%{gccsuffix}-go
-# we don't want a BuildRequires on gccN-go but otherwise the install
-# step of the build fails, so simply skip the script when gccN-go isn't there
-if [ -f %{_bindir}/go-%{gcc_suffix} ] ; then
-update-alternatives \
-  --install %{_bindir}/go go %{_bindir}/go-%{gcc_suffix} 100 \
-  --slave %{_bindir}/gofmt gofmt %{_bindir}/gofmt-%{gcc_suffix}
-fi
-
-%postun -n gcc%{gccsuffix}-go
-if [ $1 -eq 0 ] ; then
-  update-alternatives --remove go %{_bindir}/go-%{gcc_suffix}
-fi
+update-alternatives --remove go %{_bindir}/go-%{gcc_suffix}
 
 %files -n gcc%{gccsuffix}
 %defattr(-,root,root)
@@ -813,10 +802,6 @@
 %files -n gcc%{gccsuffix}-go
 %defattr(-,root,root)
 %{_bindir}/gccgo
-%{_bindir}/go
-%{_bindir}/gofmt
-%ghost %{_sysconfdir}/alternatives/go
-%ghost %{_sysconfdir}/alternatives/gofmt
 %doc %{_mandir}/man1/gccgo.1.gz
 
 %if %{build_d}

++++++ _scmsync.obsinfo ++++++
mtime: 1764942702
commit: 3f7bae42d07912dfeb581c47954d4df63b2d9404529251588ae98569d0f2e5fa
url: https://src.opensuse.org/gcc/gcc.git
revision: main

++++++ build.specials.obscpio ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/.gitignore new/.gitignore
--- old/.gitignore      1970-01-01 01:00:00.000000000 +0100
+++ new/.gitignore      2025-12-05 14:51:55.000000000 +0100
@@ -0,0 +1 @@
+.osc

Reply via email to