From bdfccad670851638a98e3531d0926956a6bd17fc Mon Sep 17 00:00:00 2001 From: Debarshi Ray Date: Tue, 4 Apr 2023 17:00:36 +0200 Subject: [PATCH] Add missing 'BuildRequires: gcc' A C compiler is necessary to build Toolbx [1]. GCC is being pulled in by the other BuildRequires, but it's good to explicitly list it since GCC isn't part of the default buildroot since Fedora 29 [2] and will prevent the compiler from unexpectedly changing to Clang. There's no need to do a build just for this. [1] Upstream commit c8aaed52c547e24e https://github.com/containers/toolbox/commit/c8aaed52c547e24e https://github.com/containers/toolbox/pull/923 [2] https://fedoraproject.org/wiki/Changes/Remove_GCC_from_BuildRoot Resolves: Resolves: #2164980, #2165743 --- toolbox.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/toolbox.spec b/toolbox.spec index ae1da58..ef4c524 100644 --- a/toolbox.spec +++ b/toolbox.spec @@ -38,6 +38,7 @@ Patch102: toolbox-Add-migration-paths-for-coreos-toolbox-users.patch # https://bugzilla.redhat.com/show_bug.cgi?id=1905383 ExcludeArch: %{ix86} +BuildRequires: gcc BuildRequires: golang >= 1.19.4 BuildRequires: /usr/bin/go-md2man BuildRequires: meson >= 0.58.0