!151 golang: remove hard code and strong dependency of git, subversion and mercurial

From: @hcnbxx 
Reviewed-by: @zhangsong234, @jing-rui 
Signed-off-by: @jing-rui
This commit is contained in:
openeuler-ci-bot 2022-11-21 09:48:13 +00:00 committed by Gitee
commit 4c3abe6a6a
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -7,6 +7,7 @@
%global __spec_install_post /usr/lib/rpm/check-rpaths /usr/lib/rpm/check-buildroot /usr/lib/rpm/brp-compress %global __spec_install_post /usr/lib/rpm/check-rpaths /usr/lib/rpm/check-buildroot /usr/lib/rpm/brp-compress
%global __requires_exclude_from ^(%{_datadir}|/usr/lib)/%{name}/(doc|src)/.*$ %global __requires_exclude_from ^(%{_datadir}|/usr/lib)/%{name}/(doc|src)/.*$
%global __strip /bin/true %global __strip /bin/true
%global vendor %{?_vendor:%{_vendor}}%{!?_vendor:openEuler}
%define _use_internal_dependency_generator 0 %define _use_internal_dependency_generator 0
%define __find_requires %{nil} %define __find_requires %{nil}
@ -62,7 +63,7 @@
Name: golang Name: golang
Version: 1.17.3 Version: 1.17.3
Release: 11 Release: 12
Summary: The Go Programming Language Summary: The Go Programming Language
License: BSD and Public Domain License: BSD and Public Domain
URL: https://golang.org/ URL: https://golang.org/
@ -91,7 +92,7 @@ Obsoletes: %{name}-cover < 0-12.1
Requires(post): %{_sbindir}/update-alternatives Requires(post): %{_sbindir}/update-alternatives
Requires(postun): %{_sbindir}/update-alternatives Requires(postun): %{_sbindir}/update-alternatives
Requires: glibc gcc git subversion Recommends: glibc gcc git subversion
# generated by: # generated by:
@ -147,7 +148,7 @@ Obsoletes: %{name}-docs
Obsoletes: %{name}-data < 1.1.1-4 Obsoletes: %{name}-data < 1.1.1-4
Obsoletes: %{name}-vim < 1.4 Obsoletes: %{name}-vim < 1.4
Obsoletes: emacs-%{name} < 1.4 Obsoletes: emacs-%{name} < 1.4
Requires: openEuler-rpm-config Requires: %{vendor}-rpm-config
Patch6001: 0001-release-branch.go1.17-crypto-elliptic-tolerate-zero-.patch Patch6001: 0001-release-branch.go1.17-crypto-elliptic-tolerate-zero-.patch
Patch6002: 0002-release-branch.go1.17-encoding-pem-fix-stack-overflo.patch Patch6002: 0002-release-branch.go1.17-encoding-pem-fix-stack-overflo.patch
@ -410,6 +411,12 @@ fi
%files devel -f go-tests.list -f go-misc.list -f go-src.list %files devel -f go-tests.list -f go-misc.list -f go-src.list
%changelog %changelog
* Fri Oct 11 2022 hanchao <hanchao47@huawei.com> - 1.17.3-12
- Type:CVE
- CVE:CVE-2022-41716
- SUG:NA
- DESC: remove hard code and strong dependency of git, subversion and mercurial
* Fri Oct 11 2022 hanchao <hanchao47@huawei.com> - 1.17.3-11 * Fri Oct 11 2022 hanchao <hanchao47@huawei.com> - 1.17.3-11
- Type:CVE - Type:CVE
- CVE:CVE-2022-41716 - CVE:CVE-2022-41716