Skip to content

Commit

Permalink
golang: pin golang to <= 1.22 for specs that do not build with 1.23
Browse files Browse the repository at this point in the history
Signed-off-by: Muhammad Falak R Wani <[email protected]>
  • Loading branch information
mfrw committed Oct 15, 2024
1 parent 4ffd323 commit 3644acd
Show file tree
Hide file tree
Showing 7 changed files with 35 additions and 14 deletions.
7 changes: 5 additions & 2 deletions SPECS/containerd/containerd.spec
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Summary: Industry-standard container runtime
Name: containerd
Version: 1.7.13
Release: 3%{?dist}
Release: 4%{?dist}
License: ASL 2.0
Group: Tools/Container
URL: https://www.containerd.io
Expand All @@ -22,7 +22,7 @@ Patch3: CVE-2023-47108.patch
%{?systemd_requires}

BuildRequires: git
BuildRequires: golang
BuildRequires: golang <= 1.22.99
BuildRequires: go-md2man
BuildRequires: make
BuildRequires: systemd-rpm-macros
Expand Down Expand Up @@ -87,6 +87,9 @@ fi
%dir /opt/containerd/lib

%changelog
* Tue Oct 15 2024 Muhammad Falak <[email protected]> - 1.7.13-4
- Pin golang version to <= 1.22

* Wed Jun 26 2024 Nicolas Guibourge <[email protected]> - 1.7.13-3
- Address CVE-2023-44487 and CVE-2023-47108

Expand Down
7 changes: 5 additions & 2 deletions SPECS/gh/gh.spec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Summary: GitHub official command line tool
Name: gh
Version: 2.43.1
Release: 1%{?dist}
Release: 2%{?dist}
License: MIT
Vendor: Microsoft Corporation
Distribution: Azure Linux
Expand All @@ -28,7 +28,7 @@ Source0: https://github.com/cli/cli/archive/refs/tags/v%{version}.tar.gz#
# - For the value of "--mtime" use the date "2021-04-26 00:00Z" to simplify future updates.
Source1: %{name}-%{version}-vendor.tar.gz

BuildRequires: golang >= 1.21.1
BuildRequires: golang <= 1.22.99
BuildRequires: git
Requires: git
%global debug_package %{nil}
Expand Down Expand Up @@ -70,6 +70,9 @@ make test
%{_datadir}/zsh/site-functions/_gh

%changelog
* Tue Oct 15 2024 Muhammad Falak <[email protected]> - 2.43.1-2
- Pin golang version to <= 1.22

* Mon Feb 26 2024 Neha Agarwal <[email protected]> - 2.43.1-1
- Update to v2.43.1

Expand Down
7 changes: 5 additions & 2 deletions SPECS/ig/ig.spec
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
Summary: The eBPF tool and systems inspection framework for Kubernetes, containers and Linux hosts.
Name: ig
Version: 0.32.0
Release: 1%{?dist}
Release: 2%{?dist}
License: Apache 2.0 and GPL 2.0 for eBPF code
Vendor: Microsoft Corporation
Distribution: Azure Linux
Group: Tools/Container
URL: https://github.com/inspektor-gadget/inspektor-gadget
Source0: https://github.com/inspektor-gadget/inspektor-gadget/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
Source1: %{name}-%{version}-govendor-v1.tar.gz
BuildRequires: golang
BuildRequires: golang <= 1.22.99


%description
Expand Down Expand Up @@ -64,6 +64,9 @@ fi
%{_bindir}/ig

%changelog
* Tue Oct 15 2024 Muhammad Falak <[email protected]> - 0.32.0-2
- Pin golang version to <= 1.22

* Tue Sep 03 2024 Francis Laniel <[email protected]> - 0.32.0-1
- Bump to version 0.32.0

Expand Down
7 changes: 5 additions & 2 deletions SPECS/libguestfs/libguestfs.spec
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
Summary: Access and modify virtual machine disk images
Name: libguestfs
Version: 1.52.0
Release: 9%{?dist}
Release: 10%{?dist}
License: LGPLv2+
Vendor: Microsoft Corporation
Distribution: Azure Linux
Expand Down Expand Up @@ -215,7 +215,7 @@ BuildRequires: php-devel
%endif

%ifarch %{golang_arches}
BuildRequires: golang
BuildRequires: golang <= 1.22.99
%endif

%ifarch x86_64
Expand Down Expand Up @@ -1147,6 +1147,9 @@ rm ocaml/html/.gitignore
%endif

%changelog
* Tue Oct 15 2024 Muhammad Falak <[email protected]> - 1.52.0-10
- Pin golang version to <= 1.22

* Mon Aug 26 2024 Rachel Menge <[email protected]> - 1.52.0-9
- Update to build dep latest glibc-static version

Expand Down
7 changes: 5 additions & 2 deletions SPECS/moby-containerd-cc/moby-containerd-cc.spec
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
Summary: Industry-standard container runtime for confidential containers
Name: moby-%{upstream_name}
Version: 1.7.7
Release: 3%{?dist}
Release: 4%{?dist}
License: ASL 2.0
Group: Tools/Container
URL: https://www.containerd.io
Expand All @@ -23,7 +23,7 @@ Patch2: fix_cc_tests_for_golang1.21.patch
%{?systemd_requires}

BuildRequires: git
BuildRequires: golang >= 1.19.0
BuildRequires: golang <= 1.22.99
BuildRequires: go-md2man
BuildRequires: make
BuildRequires: systemd-rpm-macros
Expand Down Expand Up @@ -76,6 +76,9 @@ fi
%config(noreplace) %{_sysconfdir}/containerd/config.toml

%changelog
* Tue Oct 15 2024 Muhammad Falak <[email protected]> - 1.7.7-4
- Pin golang version to <= 1.22

* Mon Apr 08 2024 Mitch Zhu <[email protected]> - 1.7.7-3
- Drop obsolete btrfs-progs-devel build dependency

Expand Down
7 changes: 5 additions & 2 deletions SPECS/runc/runc.spec
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Summary: CLI tool for spawning and running containers per OCI spec.
Name: runc
# update "commit_hash" above when upgrading version
Version: 1.1.12
Release: 1%{?dist}
Release: 2%{?dist}
License: ASL 2.0
Vendor: Microsoft Corporation
Distribution: Azure Linux
Expand All @@ -12,7 +12,7 @@ URL: https://github.com/opencontainers/runc
Source0: https://github.com/opencontainers/runc/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires: git
BuildRequires: go-md2man
BuildRequires: golang
BuildRequires: golang <= 1.22.99
BuildRequires: libseccomp-devel
BuildRequires: make
Requires: glibc
Expand Down Expand Up @@ -43,6 +43,9 @@ make install-man DESTDIR=%{buildroot} PREFIX=%{_prefix}
%{_mandir}/*

%changelog
* Tue Oct 15 2024 Muhammad Falak <[email protected]> - 1.1.12-2
- Pin golang version to <= 1.22

* Mon Feb 05 2024 Henry Beberman <[email protected]> - 1.1.12-1
- Bump version to 1.1.12
- Drop cgroups cpuset patch because it's included upstream now
Expand Down
7 changes: 5 additions & 2 deletions SPECS/vitess/vitess.spec
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

Name: vitess
Version: 19.0.4
Release: 2%{?dist}
Release: 3%{?dist}
Summary: Database clustering system for horizontal scaling of MySQL
# Upstream license specification: MIT and Apache-2.0
License: MIT and ASL 2.0
Expand All @@ -27,7 +27,7 @@ Source0: %{name}-%{version}.tar.gz
#
Source1: %{name}-%{version}-vendor.tar.gz
Patch0: CVE-2017-14623.patch
BuildRequires: golang
BuildRequires: golang <= 1.22.99

%description
Vitess is a database clustering system for horizontal scaling of MySQL through
Expand Down Expand Up @@ -104,6 +104,9 @@ go check -t go/cmd \
%{_bindir}/*

%changelog
* Tue Oct 15 2024 Muhammad Falak <[email protected]> - 19.0.4-3
- Pin golang version to <= 1.22

* Thu Jun 27 2024 Nicolas Guibourge <[email protected]> - 19.0.4-2
- Address CVE-2017-14623

Expand Down

0 comments on commit 3644acd

Please sign in to comment.