From 57dde0c66909b8a161e24c6c5330ef53cbf04631 Mon Sep 17 00:00:00 2001 From: jchzhou Date: Mon, 4 Mar 2024 17:38:45 +0800 Subject: [PATCH] add a workaround for clang building issues --- moby.spec | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/moby.spec b/moby.spec index 003227e..0299954 100644 --- a/moby.spec +++ b/moby.spec @@ -7,7 +7,7 @@ Name: moby Version: 25.0.3 -Release: 1 +Release: 2 Summary: The open-source application container engine License: ASL 2.0 URL: https://www.docker.com @@ -101,6 +101,11 @@ pushd %{_builddir}/%{_source_engine} AUTO_GOPATH=1 VERSION=%{version} PRODUCT=docker hack/make.sh dynbinary popd +%if "%toolchain" == "clang" +export CFLAGS="$CFLAGS -Wno-strict-prototypes" +export CXXFLAGS="$CXXFLAGS -Wno-strict-prototypes" +%endif + # build docker-tini pushd %{_builddir}/%{_source_docker_init} cmake . @@ -190,6 +195,9 @@ fi %systemd_postun_with_restart docker.service %changelog +* Mon Mar 04 2024 jchzhou - 25.0.3-2 +- DESC: add a workaround for clang building issues + * Tue Feb 06 2024 shechenglong - 25.0.3-1 - DESC:update to 25.0.3 -- Gitee