Skip to content

Commit

Permalink
Don't provide go and gofmt binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
direc85 committed Dec 12, 2024
1 parent 05919cb commit 86a2f66
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions rpm/gcc.spec
Original file line number Diff line number Diff line change
Expand Up @@ -1394,26 +1394,6 @@ if posix.access ("/sbin/ldconfig", "x") then
end
end

%post go
pushd %{_bindir}
if [ ! -f go ] ; then
ln -s go.gcc go
fi
if [ ! -f gofmt ] ; then
ln -s gofmt.gcc gofmt
fi
popd

%preun go
pushd %{_bindir}
if [ -L go ]; then
rm go
fi
if [ -L gofmt ]; then
rm gofmt
fi
popd

%post -n libstdc++ -p /sbin/ldconfig

%postun -n libstdc++ -p /sbin/ldconfig
Expand Down Expand Up @@ -2020,10 +2000,8 @@ popd

%if %{build_go}
%files go
%ghost %{_prefix}/bin/go
%attr(755,root,root) %{_prefix}/bin/go.gcc
%{_prefix}/bin/gccgo
%ghost %{_prefix}/bin/gofmt
%attr(755,root,root) %{_prefix}/bin/gofmt.gcc
%{_mandir}/man1/gccgo.1*
%{_mandir}/man1/go.1*
Expand Down

0 comments on commit 86a2f66

Please sign in to comment.